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. */
|
|
|
|
|
2019-06-16 11:25:12 +00:00
|
|
|
/* Adds animated gradient border below tabs and around selected tab */
|
2019-06-24 12:46:13 +00:00
|
|
|
/* Might or might not work, no promises */
|
2019-06-16 11:25:12 +00:00
|
|
|
|
|
|
|
/* Constant animation WILL increase CPU usage */
|
|
|
|
|
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
|
|
|
}
|
|
|
|
|
|
|
|
#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;
|
2019-06-16 11:25:12 +00:00
|
|
|
height: calc(var(--tab-min-height) + 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;
|
|
|
|
z-index: -1;
|
|
|
|
}
|
|
|
|
|
|
|
|
#tabbrowser-tabs .arrowscrollbox-scrollbox::after{
|
|
|
|
content: "";
|
|
|
|
display: -moz-box;
|
|
|
|
-moz-box-flex: 1 !important;
|
|
|
|
background-color: var(--lwt-accent-color);
|
|
|
|
margin-bottom: 2px;
|
|
|
|
}
|
|
|
|
|
|
|
|
#TabsToolbar > .titlebar-buttonbox-container,
|
|
|
|
.titlebar-spacer,
|
|
|
|
.tabbrowser-tab,
|
|
|
|
.tabs-newtab-button,
|
|
|
|
#tabbrowser-tabs .scrollbutton-up,
|
|
|
|
#tabbrowser-tabs .scrollbutton-down,
|
|
|
|
#tabbrowser-tabs ~ toolbarbutton{
|
|
|
|
background-color: var(--lwt-accent-color) !important;
|
|
|
|
margin-bottom: 2px !important;
|
|
|
|
opacity: 1 !important;
|
|
|
|
}
|
|
|
|
|
2019-06-24 12:46:13 +00:00
|
|
|
.tabbrowser-tab{ padding: 2px 2px 0 2px !important; }
|
|
|
|
.tabbrowser-tab:not([selected]){ min-height: calc(var(--tab-min-height) - 2px) !important; }
|
|
|
|
|
2019-06-16 11:25:12 +00:00
|
|
|
|
|
|
|
.tabbrowser-tab[selected]{
|
|
|
|
padding: 0px !important;
|
|
|
|
background-color: transparent !important;
|
|
|
|
border: 2px solid transparent !important;
|
|
|
|
border-bottom-width: 0px !important;
|
|
|
|
margin-bottom: 0px !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.tab-content[selected]{ margin-top: -2px }
|