mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-08 08:28:15 -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:
@@ -5,14 +5,14 @@
|
||||
}
|
||||
|
||||
> .heading-medium:first-of-type {
|
||||
margin-top: $gutter-half;
|
||||
margin-top: govuk-spacing(3);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
.keyline-block {
|
||||
border-top: 1px solid $border-colour;
|
||||
padding-top: $gutter-half;
|
||||
padding-top: govuk-spacing(3);
|
||||
}
|
||||
|
||||
.spark-bar {
|
||||
@@ -21,8 +21,8 @@
|
||||
box-sizing: border-box;
|
||||
display: block;
|
||||
width: 100%;
|
||||
margin-bottom: $gutter-half;
|
||||
height: $gutter-half;
|
||||
margin-bottom: govuk-spacing(3);
|
||||
height: govuk-spacing(3);
|
||||
color: $text-colour;
|
||||
text-align: left;
|
||||
|
||||
@@ -92,5 +92,5 @@
|
||||
|
||||
.align-with-message-body {
|
||||
display: block;
|
||||
margin-top: $gutter * 5 / 6;
|
||||
margin-top: govuk-spacing(5);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user