summaryrefslogtreecommitdiff
path: root/firefox/chrome/special/linux.css
blob: 014fc739d8e833859b7e1fcb9099037d8424c84d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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;
        }
    }
}