diff --git a/userChrome-dark.css b/userChrome-dark.css index db41fb8..9d0d6c6 100644 --- a/userChrome-dark.css +++ b/userChrome-dark.css @@ -13,7 +13,7 @@ } /* When the window is maximized, the first pinned tab is properly displayed. */ -#TabsToolbar { +#TabsToolbar { padding-inline-start: 15px !important; } @@ -138,7 +138,9 @@ } /* Regular tabs */ -.tabbrowser-tab:hover > .tab-stack > .tab-background:not([selected=true])::before { +.tabbrowser-tab:hover + > .tab-stack + > .tab-background:not([selected="true"])::before { display: -moz-box !important; background-repeat: no-repeat !important; content: "" !important; @@ -147,7 +149,9 @@ background-color: transparent !important; } -.tabbrowser-tab:hover > .tab-stack > .tab-background:not([selected=true])::after { +.tabbrowser-tab:hover + > .tab-stack + > .tab-background:not([selected="true"])::after { display: -moz-box !important; background-repeat: no-repeat !important; content: "" !important; @@ -156,11 +160,18 @@ background-color: transparent !important; } -.tabbrowser-tab:hover > .tab-stack > .tab-background:not([selected=true]) > spacer { +.tabbrowser-tab:hover + > .tab-stack + > .tab-background:not([selected="true"]) + > spacer { margin-top: 0px !important; } -#TabsToolbar[brighttext] > #tabbrowser-tabs > .tabbrowser-tab:hover > .tab-stack > .tab-background:not([selected="true"]), +#TabsToolbar[brighttext] + > #tabbrowser-tabs + > .tabbrowser-tab:hover + > .tab-stack + > .tab-background:not([selected="true"]), #tabs-newtab-button:hover, #tabs-newtab-button:hover::before, #tabs-newtab-button:hover::after { @@ -170,7 +181,7 @@ /* New tab hover customizations */ .tabbrowser-tab:hover > .tab-stack > .tab-background:not([selected="true"]), #tabs-newtab-button:hover { - background-position: 0px 2px, 30px 4px , 36px 2px !important; + background-position: 0px 2px, 30px 4px, 36px 2px !important; background-repeat: no-repeat !important; background-size: 30px 30px, calc(100% - (2 * 30px)) 30px, 30px !important; } @@ -186,46 +197,37 @@ --svg-selected-after: url("data:image/svg+xml;utf8,
"); - --background-selected-middle: - linear-gradient(rgba(0,0,0,0), rgba(0,0,0,0)), - linear-gradient( - transparent - 2px, - rgb(50, 50, 52) 2px, - rgb(50, 50, 52) + --background-selected-middle: linear-gradient( + rgba(0, 0, 0, 0), + rgba(0, 0, 0, 0) ), - none !important; + linear-gradient(transparent 2px, rgb(50, 50, 52) 2px, rgb(50, 50, 52)), none !important; --svg-hover-before: url("data:image/svg+xml;utf8,
"); --svg-hover-after: url("data:image/svg+xml;utf8,
"); - --background-hover-middle: - linear-gradient(rgba(0,0,0,0), rgba(0,0,0,0)), + --background-hover-middle: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)), linear-gradient( - transparent - 2px, - rgba(255,255,255,.1) 2px, - rgba(255,255,255,.1) + transparent 2px, + rgba(255, 255, 255, 0.1) 2px, + rgba(255, 255, 255, 0.1) ), none; --newtab-hover: url("data:image/svg+xml;utf8,
"), - linear-gradient(rgba(255,255,255,.1), rgba(255,255,255,.1)), + linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.1)), url("data:image/svg+xml;utf8,
"); } - /* OS-specific color variables */ @media screen and (-moz-windows-theme) { :root { - } } @media not screen and (-moz-windows-theme) { :root { - } } @@ -235,7 +237,6 @@ } } - .tab-background[selected="true"]::before { background-image: var(--svg-selected-before) !important; } @@ -247,15 +248,22 @@ background-image: var(--background-selected-middle) !important; } -.tabbrowser-tab:hover > .tab-stack > .tab-background:not([selected=true])::before { +.tabbrowser-tab:hover + > .tab-stack + > .tab-background:not([selected="true"])::before { background-image: var(--svg-hover-before) !important; } -.tabbrowser-tab:hover > .tab-stack > .tab-background:not([selected=true])::after { +.tabbrowser-tab:hover + > .tab-stack + > .tab-background:not([selected="true"])::after { background-image: var(--svg-hover-after) !important; } -.tabbrowser-tab:hover > .tab-stack > .tab-background:not([selected=true]) > spacer { +.tabbrowser-tab:hover + > .tab-stack + > .tab-background:not([selected="true"]) + > spacer { background-image: var(--background-hover-middle) !important; } diff --git a/userChrome-default.css b/userChrome-default.css index 117bf1d..4e35dad 100644 --- a/userChrome-default.css +++ b/userChrome-default.css @@ -13,7 +13,7 @@ } /* When the window is maximized, the first pinned tab is properly displayed. */ -#TabsToolbar { +#TabsToolbar { padding-inline-start: 15px !important; } @@ -35,11 +35,11 @@ /* Styles to account for when tab scrollbar is visible, and margin-inline-start kicks in */ .tabbrowser-tab[pinned="true"] { - width: 40px !important; /* Actual photon pinned tab is 41px, but 40px removes pixelated artifact from pinned tab favicon */ + width: 34px !important; } .tabbrowser-tab[pinned="true"][style^="margin-inline-start"] { - padding-left: 12px !important; + padding-left: 8px !important; } /* Remove unneeded styles from Photon */ @@ -138,7 +138,9 @@ } /* Regular tabs */ -.tabbrowser-tab:hover > .tab-stack > .tab-background:not([selected=true])::before { +.tabbrowser-tab:hover + > .tab-stack + > .tab-background:not([selected="true"])::before { display: -moz-box !important; background-repeat: no-repeat !important; content: "" !important; @@ -147,7 +149,9 @@ background-color: transparent !important; } -.tabbrowser-tab:hover > .tab-stack > .tab-background:not([selected=true])::after { +.tabbrowser-tab:hover + > .tab-stack + > .tab-background:not([selected="true"])::after { display: -moz-box !important; background-repeat: no-repeat !important; content: "" !important; @@ -156,11 +160,18 @@ background-color: transparent !important; } -.tabbrowser-tab:hover > .tab-stack > .tab-background:not([selected=true]) > spacer { +.tabbrowser-tab:hover + > .tab-stack + > .tab-background:not([selected="true"]) + > spacer { margin-top: 0px !important; } -#TabsToolbar[brighttext] > #tabbrowser-tabs > .tabbrowser-tab:hover > .tab-stack > .tab-background:not([selected="true"]), +#TabsToolbar[brighttext] + > #tabbrowser-tabs + > .tabbrowser-tab:hover + > .tab-stack + > .tab-background:not([selected="true"]), #tabs-newtab-button:hover, #tabs-newtab-button:hover::before, #tabs-newtab-button:hover::after { @@ -168,8 +179,9 @@ } /* New tab hover customizations */ -.tabbrowser-tab:hover > .tab-stack > .tab-background:not([selected="true"]), #tabs-newtab-button:hover { - background-position: 0px 2px, 30px 4px , 36px 2px !important; +.tabbrowser-tab:hover > .tab-stack > .tab-background:not([selected="true"]), +#tabs-newtab-button:hover { + background-position: 0px 2px, 30px 4px, 36px 2px !important; background-repeat: no-repeat !important; background-size: 30px 30px, calc(100% - (2 * 30px)) 30px, 30px !important; } @@ -179,53 +191,55 @@ background-color: transparent !important; } - /* Color specific customizations */ :root { --svg-selected-before: url("data:image/svg+xml;utf8,
"); - --svg-selected-after: url("data:image/svg+xml;utf8,
"); - - --background-selected-middle: - linear-gradient(rgba(0,0,0,0), rgba(0,0,0,0)), - linear-gradient( - transparent - 2px, - rgb(249,249,255) 2px, - rgb(249,249,255) + --background-selected-middle: linear-gradient( + rgba(0, 0, 0, 0), + rgba(0, 0, 0, 0) ), + linear-gradient(transparent 2px, rgb(249, 249, 255) 2px, rgb(249, 249, 255)), none; - --svg-hover-before: url("data:image/svg+xml;utf8,
"); - --svg-hover-after: url("data:image/svg+xml;utf8,
"); - - --background-hover-middle: - linear-gradient(rgba(0,0,0,0), rgba(0,0,0,0)), + --background-hover-middle: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)), linear-gradient( - transparent - 2px, - rgba(255,255,255,.1) 2px, - rgba(255,255,255,.1) + transparent 2px, + rgba(255, 255, 255, 0.1) 2px, + rgba(255, 255, 255, 0.1) ), none; - --newtab-hover: url("data:image/svg+xml;utf8,
"), - linear-gradient(rgba(255,255,255,.1), rgba(255,255,255,.1)), - url("data:image/svg+xml;utf8,
"); + linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.1)), + url("data:image/svg+xml;utf8,
"); } - -/* OS-specific color variables */ -@media screen and (-moz-windows-theme) { +@media (prefers-color-scheme: dark) { :root { - - } -} - -@media not screen and (-moz-windows-theme) { - :root { - + --svg-selected-before: url("data:image/svg+xml;utf8,
"); + --svg-selected-after: url("data:image/svg+xml;utf8,
"); + --background-selected-middle: linear-gradient( + rgba(255, 255, 255, 0), + rgba(255, 255, 255, 0) + ), + linear-gradient(transparent 2px, rgb(50, 50, 52) 2px, rgb(50, 50, 52)), + none; + --svg-hover-before: url("data:image/svg+xml;utf8,
"); + --svg-hover-after: url("data:image/svg+xml;utf8,
"); + --background-hover-middle: linear-gradient( + rgba(200, 200, 200, 0), + rgba(200, 200, 200, 0) + ), + linear-gradient( + transparent 2px, + rgba(160, 160, 160, 0.3) 2px, + rgba(160, 160, 160, 0.3) + ), + none; + --newtab-hover: url("data:image/svg+xml;utf8,
"), + linear-gradient(rgba(160, 160, 160, 0.3), rgba(160, 160, 160, 0.3)), + url("data:image/svg+xml;utf8,
"); } } @@ -239,20 +253,25 @@ .tab-background[selected="true"] > spacer { background-image: var(--background-selected-middle) !important; - } -.tabbrowser-tab:hover > .tab-stack > .tab-background:not([selected=true])::before { +.tabbrowser-tab:hover + > .tab-stack + > .tab-background:not([selected="true"])::before { background-image: var(--svg-hover-before) !important; } -.tabbrowser-tab:hover > .tab-stack > .tab-background:not([selected=true])::after { - background-image: var(--svg-hover-after) !important; +.tabbrowser-tab:hover + > .tab-stack + > .tab-background:not([selected="true"])::after { + background-image: var(--svg-hover-after) !important; } -.tabbrowser-tab:hover > .tab-stack > .tab-background:not([selected=true]) > spacer { +.tabbrowser-tab:hover + > .tab-stack + > .tab-background:not([selected="true"]) + > spacer { background-image: var(--background-hover-middle) !important; - } #tabs-newtab-button:hover { diff --git a/userChrome-light.css b/userChrome-light.css index 9d78dfb..97bfc1d 100644 --- a/userChrome-light.css +++ b/userChrome-light.css @@ -4,7 +4,7 @@ } #navigator-toolbox:-moz-lwtheme { - --tabs-border-color: rgba(0,0,0,0) !important; + --tabs-border-color: rgba(0, 0, 0, 0) !important; } .tabbrowser-arrowscrollbox .arrowscrollbox-scrollbox { @@ -17,7 +17,7 @@ } /* When the window is maximized, the first pinned tab is properly displayed. */ -#TabsToolbar { +#TabsToolbar { padding-inline-start: 15px !important; } @@ -142,7 +142,9 @@ } /* Regular tabs */ -.tabbrowser-tab:hover > .tab-stack > .tab-background:not([selected=true])::before { +.tabbrowser-tab:hover + > .tab-stack + > .tab-background:not([selected="true"])::before { display: -moz-box !important; background-repeat: no-repeat !important; content: "" !important; @@ -151,7 +153,9 @@ background-color: transparent !important; } -.tabbrowser-tab:hover > .tab-stack > .tab-background:not([selected=true])::after { +.tabbrowser-tab:hover + > .tab-stack + > .tab-background:not([selected="true"])::after { display: -moz-box !important; background-repeat: no-repeat !important; content: "" !important; @@ -160,11 +164,18 @@ background-color: transparent !important; } -.tabbrowser-tab:hover > .tab-stack > .tab-background:not([selected=true]) > spacer { +.tabbrowser-tab:hover + > .tab-stack + > .tab-background:not([selected="true"]) + > spacer { margin-top: 0px !important; } -#TabsToolbar[brighttext] > #tabbrowser-tabs > .tabbrowser-tab:hover > .tab-stack > .tab-background:not([selected="true"]), +#TabsToolbar[brighttext] + > #tabbrowser-tabs + > .tabbrowser-tab:hover + > .tab-stack + > .tab-background:not([selected="true"]), #tabs-newtab-button:hover, #tabs-newtab-button:hover::before, #tabs-newtab-button:hover::after { @@ -172,8 +183,9 @@ } /* New tab hover customizations */ -.tabbrowser-tab:hover > .tab-stack > .tab-background:not([selected="true"]), #tabs-newtab-button:hover { - background-position: 0px 2px, 30px 4px , 36px 2px !important; +.tabbrowser-tab:hover > .tab-stack > .tab-background:not([selected="true"]), +#tabs-newtab-button:hover { + background-position: 0px 2px, 30px 4px, 36px 2px !important; background-repeat: no-repeat !important; background-size: 30px 30px, calc(100% - (2 * 30px)) 30px, 30px !important; } @@ -189,46 +201,34 @@ --svg-selected-after: url("data:image/svg+xml;utf8,
"); - --background-selected-middle: - linear-gradient(rgba(0,0,0,0), rgba(0,0,0,0)), - linear-gradient( - transparent - 2px, - rgb(245,246,247) 2px, - rgb(245,246,247) + --background-selected-middle: linear-gradient( + rgba(0, 0, 0, 0), + rgba(0, 0, 0, 0) ), + linear-gradient(transparent 2px, rgb(245, 246, 247) 2px, rgb(245, 246, 247)), none; --svg-hover-before: url("data:image/svg+xml;utf8,
"); --svg-hover-after: url("data:image/svg+xml;utf8,
"); - --background-hover-middle: - linear-gradient(rgba(0,0,0,0), rgba(0,0,0,0)), - linear-gradient( - transparent - 2px, - rgba(0,0,0,.1) 2px, - rgba(0,0,0,.1) - ), + --background-hover-middle: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)), + linear-gradient(transparent 2px, rgba(0, 0, 0, 0.1) 2px, rgba(0, 0, 0, 0.1)), none !important; --newtab-hover: url("data:image/svg+xml;utf8,
"), - linear-gradient(rgba(0,0,0,.1), rgba(0,0,0,.1)), + linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)), url("data:image/svg+xml;utf8,
"); } - /* OS-specific color variables */ @media screen and (-moz-windows-theme) { :root { - } } @media not screen and (-moz-windows-theme) { :root { - } } @@ -241,20 +241,26 @@ } .tab-background[selected="true"] > spacer { - background-image: var(--background-selected-middle) !important; + background-image: var(--background-selected-middle) !important; } -.tabbrowser-tab:hover > .tab-stack > .tab-background:not([selected=true])::before { +.tabbrowser-tab:hover + > .tab-stack + > .tab-background:not([selected="true"])::before { background-image: var(--svg-hover-before) !important; } -.tabbrowser-tab:hover > .tab-stack > .tab-background:not([selected=true])::after { +.tabbrowser-tab:hover + > .tab-stack + > .tab-background:not([selected="true"])::after { background-image: var(--svg-hover-after) !important; } -.tabbrowser-tab:hover > .tab-stack > .tab-background:not([selected=true]) > spacer { +.tabbrowser-tab:hover + > .tab-stack + > .tab-background:not([selected="true"]) + > spacer { background-image: var(--background-hover-middle) !important; - } #tabs-newtab-button:hover {