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:
Katie Smith
2020-03-06 11:11:41 +00:00
parent a85f7fa2c1
commit bc83ff6c09
35 changed files with 139 additions and 139 deletions
@@ -1,11 +1,11 @@
.browse-list {
margin-bottom: $gutter-half;
margin-bottom: govuk-spacing(3);
.browse-sub-list {
margin-top: $gutter-half;
margin-left: $gutter;
margin-top: govuk-spacing(3);
margin-left: govuk-spacing(6);
@include media('desktop') {
margin-left: $gutter * 2;
margin-left: govuk-spacing(9);
}
}
@@ -13,7 +13,7 @@
&-sub-item {
@include bold-24;
list-style: none;
margin-bottom: $gutter-half;
margin-bottom: govuk-spacing(3);
}
&-link {