Skip to content

Commit 6bea5b0

Browse files
committed
Update SASS deprecations
1 parent abf50d8 commit 6bea5b0

File tree

6 files changed

+28
-15
lines changed

6 files changed

+28
-15
lines changed

sass/base/_base.scss

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
@use "../base/variables" as *;
2+
@use "sass:color";
3+
14
html {
25
box-sizing: border-box;
36
}
@@ -64,7 +67,7 @@ h5 {
6467
}
6568

6669
&:hover {
67-
background-color: darken($purple, 15%);
70+
background-color: color.adjust($purple, $lightness: -15%);
6871
}
6972

7073
&.hidden {
@@ -77,7 +80,7 @@ h5 {
7780
background-color: $gray;
7881

7982
&:hover {
80-
background-color: darken($gray, 15%);
83+
background-color: color.adjust($gray, $lightness: -15%);
8184
}
8285
}
8386

sass/layout/_grid.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@use "../base/variables" as *;
2+
13
.container {
24
width: 100%;
35
margin: 0 auto;

sass/layout/_header.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
@use "../base/variables" as *;
2+
@use "../base/mixins" as *;
3+
14
#site-header {
25
display: grid;
36
grid-template-rows: 1fr 3px;

sass/layout/_header_mobile.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@use "../base/variables" as *;
2+
13
#mobile-header {
24
display: none;
35
background-color: #333;

sass/layout/_layout.scss

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
@use "../base/variables" as *;
2+
@use "sass:color";
3+
14
.layout {
25
height: 100vh;
36
height: calc(var(--vh, 1vh) * 100);
@@ -170,7 +173,7 @@
170173
background-color: $gray;
171174

172175
&:hover {
173-
background-color: darken($gray, 15%);
176+
background-color: color.adjust($gray, $lightness: -15%);
174177
}
175178

176179
&.active {

sass/style.scss

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

3-
@import '/node_modules/@fortawesome/fontawesome-free/css/all.min.css';
4-
@import '/node_modules/@xterm/xterm/css/xterm.css';
3+
@use '/node_modules/@fortawesome/fontawesome-free/css/all.min.css';
4+
@use '/node_modules/@xterm/xterm/css/xterm.css';
55

6-
@import './vendors/normalize';
6+
@use 'vendors/normalize';
77

8-
@import './base/variables';
9-
@import './base/typography';
10-
@import './base/mixins';
11-
@import './base/base';
8+
@use 'base/variables';
9+
@use 'base/typography';
10+
@use 'base/mixins';
11+
@use 'base/base';
1212

13-
@import './layout/layout';
14-
@import './layout/grid';
15-
@import './layout/editor';
16-
@import './layout/header';
17-
@import './layout/header_mobile';
13+
@use 'layout/layout';
14+
@use 'layout/grid';
15+
@use 'layout/editor';
16+
@use 'layout/header';
17+
@use 'layout/header_mobile';

0 commit comments

Comments
 (0)