Skip to content

Commit b2e4857

Browse files
authored
Format all SCSS, Markdown, yaml, HTML files (#12609)
Auto-format all SCSS, Markdown, yaml, HTML files, using the default VS Code formatter and default formatting options, per #12501 (comment). Closes #12498
1 parent b13242d commit b2e4857

File tree

289 files changed

+1758
-1720
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

289 files changed

+1758
-1720
lines changed

examples/app-architecture/todo_data_service/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ dev_dependencies:
2323
json_serializable: ^6.10.0
2424

2525
flutter:
26-
uses-material-design: true
26+
uses-material-design: true

examples/cookbook/effects/staggered_menu_animation/pubspec.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,3 @@ dev_dependencies:
2020

2121
flutter:
2222
uses-material-design: true
23-
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
11
include: ../../../analysis_options.yaml
2-
3-

examples/tools/pubspec.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,3 @@ dev_dependencies:
2020

2121
flutter:
2222
uses-material-design: true
23-
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
# adaptive_app_demos
22

33
This project contains demo code for adaptive app development techniques from
4-
https://github.com/gskinnerTeam/flutter-adaptive-demo.
4+
https://github.com/gskinnerTeam/flutter-adaptive-demo.
55

66
Additional example code in this project was moved from
77
code snippets originally seen in
88
[Building adaptive apps](https://docs.flutter.dev/ui/layout/responsive/building-adaptive-apps)
99
to ensure analysis in the flutter.dev CI pipeline.
1010
These snippets were intended to illustrate concepts and may
1111
therefore not be fully integrated/a functional part of the original demo code.
12-

prompts/llmstxt_instructions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,4 @@ If I encounter an error while performing an operation (for example, a tool fails
6060

6161
---
6262

63-
By following these instructions, I will help keep the `llms.txt` file accurate and up-to-date.
63+
By following these instructions, I will help keep the `llms.txt` file accurate and up-to-date.

site/lib/_sass/base/_base.scss

Lines changed: 44 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ body {
1414

1515
// If the TOC is disabled, reduce the subheader height to
1616
// ensure offset calculations are still correct.
17-
&[data-toc="false"], &.no-toc {
17+
&[data-toc="false"],
18+
&.no-toc {
1819
--site-subheader-height: 0rem;
1920
}
2021
}
@@ -65,10 +66,10 @@ picture {
6566
.material-symbols {
6667
font-family: var(--site-icon-fontFamily);
6768
font-variation-settings:
68-
'FILL' 0,
69-
'wght' 400,
70-
'GRAD' 0,
71-
'opsz' 24;
69+
'FILL' 0,
70+
'wght' 400,
71+
'GRAD' 0,
72+
'opsz' 24;
7273

7374
font-weight: normal;
7475
font-style: normal;
@@ -100,7 +101,9 @@ picture {
100101
max-width: 320px;
101102
}
102103

103-
&--border { border: 1px solid var(--site-inset-borderColor); }
104+
&--border {
105+
border: 1px solid var(--site-inset-borderColor);
106+
}
104107
}
105108

106109
.site-image-right {
@@ -157,16 +160,16 @@ main figure {
157160
flex-direction: row;
158161
flex-wrap: wrap;
159162

160-
> div {
161-
width: 100%;
163+
>div {
164+
width: 100%;
162165

163166
&:last-child {
164167
text-align: center;
165168
}
166169
}
167170

168171
@media(min-width: 769px) {
169-
> div {
172+
>div {
170173
&:first-child {
171174
flex: 0 0 58%;
172175
max-width: 58%;
@@ -203,7 +206,9 @@ main figure {
203206
}
204207

205208
table {
206-
td, th {
209+
210+
td,
211+
th {
207212
padding: .25rem;
208213
}
209214
}
@@ -232,7 +237,8 @@ table {
232237
}
233238
}
234239

235-
td, th {
240+
td,
241+
th {
236242
border-top: 1px solid var(--site-inset-borderColor);
237243
padding: .75rem;
238244
}
@@ -244,7 +250,8 @@ thead:has(th:empty) {
244250
display: none;
245251
}
246252

247-
.table-wrapper, .scrollable-table {
253+
.table-wrapper,
254+
.scrollable-table {
248255
overflow-x: auto;
249256
margin-block-start: 1rem;
250257
margin-block-end: 1rem;
@@ -274,7 +281,7 @@ blockquote {
274281
details {
275282
margin-bottom: 0.75rem;
276283

277-
> summary {
284+
>summary {
278285
font-weight: 500;
279286
user-select: none;
280287
border-radius: 0.125rem;
@@ -288,7 +295,7 @@ details {
288295
&[open] {
289296
margin-bottom: unset;
290297

291-
> summary {
298+
>summary {
292299
margin-bottom: 0.75rem;
293300
}
294301
}
@@ -315,7 +322,7 @@ ol.steps {
315322
$step-indicator-height: 1.75rem;
316323

317324
li {
318-
> * {
325+
>* {
319326
&:first-child {
320327
margin-block-start: 0;
321328
}
@@ -330,22 +337,23 @@ ol.steps {
330337
}
331338
}
332339

333-
ul > li {
340+
ul>li {
334341
&:not(:last-child) {
335342
padding-block-end: .5rem;
336343
}
337344
}
338345

339-
> li {
346+
>li {
340347
position: relative;
341348
counter-increment: steps;
342349

343-
ol, ul {
350+
ol,
351+
ul {
344352
padding-inline-start: 2rem;
345353
margin-block-end: 0.75rem;
346354
}
347355

348-
> h3:first-child {
356+
>h3:first-child {
349357
display: flex;
350358
align-items: center;
351359
height: $step-indicator-height;
@@ -397,18 +405,25 @@ ol.steps {
397405
}
398406

399407
main {
400-
ol + img, ul + img, ol + p, ul + p, p + p + img {
408+
409+
ol+img,
410+
ul+img,
411+
ol+p,
412+
ul+p,
413+
p+p+img {
401414
margin-bottom: 1rem;
402415
}
403416

404417
td {
405-
> *:last-child {
418+
>*:last-child {
406419
margin-bottom: 0;
407420
}
408421
}
409422
}
410423

411-
p + ul, p + ol, p + dl {
424+
p+ul,
425+
p+ol,
426+
p+dl {
412427
margin-block-start: 0.75rem;
413428
margin-block-end: 0.75rem;
414429
}
@@ -421,6 +436,7 @@ p + ul, p + ol, p + dl {
421436

422437
.card-os-bug {
423438
position: relative;
439+
424440
&::before {
425441
content: "";
426442
position: absolute;
@@ -432,33 +448,38 @@ p + ul, p + ol, p + dl {
432448
background-size: contain;
433449
background-color: transparent;
434450
background-repeat: no-repeat;
435-
z-index: var(--site-z-floating); /* Place in front of card */
451+
z-index: var(--site-z-floating);
452+
/* Place in front of card */
436453
}
437454
}
438455

439456
.card-macos {
440457
@extend .card-os-bug;
458+
441459
&::before {
442460
background-image: url("/assets/images/docs/brand-svg/macos-bug.svg");
443461
}
444462
}
445463

446464
.card-windows {
447465
@extend .card-os-bug;
466+
448467
&::before {
449468
background-image: url("/assets/images/docs/brand-svg/windows-bug.svg");
450469
}
451470
}
452471

453472
.card-linux {
454473
@extend .card-os-bug;
474+
455475
&::before {
456476
background-image: url("/assets/images/docs/brand-svg/linux.svg");
457477
}
458478
}
459479

460480
.card-chromeos {
461481
@extend .card-os-bug;
482+
462483
&::before {
463484
background-image: url("/assets/images/docs/brand-svg/chromeos.svg");
464485
}

site/lib/_sass/base/_print-overrides.scss

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,18 @@
11
// Overrides for printing so only page content is printed
22
@media print {
3+
34
// Ignore navigation elements and other non-necessary interactive ones
4-
#site-header, .subnav, .site-footer, #sidenav, .navbar,
5-
#site-toc--side, #page-github-links, #cookie-notice, .site-banner,
6-
.code-excerpt__copy-btn, .breadcrumb {
5+
#site-header,
6+
.subnav,
7+
.site-footer,
8+
#sidenav,
9+
.navbar,
10+
#site-toc--side,
11+
#page-github-links,
12+
#cookie-notice,
13+
.site-banner,
14+
.code-excerpt__copy-btn,
15+
.breadcrumb {
716
display: none !important;
817
}
918

@@ -27,7 +36,8 @@
2736
}
2837

2938
// Show borders around notes and code blocks
30-
.alert, pre {
39+
.alert,
40+
pre {
3141
border: 1px solid black;
3242
}
3343
}

site/lib/_sass/base/_reset.scss

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,22 @@
1-
*, ::before, ::after {
1+
*,
2+
::before,
3+
::after {
24
box-sizing: border-box;
35
border-width: 0;
46
}
57

6-
html, body {
8+
html,
9+
body {
710
padding: 0;
811
margin: 0;
912
-webkit-text-size-adjust: none;
1013
text-size-adjust: none;
1114
}
1215

13-
button, input, select, textarea {
16+
button,
17+
input,
18+
select,
19+
textarea {
1420
font-family: inherit;
1521
font-feature-settings: inherit;
1622
font-variation-settings: inherit;

site/lib/_sass/base/_root.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,8 @@ body {
161161
--site-alert-warning-color: #cea11f;
162162
--site-alert-error-color: #ff5d5d;
163163

164-
.opal, .opal span {
164+
.opal,
165+
.opal span {
165166
color: var(--opal-dark-color) !important;
166167
font-style: var(--opal-dark-font-style) !important;
167168
font-weight: var(--opal-dark-font-weight) !important;

0 commit comments

Comments
 (0)