mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-09 17:45:32 -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:
@@ -18,7 +18,7 @@
|
||||
|
||||
.big-number-dark {
|
||||
@extend %big-number;
|
||||
padding: $gutter-half;
|
||||
padding: govuk-spacing(3);
|
||||
position: relative;
|
||||
background: $black;
|
||||
color: $white;
|
||||
@@ -52,11 +52,11 @@
|
||||
|
||||
@extend %big-number;
|
||||
position: relative;
|
||||
margin-bottom: $gutter-two-thirds;
|
||||
margin-bottom: govuk-spacing(4);
|
||||
|
||||
.big-number,
|
||||
.big-number-smaller {
|
||||
padding: $gutter-half;
|
||||
padding: govuk-spacing(3);
|
||||
position: relative;
|
||||
background: $black;
|
||||
color: $white;
|
||||
@@ -146,12 +146,12 @@
|
||||
.big-number-meta-wrapper {
|
||||
|
||||
position: relative;
|
||||
margin: $gutter-half 0 $gutter 0;
|
||||
margin: govuk-spacing(3) 0 govuk-spacing(6) 0;
|
||||
background: $govuk-blue;
|
||||
|
||||
.big-number-meta {
|
||||
|
||||
padding: ($gutter / 3) $gutter-half;
|
||||
padding: govuk-spacing(2) govuk-spacing(3);
|
||||
color: $white;
|
||||
pointer-events: none;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user