Skip to content

Commit 90fb8e8

Browse files
authored
Merge pull request Sofie-Automation#1339 from nrkno/chore/deprecated-sass
Fix scss deprecation warnings
2 parents a668b44 + a96f615 commit 90fb8e8

File tree

12 files changed

+189
-178
lines changed

12 files changed

+189
-178
lines changed

packages/webui/src/client/styles/_itemTypeColors.scss

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -359,24 +359,6 @@ $layer-types: join($layer-types-solid, $layer-types-gradient);
359359
&.source-unknown-state,
360360
&.source-not-ready {
361361
&::before {
362-
@keyframes animated-zebra {
363-
0% {
364-
opacity: 0.4;
365-
}
366-
49% {
367-
opacity: 0.4;
368-
}
369-
50% {
370-
opacity: 0.9;
371-
}
372-
99% {
373-
opacity: 0.9;
374-
}
375-
100% {
376-
opacity: 0.4;
377-
}
378-
}
379-
380362
content: ' ';
381363
display: block;
382364
position: absolute;
@@ -404,6 +386,24 @@ $layer-types: join($layer-types-solid, $layer-types-gradient);
404386
transparent 13px,
405387
transparent 16px
406388
);
389+
390+
@keyframes animated-zebra {
391+
0% {
392+
opacity: 0.4;
393+
}
394+
49% {
395+
opacity: 0.4;
396+
}
397+
50% {
398+
opacity: 0.9;
399+
}
400+
99% {
401+
opacity: 0.9;
402+
}
403+
100% {
404+
opacity: 0.4;
405+
}
406+
}
407407
}
408408
}
409409

packages/webui/src/client/styles/_variables.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@ $segment-storyboard-thumbnail-height: 2.9rem;
2727
$portrait-mode-breakpoint: 35em;
2828

2929
@function rem($pixels, $context: $browser-context) {
30-
@return #{$pixels/$context}rem;
30+
@return #{calc($pixels/$context)}rem;
3131
}

packages/webui/src/client/styles/notifications.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,8 @@
216216
.notifications__toggle-button__icon {
217217
> svg {
218218
position: absolute;
219-
width: #{$fullscreen-controls__button--radius / 1.75};
220-
height: #{$fullscreen-controls__button--radius / 1.75};
219+
width: calc($fullscreen-controls__button--radius / 1.75);
220+
height: calc($fullscreen-controls__button--radius / 1.75);
221221
top: 50%;
222222
left: 50%;
223223
transform: translate(-50%, -50%);

0 commit comments

Comments
 (0)