Skip to content

Commit 9eb6746

Browse files
committed
fix: migrate scss
1 parent 863a6c4 commit 9eb6746

File tree

3 files changed

+16
-12
lines changed

3 files changed

+16
-12
lines changed

src/css/_header.scss

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@use "base/variables";
2+
13
.app-header {
24
display: grid;
35
grid-template-columns: var(--width-aside) 1fr;
@@ -130,6 +132,6 @@
130132
display: flex;
131133
align-items: center;
132134
font-size: 1.5rem;
133-
font-family: $ff-mono;
135+
font-family: variables.$ff-mono;
134136
word-break: break-word;
135137
}

src/css/_result.scss

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@use "base/variables";
2+
13
.results__row {
24
margin: var(--space-s) 0;
35
padding: 0 0 var(--space-s) 0;
@@ -70,7 +72,7 @@
7072
}
7173

7274
.results__field__value {
73-
font-family: $ff-mono;
75+
font-family: variables.$ff-mono;
7476
padding: .5rem;
7577
max-height: 300px;
7678
overflow-y: auto;

src/css/main.scss

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
@import 'base/variables';
2-
@import 'header';
3-
@import 'nav';
4-
@import 'param';
5-
@import 'result';
6-
@import 'form';
7-
@import 'form--select';
1+
@use 'base/variables';
2+
@use 'header';
3+
@use 'nav';
4+
@use 'param';
5+
@use 'result';
6+
@use 'form';
7+
@use 'form--select';
88

99
html, body {
1010
margin: 0;
1111
padding: 0;
1212
}
1313
body {
1414
font-size: 18px;
15-
font-family: $ff-default;
15+
font-family: variables.$ff-default;
1616
color: var(--color-text);
1717
}
1818

@@ -121,7 +121,7 @@ li {
121121
}
122122

123123
.link__text--machine {
124-
font-family: $ff-mono;
124+
font-family: variables.$ff-mono;
125125
}
126126

127127
.link__toggle {
@@ -251,5 +251,5 @@ pre {
251251
font-weight: 700;
252252
}
253253
.title--machine {
254-
font-family: $ff-mono;
254+
font-family: variables.$ff-mono;
255255
}

0 commit comments

Comments
 (0)