Skip to content

Commit 69dcc17

Browse files
authored
Resolve Sass deprecation warnings: color-functions & import (#2289)
* Fix for Sass breaking change: import https://sass-lang.com/documentation/breaking-changes/import/ * Fix for Sass breaking change: color-functions https://sass-lang.com/documentation/breaking-changes/color-functions/
1 parent 55ee366 commit 69dcc17

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

src/base/_fonts.scss

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1+
@use 'sass:meta';
2+
13
@mixin _non-variable-font-face($name, $path, $parameter) {
24
@font-face {
35
font-display: swap;
46
font-family: $name;
57
src: url('../src/assets/fonts/#{$path}/#{$parameter}.woff2') format('woff2'),
68
url('../src/assets/fonts/#{$path}/#{$parameter}.woff') format('woff');
79

8-
@if type-of($parameter) == 'number' {
10+
@if meta.type-of($parameter) == 'number' {
911
font-weight: $parameter;
1012
} @else {
1113
font-style: $parameter;

src/vendor/highlight/_theme.scss

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@
4545
.hljs-type {
4646
color: sasscolor.change(
4747
sasscolor.mix(color.$base-fuchsia-lighter, color.$base-orange-light),
48-
$saturation: sasscolor.saturation(color.$base-fuchsia-lighter)
48+
$saturation:
49+
sasscolor.channel(color.$base-fuchsia-lighter, 'saturation', $space: hsl)
4950
);
5051
}
5152

@@ -55,7 +56,8 @@
5556
.hljs-selector-pseudo {
5657
color: sasscolor.change(
5758
sasscolor.mix(color.$base-green-lighter, color.$base-blue-lighter),
58-
$saturation: sasscolor.saturation(color.$base-green-lighter)
59+
$saturation:
60+
sasscolor.channel(color.$base-green-lighter, 'saturation', $space: hsl)
5961
);
6062
}
6163

0 commit comments

Comments
 (0)