mirror of
https://github.com/mikaela/mikaela.github.io/
synced 2025-02-10 03:24:09 +01:00
css/main.scss: fix adblocker detection for dark themes
This commit is contained in:
parent
9f145004fb
commit
07a86aa879
23
css/main.scss
vendored
23
css/main.scss
vendored
@ -56,13 +56,24 @@ $on-laptop: 800px;
|
|||||||
color-scheme: dark light;
|
color-scheme: dark light;
|
||||||
}
|
}
|
||||||
|
|
||||||
// This is the missing content blocker detection
|
// Overrides for dark themes
|
||||||
|
@media (prefers-color-scheme: dark) {
|
||||||
|
// Adblocker detection)
|
||||||
.ftf-dma-note {
|
.ftf-dma-note {
|
||||||
// It doesn't want to turn dark and still uses text colors more suitable
|
color-scheme: only dark !important;
|
||||||
// for dark.
|
color: #ffb700 !important;
|
||||||
color-scheme: only light;
|
background-color: #000000 !important;
|
||||||
//display: block !important;
|
}
|
||||||
//pointer-events: all !important;
|
}
|
||||||
|
|
||||||
|
// Overrides for light themes
|
||||||
|
@media (prefers-color-scheme: light) {
|
||||||
|
// Adblocker detection
|
||||||
|
.ftf-dma-note {
|
||||||
|
color-scheme: only light !important;
|
||||||
|
color: #000000 !important;
|
||||||
|
background-color: #ffffff !important;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Import partials from `sass_dir` (defaults to `_sass`)
|
// Import partials from `sass_dir` (defaults to `_sass`)
|
||||||
|
Loading…
Reference in New Issue
Block a user