Skip to content

Commit d76fa22

Browse files
committed
[ENH] bootstrap themes: Ensure h1 titles remain visible across light and dark themes
1 parent 9345ee7 commit d76fa22

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

public/styles/style-bootstrap.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2128,10 +2128,20 @@ nav .lbbuttonsel2 {
21282128
background-color: #d3d9d6;
21292129
background-repeat: repeat;
21302130
background-attachment: scroll;
2131+
color: var(--title-color, #212529); /* fallback: dark gray */
21312132
}
21322133

21332134
.night .h1 {
21342135
background-image: linear-gradient(to right, #000 0%, #333 100%);
2136+
color: #f8f9fa !important; /* very light gray for dark mode */
2137+
}
2138+
2139+
[data-bs-theme="light"] h1, h1 {
2140+
color: #adafae !important; /* very dark gray, almost black */
2141+
}
2142+
2143+
[data-bs-theme="dark"] h1, h1 {
2144+
color: #f8f9fa !important; /* very light gray */
21352145
}
21362146

21372147
.h2end {

0 commit comments

Comments
 (0)