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;
|
|
|
|
}
|
|
|
|
|
2021-04-24 19:04:32 +03:00
|
|
|
#TabsToolbar {
|
|
|
|
--toolbarbutton-inner-padding: var(--toolbarbutton-inner-padding) !important;
|
2022-10-07 20:36:21 +03:00
|
|
|
background-color: var(--gnome-tabbar-background) !important;
|
2021-07-26 06:15:57 +03:00
|
|
|
border-bottom: 0 !important;
|
2022-10-07 20:36:21 +03:00
|
|
|
padding: 0 !important;
|
|
|
|
position: relative;
|
|
|
|
z-index: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
#TabsToolbar .titlebar-buttonbox-container:not(#hack) {
|
|
|
|
display: none !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
#TabsToolbar:-moz-window-inactive {
|
|
|
|
background-color: var(--gnome-inactive-tabbar-background) !important;
|
2021-04-24 19:04:32 +03:00
|
|
|
}
|
|
|
|
|
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;
|
2022-10-07 20:36:21 +03:00
|
|
|
--tab-min-height: 34px !important;
|
2018-09-26 18:37:12 +03:00
|
|
|
}
|
2020-07-19 15:58:22 +03:00
|
|
|
|
2022-10-07 20:36:21 +03:00
|
|
|
tab > stack {
|
|
|
|
height: 34px !important;
|
|
|
|
min-height: 34px !important;
|
2020-07-19 15:58:22 +03:00
|
|
|
}
|
|
|
|
|
2022-10-07 20:36:21 +03:00
|
|
|
/* Tabs scroll fade */
|
|
|
|
#TabsToolbar {
|
|
|
|
--gnome-tabbar-fade-background: var(--gnome-tabbar-background);
|
|
|
|
}
|
2020-07-19 15:58:22 +03:00
|
|
|
#TabsToolbar:-moz-window-inactive {
|
2022-10-07 20:36:21 +03:00
|
|
|
--gnome-tabbar-fade-background: var(--gnome-inactive-tabbar-background);
|
2020-07-19 15:58:22 +03:00
|
|
|
}
|
|
|
|
|
2022-10-07 20:36:21 +03:00
|
|
|
#scrollbutton-up:not([disabled])::after,
|
|
|
|
#scrollbutton-down:not([disabled])::after {
|
|
|
|
content: "";
|
|
|
|
height: 100%;
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
z-index: -1;
|
|
|
|
width: 50px;
|
|
|
|
}
|
|
|
|
|
|
|
|
#scrollbutton-up:not([disabled])::after {
|
|
|
|
background: linear-gradient(to right, var(--gnome-tabbar-fade-background) 25px, transparent);
|
|
|
|
|
|
|
|
}
|
|
|
|
#scrollbutton-down:not([disabled])::after {
|
|
|
|
background: linear-gradient(to left, var(--gnome-tabbar-fade-background) 25px, transparent);
|
|
|
|
right: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
spacer[part=overflow-start-indicator], spacer[part=overflow-end-indicator] {
|
|
|
|
width: 0 !important;
|
|
|
|
border: 0 !important;
|
|
|
|
margin-inline: 0 !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
#scrollbutton-up, #scrollbutton-down {
|
|
|
|
position: relative !important;
|
|
|
|
z-index: 5 !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;
|
|
|
|
}
|
|
|
|
|
2021-06-06 02:27:43 +03:00
|
|
|
/* Tabsbar buttons */
|
|
|
|
#TabsToolbar .toolbarbutton-1:not(#hack) {
|
2022-10-07 20:36:21 +03:00
|
|
|
border-radius: 6px !important;
|
|
|
|
margin: 5px 3px 6px !important;
|
2022-07-20 05:38:22 +03:00
|
|
|
padding: 0 9px !important;
|
2021-06-06 02:27:43 +03:00
|
|
|
}
|
|
|
|
#TabsToolbar .toolbarbutton-1:not([disabled]):not(:active):not([open]):hover {
|
2022-10-07 23:32:17 +03:00
|
|
|
background-color: var(--gnome-tabbar-tab-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] {
|
2022-10-07 23:32:17 +03:00
|
|
|
background-color: var(--gnome-tabbar-tab-active-background) !important;
|
2018-09-26 18:37:12 +03:00
|
|
|
}
|
|
|
|
|
2021-07-26 06:41:20 +03:00
|
|
|
/* Fake tabsbar border */
|
2022-07-04 19:11:11 +03:00
|
|
|
#tabbrowser-arrowscrollbox::after {
|
2021-07-26 06:41:20 +03:00
|
|
|
content: "";
|
|
|
|
display: block;
|
2022-10-07 20:36:21 +03:00
|
|
|
width: 200%;
|
2022-07-04 19:11:11 +03:00
|
|
|
background: var(--gnome-toolbar-background);
|
2022-10-07 20:36:21 +03:00
|
|
|
border-bottom: 1px solid var(--gnome-toolbar-border-color);
|
2022-07-04 19:11:11 +03:00
|
|
|
height: 0;
|
|
|
|
min-height: 0;
|
2021-07-26 06:41:20 +03:00
|
|
|
position: absolute;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
2022-10-07 20:36:21 +03:00
|
|
|
z-index: 6;
|
2022-07-04 19:11:11 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
#tabbrowser-tabs[movingtab=true] #tabbrowser-arrowscrollbox::after {
|
|
|
|
bottom: unset;
|
|
|
|
top: 38px;
|
2021-07-26 06:41:20 +03:00
|
|
|
}
|
|
|
|
|
2022-10-07 20:36:21 +03:00
|
|
|
/* Tab */
|
2021-05-11 03:49:28 +03:00
|
|
|
.tabbrowser-tab {
|
|
|
|
border: 0 !important;
|
2022-10-07 20:36:21 +03:00
|
|
|
padding: 5px 3px 6px !important;
|
|
|
|
position: relative;
|
2018-09-26 18:37:12 +03:00
|
|
|
}
|
2022-10-07 20:36:21 +03:00
|
|
|
.tabbrowser-tab[first-visible-tab="true"]{
|
|
|
|
padding-left: 5px !important;
|
2021-05-10 15:11:53 +03:00
|
|
|
}
|
2022-10-07 20:36:21 +03:00
|
|
|
.tabbrowser-tab[last-visible-tab="true"] {
|
|
|
|
padding-right: 5px !important;
|
2021-05-11 03:49:28 +03:00
|
|
|
}
|
2022-10-07 20:36:21 +03:00
|
|
|
|
|
|
|
#tabbrowser-tabs[haspinnedtabs]:not([positionpinnedtabs]) > #tabbrowser-arrowscrollbox > .tabbrowser-tab[first-visible-unpinned-tab] {
|
|
|
|
margin-inline-start: 0 !important;
|
2021-06-02 22:13:05 +03:00
|
|
|
}
|
2022-10-07 20:36:21 +03:00
|
|
|
|
|
|
|
/* Tab separators */
|
|
|
|
.tabbrowser-tab:not([selected], :hover, [last-visible-tab="true"], [beforeselected-visible="true"], [beforehovered="true"])::after {
|
|
|
|
content: "";
|
|
|
|
display: block;
|
2022-10-09 04:04:33 +03:00
|
|
|
border-left: 1px solid var(--gnome-tabbar-tab-separator-color) !important;
|
2022-10-07 20:36:21 +03:00
|
|
|
height: 26px;
|
|
|
|
position: absolute;
|
|
|
|
top: 9px;
|
2021-05-11 03:49:28 +03:00
|
|
|
}
|
2022-10-07 20:36:21 +03:00
|
|
|
.tabbrowser-tab::after {
|
|
|
|
right: -.5px;
|
2022-05-15 20:30:25 +03:00
|
|
|
}
|
2021-05-10 15:25:52 +03:00
|
|
|
|
2018-09-26 18:37:12 +03:00
|
|
|
/* Tab labels */
|
|
|
|
tab {
|
2022-07-04 19:11:11 +03:00
|
|
|
color: var(--gnome-toolbar-color) !important;
|
2018-09-26 18:37:12 +03:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
2021-04-23 07:12:40 +03:00
|
|
|
/* Reset tab background */
|
|
|
|
.tab-background {
|
2022-10-07 20:36:21 +03:00
|
|
|
border-radius: 6px !important;
|
2021-04-23 07:12:40 +03:00
|
|
|
box-shadow: none !important;
|
|
|
|
margin-block: 0 !important;
|
2021-07-26 06:15:57 +03:00
|
|
|
border: 0 !important;
|
2021-04-23 07:12:40 +03:00
|
|
|
}
|
|
|
|
|
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
|
|
|
}
|
|
|
|
|
2021-06-15 22:05:03 +03:00
|
|
|
/* Fix custom info tab icon */
|
|
|
|
.tabbrowser-tab[image="chrome://global/skin/icons/info.svg"]:not([pinned]):not([busy]):not([progress]) .tab-icon-stack::before {
|
|
|
|
margin-inline-end: 5.5px;
|
|
|
|
}
|
|
|
|
.tabbrowser-tab[image="chrome://global/skin/icons/info.svg"] .tab-icon-image {
|
|
|
|
display: none !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;
|
|
|
|
}
|
|
|
|
|
2022-05-15 20:23:34 +03:00
|
|
|
/* Center tab icon contents */
|
|
|
|
.tabbrowser-tab .tab-icon-stack {
|
|
|
|
align-items: center;
|
|
|
|
justify-items: center;
|
|
|
|
}
|
|
|
|
|
2018-09-26 18:37:12 +03:00
|
|
|
/* Adjust tab label width */
|
|
|
|
.tab-label-container {
|
|
|
|
min-width: 0 !important;
|
|
|
|
}
|
|
|
|
|
2022-01-31 21:38:22 +02:00
|
|
|
/* Put tab close button 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 */
|
2022-01-31 21:38:22 +02:00
|
|
|
.tabbrowser-tab .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
|
|
|
}
|
2022-05-15 20:23:34 +03:00
|
|
|
.tab-throbber:not([pinned]), .tab-icon-pending:not([pinned]), .tab-icon-image:not([pinned]), .tab-sharing-icon-overlay:not([pinned]), .tab-icon-overlay:not([pinned]) {
|
|
|
|
margin-inline-end: 0 !important;
|
|
|
|
}
|
|
|
|
.tabbrowser-tab:not([soundplaying], [muted], [activemedia-blocked], [crashed]) .tab-icon-stack {
|
|
|
|
padding: 4px;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Hide favicon when mute icon is present */
|
2022-05-18 06:22:15 +03:00
|
|
|
.tabbrowser-tab:not([pinned]):is([soundplaying], [muted], [activemedia-blocked], [crashed]) .tab-icon-image:not([sharing]),
|
|
|
|
.tabbrowser-tab:not([pinned]):is([soundplaying], [muted], [activemedia-blocked], [crashed])[selected] .tab-icon-image {
|
2022-05-15 20:23:34 +03:00
|
|
|
display: none;
|
|
|
|
}
|
2022-05-18 06:22:15 +03:00
|
|
|
|
2022-05-15 20:23:34 +03:00
|
|
|
/* Hide secondary label about muting */
|
|
|
|
.tabbrowser-tab:is([soundplaying], [muted], [activemedia-blocked], [crashed]) .tab-secondary-label {
|
|
|
|
display: none;
|
|
|
|
}
|
2018-09-26 18:37:12 +03:00
|
|
|
|
2021-06-03 04:44:51 +03:00
|
|
|
/* Tab buttons */
|
|
|
|
.tab-icon-overlay,
|
2018-09-26 18:37:12 +03:00
|
|
|
.tab-close-button {
|
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;
|
2021-06-17 21:47:23 +03:00
|
|
|
transition: all 0.2s ease-out !important;
|
2021-06-03 04:44:51 +03:00
|
|
|
}
|
|
|
|
:root:not(:-moz-window-inactive) .tab-icon-overlay:hover,
|
|
|
|
:root:not(:-moz-window-inactive) .tab-close-button:hover {
|
2022-05-23 03:58:34 +03:00
|
|
|
background: var(--gnome-button-flat-hover-background) !important;
|
2021-06-03 04:44:51 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.tab-icon-stack:is([soundplaying], [muted], [activemedia-blocked]) image {
|
|
|
|
margin: auto !important;
|
|
|
|
}
|
|
|
|
|
2022-05-18 06:22:15 +03:00
|
|
|
/* Always show the muted icon when poresent */
|
|
|
|
#tabbrowser-tabs:not([secondarytext-unsupported]) .tabbrowser-tab:not(:hover) .tab-icon-overlay[indicator-replaces-favicon] {
|
|
|
|
opacity: 1 !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Icon overlay smaller */
|
|
|
|
.tab-icon-overlay[pinned], .tab-icon-overlay:not([indicator-replaces-favicon="true"], [selected]) {
|
2022-05-15 20:23:34 +03:00
|
|
|
width: 12px !important;
|
2022-05-23 03:58:34 +03:00
|
|
|
height: 12px !important;
|
2022-05-15 20:23:34 +03:00
|
|
|
padding: 2px !important;
|
|
|
|
}
|
2022-05-18 06:22:15 +03:00
|
|
|
/* Icon overlay small style */
|
|
|
|
.tab-icon-overlay:is([pinned], [sharing]):not([crashed]) {
|
2022-05-23 03:58:34 +03:00
|
|
|
stroke: unset !important;
|
2022-05-18 06:22:15 +03:00
|
|
|
}
|
2022-05-23 03:58:34 +03:00
|
|
|
.tab-icon-overlay:is([pinned]):not([crashed]),
|
|
|
|
.tab-icon-overlay:is([sharing]):not([crashed], [selected]) {
|
|
|
|
background: var(--gnome-tab-button-background) !important;
|
2022-05-18 06:22:15 +03:00
|
|
|
}
|
2022-05-23 03:58:34 +03:00
|
|
|
.tab-icon-overlay:is([pinned], [sharing]):not([crashed]):hover {
|
|
|
|
background: var(--gnome-tab-button-hover-background) !important;
|
2022-05-22 08:08:28 +03:00
|
|
|
}
|
2022-05-23 03:58:34 +03:00
|
|
|
|
2022-05-18 06:22:15 +03:00
|
|
|
/* Fix icon overlay posisition when sharing */
|
|
|
|
.tab-icon-overlay:not([crashed], [pinned]):is([sharing])[selected] {
|
|
|
|
top: 0 !important;
|
|
|
|
inset-inline-end: 0 !important;
|
|
|
|
}
|
2022-05-15 20:23:34 +03:00
|
|
|
|
2021-06-03 04:44:51 +03:00
|
|
|
/* Close tab button */
|
2022-07-20 05:38:22 +03:00
|
|
|
:root {
|
2021-06-03 04:44:51 +03:00
|
|
|
--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;
|
2021-06-17 21:47:23 +03:00
|
|
|
z-index: 100 !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;
|
|
|
|
}
|
2022-07-20 05:38:22 +03:00
|
|
|
|
2021-06-17 21:47:23 +03:00
|
|
|
/* Autohide */
|
2021-05-10 15:11:53 +03:00
|
|
|
.tabbrowser-tab:not([selected="true"]) .tab-close-button {
|
2021-06-17 21:47:23 +03:00
|
|
|
visibility: hidden !important;
|
|
|
|
opacity: 0 !important;
|
2021-05-10 15:11:53 +03:00
|
|
|
}
|
|
|
|
.tabbrowser-tab:hover .tab-close-button {
|
2021-06-17 21:47:23 +03:00
|
|
|
visibility: visible !important;
|
|
|
|
opacity: 1 !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Fix close button position */
|
|
|
|
.tabbrowser-tab:not([pinned]) .tab-label-container {
|
|
|
|
margin-right: -16px;
|
|
|
|
}
|
2022-01-31 21:38:22 +02:00
|
|
|
.tabbrowser-tab:not([pinned]):is([selected="true"], :hover) .tab-label-container[textoverflow="true"] {
|
|
|
|
margin-right: 0;
|
|
|
|
}
|
2021-06-17 21:47:23 +03:00
|
|
|
#tabbrowser-tabs[closebuttons="activetab"] .tabbrowser-tab:not([pinned]) .tab-close-button {
|
|
|
|
display: block !important;
|
|
|
|
}
|
|
|
|
|
2022-02-03 22:19:50 +02:00
|
|
|
/* Close button overlay */
|
2022-10-09 04:04:33 +03:00
|
|
|
.tabbrowser-tab:not([pinned]) .tab-content::before {
|
2022-10-07 20:36:21 +03:00
|
|
|
border-radius: 0 6px 6px 0;
|
2022-02-03 22:19:50 +02:00
|
|
|
content: "";
|
|
|
|
height: 100%;
|
|
|
|
opacity: 0;
|
|
|
|
position: absolute;
|
|
|
|
right: 0;
|
2022-10-07 20:36:21 +03:00
|
|
|
top: 0;
|
2022-02-03 22:19:50 +02:00
|
|
|
transition: all 0.2s ease-out;
|
|
|
|
width: 55px;
|
|
|
|
}
|
|
|
|
.tabbrowser-tab:not([pinned]) .tab-content::before {
|
|
|
|
background: linear-gradient(to left, var(--gnome-tabbar-tab-close-overlay-bg) 50%, transparent);
|
|
|
|
z-index: 99;
|
|
|
|
}
|
|
|
|
.tabbrowser-tab:not([pinned], :-moz-window-inactive):is([selected="true"], :hover) .tab-content::before {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
.tabbrowser-tab:not([pinned])[selected="true"] .tab-content::before {
|
|
|
|
--gnome-tabbar-tab-close-overlay-bg: var(--gnome-tabbar-tab-active-background);
|
|
|
|
}
|
|
|
|
:root:not(:-moz-window-inactive) .tabbrowser-tab:not([pinned])[selected="true"]:hover .tab-content::before {
|
|
|
|
--gnome-tabbar-tab-close-overlay-bg: var(--gnome-tabbar-tab-active-hover-background);
|
|
|
|
}
|
|
|
|
.tabbrowser-tab:not([pinned]):hover .tab-content::before {
|
|
|
|
--gnome-tabbar-tab-close-overlay-bg: var(--gnome-tabbar-tab-hover-background);
|
|
|
|
}
|
|
|
|
.tabbrowser-tab:not([pinned])[selected="true"]:-moz-window-inactive .tab-content::before {
|
|
|
|
--gnome-tabbar-tab-close-overlay-bg: var(--gnome-inactive-tabbar-tab-active-background);
|
|
|
|
}
|
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Active tab */
|
|
|
|
.tab-background[selected=true] {
|
2022-10-07 20:36:21 +03:00
|
|
|
background: none !important;
|
2018-09-26 18:37:12 +03:00
|
|
|
border-image: none !important;
|
|
|
|
}
|
2022-10-07 20:36:21 +03:00
|
|
|
.tab-background[selected=true] {
|
|
|
|
background-color: var(--gnome-tabbar-tab-active-background) !important;
|
|
|
|
}
|
|
|
|
.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;
|
2018-09-26 18:37:12 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Tab hover */
|
2022-10-09 04:04:33 +03:00
|
|
|
.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;
|
|
|
|
}
|
2022-10-09 04:04:33 +03:00
|
|
|
.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;
|
|
|
|
}
|
2022-10-09 04:04:33 +03:00
|
|
|
:root:-moz-window-inactive .tabbrowser-tab:hover > .tab-stack > .tab-background:not([selected=true]) {
|
|
|
|
background-color: var(--gnome-inactive-tabbar-tab-hover-background) !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;
|
2022-10-07 20:36:21 +03:00
|
|
|
min-width: 150px !important;
|
2018-09-26 18:37:12 +03:00
|
|
|
}
|
|
|
|
.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
|
|
|
|
2022-05-18 06:22:15 +03:00
|
|
|
/* Pinned tab size */
|
2021-12-20 01:27:46 +02:00
|
|
|
.tabbrowser-tab[pinned] {
|
|
|
|
max-width: 37px !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 */
|
2022-10-08 23:44:01 +03:00
|
|
|
.tabbrowser-tab[class*="identity-color-"] .tab-label-container {
|
|
|
|
color: var(--identity-tab-color) !important;
|
2019-07-17 04:02:03 +03:00
|
|
|
}
|
2020-06-07 16:19:31 +03:00
|
|
|
|
2022-05-16 01:09:05 +03:00
|
|
|
/* Tab spinner */
|
|
|
|
.tab-throbber::before {
|
|
|
|
animation: gnome-spinner 1s linear infinite !important;
|
|
|
|
background-image: url("../icons/process-working-symbolic.svg") !important;
|
|
|
|
width: 16px !important;
|
|
|
|
opacity: 1 !important;
|
|
|
|
}
|
|
|
|
@keyframes gnome-spinner {
|
|
|
|
from {
|
|
|
|
transform: rotate(0deg);
|
2021-06-09 06:11:13 +03:00
|
|
|
}
|
2022-05-16 01:09:05 +03:00
|
|
|
to {
|
|
|
|
transform: rotate(360deg);
|
2021-06-09 06:11:13 +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;
|
|
|
|
}
|
|
|
|
}
|
2022-07-20 05:38:22 +03:00
|
|
|
|
|
|
|
/* OPTIONAL: Show the close button on the selected tab only */
|
|
|
|
@supports -moz-bool-pref("gnomeTheme.closeOnlySelectedTabs") {
|
|
|
|
/* Hide the close buttons on hover */
|
|
|
|
.tabbrowser-tab:not([selected="true"]):hover .tab-close-button {
|
|
|
|
visibility: hidden !important;
|
|
|
|
opacity: 0 !important;
|
|
|
|
}
|
|
|
|
/* Hide the close button overlay on hover */
|
|
|
|
.tabbrowser-tab:not([pinned]):hover .tab-content::before {
|
|
|
|
--gnome-tabbar-tab-close-overlay-bg: unset;
|
|
|
|
}
|
|
|
|
/* Reset the overflow position of the tab label container */
|
|
|
|
.tabbrowser-tab:not([pinned]):not([selected="true"]):hover .tab-label-container[textoverflow="true"] {
|
|
|
|
margin-right: -16px;
|
|
|
|
}
|
|
|
|
}
|