2021-05-22 20:54:58 +00:00
|
|
|
/* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/non_floating_sharp_tabs.css made available under Mozilla Public License v. 2.0
|
|
|
|
See the above repository for updates as well as full license text. */
|
|
|
|
|
2021-10-11 14:44:40 +00:00
|
|
|
/* This style makes tabs and related items non-rounded and connects tabs to toolbars like in previous Firefox versions.
|
|
|
|
* You should set layout.css.color-mix.enabled to true in about:config to make colors apply properly.
|
|
|
|
* It's not strictly a requirement, but this style expects compact_proton.css to be loaded before it. */
|
2021-05-22 20:54:58 +00:00
|
|
|
|
2021-07-15 10:55:03 +00:00
|
|
|
:root[id]{
|
2021-06-04 21:17:16 +00:00
|
|
|
--tab-block-margin: 0px !important;
|
2021-05-22 20:54:58 +00:00
|
|
|
--tabs-shadow-size: 1px !important;
|
|
|
|
|
|
|
|
/* Remove next line if you want selected tab to have color other than toolbar background - then it follows your theme color */
|
|
|
|
--lwt-selected-tab-background-color: var(--toolbar-bgcolor) !important;
|
|
|
|
}
|
|
|
|
|
2021-07-18 17:47:20 +00:00
|
|
|
/* Uncomment next line to force specific color for tab top line */
|
2022-01-12 13:16:47 +00:00
|
|
|
/* #tabbrowser-tabs{ --lwt-tab-line-color: blue !important; } */
|
2021-07-18 17:47:20 +00:00
|
|
|
|
2021-07-15 10:55:03 +00:00
|
|
|
/* These next two rules set a color for border around tabs and between tabs & navigation toolbars. Set to transparent to remove the border.*/
|
|
|
|
#nav-bar{
|
|
|
|
/* This overrides value in compact_proton.css */
|
|
|
|
box-shadow: 0 -1px 0 0 color-mix(in srgb, currentcolor 30%, transparent) !important;
|
2021-05-22 20:54:58 +00:00
|
|
|
}
|
2021-07-15 10:55:03 +00:00
|
|
|
.tab-background[selected]{
|
|
|
|
border-inline: 1px solid color-mix(in srgb, currentcolor 30%, transparent) !important;
|
2022-01-12 13:16:47 +00:00
|
|
|
border-bottom-color: transparent !important;
|
2021-05-22 20:54:58 +00:00
|
|
|
}
|
|
|
|
|
2021-05-29 16:44:23 +00:00
|
|
|
#TabsToolbar{
|
|
|
|
--toolbarbutton-inner-padding: 7px !important;
|
2021-06-09 13:34:09 +00:00
|
|
|
}
|
2021-08-26 05:59:45 +00:00
|
|
|
/* Few exceptions for default light theme */
|
|
|
|
#navigator-toolbox:not([movingtab]):-moz-lwtheme > #titlebar > #TabsToolbar{
|
2021-05-29 16:44:23 +00:00
|
|
|
--toolbar-bgcolor: transparent;
|
|
|
|
}
|
2022-01-12 13:16:47 +00:00
|
|
|
|
2021-08-26 05:59:45 +00:00
|
|
|
.tab-background[selected]:not(:-moz-lwtheme){ background: var(--toolbar-bgcolor) !important; }
|
2021-05-22 20:54:58 +00:00
|
|
|
|
2022-06-17 02:21:54 +00:00
|
|
|
#TabsToolbar-customization-target > .toolbarbutton-1 > .toolbarbutton-badge-stack,
|
|
|
|
#TabsToolbar-customization-target > .toolbarbutton-1 > .toolbarbutton-icon{ border-radius: 2px !important; }
|
2021-05-22 20:54:58 +00:00
|
|
|
|
|
|
|
/* tabs newtab button needs some special styling... */
|
2022-06-17 13:26:00 +00:00
|
|
|
#tabs-newtab-button{
|
|
|
|
padding-inline: 0 !important;
|
2023-03-11 10:26:07 +00:00
|
|
|
-moz-box-align: stretch !important; /* Fx < 112 compatibility */
|
|
|
|
align-items: stretch !important;
|
2022-06-17 13:26:00 +00:00
|
|
|
}
|
|
|
|
/* We draw the icon as background-image to get correct scaling regardless of toolbar height */
|
2022-06-17 02:21:54 +00:00
|
|
|
#tabs-newtab-button > .toolbarbutton-icon{
|
2021-05-22 20:54:58 +00:00
|
|
|
border-radius: 0 !important;
|
2022-06-17 13:26:00 +00:00
|
|
|
width: var(--tab-min-height) !important;
|
2021-05-22 20:54:58 +00:00
|
|
|
height: initial !important;
|
2022-06-17 13:26:00 +00:00
|
|
|
list-style-image: none;
|
|
|
|
background-image: url(chrome://global/skin/icons/plus.svg);
|
|
|
|
background-position: center;
|
|
|
|
background-repeat: no-repeat;
|
2021-05-22 20:54:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#scrollbutton-up,
|
2023-01-05 13:21:48 +00:00
|
|
|
#scrollbutton-down{
|
|
|
|
border-radius: 0 !important;
|
|
|
|
border-width: 0 !important;
|
|
|
|
padding-inline: 3px !important;
|
|
|
|
margin-bottom: var(--uc-compat-scrollbutton-margin,0px) !important; /* set in hide_tabs_scrollbuttons.css */
|
|
|
|
}
|
|
|
|
|
|
|
|
/* This is for hide_tabs_scrollbuttons.css compatibility since we modify scrollbutton width */
|
|
|
|
#tabbrowser-tabs[overflow]{
|
|
|
|
--uc-scrollbox-base-margin: -22px !important;
|
|
|
|
}
|
2021-05-22 20:54:58 +00:00
|
|
|
|
2023-02-15 03:09:44 +00:00
|
|
|
/* Selected tab needs to be relative so it gets drawn over nav-bar top "border" */
|
2023-02-16 03:28:48 +00:00
|
|
|
.tabbrowser-tab[selected]{
|
2023-02-15 03:09:44 +00:00
|
|
|
position: relative;
|
|
|
|
z-index: 1;
|
|
|
|
}
|
|
|
|
|
2021-05-22 20:54:58 +00:00
|
|
|
/* tab shaping */
|
|
|
|
.tabbrowser-tab{ padding-inline: 0 !important; }
|
|
|
|
|
2023-01-05 13:21:48 +00:00
|
|
|
:root[uidensity="compact"] #tabbrowser-tabs[positionpinnedtabs] .tabbrowser-tab[pinned]{
|
|
|
|
min-height: calc(var(--tab-min-height) + 2px) !important;
|
|
|
|
}
|
2021-05-22 20:54:58 +00:00
|
|
|
|
|
|
|
.tab-content[pinned]{ padding-inline: 11px !important; }
|
|
|
|
|
|
|
|
.tab-background{
|
|
|
|
border-radius: 0 !important;
|
|
|
|
box-shadow: none !important;
|
2022-01-12 06:21:27 +00:00
|
|
|
border-top: 0 !important;
|
2022-07-07 14:45:15 +00:00
|
|
|
outline: none !important;
|
2021-05-22 20:54:58 +00:00
|
|
|
}
|
|
|
|
|
2021-10-13 13:14:06 +00:00
|
|
|
.tab-background:not([selected])[multiselected]{
|
|
|
|
background: color-mix(in srgb, currentColor 11%, transparent) !important;
|
|
|
|
margin-inline-start: -1px;
|
|
|
|
}
|
2021-10-11 14:44:40 +00:00
|
|
|
|
2021-05-22 20:54:58 +00:00
|
|
|
/* Line to mark selected tab */
|
|
|
|
.tab-background[selected]::before,
|
|
|
|
.tabbrowser-tab:hover > stack > .tab-background::before{
|
2023-03-11 10:26:07 +00:00
|
|
|
display: flex;
|
2021-05-22 20:54:58 +00:00
|
|
|
height: 2px;
|
|
|
|
content: "";
|
|
|
|
}
|
|
|
|
.tab-stack:hover > .tab-background::before{
|
|
|
|
background-color: inherit;
|
|
|
|
}
|
|
|
|
.tab-stack > .tab-background[selected]::before{
|
|
|
|
background-color: highlight;
|
2022-01-12 13:16:47 +00:00
|
|
|
background-image: linear-gradient(var(--lwt-tab-line-color),var(--lwt-tab-line-color));
|
2021-05-22 20:54:58 +00:00
|
|
|
}
|
2021-06-02 20:38:06 +00:00
|
|
|
/* Photon-like tab on hover animation for the top line */
|
2021-06-27 07:10:43 +00:00
|
|
|
@keyframes tab-onhover-line-anim{ from{ margin-inline: 20px } to { margin-inline: 0 } }
|
2021-06-26 06:57:25 +00:00
|
|
|
|
2021-06-27 07:10:43 +00:00
|
|
|
.tab-stack:hover > .tab-background::before{ animation: tab-onhover-line-anim 160ms }
|
2021-06-02 20:38:06 +00:00
|
|
|
|
|
|
|
/* Disable animation for selected and pinned tabs */
|
2021-06-27 07:10:43 +00:00
|
|
|
.tabbrowser-tab:is([pinned],[selected]) > .tab-stack > .tab-background::before{ animation: none }
|
2021-06-02 20:38:06 +00:00
|
|
|
|
2021-05-22 20:54:58 +00:00
|
|
|
/* moves context-line to the bottom */
|
2023-03-11 10:26:07 +00:00
|
|
|
.tab-context-line{
|
|
|
|
-moz-box-ordinal-group: 2; /* Fx < 112 compatibility */
|
|
|
|
order: 2;
|
|
|
|
margin-inline: 10px !important;
|
|
|
|
}
|