Skip to content

Commit

Permalink
Add banner
Browse files Browse the repository at this point in the history
  • Loading branch information
bash committed Feb 22, 2024
1 parent 9cbc96e commit 4d7294a
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
15 changes: 15 additions & 0 deletions sass/components/page-banner.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
.page-banner {
font-size: .8em;
font-weight: 600;
background-color: #E8CB68;
color: color-mix(in srgb, #E8CB68, #000 70%);
box-shadow: 1px 1px 2px color-mix(in srgb, #E8CB68, #000 20%);
text-align: center;
padding: .4em;
position: sticky;
top: 0;

@media (prefers-color-scheme: dark) {
box-shadow: 1px 1px 2px color-mix(in srgb, #E8CB68, #000 80%);
}
}
1 change: 1 addition & 0 deletions sass/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,4 @@
@import 'components/landing-feature';
@import 'components/landing-features';
@import 'components/content-paragraph';
@import 'components/page-banner.scss';
3 changes: 3 additions & 0 deletions template.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
<title>{{title}}</title>
</head>
<body>
<aside class="page-banner">
The Myelin project is discontinued; we are no longer actively updating this website. Please do not contact us about this project.
</aside>
<header class="page-header">
<nav class="page-header-nav">
<ul class="items">
Expand Down

0 comments on commit 4d7294a

Please sign in to comment.