mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-25 08:44:23 -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,12 +6,12 @@ $tail-angle: 20deg;
|
||||
width: 100%;
|
||||
max-width: 464px;
|
||||
box-sizing: border-box;
|
||||
padding: $gutter-half $gutter-half $gutter-half $gutter-half;
|
||||
padding: govuk-spacing(3);
|
||||
background: $panel-colour;
|
||||
border: 1px solid $panel-colour;
|
||||
border-radius: 5px;
|
||||
white-space: normal;
|
||||
margin: 0 0 $gutter 0;
|
||||
margin: 0 0 govuk-spacing(6) 0;
|
||||
clear: both;
|
||||
word-wrap: break-word;
|
||||
|
||||
@@ -63,7 +63,7 @@ $tail-angle: 20deg;
|
||||
.sms-message-status {
|
||||
@include core-16;
|
||||
color: $secondary-text-colour;
|
||||
margin: -20px $gutter-half 20px $gutter-half;
|
||||
margin: -20px govuk-spacing(3) 20px govuk-spacing(3);
|
||||
}
|
||||
|
||||
.sms-message-status-outbound {
|
||||
|
||||
Reference in New Issue
Block a user