Skip to content

Commit

Permalink
Add banner
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Nov 9, 2023
1 parent 2a1109b commit efeb479
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
17 changes: 16 additions & 1 deletion docs/_asset/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ sup {
}

main {
margin-block-start: calc(4 * (1em + 1ex));
margin-block-start: calc(5.5 * (1em + 1ex));
}

dd,
Expand Down Expand Up @@ -524,6 +524,7 @@ button.success {
inset-block-start: 0;
display: flex;
padding: calc(0.5 * (1em + 1ex));
padding-top: calc(2 * (1em + 1ex));
}

.navigation::before {
Expand All @@ -538,6 +539,20 @@ button.success {
);
}

#banner {
padding: calc(0.25 * (1em + 1ex));
background-color: var(--mdx-yellow);
color: var(--white);
position: absolute;
left: 0;
top: 0;
right: 0;
text-align: center;
z-index: 10;
font-weight: bolder;
letter-spacing: 1px;
}

.full-bleed {
width: 100vw;
position: relative;
Expand Down
1 change: 1 addition & 0 deletions docs/_component/nav-site.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export function NavSite(props) {

return (
<nav className="navigation" aria-label="Site navigation">
<div id="banner">Ceasefire now! 🕊️</div>
<a
href="#start-of-content"
id="start-of-navigation"
Expand Down

1 comment on commit efeb479

@vercel
Copy link

@vercel vercel bot commented on efeb479 Nov 9, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

mdx – ./

mdx-mdx.vercel.app
mdxjs.com
mdx-git-main-mdx.vercel.app
v2.mdxjs.com

Please sign in to comment.