mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-24 16:24:08 -04:00
Merge pull request #3597 from alphagov/fix-pill-spacing-2nd-attempt
Fix spacing in pill items
This commit is contained in:
@@ -16,6 +16,17 @@
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.pill .big-number-number {
|
||||||
|
|
||||||
|
// reduce padding until screen is bigger than 420px / zoomed below 300%
|
||||||
|
padding-left: govuk-spacing(1);
|
||||||
|
|
||||||
|
@include govuk-media-query($from: 420px) {
|
||||||
|
padding-left: govuk-spacing(2);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
.big-number-dark {
|
.big-number-dark {
|
||||||
@extend %big-number;
|
@extend %big-number;
|
||||||
padding: govuk-spacing(3);
|
padding: govuk-spacing(3);
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
// GOV.UK Publishing components cookie banner styles
|
// GOV.UK Publishing components cookie banner styles
|
||||||
// https://github.com/alphagov/govuk_publishing_components/blob/master/app/assets/stylesheets/govuk_publishing_components/components/_cookie-banner.scss
|
// https://github.com/alphagov/govuk_publishing_components/blob/master/app/assets/stylesheets/govuk_publishing_components/components/_cookie-banner.scss
|
||||||
// sass-lint:disable mixins-before-declarations
|
|
||||||
|
|
||||||
// component uses .govuk-body and .govuk-button classes from govuk-frontend
|
// component uses .govuk-body and .govuk-button classes from govuk-frontend
|
||||||
@import 'core/typography';
|
@import 'core/typography';
|
||||||
|
|||||||
@@ -31,7 +31,7 @@
|
|||||||
float: left;
|
float: left;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding: 10px;
|
padding: 10px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
@@ -76,8 +76,20 @@
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&-label {
|
||||||
|
|
||||||
|
// reduce padding until screen is above 420px / zoomed below 300%
|
||||||
|
padding-left: govuk-spacing(1);
|
||||||
|
|
||||||
|
@include govuk-media-query($from: 420px) {
|
||||||
|
padding-left: govuk-spacing(2);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
&-centered-item {
|
&-centered-item {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
padding-left: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -259,7 +259,8 @@ const lint = {
|
|||||||
paths.src + 'stylesheets/views/*.scss',
|
paths.src + 'stylesheets/views/*.scss',
|
||||||
])
|
])
|
||||||
.pipe(plugins.sassLint({
|
.pipe(plugins.sassLint({
|
||||||
'options': { 'formatter': 'stylish' }
|
'options': { 'formatter': 'stylish' },
|
||||||
|
'rules': { 'mixins-before-declarations': [2, { 'exclude': ['media', 'govuk-media-query'] } ] }
|
||||||
}))
|
}))
|
||||||
.pipe(plugins.sassLint.format())
|
.pipe(plugins.sassLint.format())
|
||||||
.pipe(plugins.sassLint.failOnError());
|
.pipe(plugins.sassLint.failOnError());
|
||||||
|
|||||||
Reference in New Issue
Block a user