Fix animated logo spinner

This commit is contained in:
Jamie Kyle 2024-11-14 18:58:49 -08:00 committed by GitHub
parent ca19a7a774
commit 2c22dca023
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -48,6 +48,13 @@
margin-block: 24px;
position: relative;
@include light-theme() {
--Inbox__logo__bg: #{$color-ultramarine-logo};
}
@include dark-theme() {
--Inbox__logo__bg: #{$color-white};
}
.Inbox__logo__part {
width: 100%;
height: 100%;
@ -55,7 +62,7 @@
}
.Inbox__logo__part--base {
@include color-svg('../images/logo-parts/base.svg', $color-white);
@include color-svg('../images/logo-parts/base.svg', var(--Inbox__logo__bg));
z-index: 1;
}
@ -72,7 +79,10 @@
@for $i from 1 through 16 {
.Inbox__logo__part--segment:nth-child(#{$i + 1}) {
@include color-svg('../images/logo-parts/p#{$i}.svg', $color-white);
@include color-svg(
'../images/logo-parts/p#{$i}.svg',
var(--Inbox__logo__bg)
);
transform: rotate(#{(16 - $i) * 22.5}deg);
}
}