mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-10 10:03:21 -04:00
Replace $gutter with govuk-spacing function
Replaced `$gutter` and similar variables such as `$gutter-half` with the `govuk-spacing()` static spacing function. This uses `govuk-spacing()` instead of `$govuk-gutter` because `$govuk-gutter` should only be used for the gaps in between grid columns and we were mostly using `$gutter` to add more space around elements. There are other places in the SCSS files where we had hardcoded a measurement in px which could be replaced with `govuk-spacing`, but this commit only replaces the existing uses of `$gutter`.
This commit is contained in:
@@ -32,11 +32,11 @@
|
||||
@include govuk-width-container;
|
||||
@include core-16($line-height: (25 / 16), $line-height-640: 1.75);
|
||||
|
||||
padding: $gutter-one-third 0;
|
||||
padding: govuk-spacing(2) 0;
|
||||
list-style: none;
|
||||
|
||||
@include media(tablet) {
|
||||
margin-bottom: $gutter;
|
||||
margin-bottom: govuk-spacing(6);
|
||||
}
|
||||
|
||||
ol {
|
||||
@@ -49,7 +49,7 @@
|
||||
display: inline-block;
|
||||
|
||||
margin: 0;
|
||||
padding: 0 $gutter-one-quarter 0 (11px + $gutter-one-quarter);
|
||||
padding: 0 (govuk-spacing(6) / 4) 0 (11px + govuk-spacing(6) / 4);
|
||||
|
||||
background-image: file-url('separator.png');
|
||||
background-repeat: no-repeat;
|
||||
|
||||
Reference in New Issue
Block a user