mirror of
https://codeberg.org/claui/mobile-config-firefox.git
synced 2024-11-09 19:30:15 +00:00
0ff12e01fe
Flexbox model will replace old xul box as the default display model so this patch adds support for that in a whole bunch of styles. A lot of style rules are marked as "Fx < 112 compatibility" rules and those can be removed when 112 hits release.
33 lines
1.3 KiB
CSS
33 lines
1.3 KiB
CSS
/* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/tab_loading_progress_bar.css made available under Mozilla Public License v. 2.0
|
|
See the above repository for updates as well as full license text. */
|
|
|
|
/* This style creates a fake loading progress bar to the bottom of a tab as a replacement for normal loading throbber */
|
|
|
|
@keyframes tab-loading-line-anim{ from{ background-size: 0% } to { background-size: 20% } }
|
|
.tab-background::after{
|
|
background-size: 90%;
|
|
}
|
|
.tabbrowser-tab:is([busy],[bursting]) > .tab-stack > .tab-background::after{
|
|
content: "";
|
|
display: flex;
|
|
height: 2px;
|
|
background-color:transparent;
|
|
background-repeat: no-repeat;
|
|
background-image: linear-gradient(currentColor,currentColor);
|
|
transition: background-size 80ms ease-out;
|
|
}
|
|
.tabbrowser-tab[busy]:not([progress],[bursting]) > .tab-stack > .tab-background::after{
|
|
animation: tab-loading-line-anim 80ms ease;
|
|
background-size: 20%;
|
|
opacity: 0.5;
|
|
}
|
|
.tabbrowser-tab[busy][progress] > .tab-stack > .tab-background::after{
|
|
transition-duration: 2000ms;
|
|
}
|
|
.tabbrowser-tab[bursting] > .tab-stack > .tab-background::after{
|
|
transition: background-size 80ms ease-out, opacity 80ms linear;
|
|
background-size: 100%;
|
|
opacity: 0;
|
|
}
|
|
.tab-throbber{ display: none !important; }
|
|
.tab-icon-image[src]{ display: block !important; }
|