2020-05-22 05:13:58 +00:00
|
|
|
/* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/tabs_animated_gradient_border.css made available under Mozilla Public License v. 2.0
|
|
|
|
See the above repository for updates as well as full license text. */
|
|
|
|
|
2022-04-19 08:01:44 +00:00
|
|
|
/** Adds animated gradient border below tabs and around selected tab.
|
|
|
|
*
|
|
|
|
* !IMPORTANT
|
|
|
|
* This style requires non_floating_sharp_tabs.css to be loaded before it.
|
|
|
|
*/
|
2019-06-16 11:25:12 +00:00
|
|
|
|
|
|
|
/* Constant animation WILL increase CPU usage */
|
|
|
|
|
2022-04-19 07:55:58 +00:00
|
|
|
@media (-moz-platform: windows){
|
|
|
|
/* Increase tab minimum height by 2px on Windows as a workaround for titlebar being unable to collapse below 31px height */
|
|
|
|
:root[uidensity="compact"]{ --tab-min-height: 31px !important; }
|
|
|
|
}
|
|
|
|
|
2019-06-24 12:46:13 +00:00
|
|
|
/*
|
|
|
|
Thanks to /u/skenera on reddit for suggesting animating background position and using steps() function to reduce cpu load
|
|
|
|
*/
|
2019-06-16 11:25:12 +00:00
|
|
|
@keyframes rotate-gradient{
|
2019-06-24 12:46:13 +00:00
|
|
|
from{background-position: 0 0;}
|
|
|
|
to{background-position: 200vw 0;}
|
2019-06-16 11:25:12 +00:00
|
|
|
}
|
2022-04-19 07:55:58 +00:00
|
|
|
#TabsToolbar{ background: none !important; }
|
2019-06-16 11:25:12 +00:00
|
|
|
#TabsToolbar::before{
|
|
|
|
content: "";
|
2019-09-28 09:18:59 +00:00
|
|
|
display: block;
|
2019-06-16 11:25:12 +00:00
|
|
|
position: absolute;
|
2019-06-24 12:46:13 +00:00
|
|
|
width: 200vw;
|
2022-04-19 07:55:58 +00:00
|
|
|
height: calc(var(--tab-min-height) + var(--tab-block-margin) + 2px);
|
2019-06-24 12:46:13 +00:00
|
|
|
background-image: linear-gradient(to right, magenta, red, yellow, green, cyan, blue, magenta);
|
|
|
|
animation: rotate-gradient 10s steps(60) infinite;
|
|
|
|
/*animation-timing-function: linear; */ /* smoother animation, but greatly increased cpu use */
|
2019-06-16 11:25:12 +00:00
|
|
|
pointer-events: none;
|
2022-04-19 07:55:58 +00:00
|
|
|
z-index: 0;
|
2019-06-16 11:25:12 +00:00
|
|
|
}
|
|
|
|
|
2022-04-19 07:55:58 +00:00
|
|
|
#tabbrowser-arrowscrollbox{
|
|
|
|
margin-inline: 0 !important;
|
|
|
|
--tab-shadow-max-size: 0px;
|
|
|
|
}
|
|
|
|
.scrollbox-clip[orient="horizontal"] > scrollbox::after{
|
2019-06-16 11:25:12 +00:00
|
|
|
content: "";
|
2023-03-11 10:26:07 +00:00
|
|
|
display: flex;
|
|
|
|
flex-grow: 1 !important;
|
2022-04-19 07:55:58 +00:00
|
|
|
position: relative;
|
2022-11-19 08:22:05 +00:00
|
|
|
background-color: var(--lwt-accent-color);
|
2022-04-19 07:55:58 +00:00
|
|
|
margin-bottom: 1px;
|
2019-06-16 11:25:12 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#TabsToolbar > .titlebar-buttonbox-container,
|
|
|
|
.titlebar-spacer,
|
2022-04-19 07:55:58 +00:00
|
|
|
.tab-background,
|
|
|
|
.closing-tabs-spacer,
|
|
|
|
#tabs-newtab-button,
|
|
|
|
#scrollbutton-up,
|
|
|
|
#scrollbutton-down,
|
2019-06-16 11:25:12 +00:00
|
|
|
#tabbrowser-tabs ~ toolbarbutton{
|
2022-11-19 08:22:05 +00:00
|
|
|
background-color: var(--lwt-accent-color) !important;
|
2022-04-19 07:55:58 +00:00
|
|
|
margin-bottom: 1px !important;
|
2019-06-16 11:25:12 +00:00
|
|
|
opacity: 1 !important;
|
2022-04-19 07:55:58 +00:00
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
.tabbrowser-tab:hover > .tab-stack > .tab-background:not([selected]),
|
|
|
|
.tab-background[multiselected]:not([selected]){
|
|
|
|
background-image: linear-gradient(color-mix(in srgb, currentColor 11%, transparent),color-mix(in srgb, currentColor 11%, transparent)) !important;
|
2022-11-19 08:22:05 +00:00
|
|
|
background-color: var(--lwt-accent-color) !important;
|
2019-06-16 11:25:12 +00:00
|
|
|
}
|
|
|
|
|
2022-04-19 07:55:58 +00:00
|
|
|
.tabbrowser-tab:not([selected]){ min-height: calc(var(--tab-min-height) - 1px) !important; }
|
|
|
|
.tabbrowser-tab[first-visible-unpinned-tab]{ margin-inline-start: 0 !important; }
|
2019-06-16 11:25:12 +00:00
|
|
|
|
2022-04-19 07:55:58 +00:00
|
|
|
vbox.tab-background[selected]{
|
2019-06-16 11:25:12 +00:00
|
|
|
padding: 0px !important;
|
2022-04-19 07:55:58 +00:00
|
|
|
border: 1px solid transparent !important;
|
2019-06-16 11:25:12 +00:00
|
|
|
border-bottom-width: 0px !important;
|
|
|
|
margin-bottom: 0px !important;
|
2022-04-19 07:55:58 +00:00
|
|
|
background-clip: padding-box;
|
|
|
|
outline: none !important;
|
|
|
|
}
|
|
|
|
/* This is to override min-height set in non_floating_sharp_tabs.css */
|
|
|
|
:root[uidensity="compact"] #tabbrowser-tabs[positionpinnedtabs] .tabbrowser-tab[pinned]{
|
|
|
|
min-height: calc(var(--tab-min-height) -1px) !important;
|
|
|
|
}
|
|
|
|
/* remove selected tab line which isn't very useful with this style */
|
|
|
|
.tab-background[selected]::before{
|
|
|
|
display: none !important;
|
|
|
|
}
|
|
|
|
#tabbrowser-tabs:not([secondarytext-unsupported]) .tab-label-container{
|
|
|
|
height: var(--tab-min-height) !important;
|
2019-06-16 11:25:12 +00:00
|
|
|
}
|
2022-04-19 07:55:58 +00:00
|
|
|
.tab-label{ line-height: 20px !important; }
|
|
|
|
:root[uidensity="compact"] .tab-label{ line-height: 20px !important; }
|
|
|
|
:root[uidensity="normal"] .tab-content[selected]{ margin-top: -1px }
|
2019-06-16 11:25:12 +00:00
|
|
|
|
2022-04-19 07:55:58 +00:00
|
|
|
#nav-bar{ box-shadow: none !important; }
|