Skip to content

Commit 2074190

Browse files
Address Sass '@import' deprecation warnings
Deprecation warnings: - Deprecation Warning [import]: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0. More info and automated migrator: https://sass-lang.com/d/import Migrate to use of '@use', '@forward', and '@include' instead Signed-off-by: David Chamberlain <[email protected]>
1 parent 519c8ee commit 2074190

File tree

6 files changed

+19
-7
lines changed

6 files changed

+19
-7
lines changed

_sass/minima.scss

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
@charset "utf-8";
22

33
// Import partials.
4-
@import
5-
"minima/common",
6-
"minima/base",
7-
"minima/layout",
8-
"minima/syntax-highlighting"
9-
;
4+
@use "minima/base" as *;
5+
@use "minima/layout" as *;
6+
@use "minima/syntax-highlighting" as *;

_sass/minima/_base.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
@charset "utf-8";
2+
3+
@use "common" as *;
4+
15
/**
26
* Reset some basic elements
37
*/

_sass/minima/_common.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@charset "utf-8";
2+
13
// Define defaults for each variable.
24

35
$base-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol" !default;

_sass/minima/_layout.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
@charset "utf-8";
2+
3+
@use "common" as *;
4+
@use "base" as *;
5+
16
/**
27
* Site header
38
*/

_sass/minima/_syntax-highlighting.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
@charset "utf-8";
2+
3+
@use "base" as *;
4+
15
/**
26
* Syntax highlighting styles
37
*/

assets/main.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
# Only the main Sass file needs front matter (the dashes are enough)
33
---
44

5-
@import "minima";
5+
@forward "minima";

0 commit comments

Comments
 (0)