mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-24 00:07:02 -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:
@@ -6,7 +6,7 @@ $indicator-colour: $black;
|
||||
padding: 3px 8px 1px 8px;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: $gutter - 2px;
|
||||
top: govuk-spacing(6) - 2px;
|
||||
margin-top: -15px;
|
||||
border: 2px solid $indicator-colour;
|
||||
pointer-events: none;
|
||||
@@ -18,7 +18,7 @@ $indicator-colour: $black;
|
||||
.task-list {
|
||||
|
||||
border-top: 1px solid $border-colour;
|
||||
margin: $gutter 0;
|
||||
margin: govuk-spacing(6) 0;
|
||||
|
||||
&-item {
|
||||
|
||||
@@ -27,7 +27,7 @@ $indicator-colour: $black;
|
||||
a {
|
||||
border-bottom: 1px solid $border-colour;
|
||||
display: block;
|
||||
padding: $gutter-half 0;
|
||||
padding: govuk-spacing(3) 0;
|
||||
padding-right: 20%;
|
||||
position: relative;
|
||||
|
||||
@@ -37,8 +37,8 @@ $indicator-colour: $black;
|
||||
border-color: transparent;
|
||||
top: -1px;
|
||||
margin-bottom: -2px;
|
||||
padding-top: $gutter-half + 1px;
|
||||
padding-bottom: $gutter-half + 1px;
|
||||
padding-top: govuk-spacing(3) + 1px;
|
||||
padding-bottom: govuk-spacing(3) + 1px;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user