Skip to content

Commit

Permalink
chore: refactor sass to fix deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
nytamin committed Dec 9, 2024
1 parent 7a5dc15 commit a96f615
Show file tree
Hide file tree
Showing 12 changed files with 189 additions and 178 deletions.
36 changes: 18 additions & 18 deletions packages/webui/src/client/styles/_itemTypeColors.scss
Original file line number Diff line number Diff line change
Expand Up @@ -359,24 +359,6 @@ $layer-types: join($layer-types-solid, $layer-types-gradient);
&.source-unknown-state,
&.source-not-ready {
&::before {
@keyframes animated-zebra {
0% {
opacity: 0.4;
}
49% {
opacity: 0.4;
}
50% {
opacity: 0.9;
}
99% {
opacity: 0.9;
}
100% {
opacity: 0.4;
}
}

content: ' ';
display: block;
position: absolute;
Expand Down Expand Up @@ -404,6 +386,24 @@ $layer-types: join($layer-types-solid, $layer-types-gradient);
transparent 13px,
transparent 16px
);

@keyframes animated-zebra {
0% {
opacity: 0.4;
}
49% {
opacity: 0.4;
}
50% {
opacity: 0.9;
}
99% {
opacity: 0.9;
}
100% {
opacity: 0.4;
}
}
}
}

Expand Down
2 changes: 1 addition & 1 deletion packages/webui/src/client/styles/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ $segment-storyboard-thumbnail-height: 2.9rem;
$portrait-mode-breakpoint: 35em;

@function rem($pixels, $context: $browser-context) {
@return #{$pixels/$context}rem;
@return #{calc($pixels/$context)}rem;
}
4 changes: 2 additions & 2 deletions packages/webui/src/client/styles/notifications.scss
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,8 @@
.notifications__toggle-button__icon {
> svg {
position: absolute;
width: #{$fullscreen-controls__button--radius / 1.75};
height: #{$fullscreen-controls__button--radius / 1.75};
width: calc($fullscreen-controls__button--radius / 1.75);
height: calc($fullscreen-controls__button--radius / 1.75);
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
Expand Down
Loading

0 comments on commit a96f615

Please sign in to comment.