Skip to content

Commit bb94387

Browse files
committed
Fix: announcement bar background color
Signed-off-by: Charul <[email protected]>
1 parent 7d4787c commit bb94387

File tree

1 file changed

+20
-15
lines changed

1 file changed

+20
-15
lines changed

src/css/custom.css

Lines changed: 20 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -688,21 +688,26 @@ td img {
688688
background-size: 24px 24px;
689689
}
690690

691-
div[class^="announcementBar_"] {
692-
--site-announcement-bar-stripe-color1: hsl(
693-
var(--site-primary-hue-saturation) 88%
694-
);
695-
--site-announcement-bar-stripe-color2: hsl(
696-
var(--site-primary-hue-saturation) 95%
697-
);
698-
background: repeating-linear-gradient(
699-
35deg,
700-
var(--site-announcement-bar-stripe-color1),
701-
var(--site-announcement-bar-stripe-color1) 20px,
702-
var(--site-announcement-bar-stripe-color2) 10px,
703-
var(--site-announcement-bar-stripe-color2) 40px
704-
);
705-
font-weight: bold;
691+
div[class*="announcementBar_"],
692+
div[class*="announcementBarContent_"] {
693+
font-weight: 600 !important;
694+
font-size: 16px !important;
695+
text-align: center !important;
696+
padding: 10px 0 !important;
697+
border-bottom: 1px solid #ff7a00 !important;
698+
transition: background 0.3s ease-in-out;
699+
}
700+
701+
/* LIGHT MODE — soft light orange */
702+
html[data-theme="light"] div[class*="announcementBar_"] {
703+
background: #ffb566 !important; /* warm darker orange */
704+
color: #000 !important;
705+
}
706+
707+
/* DARK MODE — same warm orange */
708+
html[data-theme="dark"] div[class*="announcementBar_"] {
709+
background: #ffb566 !important; /* warm darker orange */
710+
color: #000 !important;
706711
}
707712

708713
.list-disc > a {

0 commit comments

Comments
 (0)