Created
March 17, 2025 22:54
-
-
Save eramdam/7d7ddf11962d044542dfe5ed2ebf6240 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Basic Transparency */ | |
:root { | |
@media not (prefers-reduced-transparency) { | |
appearance: -moz-sidebar !important; | |
} | |
--dmn-theme-main-background-light: transparent; | |
--dmn-theme-main-background-dark: rgba(0, 0, 0, 0.1); | |
--dmn-theme-main-background: var(--dmn-theme-main-background-light); | |
} | |
@media (prefers-color-scheme: dark) { | |
:root { | |
--dmn-theme-main-background: var(--dmn-theme-main-background-dark); | |
} | |
} | |
:root[lwtheme-brighttext="true"] { | |
--dmn-theme-main-background: var(--dmn-theme-main-background-dark); | |
} | |
/* Transparent Styling */ | |
:root:not([windowtype="Toolkit:PictureInPicture"], [inDOMFullscreen]) { | |
#browser, | |
#browser :is(#sidebar-main, #tabbrowser-tabbox), | |
#navigator-toolbox, | |
#navigator-toolbox > * { | |
background: var(--dmn-theme-main-background) !important; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment