Skip to content

Commit d8c3eb1

Browse files
committed
Update stylelint to v16
1 parent 6bc1b63 commit d8c3eb1

File tree

3 files changed

+50
-46
lines changed

3 files changed

+50
-46
lines changed

examples/src/scss/_cayman.scss

Lines changed: 45 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// stylelint-disable value-keyword-case
2-
31
// Breakpoints
42
$large-breakpoint: 64em;
53
$medium-breakpoint: 42em;
@@ -10,14 +8,16 @@ $header-bg-color: #159957 !default;
108
$header-bg-color-secondary: #155799 !default;
119

1210
// Text
13-
$font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif !default;
11+
$font-family: // stylelint-disable-line scss/dollar-variable-colon-space-after
12+
"Open Sans", "Helvetica Neue", "Helvetica", "Arial", sans-serif !default;
1413
$section-headings-color: #159957 !default;
1514
$body-text-color: #606c71 !default;
1615
$body-link-color: #1e6bb8 !default;
1716
$blockquote-text-color: #819198 !default;
1817

1918
// Code
20-
$font-family-code: Consolas, "Liberation Mono", Menlo, Courier, monospace !default;
19+
$font-family-code: // stylelint-disable-line scss/dollar-variable-colon-space-after
20+
"Consolas", "Liberation Mono", "Menlo", "Courier", monospace !default;
2121
$code-bg-color: #f3f6fa !default;
2222
$code-text-color: #567482 !default;
2323

@@ -67,13 +67,31 @@ a {
6767
}
6868

6969
.btn {
70+
display: inline-block;
71+
margin-bottom: 1rem;
72+
color: rgba(255, 255, 255, 0.7);
73+
background-color: rgba(255, 255, 255, 0.08);
74+
border-color: rgba(255, 255, 255, 0.2);
75+
border-style: solid;
76+
border-width: 1px;
77+
border-radius: 0.3rem;
78+
transition: color 0.2s, background-color 0.2s, border-color 0.2s;
79+
7080
@include large {
7181
padding: 0.75rem 1rem;
82+
83+
+ .btn {
84+
margin-left: 1rem;
85+
}
7286
}
7387

7488
@include medium {
7589
padding: 0.6rem 0.9rem;
7690
font-size: 0.9rem;
91+
92+
+ .btn {
93+
margin-left: 1rem;
94+
}
7795
}
7896

7997
@include small {
@@ -88,31 +106,26 @@ a {
88106
}
89107
}
90108

91-
display: inline-block;
92-
margin-bottom: 1rem;
93-
color: rgba(255, 255, 255, 0.7);
94-
background-color: rgba(255, 255, 255, 0.08);
95-
border-color: rgba(255, 255, 255, 0.2);
96-
border-style: solid;
97-
border-width: 1px;
98-
border-radius: 0.3rem;
99-
transition: color 0.2s, background-color 0.2s, border-color 0.2s;
100-
101109
&:hover {
102110
color: rgba(255, 255, 255, 0.8);
103111
text-decoration: none;
104112
background-color: rgba(255, 255, 255, 0.2);
105113
border-color: rgba(255, 255, 255, 0.3);
106114
}
107-
108-
+ .btn {
109-
margin-left: 1rem;
110-
}
111115
}
112116

113117
.page-header {
118+
color: $header-heading-color;
119+
text-align: center;
120+
background-color: $header-bg-color;
121+
background-image: linear-gradient(
122+
120deg,
123+
$header-bg-color-secondary,
124+
$header-bg-color
125+
);
126+
114127
@include large {
115-
padding: 5rem 6rem;
128+
padding: 3rem 4rem;
116129
}
117130

118131
@include medium {
@@ -122,18 +135,12 @@ a {
122135
@include small {
123136
padding: 2rem 1rem;
124137
}
125-
126-
color: $header-heading-color;
127-
text-align: center;
128-
background-color: $header-bg-color;
129-
background-image: linear-gradient(
130-
120deg,
131-
$header-bg-color-secondary,
132-
$header-bg-color
133-
);
134138
}
135139

136140
.project-name {
141+
margin-top: 0;
142+
margin-bottom: 0.1rem;
143+
137144
@include large {
138145
font-size: 3.25rem;
139146
}
@@ -145,12 +152,13 @@ a {
145152
@include small {
146153
font-size: 1.75rem;
147154
}
148-
149-
margin-top: 0;
150-
margin-bottom: 0.1rem;
151155
}
152156

153157
.project-tagline {
158+
margin-bottom: 2rem;
159+
font-weight: normal;
160+
opacity: 0.7;
161+
154162
@include large {
155163
font-size: 1.25rem;
156164
}
@@ -162,13 +170,11 @@ a {
162170
@include small {
163171
font-size: 1rem;
164172
}
165-
166-
margin-bottom: 2rem;
167-
font-weight: normal;
168-
opacity: 0.7;
169173
}
170174

171175
.main-content {
176+
word-wrap: break-word;
177+
172178
@include large {
173179
max-width: 64rem;
174180
padding: 2rem 6rem;
@@ -186,8 +192,6 @@ a {
186192
font-size: 1rem;
187193
}
188194

189-
word-wrap: break-word;
190-
191195
:first-child {
192196
margin-top: 0;
193197
}
@@ -344,6 +348,10 @@ a {
344348
}
345349

346350
.site-footer {
351+
padding-top: 2rem;
352+
margin-top: 2rem;
353+
border-top: solid 1px $hr-border-color;
354+
347355
@include large {
348356
font-size: 1rem;
349357
}
@@ -355,10 +363,6 @@ a {
355363
@include small {
356364
font-size: 0.9rem;
357365
}
358-
359-
padding-top: 2rem;
360-
margin-top: 2rem;
361-
border-top: solid 1px $hr-border-color;
362366
}
363367

364368
.site-footer-owner {

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@
9191
"react-dom": "^18.2.0",
9292
"sass": "^1.58.2",
9393
"sass-loader": "^16.0.5",
94-
"stylelint": "^15.1.0",
95-
"stylelint-config-takiyon": "^3.0.0",
94+
"stylelint": "^16.24.0",
95+
"stylelint-config-takiyon": "^6.0.0",
9696
"webpack": "^5.3.2",
9797
"webpack-cli": "^6.0.1",
9898
"webpack-dev-server": "^5.2.2"

src/scss/react-checkbox-tree.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ $rct-outline-offset: -2px !default;
3333
button,
3434
input {
3535
&:focus {
36-
border-radius: $rct-outline-radius;
3736
outline: $rct-outline-size solid $rct-outline-color;
37+
border-radius: $rct-outline-radius;
3838
}
3939

4040
&:not(:focus-visible) {
@@ -92,9 +92,9 @@ $rct-outline-offset: -2px !default;
9292
// Show focus effect on pseudo-checkbox
9393
&:focus {
9494
+ .rct-checkbox {
95-
border-radius: $rct-outline-radius;
9695
outline: $rct-outline-size solid $rct-outline-color;
9796
outline-offset: $rct-outline-offset;
97+
border-radius: $rct-outline-radius;
9898
}
9999

100100
&:not(:focus-visible) + .rct-checkbox {
@@ -196,8 +196,8 @@ $rct-outline-offset: -2px !default;
196196
}
197197

198198
&:focus {
199-
background: $rct-clickable-focus;
200199
outline: 0;
200+
background: $rct-clickable-focus;
201201
}
202202
}
203203

0 commit comments

Comments
 (0)