summaryrefslogtreecommitdiff
path: root/firefox/chrome/special/linux.css
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2024-05-04 01:09:55 +0100
committerdavidovski <david@davidovski.xyz>2024-05-04 01:09:55 +0100
commit2596f818e085ed724597ecb0028ec2536392203b (patch)
tree5904fd719b808fa6991faec97b9fcb7825a4287c /firefox/chrome/special/linux.css
parentefa6ffe227b155506964da6ee5eed45d3e495efc (diff)
add firefox userChrome with wavefox
Diffstat (limited to 'firefox/chrome/special/linux.css')
-rw-r--r--firefox/chrome/special/linux.css49
1 files changed, 49 insertions, 0 deletions
diff --git a/firefox/chrome/special/linux.css b/firefox/chrome/special/linux.css
new file mode 100644
index 0000000..014fc73
--- /dev/null
+++ b/firefox/chrome/special/linux.css
@@ -0,0 +1,49 @@
+@media (-moz-bool-pref: "userChrome.Menu.Icons.Regular.Enabled") or
+ (-moz-bool-pref: "userChrome.Menu.Icons.Filled.Enabled")
+{
+ :root
+ {
+ --align-menu-icons: -2px -18px;
+ }
+}
+
+@media (-moz-bool-pref: "userChrome.Linux.Transparency.Low.Enabled") or
+ (-moz-bool-pref: "userChrome.Linux.Transparency.Medium.Enabled") or
+ (-moz-bool-pref: "userChrome.Linux.Transparency.High.Enabled") or
+ (-moz-bool-pref: "userChrome.Linux.Transparency.VeryHigh.Enabled")
+{
+ :root
+ {
+ --toolbox-background-color: ActiveCaption;
+
+ &:-moz-window-inactive
+ {
+ --toolbox-background-color: InActiveCaption;
+ }
+
+ @media (-moz-bool-pref: "userChrome.Linux.Transparency.Low.Enabled")
+ {
+ --toolbox-transparency: 25%;
+ }
+
+ @media (-moz-bool-pref: "userChrome.Linux.Transparency.Medium.Enabled")
+ {
+ --toolbox-transparency: 50%;
+ }
+
+ @media (-moz-bool-pref: "userChrome.Linux.Transparency.High.Enabled")
+ {
+ --toolbox-transparency: 75%;
+ }
+
+ @media (-moz-bool-pref: "userChrome.Linux.Transparency.VeryHigh.Enabled")
+ {
+ --toolbox-transparency: 100%;
+ }
+
+ &[tabsintitlebar]:not([lwtheme]) #navigator-toolbox
+ {
+ background-color: color-mix(in srgb, var(--toolbox-background-color), transparent var(--toolbox-transparency)) !important;
+ }
+ }
+}