Skip to content

Commit b5d2fe8

Browse files
committed
feat(banner): add "archived" banner to base layout
1 parent 050b2e0 commit b5d2fe8

2 files changed

Lines changed: 41 additions & 1 deletion

File tree

_includes/layouts/base.njk

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@
3131
{# <link rel="stylesheet" href="{% getBundleFileUrl "css" %}"> #}
3232
</head>
3333
<body>
34+
<div class="banner flex-center">
35+
<span>jQuery issues have moved to <a href="https://github.com/jquery/jquery/issues">GitHub</a>. This site is now a static archive of the old <a href="https://trac.edgewall.org/">Trac</a> site. Some functions and pages are no longer available.</span>
36+
</div>
3437
<div class="container">
3538
<a href="#skip" class="visually-hidden">Skip to main content</a>
3639
<header class="flex-column">

public/css/index.css

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
--main-background-end-color: #181c21;
3434
--content-background-color: #fafafa;
3535
--sidenav-header-background-color: #ddd;
36+
--banner-background-color: var(--primary-color);
3637

3738
--footer-background-start-color: var(--primary-color);
3839
--footer-background-end-color: #0f1923;
@@ -74,8 +75,32 @@ html {
7475
body {
7576
background-image: url(/img/bg-interior-tile-drk.jpg);
7677
background-repeat: repeat-x;
77-
background-position: 50% 0;
78+
background-position: 50% 80px;
7879
}
80+
81+
/* Banner */
82+
.banner {
83+
width: 100%;
84+
height: 80px;
85+
background-color: var(--banner-background-color);
86+
color: white;
87+
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
88+
text-align: center;
89+
font-size: 0.875rem;
90+
padding: 0 0.25em;
91+
}
92+
93+
.banner a[href],
94+
.banner a[href]:visited {
95+
color: #5cb5f0;
96+
}
97+
.banner a[href]:hover {
98+
color: var(--text-color-link-hover);
99+
}
100+
.banner a[href]:active {
101+
color: var(--text-color-link-active);
102+
}
103+
79104
th, tr {
80105
font-family: var(--font-family-alternate);
81106
}
@@ -429,6 +454,11 @@ footer a[href]:visited {
429454
justify-content: flex-start;
430455
align-items: center;
431456
}
457+
.flex-center {
458+
display: flex;
459+
justify-content: center;
460+
align-items: center;
461+
}
432462

433463
/* Utility classes */
434464
.white-box {
@@ -460,6 +490,13 @@ a.ext-link .icon {
460490
}
461491

462492
@media(min-width: 920px) {
493+
body {
494+
background-position-y: 60px;
495+
}
496+
.banner {
497+
height: 60px;
498+
font-size: 1rem;
499+
}
463500
header {
464501
padding: 0 40px;
465502
}

0 commit comments

Comments
 (0)