Skip to content

Commit fb32072

Browse files
committed
Replace deprecated @import at-rule with @use at-rule
1 parent e859c62 commit fb32072

10 files changed

Lines changed: 25 additions & 14 deletions

File tree

css/checka11y.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scss/_button.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@use "./variables" as *;
2+
13
.button {
24
background-color: $orange;
35
color: #fff;

scss/_code.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@use "./variables" as *;
2+
13
.code {
24
background-color: fade-out(#fafafa, 0.5);
35
color: $orange;

scss/_footer.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@use "./variables" as *;
2+
13
.footer {
24
align-items: center;
35
display: flex;

scss/_global.scss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
$blue: #1e80ff;
2-
$orange: #ff5100;
1+
@use "./variables" as *;
32

43
::selection {
54
background-color: mix($blue, #fff, 80%);

scss/_header.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@use "./variables" as *;
2+
13
.header {
24
align-items: center;
35
display: flex;

scss/_link.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@use "./variables" as *;
2+
13
.link {
24
color: $blue;
35
font-weight: 700;

scss/_variables.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
$blue: #1e80ff;
2+
$orange: #ff5100;

scss/checka11y.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
@import "../node_modules/checka11y-css/src/checka11y";
1+
@use "../node_modules/checka11y-css/src/checka11y" as *;

scss/docs.scss

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
@import "../node_modules/normalize.css/normalize";
2-
@import "./global";
3-
@import "./button";
4-
@import "./header";
5-
@import "./footer";
6-
@import "./link";
7-
@import "./buy-me-a-coffee";
8-
@import "./helpers";
9-
@import "./sections";
10-
@import "./code";
1+
@use "../node_modules/normalize.css/normalize" as *;
2+
@use "./global" as *;
3+
@use "./button" as *;
4+
@use "./header" as *;
5+
@use "./footer" as *;
6+
@use "./link" as *;
7+
@use "./buy-me-a-coffee" as *;
8+
@use "./helpers" as *;
9+
@use "./sections" as *;
10+
@use "./code" as *;
1111

1212
.main {
1313
display: flex;

0 commit comments

Comments
 (0)