Skip to content

Commit

Permalink
Lint SCSS
Browse files Browse the repository at this point in the history
  • Loading branch information
paulrobertlloyd committed Dec 19, 2023
1 parent 3cc837b commit 699275d
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion docs/_components/example/_example.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
border: 0;
border-right: 1px solid $govuk-border-colour;
display: block;
padding: govuk-spacing(4);
max-width: calc(100% - govuk-spacing(4) * 2);
padding: govuk-spacing(4);
resize: both;
width: 100%;
}
Expand Down
10 changes: 5 additions & 5 deletions x-govuk/components/masthead/_button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,26 @@ $x-govuk-button-inverse-hover-background-colour: govuk-tint($x-govuk-masthead-ba
.x-govuk-button--inverse:link,
.x-govuk-button--inverse:visited {
@include govuk-responsive-margin(6, "top");
color: $x-govuk-masthead-background-colour;
background-color: $x-govuk-masthead-colour;
box-shadow: 0 $x-govuk-button-shadow-size 0 $x-govuk-button-inverse-shadow-colour;
color: $x-govuk-masthead-background-colour;
margin-bottom: 0;
}

.x-govuk-button--inverse:hover {
color: $x-govuk-masthead-background-colour;
background-color: $x-govuk-button-inverse-hover-background-colour;
color: $x-govuk-masthead-background-colour;
}

.x-govuk-button--inverse:focus:not(:hover) {
color: $govuk-focus-text-colour;
background-color: $govuk-focus-colour;
color: $govuk-focus-text-colour;
}

.x-govuk-button--inverse:active,
.x-govuk-button--inverse:focus {
border-color: $govuk-focus-colour;
color: $x-govuk-masthead-background-colour;
background-color: $x-govuk-button-inverse-hover-background-colour;
border-color: $govuk-focus-colour;
box-shadow: inset 0 0 0 2px $govuk-focus-colour;
color: $x-govuk-masthead-background-colour;
}
4 changes: 2 additions & 2 deletions x-govuk/components/masthead/_masthead.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ $x-govuk-masthead-colour: govuk-colour("white");

.x-govuk-masthead {
@include govuk-responsive-padding(7, "bottom");
padding-top: 0;
color: $x-govuk-masthead-colour;
background-color: $x-govuk-masthead-background-colour;
color: $x-govuk-masthead-colour;
margin-top: govuk-spacing(-2);
padding-top: 0;
}

.x-govuk-masthead__title {
Expand Down
2 changes: 1 addition & 1 deletion x-govuk/components/masthead/_tag.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.x-govuk-tag--inverse {
color: $x-govuk-masthead-background-colour;
background-color: $x-govuk-masthead-colour;
color: $x-govuk-masthead-background-colour;
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@
box-sizing: border-box;
display: block;
float: left;
line-height: 55px;
height: 55px;
position: relative;
line-height: 55px;
margin-right: govuk-spacing(6);
position: relative;
}

.x-govuk-primary-navigation__item--current {
Expand Down
10 changes: 5 additions & 5 deletions x-govuk/components/related-navigation/_related-navigation.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@

.x-govuk-related-navigation__main-heading {
@include govuk-font(19, $weight: bold);
margin-top: govuk-spacing(3);
margin-bottom: govuk-spacing(2);
margin-top: govuk-spacing(3);
}

.x-govuk-related-navigation__sub-heading {
Expand All @@ -18,9 +18,9 @@
.x-govuk-related-navigation__sub-heading--footer {
@include govuk-font(19, $weight: bold);
border-top: 0;
padding-top: 0;
margin-top: govuk-spacing(3);
margin-bottom: govuk-spacing(2);
margin-top: govuk-spacing(3);
padding-top: 0;
}

.x-govuk-related-navigation__main-heading + .x-govuk-related-navigation__sub-heading {
Expand All @@ -38,10 +38,10 @@
}

.x-govuk-related-navigation__link-list {
padding: 0;
margin: 0;
list-style: none;
margin: 0;
margin-bottom: 1.25em;
padding: 0;
}

.x-govuk-related-navigation__link {
Expand Down

0 comments on commit 699275d

Please sign in to comment.