Browse Source

Lint SCSS styles

pull/498/head
Paul Robert Lloyd 3 years ago
parent
commit
96b197e456
  1. 35
      app/frontend/styles/_document-list.scss
  2. 4
      app/frontend/styles/_filter-layout.scss
  3. 4
      app/frontend/styles/_filter.scss
  4. 3
      app/frontend/styles/_pagination.scss
  5. 4
      app/frontend/styles/_panel.scss
  6. 1
      app/frontend/styles/application.scss

35
app/frontend/styles/_document-list.scss

@ -18,11 +18,6 @@
margin: 0 0 govuk-spacing(1);
}
.app-document-list__item-metadata {
padding: 0;
margin: 0;
}
.app-document-list__item-description {
@include govuk-font($size: 16);
margin: govuk-spacing(1) 0;
@ -32,35 +27,5 @@
@include govuk-font($size: 16);
color: $govuk-secondary-text-colour;
margin: 0;
}
.app-document-list {
list-style: none;
padding: 0;
}
.app-document-list__item {
margin-bottom: govuk-spacing(4);
&:last-child {
border-bottom: 0;
margin-bottom: 0;
padding-bottom: 0;
}
}
.app-document-list__item-title {
@include govuk-font($size: 16, $weight: "bold");
margin: 0 0 govuk-spacing(1);
}
.app-document-list__item-description {
@include govuk-font($size: 16);
margin: govuk-spacing(1) 0;
}
.app-document-list__item-metadata {
@include govuk-font($size: 16);
color: $govuk-secondary-text-colour;
padding: 0;
margin: 0;
}

4
app/frontend/styles/_filter-layout.scss

@ -34,9 +34,7 @@
.app-filter-layout__content {
@include govuk-media-query(desktop) {
float: right;
max-width: calc(
#{govuk-grid-width("three-quarters")} - #{govuk-spacing(6)}
);
max-width: calc(#{govuk-grid-width("three-quarters")} - #{govuk-spacing(6)});
width: 100%;
}
}

4
app/frontend/styles/_filter.scss

@ -50,7 +50,7 @@
border: 0;
}
&::before {
&:before {
background-image: url("../assets/images/icon-cross.svg");
content: "";
display: inline-block;
@ -94,7 +94,7 @@
.govuk-radios__label {
@include govuk-font(16);
&::before {
&:before {
background-color: govuk-colour("white");
}
}

3
app/frontend/styles/_pagination.scss

@ -1,4 +1,3 @@
// https://github.com/alphagov/govuk-frontend/blob/add-pagination-prototype/src/govuk/components/pagination/_index.scss
.app-pagination {
border-top: 1px solid $govuk-border-colour;
@ -117,7 +116,7 @@
}
.app-pagination__icon {
fill: currentColor;
fill: currentcolor;
}
.app-pagination__item--prev .app-pagination__link,

4
app/frontend/styles/_panel.scss

@ -19,8 +19,8 @@
margin-bottom: 0;
}
.govuk-radios__label::before,
& ::after {
.govuk-radios__label:before,
& :after {
color: govuk-colour("black");
border-color: govuk-colour("black");
background-color: govuk-colour("white");

1
app/frontend/styles/application.scss

@ -34,6 +34,7 @@ $govuk-new-link-styles: true;
// App utilities
.app-\!-colour-muted {
// stylelint-disable declaration-no-important
color: $govuk-secondary-text-colour !important;
}

Loading…
Cancel
Save