badge now supports browser auto theming

This commit is contained in:
discollizard 2024-07-19 23:30:29 -04:00
parent 34a2a92090
commit 3f64e3f439

View File

@ -22,18 +22,21 @@ body {
margin-right: 10px; margin-right: 10px;
} }
.dark-theme .length-watch-page{ .dark-theme .length-watch-page{
position: relative;
background-color: #fff; background-color: #fff;
color: rgba(35, 35, 35, 1); color: rgba(35, 35, 35, 1);
border-radius: 2px; }
padding: 4px;
font-size: 20px; @media (prefers-color-scheme: dark) {
right: 0.25em; .length-watch-page{
bottom: 0.25em; background-color: #fff;
margin-left: 10px; color: rgba(35, 35, 35, 1);
margin-right: 10px; }
.light-theme .length-watch-page {
background-color: rgba(35, 35, 35, 0.75);
color: #fff;
}
} }
#contents { #contents {