Skip to content

Commit efeb479

Browse files
committed
Add banner
1 parent 2a1109b commit efeb479

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

docs/_asset/index.css

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ sup {
101101
}
102102

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

107107
dd,
@@ -524,6 +524,7 @@ button.success {
524524
inset-block-start: 0;
525525
display: flex;
526526
padding: calc(0.5 * (1em + 1ex));
527+
padding-top: calc(2 * (1em + 1ex));
527528
}
528529

529530
.navigation::before {
@@ -538,6 +539,20 @@ button.success {
538539
);
539540
}
540541

542+
#banner {
543+
padding: calc(0.25 * (1em + 1ex));
544+
background-color: var(--mdx-yellow);
545+
color: var(--white);
546+
position: absolute;
547+
left: 0;
548+
top: 0;
549+
right: 0;
550+
text-align: center;
551+
z-index: 10;
552+
font-weight: bolder;
553+
letter-spacing: 1px;
554+
}
555+
541556
.full-bleed {
542557
width: 100vw;
543558
position: relative;

docs/_component/nav-site.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ export function NavSite(props) {
4242

4343
return (
4444
<nav className="navigation" aria-label="Site navigation">
45+
<div id="banner">Ceasefire now! 🕊️</div>
4546
<a
4647
href="#start-of-content"
4748
id="start-of-navigation"

0 commit comments

Comments
 (0)