Skip to content

Commit d3da84b

Browse files
committed
Fix stylelint errors
Signed-off-by: Sora Morimoto <[email protected]>
1 parent 01d4bb1 commit d3da84b

File tree

3 files changed

+30
-25
lines changed

3 files changed

+30
-25
lines changed

Diff for: .stylelintrc.json

+8-16
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,14 @@
11
{
2-
"extends": [
3-
"stylelint-config-standard",
4-
"stylelint-config-prettier"
5-
],
6-
"plugins": [
7-
"stylelint-order"
8-
],
2+
"extends": ["stylelint-config-standard", "stylelint-config-prettier"],
3+
"plugins": ["stylelint-order"],
94
"rules": {
105
"at-rule-empty-line-before": null,
11-
"at-rule-no-unknown": [true, {
12-
"ignoreAtRules": [
13-
"else",
14-
"extends",
15-
"if",
16-
"include",
17-
"mixin"
18-
]
19-
}],
6+
"at-rule-no-unknown": [
7+
true,
8+
{
9+
"ignoreAtRules": ["else", "extends", "if", "include", "mixin", "use"]
10+
}
11+
],
2012
"declaration-empty-line-before": null,
2113
"order/properties-alphabetical-order": true
2214
}

Diff for: _sass/_grid.scss

+18-7
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,44 @@
1+
@use 'sass:math';
2+
13
.intro {
2-
margin: 0 ($grid-gutter / -2) (2 * $grid-gutter);
3-
[class*="g-col-"] {
4-
padding: 0 $grid-gutter / 2;
4+
margin: 0 math.div($grid-gutter, -2) (2 * $grid-gutter);
5+
6+
[class*='g-col-'] {
7+
padding: 0 math.div($grid-gutter, 2);
58
}
69
}
10+
711
.g-row {
812
@media (min-width: $bp-tablet) {
913
display: flex;
1014
flex-direction: row;
15+
1116
.flex-grow {
1217
flex-grow: 1;
1318
}
19+
1420
.flex-shrink {
1521
flex-shrink: 1;
1622
}
23+
1724
.g-col-2 {
1825
flex: 0 0 200px;
1926
}
27+
2028
.g-col-3 {
21-
flex: 0 0 percentage(3/12);
29+
flex: 0 0 percentage(math.div(3, 12));
2230
}
31+
2332
.g-col-4 {
24-
flex: 0 0 percentage(4/12);
33+
flex: 0 0 percentage(math.div(4, 12));
2534
}
35+
2636
.g-col-8 {
27-
flex: 0 0 percentage(8/12);
37+
flex: 0 0 percentage(math.div(8, 12));
2838
}
39+
2940
.g-col-10 {
30-
flex: 0 0 percentage(10/12);
41+
flex: 0 0 percentage(math.div(10, 12));
3142
flex-grow: 2;
3243
}
3344
}

Diff for: _sass/_layout.scss

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@use 'sass:math';
2+
13
*,
24
*::before,
35
*::after {
@@ -10,7 +12,7 @@ html {
1012

1113
body {
1214
background: $color-bg;
13-
font-family: "Open Sans", sans-serif;
15+
font-family: 'Open Sans', sans-serif;
1416
font-size: 16px;
1517
font-weight: $font-weight-regular;
1618
line-height: 1.5;
@@ -21,7 +23,7 @@ body {
2123
.container {
2224
margin: 0 auto;
2325
max-width: 1280px;
24-
padding: 0 ($grid-gutter / 2);
26+
padding: 0 math.div($grid-gutter, 2);
2527
width: 100%;
2628
}
2729

0 commit comments

Comments
 (0)