Skip to content

Commit 570f55b

Browse files
colinrotherhamowenatgov
authored andcommitted
Run stylelint --fix
1 parent c368ccf commit 570f55b

File tree

35 files changed

+138
-61
lines changed

35 files changed

+138
-61
lines changed

packages/govuk-frontend-review/src/stylesheets/full-page-examples/campaign-page.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959

6060
.app-danger-box {
6161
padding: govuk-spacing(6) govuk-spacing(5);
62+
6263
border-left: solid #fff500;
6364
border-width: 0 0 0 10px;
6465
border-image: repeating-linear-gradient(
@@ -70,6 +71,7 @@
7071
transparent 20px
7172
)
7273
25;
74+
7375
color: govuk-colour("white");
7476
background-color: #272828;
7577
}

packages/govuk-frontend-review/src/stylesheets/partials/_code.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,15 @@
66

77
.app-code__container {
88
display: block;
9+
910
margin: 0;
1011
padding: govuk-spacing(4);
12+
1113
overflow-x: auto;
14+
1215
border: $govuk-focus-width solid transparent;
1316
outline: 1px solid transparent;
17+
1418
background-color: govuk-colour("black", $variant: "tint-95");
1519
@include govuk-responsive-margin(4, "bottom");
1620

packages/govuk-frontend/src/govuk/components/accordion/_index.scss

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@
8787
background: none;
8888

8989
cursor: pointer;
90+
9091
-webkit-appearance: none;
9192

9293
@media #{govuk-from-breakpoint(tablet)} {
@@ -143,6 +144,7 @@
143144
// Create Chevron icon aligned with text
144145
.govuk-accordion-nav__chevron {
145146
box-sizing: border-box;
147+
146148
display: inline-block;
147149

148150
position: relative;
@@ -159,7 +161,9 @@
159161
// Create inner chevron arrow
160162
&::after {
161163
content: "";
164+
162165
box-sizing: border-box;
166+
163167
display: block;
164168

165169
position: absolute;
@@ -201,6 +205,7 @@
201205
text-align: left;
202206
// Section headers have a pointer cursor as an additional affordance
203207
cursor: pointer;
208+
204209
-webkit-appearance: none;
205210

206211
@media #{govuk-from-breakpoint(tablet)} {
@@ -356,7 +361,6 @@
356361
@media (hover: none) {
357362
.govuk-accordion__section-header:hover {
358363
border-top-color: govuk-functional-colour(border);
359-
360364
box-shadow: inset 0 3px 0 0 govuk-functional-colour(link);
361365

362366
.govuk-accordion__section-button {

packages/govuk-frontend/src/govuk/components/back-link/_index.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919

2020
display: inline-block;
2121
position: relative;
22-
2322
margin-top: govuk-spacing(3);
2423
margin-bottom: govuk-spacing(3);
2524

@@ -30,6 +29,7 @@
3029
// Prepend left pointing chevron
3130
.govuk-back-link::before {
3231
content: "";
32+
3333
display: block;
3434

3535
// Vertically align with the parent element
@@ -64,6 +64,7 @@
6464

6565
.govuk-back-link::after {
6666
content: "";
67+
6768
position: absolute;
6869
top: -14px;
6970
right: 0;

packages/govuk-frontend/src/govuk/components/breadcrumbs/_index.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636

3737
.govuk-breadcrumbs__list-item {
3838
display: inline-block;
39+
3940
position: relative;
4041

4142
margin-bottom: govuk-spacing(1);
@@ -50,6 +51,7 @@
5051
// Create a chevron using a box with borders on two sides, rotated 45deg.
5152
&::before {
5253
content: "";
54+
5355
display: block;
5456

5557
position: absolute;

packages/govuk-frontend/src/govuk/components/button/_index.scss

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -63,23 +63,31 @@ $govuk-inverse-button-text-colour: govuk-functional-colour(brand) !default;
6363
@include govuk-font($size: 19, $line-height: 19px);
6464

6565
box-sizing: border-box;
66+
6667
display: inline-block;
68+
6769
position: relative;
70+
6871
width: 100%;
6972
margin-top: 0;
7073
margin-right: 0;
7174
margin-left: 0;
7275
@include govuk-responsive-margin(6, "bottom", $adjustment: $button-shadow-size); // s2
7376
padding: (govuk-spacing(2) - $govuk-border-width-form-element) govuk-spacing(2)
7477
(govuk-spacing(2) - $govuk-border-width-form-element - ($button-shadow-size / 2)); // s1
78+
7579
border: $govuk-border-width-form-element solid transparent;
7680
border-radius: 0;
81+
7782
color: $govuk-button-text-colour;
7883
background-color: $govuk-button-colour;
7984
box-shadow: 0 $button-shadow-size 0 $govuk-button-shadow-colour; // s0
85+
8086
text-align: center;
8187
vertical-align: top;
88+
8289
cursor: pointer;
90+
8391
-webkit-appearance: none;
8492

8593
@media #{govuk-from-breakpoint(tablet)} {
@@ -127,6 +135,7 @@ $govuk-inverse-button-text-colour: govuk-functional-colour(brand) !default;
127135
// button's shadow as well, in case users try to click it.
128136
&::before {
129137
content: "";
138+
130139
display: block;
131140

132141
position: absolute;
@@ -236,22 +245,21 @@ $govuk-inverse-button-text-colour: govuk-functional-colour(brand) !default;
236245
@include govuk-font-size($size: 24, $line-height: 1);
237246

238247
display: inline-flex;
239-
min-height: auto;
240-
241248
justify-content: center;
249+
min-height: auto;
242250
}
243251

244252
.govuk-button__start-icon {
245-
margin-left: govuk-spacing(1);
246-
247-
@media #{govuk-from-breakpoint(desktop)} {
248-
margin-left: govuk-spacing(2);
249-
}
250-
vertical-align: middle;
251253
flex-shrink: 0;
252254
align-self: center;
255+
margin-left: govuk-spacing(1);
256+
vertical-align: middle;
253257
// Work around SVGs not inheriting color from parent in forced color mode
254258
// (https://github.com/w3c/csswg-drafts/issues/6310)
255259
forced-color-adjust: auto;
260+
261+
@media #{govuk-from-breakpoint(desktop)} {
262+
margin-left: govuk-spacing(2);
263+
}
256264
}
257265
}

packages/govuk-frontend/src/govuk/components/checkboxes/_index.scss

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313

1414
.govuk-checkboxes__item {
1515
display: flex;
16-
flex-wrap: wrap;
1716
position: relative;
17+
flex-wrap: wrap;
1818
margin-bottom: govuk-spacing(2);
1919
}
2020

@@ -27,10 +27,13 @@
2727
// Allow the input to sit above the label, enabling its proper detection
2828
// when exploring by touch or using automation tools like Selenium
2929
z-index: 1;
30+
3031
width: $govuk-touch-target-size;
3132
height: $govuk-touch-target-size;
3233
margin: 0;
34+
3335
opacity: 0;
36+
3437
cursor: pointer;
3538
}
3639

@@ -44,6 +47,7 @@
4447
max-width: calc(100% - #{(($govuk-checkboxes-label-padding-left-right * 2) + $govuk-touch-target-size)});
4548
margin-bottom: 0;
4649
padding: (govuk-spacing(1) + $govuk-border-width-form-element) govuk-spacing(3);
50+
4751
cursor: pointer;
4852
// remove 300ms pause on mobile
4953
touch-action: manipulation;
@@ -52,13 +56,18 @@
5256
// [ ] Check box
5357
.govuk-checkboxes__label::before {
5458
content: "";
59+
5560
box-sizing: border-box;
61+
5662
position: absolute;
5763
top: ($govuk-touch-target-gutter / 2);
5864
left: ($govuk-touch-target-gutter / 2);
65+
5966
width: $govuk-checkboxes-size;
6067
height: $govuk-checkboxes-size;
68+
6169
border: $govuk-border-width-form-element solid currentcolor;
70+
6271
background: transparent;
6372
}
6473

@@ -68,22 +77,29 @@
6877
// rotated 45 degrees
6978
.govuk-checkboxes__label::after {
7079
content: "";
80+
7181
box-sizing: border-box;
82+
7283
position: absolute;
7384

7485
// Use "magic numbers" to define shape and position of check mark because
7586
// the complexity of the shape makes it difficult to calculate dynamically.
7687
top: 13px;
7788
left: $govuk-checkbox-check-horizontal-position;
89+
7890
width: 23px;
7991
height: 12px;
92+
8093
transform: rotate(-45deg);
94+
8195
border: solid;
8296
border-width: 0 0 5px 5px;
8397
// Fix bug in IE11 caused by transform rotate (-45deg).
8498
// See: alphagov/govuk_elements/issues/518
8599
border-top-color: transparent;
100+
86101
opacity: 0;
102+
87103
background: transparent;
88104
}
89105

packages/govuk-frontend/src/govuk/components/details/_index.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@
114114
// Append our own open / closed marker using a pseudo-element
115115
.govuk-details__summary::before {
116116
content: "";
117+
117118
position: absolute;
118119

119120
top: -1px;

packages/govuk-frontend/src/govuk/components/error-message/_index.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
margin-top: 0; // Reset any default browser margins for paragraphs
77
margin-bottom: govuk-spacing(3);
88
clear: both;
9-
109
color: govuk-functional-colour(error);
1110
}
1211
}

packages/govuk-frontend/src/govuk/components/exit-this-page/_index.scss

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,15 @@
2727
.govuk-exit-this-page__indicator {
2828
@include govuk-responsive-padding(2);
2929
display: none;
30+
3031
padding-bottom: 0;
32+
33+
pointer-events: none;
34+
3135
color: inherit;
36+
3237
line-height: 0; // removes extra negative space below the indicators
3338
text-align: center;
34-
pointer-events: none;
3539
}
3640

3741
.govuk-exit-this-page__indicator--visible {
@@ -40,10 +44,13 @@
4044

4145
.govuk-exit-this-page__indicator-light {
4246
box-sizing: border-box;
47+
4348
display: inline-block;
49+
4450
width: $indicator-size;
4551
height: $indicator-size;
4652
margin: 0 0.125em;
53+
4754
border-width: 2px;
4855
border-style: solid;
4956
border-radius: 50%;
@@ -67,6 +74,7 @@
6774
right: 0;
6875
bottom: 0;
6976
left: 0;
77+
7078
background-color: govuk-colour("white");
7179
}
7280

0 commit comments

Comments
 (0)