Skip to content

Commit 0e35f2f

Browse files
committed
fix: lighten announcement bar for better contrast (light + dark) issue 710
Signed-off-by: Charul <[email protected]>
1 parent 16f5dd0 commit 0e35f2f

File tree

1 file changed

+21
-15
lines changed

1 file changed

+21
-15
lines changed

src/css/custom.css

Lines changed: 21 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -688,21 +688,27 @@ 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+
/* 🎨 Announcement Bar - Light Orange Theme */
692+
div[class*="announcementBar_"],
693+
div[class*="announcementBarContent_"] {
694+
font-weight: 600 !important;
695+
font-size: 16px !important;
696+
text-align: center !important;
697+
padding: 10px 0 !important;
698+
border-bottom: 1px solid #ffb74d !important;
699+
transition: background 0.3s ease-in-out;
700+
}
701+
702+
/* Light Mode */
703+
html[data-theme="light"] div[class*="announcementBar_"] {
704+
background: linear-gradient(90deg, #FFE0B2 0%, #FFB74D 100%) !important;
705+
color: #000 !important;
706+
}
707+
708+
/* Dark Mode */
709+
html[data-theme="dark"] div[class*="announcementBar_"] {
710+
background: linear-gradient(90deg, #33200D 0%, #FFB74D 100%) !important;
711+
color: #fff !important;
706712
}
707713

708714
.list-disc > a {

0 commit comments

Comments
 (0)