Make bunch of attribute selectors boolean checks

This is related to bug 1849904
This commit is contained in:
MrOtherGuy
2023-08-30 16:25:44 +03:00
parent 7daa9b45e3
commit aad2575816
5 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ See the above repository for updates as well as full license text. */
padding-inline: 0px !important; /* By default, proton tabs have 2px + 2px = 4px space between them */ padding-inline: 0px !important; /* By default, proton tabs have 2px + 2px = 4px space between them */
overflow: visible !important; overflow: visible !important;
} }
.tabbrowser-tab[visuallyselected="true"]{ .tabbrowser-tab[visuallyselected]{
position: relative; position: relative;
z-index: 2; z-index: 2;
} }
@@ -24,7 +24,7 @@ Window controls will be all wrong without it
/* We'll use window controls from menubar instead */ /* We'll use window controls from menubar instead */
#TabsToolbar > .titlebar-buttonbox-container { display: none } #TabsToolbar > .titlebar-buttonbox-container { display: none }
/* Hide overflow button unless tabs overflow - is necessary for collpasing tabs with one tab */ /* Hide overflow button unless tabs overflow - is necessary for collpasing tabs with one tab */
#tabbrowser-tabs:not([overflow="true"]) ~ #alltabs-button{ display: none } #tabbrowser-tabs:not([overflow]) ~ #alltabs-button{ display: none }
#tabbrowser-tabs, #tabbrowser-tabs,
#tabbrowser-arrowscrollbox{ min-height: 0 !important; } #tabbrowser-arrowscrollbox{ min-height: 0 !important; }
+1 -1
View File
@@ -73,7 +73,7 @@ See the above repository for updates as well as full license text. */
/* remove bottom margin so it doesn't throw off row height computation */ /* remove bottom margin so it doesn't throw off row height computation */
#tabs-newtab-button{ margin-bottom: 0 !important; } #tabs-newtab-button{ margin-bottom: 0 !important; }
#tabbrowser-tabs[hasadjacentnewtabbutton][overflow="true"] > #tabbrowser-arrowscrollbox > #tabbrowser-arrowscrollbox-periphery > #tabs-newtab-button { #tabbrowser-tabs[hasadjacentnewtabbutton][overflow] > #tabbrowser-arrowscrollbox > #tabbrowser-arrowscrollbox-periphery > #tabs-newtab-button {
display: flex !important; display: flex !important;
align-items: center; /* Fx <112 compatibility */ align-items: center; /* Fx <112 compatibility */
} }
@@ -26,7 +26,7 @@ Window controls will be all wrong without it
#navigator-toolbox{ #navigator-toolbox{
--uc-buttons-width: calc(96px + 5 * var(--toolbarbutton-outer-padding) + var(--uc-menubutton-padding,6px)) --uc-buttons-width: calc(96px + 5 * var(--toolbarbutton-outer-padding) + var(--uc-menubutton-padding,6px))
} }
#nav-bar:not([nonemptyoverflow="true"]) > #nav-bar-customization-target{ #nav-bar:not([nonemptyoverflow]) > #nav-bar-customization-target{
--uc-buttons-width: calc(64px + 4 * var(--toolbarbutton-outer-padding) + 6px) --uc-buttons-width: calc(64px + 4 * var(--toolbarbutton-outer-padding) + 6px)
} }
/* Override for other densities */ /* Override for other densities */
+1 -1
View File
@@ -30,7 +30,7 @@ See the above repository for updates as well as full license text. */
.tab-icon-overlay{ display: none !important; } .tab-icon-overlay{ display: none !important; }
#tabbrowser-tabs[closebuttons="activetab"] > #tabbrowser-arrowscrollbox > .tabbrowser-tab > .tab-stack > .tab-content > .tab-close-button:not([selected="true"]){ display: none !important; } #tabbrowser-tabs[closebuttons="activetab"] > #tabbrowser-arrowscrollbox > .tabbrowser-tab > .tab-stack > .tab-content > .tab-close-button:not([selected]){ display: none !important; }
/* Comment out or remove this if you want pinned tabs to never have close-button */ /* Comment out or remove this if you want pinned tabs to never have close-button */
.tab-close-button{ display: flex !important; } .tab-close-button{ display: flex !important; }