Skip to content

Commit 319d67a

Browse files
committed
Update stylelint config plugin, config settings, and fix style errors due to upgrade to Stylelint v15.0
1 parent cff24a7 commit 319d67a

31 files changed

Lines changed: 645 additions & 428 deletions

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@
9393
"remark-toc": "^9.0.0",
9494
"resend": "^6.4.0",
9595
"sharp": "^0.34.4",
96-
"stylelint-config-standard": "^39.0.1",
9796
"svg-sprite": "2.0.4",
9897
"tailwindcss": "^4.1.16",
9998
"title-case": "4.3.2",
@@ -156,6 +155,7 @@
156155
"remark-rehype": "^11.1.2",
157156
"rimraf": "6.1.0",
158157
"stylelint": "^16.25.0",
158+
"stylelint-config-standard": "^39.0.1",
159159
"stylelint-declaration-block-no-ignored-properties": "2.8.0",
160160
"stylelint-order": "7.0.0",
161161
"temp-dir": "3.0.0",

‎src/components/Brand/Logo.astro‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,11 @@ const { class: className } = Astro.props
1616
position: relative;
1717
z-index: var(--z-content-overlay);
1818
}
19+
1920
.logo-block-outer {
2021
fill: var(--color-bg-inverse);
2122
}
23+
2224
.logo-block-inner {
2325
fill: var(--color-primary);
2426
}

‎src/components/Callout/index.astro‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ const borderColor = borderColorMap[type]
5151
}
5252

5353
/* Spacing for nested elements */
54+
/* stylelint-disable-next-line selector-max-universal */
5455
.callout__content > * + * {
5556
margin-top: 2rem;
5657
}

‎src/components/Carousel/__fixtures__/client.fixture.astro‎

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@
6060

6161
<style>
6262
.embla {
63-
position: relative;
64-
max-width: 600px;
6563
margin: 0 auto;
64+
max-width: 600px;
65+
position: relative;
6666
}
6767

6868
.embla__viewport {
@@ -81,35 +81,35 @@
8181

8282
.slide-content {
8383
background: #f5f5f5;
84-
padding: 2rem;
8584
border-radius: 8px;
85+
padding: 2rem;
8686
text-align: center;
8787
}
8888

8989
.embla__button {
90-
position: absolute;
91-
top: 50%;
92-
transform: translateY(-50%);
93-
z-index: 1;
94-
background: rgba(255, 255, 255, 0.9);
90+
align-items: center;
91+
background: rgb(255 255 255 / 90%);
9592
border: 1px solid #ccc;
9693
border-radius: 50%;
97-
width: 3rem;
98-
height: 3rem;
94+
cursor: pointer;
9995
display: flex;
100-
align-items: center;
96+
height: 3rem;
10197
justify-content: center;
102-
cursor: pointer;
98+
position: absolute;
99+
top: 50%;
100+
transform: translateY(-50%);
103101
transition: opacity 0.2s ease;
102+
width: 3rem;
103+
z-index: 1;
104104
}
105105

106106
.embla__button:hover {
107107
background: white;
108108
}
109109

110110
.embla__button:disabled {
111-
opacity: 0.3;
112111
cursor: not-allowed;
112+
opacity: 0.3;
113113
}
114114

115115
.embla__button--prev {
@@ -122,19 +122,19 @@
122122

123123
.embla__dots {
124124
display: flex;
125-
justify-content: center;
126125
gap: 0.5rem;
126+
justify-content: center;
127127
margin-top: 1rem;
128128
}
129129

130130
.embla__dot {
131-
width: 0.75rem;
132-
height: 0.75rem;
133-
border-radius: 50%;
134131
background: #ccc;
135132
border: none;
133+
border-radius: 50%;
136134
cursor: pointer;
135+
height: 0.75rem;
137136
transition: background-color 0.2s ease;
137+
width: 0.75rem;
138138
}
139139

140140
.embla__dot:hover,
@@ -143,14 +143,14 @@
143143
}
144144

145145
.sr-only {
146-
position: absolute;
147-
width: 1px;
146+
border: 0;
147+
clip-path: inset(50%);
148148
height: 1px;
149-
padding: 0;
150149
margin: -1px;
151150
overflow: hidden;
152-
clip: rect(0, 0, 0, 0);
151+
padding: 0;
152+
position: absolute;
153153
white-space: nowrap;
154-
border: 0;
154+
width: 1px;
155155
}
156156
</style>

‎src/components/Footer/footer.css‎

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@
88
}
99

