2020-09-01 09:14:40 +00:00
|
|
|
/* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/tab_line_loading_indicator.css made available under Mozilla Public License v. 2.0
|
|
|
|
See the above repository for updates as well as full license text. */
|
|
|
|
|
2020-09-01 09:17:02 +00:00
|
|
|
/* Hide the normal loading indicator (just show tab-icon instead) and make the top tab-line bounce left-to-right */
|
|
|
|
|
|
|
|
@keyframes tabline-anim{from{background-position-x: left}to{background-position-x: right}}
|
2021-05-08 11:54:52 +00:00
|
|
|
.tabbrowser-tab[busy] > stack > .tab-background::before,
|
|
|
|
.tab-background[selected]::before{
|
|
|
|
content: "";
|
|
|
|
display: -moz-box;
|
|
|
|
height: 2px;
|
|
|
|
opacity: 0;
|
2020-09-01 09:17:02 +00:00
|
|
|
background-image: linear-gradient(rgba(255,255,255,.2),rgba(255,255,255,.2));
|
2021-05-08 11:54:52 +00:00
|
|
|
background-repeat: no-repeat;
|
2020-09-01 09:17:02 +00:00
|
|
|
background-size: 100%;
|
2021-05-08 11:54:52 +00:00
|
|
|
transition: background-size 80ms linear;
|
2020-09-01 09:17:02 +00:00
|
|
|
}
|
|
|
|
|
2021-05-08 11:54:52 +00:00
|
|
|
.tabbrowser-tab[busy] > stack > .tab-background::before{
|
|
|
|
background-size: 10%;
|
2020-09-01 09:17:02 +00:00
|
|
|
background-image: linear-gradient(var(--tab-line-color),var(--tab-line-color));
|
2021-05-08 11:54:52 +00:00
|
|
|
opacity: 0.7;
|
2020-09-01 09:17:02 +00:00
|
|
|
animation: tabline-anim 400ms alternate infinite ease-in-out;
|
|
|
|
}
|
|
|
|
|
|
|
|
.tabbrowser-tab .tab-throbber{ display: none }
|
2021-05-08 11:54:52 +00:00
|
|
|
.tabbrowser-tab .tab-icon-image{ display: -moz-box !important; }
|