209 lines
5.2 KiB
CSS
Raw Normal View History

2021-06-16 19:28:37 +08:00
/* Tabs bar */
@namespace xul "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";
2022-02-26 09:26:31 +08:00
tab > stack {
margin: 0 3px !important;
2021-06-16 19:28:37 +08:00
}
.tabbrowser-tab,
.tab-background {
border: none !important;
box-shadow: none !important;
border-radius: 8px !important;
height: 32px !important;
min-height: 32px !important;
max-height: 32px !important;
padding: 0 !important;
background-image: none !important;
}
2023-02-12 02:47:05 +08:00
.tabbrowser-tab {
margin: 1px 0 0 0 !important;
2022-10-14 14:52:20 +02:00
}
2021-07-16 10:59:25 +08:00
.tabbrowser-tab:not([visuallyselected="true"], [multiselected]), .tabbrowser-tab:-moz-lwtheme {
color: var(--gnome-tabbar-tab-color) !important;
}
.tabbrowser-tab .tab-background:not([selected=true]) {
color: var(--gnome-tabbar-tab-active-color) !important;
}
2021-06-18 00:00:11 +08:00
.tab-background {
2022-07-16 14:59:22 +08:00
margin: 0 !important;
background-color: transparent !important;
2021-06-18 00:00:11 +08:00
transition: background 200ms !important;
}
2021-06-16 19:28:37 +08:00
.tab-background:not([selected=true]) {
background: var(--gnome-tabbar-tab-background) !important;
}
.tab-background:not([selected=true]):-moz-window-inactive {
background: var(--gnome-inactive-tabbar-tab-background) !important;
}
/* Tab hover */
#TabsToolbar .tabbrowser-tab:hover > .tab-stack > .tab-background:not([selected=true]) {
background: var(--gnome-tabbar-tab-hover-background) !important;
}
/* Active tab */
.tab-background[selected=true] {
background: var(--gnome-tabbar-tab-active-background) !important;
}
.tab-background[selected=true]:-moz-window-inactive {
background: var(--gnome-inactive-tabbar-tab-active-background) !important;
}
.close-icon {
height: 16px !important;
padding: 0 !important;
width: 16px !important;
}
.tab-close-button {
-moz-appearance: none !important;
margin-inline-end: 0 !important;
border: none !important;
box-sizing: content-box; /* Avoid deformation on flexbox */
border-radius: 3px !important;
list-style-image: url("../icons/window-close-symbolic.svg") !important;
height: 16px;
opacity: .3;
padding: 0;
width: 16px;
}
2021-09-02 12:20:17 +08:00
.tabbrowser-tab > .tab-stack > .tab-content > .tab-close-button {
visibility: hidden;
}
.tabbrowser-tab:hover > .tab-stack > .tab-content > .tab-close-button {
visibility: visible;
}
2021-06-16 19:28:37 +08:00
@media (prefers-color-scheme: dark) {
.tab-close-button {
list-style-image: url("../icons/window-close-symbolic-light.svg") !important;
}
}
:root:-moz-window-inactive .tab-close-button:not(#hack) {
opacity: .18 !important;
}
:root:not(:-moz-window-inactive) .tab-close-button:hover {
background-color: var(--gnome-button-hover-color) !important;
border: none !important;
opacity: 1;
}
:root:not(:-moz-window-inactive) .tab-close-button:active {
background-color: var(--gnome-button-active-color) !important;
}
.tab-close-button:active:not(:hover) {
background-image: none !important;
box-shadow: none !important;
}
/* Tab close button etc. positioning */
.tab-throbber, .tab-icon-image, .tab-sharing-icon-overlay, .tab-icon-sound, .tab-close-button {
margin-top: 0 !important;
}
2023-04-11 14:22:56 +08:00
.tabbrowser-tab[soundplaying="true"] .tab-icon-image,
.tabbrowser-tab[muted="true"] .tab-icon-image {
2023-04-11 00:21:16 +08:00
margin-top: 3px !important;
2023-04-11 14:22:56 +08:00
margin-left: 2px !important;
}
.tab-icon-overlay {
height: 24px !important;
width: 24px !important;
padding: 4px !important;
border-radius: 100px !important;
2023-04-11 00:21:16 +08:00
}
.tab-icon-overlay:not([crashed]):is([pinned], [sharing]) {
top: 0 !important;
inset-inline-end: 0 !important;
}
.tabbrowser-tab .tab-icon-overlay:not([crashed]):is([pinned], [sharing]) {
background-color: var(--gnome-tabbar-tab-background) !important;
}
.tabbrowser-tab[selected=true] .tab-icon-overlay:not([crashed]):is([pinned], [sharing]) {
background-color: var(--gnome-tabbar-tab-active-background) !important;
}
.tabbrowser-tab .tab-icon-overlay:not([crashed]):is([pinned], [sharing]):hover {
background-color: var(--gnome-tabbar-tab-hover-background) !important;
}
2021-06-16 19:28:37 +08:00
/* Remove blue line above tabs */
.tab-line {
display: none;
}
.tabbrowser-tab[class*="identity-color-"][pinned] {
display: flex;
}
#TabsToolbar #alltabs-button {
2023-02-12 02:47:05 +08:00
padding: 0 !important;
2021-06-18 10:39:46 +08:00
visibility: collapse !important;
2021-06-16 19:28:37 +08:00
}
2021-06-18 11:51:29 +08:00
#TabsToolbar .toolbarbutton-1,
2023-02-12 22:10:13 +08:00
#TabsToolbar #tabs-newtab-button,
#TabsToolbar #new-tab-button {
2023-02-12 02:47:05 +08:00
margin: 1px 2px 0 !important;
2021-06-16 19:28:37 +08:00
padding: 0 10px !important;
max-height: 32px !important;
min-height: 32px !important;
2023-02-12 02:47:05 +08:00
border-radius: 8px !important;
2021-06-16 19:28:37 +08:00
}
2021-06-18 11:51:29 +08:00
#TabsToolbar .toolbarbutton-1 image,
2023-02-12 22:10:13 +08:00
#TabsToolbar #tabs-newtab-button image,
#TabsToolbar #new-tab-button image {
2021-06-16 19:28:37 +08:00
margin: 0 !important;
padding: 0 !important;
height: 16px !important;
width: 16px !important;
}
2021-06-18 11:51:29 +08:00
2023-02-12 22:10:13 +08:00
#TabsToolbar #scrollbutton-up,
#TabsToolbar #scrollbutton-down {
2021-06-18 11:51:29 +08:00
max-height: 32px !important;
min-height: 32px !important;
}
2023-02-12 22:10:13 +08:00
#TabsToolbar #scrollbutton-up image,
#TabsToolbar #scrollbutton-down image {
2021-06-18 11:51:29 +08:00
margin: 0 !important;
padding: 0 !important;
height: 16px !important;
width: 16px !important;
}
2022-11-12 01:06:59 +08:00
/* firefox-view-button */
:root:not([privatebrowsingmode="temporary"]):not([firefoxviewhidden]) :is(#firefox-view-button, #wrapper-firefox-view-button) + #tabbrowser-tabs {
border-inline-start: none !important;
padding-inline-start: 0 !important;
margin-inline-start: -40px !important;
}
#firefox-view-button > .toolbarbutton-icon {
filter: none !important;
box-shadow: none !important;
}
/* Remove shadow next to tab scroll buttons */
.arrowscrollbox-overflow-start-indicator,
.arrowscrollbox-overflow-end-indicator {
display: none;
}