Skip to content

Commit 5c54688

Browse files
Fix HTML and YAML formatting inconsistencies
Fix HTML/improve formatting: convert DOCTYPE to uppercase, fix anchor and label closing tag formatting, adjust script indentation in docs.html, and standardize pnpm-lock.yaml formatting
1 parent 9127a2c commit 5c54688

File tree

6 files changed

+1746
-1465
lines changed

6 files changed

+1746
-1465
lines changed

apps/docs/docs.html

Lines changed: 23 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ <h3>Theme</h3>
4343
/>
4444
I agree to the
4545
<a href="#" onclick="event.preventDefault()"
46-
>Privacy Policy</a
47-
>
46+
>Privacy Policy</a>
4847
</label>
4948
</fieldset>
5049
</form>
@@ -136,8 +135,7 @@ <h6>Heading 6</h6>
136135
<a
137136
href="https://unsplash.com/photos/a562ZEFKW8I"
138137
target="_blank"
139-
>unsplash.com</a
140-
>
138+
>unsplash.com</a>
141139
</figcaption>
142140
</figure>
143141
</section>
@@ -172,12 +170,10 @@ <h2>Form elements</h2>
172170
<option selected value="">Select…</option>
173171
<option></option>
174172
</select>
175-
<label for="file"
176-
>File browser
173+
<label for="file">File browser
177174
<input type="file" id="file" name="file" />
178175
</label>
179-
<label for="range"
180-
>Range slider
176+
<label for="range">Range slider
181177
<input
182178
type="range"
183179
min="0"
@@ -217,16 +213,13 @@ <h2>Form elements</h2>
217213
disabled
218214
/>
219215
</label>
220-
<label for="date"
221-
>Date
216+
<label for="date">Date
222217
<input type="date" id="date" name="date" />
223218
</label>
224-
<label for="time"
225-
>Time
219+
<label for="time">Time
226220
<input type="time" id="time" name="time" />
227221
</label>
228-
<label for="color"
229-
>Color
222+
<label for="color">Color
230223
<input type="color" id="color" name="color" value="#0eaaaa" />
231224
</label>
232225
<fieldset>
@@ -500,22 +493,22 @@ <h3>Confirm your action!</h3>
500493
</footer>
501494
</dialog>
502495
<script>
503-
for (const element of document.querySelectorAll("[data-theme-switcher]")) {
504-
element.addEventListener("click", () => {
505-
document.documentElement.setAttribute(
506-
"data-theme",
507-
element.dataset.themeSwitcher,
508-
);
509-
});
510-
}
496+
for (const element of document.querySelectorAll("[data-theme-switcher]")) {
497+
element.addEventListener("click", () => {
498+
document.documentElement.setAttribute(
499+
"data-theme",
500+
element.dataset.themeSwitcher,
501+
);
502+
});
503+
}
511504

512-
for (const element of document.querySelectorAll("[data-layout-switcher]")) {
513-
element.addEventListener("click", () => {
514-
document.body.setAttribute(
515-
"data-layout",
516-
element.dataset.layoutSwitcher,
517-
);
518-
});
519-
}
505+
for (const element of document.querySelectorAll("[data-layout-switcher]")) {
506+
element.addEventListener("click", () => {
507+
document.body.setAttribute(
508+
"data-layout",
509+
element.dataset.layoutSwitcher,
510+
);
511+
});
512+
}
520513
</script>
521514
{{/base}}

apps/docs/index.html

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -12,27 +12,26 @@ <h4>
1212
<a
1313
href="https://github.com/TorstenDittmann/launch-css"
1414
target="_blank"
15-
>View on GitHub</a
16-
>
15+
>View on GitHub</a>
1716
</div>
1817
</div>
1918
</div>
2019
</main>
2120
<style>
22-
.hero {
23-
display: grid;
24-
align-items: center;
25-
min-height: 90vh;
26-
}
27-
.hero > div {
28-
display: flex;
29-
flex-direction: column;
30-
gap: 2rem;
31-
}
32-
.hero .actions {
33-
display: flex;
34-
gap: 2rem;
35-
align-items: center;
36-
}
21+
.hero {
22+
display: grid;
23+
align-items: center;
24+
min-height: 90vh;
25+
}
26+
.hero > div {
27+
display: flex;
28+
flex-direction: column;
29+
gap: 2rem;
30+
}
31+
.hero .actions {
32+
display: flex;
33+
align-items: center;
34+
gap: 2rem;
35+
}
3736
</style>
3837
{{/base}}

examples/website/blog.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!doctype html>
1+
<!DOCTYPE html>
22
<html lang="en" data-theme="dark">
33
<head>
44
<meta charset="utf-8" />

examples/website/index.html

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!doctype html>
1+
<!DOCTYPE html>
22
<html lang="en" data-theme="dark">
33
<head>
44
<meta charset="utf-8" />
@@ -114,8 +114,7 @@ <h6>Heading 6</h6>
114114
<a
115115
href="https://unsplash.com/photos/a562ZEFKW8I"
116116
target="_blank"
117-
>unsplash.com</a
118-
>
117+
>unsplash.com</a>
119118
</figcaption>
120119
</figure>
121120
</section>
@@ -143,12 +142,10 @@ <h2>Form elements</h2>
143142
<option selected value="">Select…</option>
144143
<option></option>
145144
</select>
146-
<label for="file"
147-
>File browser
145+
<label for="file">File browser
148146
<input type="file" id="file" name="file" />
149147
</label>
150-
<label for="range"
151-
>Range slider
148+
<label for="range">Range slider
152149
<input
153150
type="range"
154151
min="0"
@@ -188,16 +185,13 @@ <h2>Form elements</h2>
188185
disabled
189186
/>
190187
</label>
191-
<label for="date"
192-
>Date
188+
<label for="date">Date
193189
<input type="date" id="date" name="date" />
194190
</label>
195-
<label for="time"
196-
>Time
191+
<label for="time">Time
197192
<input type="time" id="time" name="time" />
198193
</label>
199-
<label for="color"
200-
>Color
194+
<label for="color">Color
201195
<input
202196
type="color"
203197
id="color"

examples/website/post.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!doctype html>
1+
<!DOCTYPE html>
22
<html lang="en" data-theme="dark">
33
<head>
44
<meta charset="utf-8" />

0 commit comments

Comments
 (0)