2018-09-26 18:37:12 +03:00
|
|
|
/* Tabs bar */
|
|
|
|
|
|
|
|
@namespace xul "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";
|
|
|
|
|
2019-07-24 01:58:59 +03:00
|
|
|
:root {
|
|
|
|
--space-above-tabbar: 0 !important;
|
|
|
|
}
|
|
|
|
|
2020-02-04 01:31:38 +02:00
|
|
|
#TabsToolbar:not([inFullscreen]) > .toolbar-items {
|
2020-02-01 04:21:14 +02:00
|
|
|
margin-bottom: -1px !important;
|
|
|
|
}
|
|
|
|
|
2021-04-24 19:04:32 +03:00
|
|
|
/* Fix tabs bar icon sizes */
|
|
|
|
#TabsToolbar {
|
|
|
|
--toolbarbutton-inner-padding: var(--toolbarbutton-inner-padding) !important;
|
|
|
|
}
|
|
|
|
|
2018-09-26 18:37:12 +03:00
|
|
|
/* Tabs bar height */
|
|
|
|
#tabbrowser-tabs,
|
|
|
|
#tabbrowser-tabs arrowscrollbox {
|
2020-02-01 04:21:14 +02:00
|
|
|
height: auto !important;
|
|
|
|
min-height: auto !important;
|
2018-09-26 18:37:12 +03:00
|
|
|
}
|
2020-07-19 15:58:22 +03:00
|
|
|
|
|
|
|
#TabsToolbar {
|
|
|
|
background-color: var(--gnome-tabbar-tab-background) !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
#TabsToolbar:-moz-window-inactive {
|
|
|
|
background-color: var(--gnome-inactive-tabbar-tab-background) !important;
|
|
|
|
}
|
|
|
|
|
2018-09-26 18:37:12 +03:00
|
|
|
tab > stack {
|
2019-07-06 19:06:28 +03:00
|
|
|
height: 38px !important;
|
2019-07-11 02:38:08 +03:00
|
|
|
min-height: 38px !important;
|
2018-09-26 18:37:12 +03:00
|
|
|
}
|
2021-05-10 15:11:53 +03:00
|
|
|
|
2018-09-26 18:37:12 +03:00
|
|
|
/* Remove hover effects on tab bar buttons */
|
|
|
|
#TabsToolbar {
|
|
|
|
--toolbarbutton-active-background: transparent !important;
|
|
|
|
--toolbarbutton-hover-background: transparent !important;
|
2019-05-07 06:31:14 +03:00
|
|
|
padding: 0 3px !important;
|
2018-09-26 18:37:12 +03:00
|
|
|
}
|
|
|
|
|
2021-06-06 02:27:43 +03:00
|
|
|
/* Tabsbar buttons */
|
|
|
|
#TabsToolbar .toolbarbutton-1:not(#hack) {
|
|
|
|
border-right: 1px solid var(--gnome-tabbar-tab-border-color) !important;
|
|
|
|
border-bottom: 1px solid var(--gnome-tabbar-tab-border-color) !important;
|
|
|
|
border-radius: 0 !important;
|
|
|
|
margin: 0 !important;
|
|
|
|
padding: 0 9px !important;
|
|
|
|
}
|
|
|
|
#tabbrowser-tabs[overflow=true] + .toolbarbutton-1:first-of-type {
|
|
|
|
border-left: 1px solid var(--gnome-tabbar-tab-border-color) !important;
|
|
|
|
}
|
|
|
|
#TabsToolbar .toolbarbutton-1:not([disabled]):not(:active):not([open]):hover {
|
|
|
|
background-color: var(--gnome-tabbar-tab-active-hover-background) !important;
|
2018-09-26 18:37:12 +03:00
|
|
|
}
|
2021-06-06 02:27:43 +03:00
|
|
|
#TabsToolbar .toolbarbutton-1:active, #TabsToolbar .toolbarbutton-1[open] {
|
|
|
|
background-color: var(--gnome-tabbar-tab-border-color) !important;
|
2018-09-26 18:37:12 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Remove shadow next to tab scroll buttons */
|
|
|
|
.arrowscrollbox-overflow-start-indicator,
|
|
|
|
.arrowscrollbox-overflow-end-indicator {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Remove tab separators */
|
|
|
|
.tabbrowser-tab::after,
|
|
|
|
.tabbrowser-tab::before {
|
|
|
|
border-color: transparent !important;
|
|
|
|
border-image: none !important;
|
2020-07-19 15:58:22 +03:00
|
|
|
border-width: 0 !important;
|
2018-09-26 18:37:12 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Space between tabs */
|
2021-05-11 03:49:28 +03:00
|
|
|
.tabbrowser-tab:not([pinned=true]) {
|
|
|
|
margin: 0 !important;
|
|
|
|
}
|
|
|
|
.tabbrowser-tab {
|
|
|
|
border: 0 !important;
|
|
|
|
padding-inline: 0 !important;
|
2018-09-26 18:37:12 +03:00
|
|
|
}
|
2021-05-10 15:11:53 +03:00
|
|
|
#TabsToolbar {
|
|
|
|
padding: 0 !important;
|
|
|
|
}
|
2021-05-10 15:25:52 +03:00
|
|
|
|
2021-05-11 03:49:28 +03:00
|
|
|
/* Tabs borders */
|
2021-06-02 22:13:05 +03:00
|
|
|
.tabbrowser-tab {
|
2021-05-11 03:49:28 +03:00
|
|
|
border-right: 1px solid var(--gnome-tabbar-tab-border-color) !important;
|
|
|
|
}
|
2021-06-02 22:13:05 +03:00
|
|
|
#TabsToolbar {
|
|
|
|
margin-right: -1px !important;
|
|
|
|
}
|
2021-05-11 03:49:28 +03:00
|
|
|
#tabbrowser-tabs[overflow=true] .tabbrowser-tab[first-visible-unpinned-tab] {
|
|
|
|
border-left: 1px solid var(--gnome-tabbar-tab-border-color) !important;
|
|
|
|
}
|
2021-05-10 15:25:52 +03:00
|
|
|
|
2018-09-26 18:37:12 +03:00
|
|
|
/* Tab labels */
|
|
|
|
tab {
|
|
|
|
color: var(--gnome-tabbar-tab-color) !important;
|
|
|
|
font-family: Cantarell, inherit;
|
2020-07-19 15:58:22 +03:00
|
|
|
font-weight: normal;
|
2018-09-26 18:37:12 +03:00
|
|
|
font-size: 1em;
|
|
|
|
}
|
|
|
|
tab:hover {
|
|
|
|
color: var(--gnome-tabbar-tab-hover-color) !important;
|
|
|
|
}
|
|
|
|
tab[selected] {
|
|
|
|
color: var(--gnome-tabbar-tab-active-color) !important;
|
|
|
|
}
|
|
|
|
tab:-moz-window-inactive {
|
|
|
|
color: var(--gnome-inactive-tabbar-tab-color) !important;
|
|
|
|
}
|
|
|
|
tab[selected]:-moz-window-inactive {
|
|
|
|
color: var(--gnome-inactive-tabbar-tab-active-color) !important;
|
|
|
|
}
|
|
|
|
|
2021-04-23 07:12:40 +03:00
|
|
|
/* Reset tab background */
|
|
|
|
.tab-background {
|
|
|
|
border-radius: 0 !important;
|
|
|
|
box-shadow: none !important;
|
|
|
|
margin-block: 0 !important;
|
|
|
|
}
|
|
|
|
|
2018-09-26 18:37:12 +03:00
|
|
|
/* Center all inside tab */
|
|
|
|
.tab-content {
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
margin-top: -1px;
|
|
|
|
min-width: 100% !important;
|
2019-05-07 06:31:14 +03:00
|
|
|
padding: 0 10px !important;
|
2018-09-26 18:37:12 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Prevent tab icons size breaking */
|
|
|
|
.tab-icon-image, .tab-icon-sound, .tab-throbber, .tab-throbber-fallback, .tab-close-button {
|
|
|
|
min-width: 16px;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Adjust tab label width */
|
|
|
|
.tab-label-container {
|
|
|
|
min-width: 0 !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Put tab close button and icon sound to the right */
|
2021-05-11 03:49:28 +03:00
|
|
|
.tabbrowser-tab .tab-close-button {
|
2018-09-26 18:37:12 +03:00
|
|
|
margin-left: auto !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Force tab favicon to the center */
|
2021-04-22 15:41:13 +03:00
|
|
|
.tabbrowser-tab:not([class*="identity-color-"]) .tab-icon-stack {
|
2018-09-26 18:37:12 +03:00
|
|
|
margin-left: auto !important;
|
2021-06-03 21:54:41 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Tab icon margin */
|
|
|
|
.tabbrowser-tab:not([pinned]) .tab-icon-stack {
|
2021-06-03 04:44:51 +03:00
|
|
|
margin-right: 2px;
|
2018-09-26 18:37:12 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
/* If tab close button is not present, don't force favicon to the center */
|
2021-05-05 16:23:24 +03:00
|
|
|
#tabbrowser-tabs[closebuttons="activetab"] .tabbrowser-tab:not([selected="true"]) .tab-icon-stack {
|
2018-09-26 18:37:12 +03:00
|
|
|
margin-left: 0 !important;
|
|
|
|
}
|
|
|
|
|
2021-06-03 04:44:51 +03:00
|
|
|
/* Tab buttons */
|
|
|
|
.tab-icon-overlay,
|
2018-09-26 18:37:12 +03:00
|
|
|
.tab-close-button {
|
2019-06-05 00:52:23 +03:00
|
|
|
-moz-appearance: none !important;
|
2021-05-10 15:11:53 +03:00
|
|
|
border: 0px solid transparent;
|
2018-09-26 18:37:12 +03:00
|
|
|
box-sizing: content-box; /* Avoid deformation on flexbox */
|
2021-05-10 15:11:53 +03:00
|
|
|
border-radius: 99px !important;
|
2021-06-03 04:44:51 +03:00
|
|
|
padding: 4px !important;
|
|
|
|
background-size: 24px;
|
|
|
|
}
|
|
|
|
:root:not(:-moz-window-inactive) .tab-icon-overlay:hover,
|
|
|
|
:root:not(:-moz-window-inactive) .tab-close-button:hover {
|
|
|
|
background-image: var(--gnome-tabbar-close-hover);
|
|
|
|
}
|
|
|
|
|
|
|
|
.tab-icon-stack:is([soundplaying], [muted], [activemedia-blocked]) image {
|
|
|
|
margin: auto !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Close tab button */
|
|
|
|
:root {
|
|
|
|
--gnome-fill-icon: red !important;
|
|
|
|
}
|
|
|
|
.tab-close-button {
|
2019-07-17 03:35:51 +03:00
|
|
|
list-style-image: url("../icons/window-close-symbolic.svg") !important;
|
2020-06-07 03:00:25 +03:00
|
|
|
fill: var(--gnome-toolbar-color) !important;
|
|
|
|
fill-opacity: 1 !important;
|
2021-04-22 15:41:13 +03:00
|
|
|
-moz-context-properties: fill, fill-opacity !important;
|
|
|
|
height: 16px !important;
|
2021-05-10 15:11:53 +03:00
|
|
|
opacity: 1 !important;
|
2021-04-22 15:41:13 +03:00
|
|
|
width: 16px !important;
|
2018-09-26 18:37:12 +03:00
|
|
|
}
|
2019-07-06 19:06:28 +03:00
|
|
|
:root:-moz-window-inactive .tab-close-button:not(#hack) {
|
2019-06-04 03:46:34 +03:00
|
|
|
opacity: .18 !important;
|
2018-09-26 18:37:12 +03:00
|
|
|
}
|
|
|
|
:root:not(:-moz-window-inactive) .tab-close-button:active {
|
2019-06-25 03:57:54 +03:00
|
|
|
background-image: var(--gnome-button-active-background) !important;
|
|
|
|
box-shadow: var(--gnome-button-active-box-shadow) !important;
|
|
|
|
border-color: var(--gnome-button-active-border-color) !important;
|
|
|
|
border-bottom-color: var(--gnome-button-active-border-color) !important;
|
|
|
|
border-top-color: var(--gnome-button-active-border-accent-color) !important;
|
2018-09-26 18:37:12 +03:00
|
|
|
}
|
2019-06-25 03:57:54 +03:00
|
|
|
|
2018-09-26 18:37:12 +03:00
|
|
|
.tab-close-button:active:not(:hover) {
|
|
|
|
background-image: none !important;
|
|
|
|
box-shadow: none !important;
|
|
|
|
}
|
2021-05-10 15:11:53 +03:00
|
|
|
|
|
|
|
/* Autohide (Still Horrible) */
|
|
|
|
|
|
|
|
.tabbrowser-tab:not([selected="true"]) .tab-close-button {
|
|
|
|
visibility: hidden;
|
|
|
|
}
|
|
|
|
.tabbrowser-tab:hover .tab-close-button {
|
|
|
|
visibility: visible;
|
|
|
|
}
|
2018-09-26 18:37:12 +03:00
|
|
|
|
|
|
|
/* Tab close button etc. positioning */
|
|
|
|
.tab-throbber, .tab-icon-image, .tab-sharing-icon-overlay, .tab-icon-sound, .tab-close-button {
|
|
|
|
margin-top: 0 !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Remove blue line above tabs */
|
|
|
|
.tab-line {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Active tab */
|
|
|
|
.tab-background[selected=true] {
|
2019-06-25 03:57:54 +03:00
|
|
|
background-color: var(--gnome-tabbar-tab-active-background) !important;
|
2018-09-26 18:37:12 +03:00
|
|
|
background-image: none !important;
|
2019-06-04 17:58:42 +03:00
|
|
|
border: 0 !important;
|
2018-09-26 18:37:12 +03:00
|
|
|
border-image: none !important;
|
2021-05-10 15:11:53 +03:00
|
|
|
border-bottom: 1px solid var(--gnome-tabbar-tab-border-color) !important;
|
2018-09-26 18:37:12 +03:00
|
|
|
}
|
|
|
|
.tab-background[selected=true]:-moz-window-inactive {
|
2019-06-25 03:57:54 +03:00
|
|
|
background-color: var(--gnome-inactive-tabbar-tab-active-background) !important;
|
2021-05-10 15:11:53 +03:00
|
|
|
border-bottom-color: var(--gnome-tabbar-tab-border-color) !important;
|
2018-09-26 18:37:12 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Tab hover */
|
|
|
|
:root:not(:-moz-window-inactive) .tabbrowser-tab:hover > .tab-stack > .tab-background[selected=true] {
|
2019-06-25 03:57:54 +03:00
|
|
|
background-color: var(--gnome-tabbar-tab-active-hover-background) !important;
|
2018-09-26 18:37:12 +03:00
|
|
|
}
|
|
|
|
.tabbrowser-tab:hover > .tab-stack > .tab-background:not([selected=true]),
|
|
|
|
#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 > .tab-line:not([selected=true]) {
|
|
|
|
background-color: transparent !important;
|
|
|
|
}
|
|
|
|
:root:not(:-moz-window-inactive) .tabbrowser-tab:hover > .tab-stack > .tab-background:not([selected=true]) {
|
2019-06-25 03:57:54 +03:00
|
|
|
background-color: var(--gnome-tabbar-tab-hover-background) !important;
|
2018-09-26 18:37:12 +03:00
|
|
|
border-image: none !important;
|
2021-05-10 15:11:53 +03:00
|
|
|
border-bottom: 1px solid var(--gnome-tabbar-tab-border-color) !important;
|
2018-09-26 18:37:12 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Full width tabs */
|
|
|
|
.tabbrowser-tab:not([style^="max-width"]):not([pinned]),
|
|
|
|
.tabbrowser-tab[style^="max-width: 100px !important;"]:not([pinned]) {
|
|
|
|
max-width: 100% !important;
|
|
|
|
}
|
|
|
|
.tabbrowser-tab:not([style^="max-width"]):not([pinned]):not([fadein]),
|
|
|
|
.tabbrowser-tab[style^="max-width: 100px !important;"]:not([pinned]):not([fadein]) {
|
|
|
|
max-width: .1px !important;
|
|
|
|
}
|
2019-05-07 06:31:14 +03:00
|
|
|
|
|
|
|
/* Remove blank spaces on tabs start and end */
|
|
|
|
#TabsToolbar .titlebar-spacer {
|
|
|
|
display: none !important;
|
|
|
|
}
|
2019-07-17 04:02:03 +03:00
|
|
|
|
|
|
|
/* Remove container bottom line indicator */
|
2021-04-22 15:41:13 +03:00
|
|
|
.tabbrowser-tab[usercontextid] > .tab-stack > .tab-background > .tab-context-line {
|
2019-07-17 04:02:03 +03:00
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Create new container tab indicator */
|
|
|
|
.tabbrowser-tab[class*="identity-color-"] .tab-content::before {
|
|
|
|
content: "";
|
|
|
|
display: block;
|
2019-08-14 00:17:37 +03:00
|
|
|
background-image: var(#userContext-icons:--identity-icon);
|
2019-07-17 04:02:03 +03:00
|
|
|
background: var( --identity-tab-color);
|
|
|
|
-moz-context-properties: fill;
|
|
|
|
fill: var(--identity-icon-color);
|
|
|
|
background-size: contain;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-position: center center;
|
|
|
|
min-width: 10px;
|
|
|
|
height: 10px;
|
|
|
|
margin-right: 5px;
|
|
|
|
margin-left: auto !important;
|
|
|
|
border-radius: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.tabbrowser-tab[class*="identity-color-"][pinned] .tab-content::before,
|
|
|
|
.tabbrowser-tab[class*="identity-color-"][image] .tab-content::before,
|
|
|
|
.tabbrowser-tab[class*="identity-color-"][busy] .tab-content::before,
|
|
|
|
.tabbrowser-tab[class*="identity-color-"][progress] .tab-content::before {
|
|
|
|
right: -10px;
|
|
|
|
top: -8px;
|
|
|
|
position: relative;
|
|
|
|
margin-right: -10px;
|
2021-04-22 15:41:13 +03:00
|
|
|
z-index: 1;
|
2019-07-17 04:02:03 +03:00
|
|
|
}
|
2020-06-07 16:19:31 +03:00
|
|
|
|
2020-09-30 03:43:36 +03:00
|
|
|
/* OPTIONAL: Hide single tab */
|
2020-06-07 16:19:31 +03:00
|
|
|
@supports -moz-bool-pref("gnomeTheme.hideSingleTab") {
|
|
|
|
#tabbrowser-tabs tab:only-of-type {
|
|
|
|
display: none !important;
|
|
|
|
}
|
|
|
|
}
|
2020-09-30 03:43:36 +03:00
|
|
|
|
|
|
|
/* OPTIONAL: Use normal width tabs */
|
|
|
|
@supports -moz-bool-pref("gnomeTheme.normalWidthTabs") {
|
|
|
|
.tabbrowser-tab:not([style^="max-width"]):not([pinned]),
|
|
|
|
.tabbrowser-tab[style^="max-width: 100px !important;"]:not([pinned]) {
|
|
|
|
max-width: 225px !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* OPTIONAL: Add more contrast to the active tab */
|
|
|
|
@supports -moz-bool-pref("gnomeTheme.activeTabContrast") {
|
|
|
|
.tab-background[selected=true],
|
|
|
|
:root:not(:-moz-window-inactive) .tabbrowser-tab:hover > .tab-stack > .tab-background:not(#hack) {
|
|
|
|
background: var(--gnome-tabbar-tab-active-background-contrast) !important;
|
|
|
|
}
|
|
|
|
}
|
2021-05-10 15:11:53 +03:00
|
|
|
|