mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-02 17:48:50 -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:
@@ -17,7 +17,7 @@
|
||||
|
||||
.heading-large,
|
||||
> .heading-medium {
|
||||
margin: $gutter-half 0 ($gutter / 3 * 2) 0;
|
||||
margin: govuk-spacing(3) 0 govuk-spacing(4) 0;
|
||||
word-wrap: break-word;
|
||||
|
||||
&.top-gutter-0 {
|
||||
@@ -55,7 +55,7 @@ td {
|
||||
}
|
||||
|
||||
.heading-medium {
|
||||
margin-top: $gutter;
|
||||
margin-top: govuk-spacing(6);
|
||||
}
|
||||
|
||||
.form-label {
|
||||
@@ -86,12 +86,12 @@ td {
|
||||
|
||||
details summary {
|
||||
text-decoration: underline;
|
||||
margin-bottom: $gutter-half;
|
||||
margin-bottom: govuk-spacing(3);
|
||||
}
|
||||
|
||||
.spreadsheet {
|
||||
|
||||
margin-bottom: -$gutter;
|
||||
margin-bottom: -govuk-spacing(6);
|
||||
|
||||
.table {
|
||||
margin-bottom: 0;
|
||||
@@ -208,5 +208,5 @@ details .arrow {
|
||||
}
|
||||
|
||||
.heading-upcoming-jobs {
|
||||
margin-top: $gutter-half;
|
||||
margin-top: govuk-spacing(3);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user