1010
/* Grid areas for responsive layout */
11-
@media (min-width: 640px) {
11+
@media (width >= 640px) {
1212
.footer-grid {
1313
display: grid;
1414
gap: 0.5rem 1rem;
15-
grid-template-columns: 1fr 1fr;
1615
grid-template-areas:
1716
"contact social"
1817
"contact channels"
1918
"bottom-row bottom-row"
2019
"copyright copyright";
20+
grid-template-columns: 1fr 1fr;
2121
}
2222

2323
.footer-contact { grid-area: contact; }
@@ -26,19 +26,15 @@
2626
.footer-copyright { grid-area: copyright; }
2727
}
2828

29-
@media (min-width: 1024px) {
29+
@media (width >= 1024px) {
3030
.footer-grid {
31-
grid-template-columns: 2fr 1fr 1fr;
32-
grid-template-rows: 2rem auto auto;
33-
grid-template-areas:
34-
"hire-me social bottom-row"
35-
"contact social bottom-row"
36-
"copyright copyright copyright";
31+
grid-template:
32+
"hire-me social bottom-row" 2rem "contact social bottom-row" auto "copyright copyright copyright" auto / 2fr 1fr 1fr;
3733
}
3834

3935
.footer-hire-me {
40-
grid-area: hire-me;
4136
align-self: end;
37+
grid-area: hire-me;
4238
margin-top: 2rem;
4339
}
4440

‎src/components/Forms/Download/index.astro‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -178,22 +178,22 @@ const downloadUrl = `/downloads/${fileName}`
178178

179179
<style>
180180
.download-form-wrapper {
181-
max-width: 600px;
182181
margin: 0 auto;
182+
max-width: 600px;
183183
}
184184

185185
#downloadFormStatus.success {
186-
display: block;
187186
background-color: var(--color-success-bg);
188-
color: var(--color-success-text);
189187
border: 1px solid var(--color-success-border);
188+
color: var(--color-success-text);
189+
display: block;
190190
}
191191

192192
#downloadFormStatus.error {
193-
display: block;
194193
background-color: var(--color-error-bg);
195-
color: var(--color-error-text);
196194
border: 1px solid var(--color-error-border);
195+
color: var(--color-error-text);
196+
display: block;
197197
}
198198
</style>
199199

‎src/components/GDPR/Consent/index.astro‎

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -126,28 +126,28 @@ const purposeList = purposes.map((p: keyof typeof purposeDescriptions) => purpos
126126

127127
<style>
128128
.gdpr-consent {
129-
margin: 1.5rem 0;
130-
padding: 1rem;
129+
background-color: var(--color-bg-offset);
131130
border: 1px solid var(--color-border);
132131
border-radius: 0.5rem;
133-
background-color: var(--color-bg-offset);
132+
margin: 1.5rem 0;
133+
padding: 1rem;
134134
}
135135

136136
.gdpr-consent__label {
137-
display: flex;
138137
align-items: flex-start;
139-
gap: 0.75rem;
140138
cursor: pointer;
139+
display: flex;
140+
gap: 0.75rem;
141141
}
142142

143143
.gdpr-consent__checkbox {
144+
border: 2px solid var(--color-border);
145+
border-radius: 0.25rem;
146+
cursor: pointer;
144147
flex-shrink: 0;
145-
width: 1.25rem;
146148
height: 1.25rem;
147149
margin-top: 0.125rem;
148-
cursor: pointer;
149-
border: 2px solid var(--color-border);
150-
border-radius: 0.25rem;
150+
width: 1.25rem;
151151
}
152152

153153
.gdpr-consent__checkbox:focus {
@@ -161,16 +161,16 @@ const purposeList = purposes.map((p: keyof typeof purposeDescriptions) => purpos
161161
}
162162

163163
.gdpr-consent__text {
164+
color: var(--color-text);
164165
flex: 1;
165166
font-size: 0.875rem;
166167
line-height: 1.5;
167-
color: var(--color-text);
168168
}
169169

170170
.gdpr-consent__purposes {
171+
list-style-type: disc;
171172
margin: 0.5rem 0;
172173
padding-left: 1.5rem;
173-
list-style-type: disc;
174174
}
175175

176176
.gdpr-consent__purposes li {
@@ -187,11 +187,11 @@ const purposeList = purposes.map((p: keyof typeof purposeDescriptions) => purpos
187187
}
188188

189189
.gdpr-consent__error {
190-
margin-top: 0.5rem;
191-
padding: 0.5rem;
192-
font-size: 0.875rem;
193-
color: var(--color-danger);
194190
background-color: var(--color-danger-bg);
195191
border-radius: 0.25rem;
192+
color: var(--color-danger);
193+
font-size: 0.875rem;
194+
margin-top: 0.5rem;
195+
padding: 0.5rem;
196196
}
197197
</style>

‎src/components/Header/index.astro‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,33 +17,33 @@ const { path } = Astro.props
1717
:root {
1818
--header-icon-size: calc(3.5em * 0.75);
1919
--header-icon-svg-size: calc(var(--header-icon-size) * 0.7);
20-
--circle-stroke: calc(var(--header-icon-size) * 2 * 3.141592653);
20+
--circle-stroke: calc(var(--header-icon-size) * 2 * 3.1416);
2121
}
2222

23-
@media (min-width: 640px) {
23+
@media (width >= 640px) {
2424
:root {
2525
--header-icon-size: calc(3.5em * 0.85);
2626
}
2727
}
2828

29-
@media (min-width: 1024px) {
29+
@media (width >= 1024px) {
3030
:root {
3131
--header-icon-size: calc(3.5em);
3232
}
3333
}
3434

3535
#header::after {
36+
background-color: var(--color-bg-offset);
37+
box-sizing: border-box;
3638
content: '';
3739
display: block;
38-
position: absolute;
40+
height: 100%;
3941
left: 52%;
42+
position: absolute;
4043
top: 0;
41-
height: 100%;
42-
width: 102vw;
4344
transform: translateX(-52%);
45+
width: 102vw;
4446
z-index: -1;
45-
box-sizing: border-box;
46-
background-color: var(--color-bg-offset);
4747
}
4848
</style>
4949

0 commit comments

Comments
 (0)