mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-06 19:48:25 -04:00
Merge pull request #437 from alphagov/tidy-scss
Don’t lint SCSS files that have come from outside
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
|
.column-whole {
|
||||||
|
@include grid-column(1/1);
|
||||||
|
}
|
||||||
|
|
||||||
.column-three-quarters {
|
.column-three-quarters {
|
||||||
@include grid-column(3/4);
|
@include grid-column(3/4);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -121,7 +121,7 @@ td {
|
|||||||
margin-bottom: 5px;
|
margin-bottom: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
a[rel="external"] {
|
a[rel='external'] {
|
||||||
@include external-link-default;
|
@include external-link-default;
|
||||||
@include external-link-16;
|
@include external-link-16;
|
||||||
@include media(tablet) {
|
@include media(tablet) {
|
||||||
|
|||||||
@@ -113,7 +113,7 @@
|
|||||||
margin-bottom: $gutter;
|
margin-bottom: $gutter;
|
||||||
|
|
||||||
&:last-child {
|
&:last-child {
|
||||||
margin-bottom: 0
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
& + p {
|
& + p {
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
$white-50-opaque: rgba($white, 0.5);
|
||||||
|
|
||||||
.email-message {
|
.email-message {
|
||||||
|
|
||||||
margin-bottom: $gutter;
|
margin-bottom: $gutter;
|
||||||
@@ -76,9 +78,9 @@
|
|||||||
color: $white;
|
color: $white;
|
||||||
border-style: solid;
|
border-style: solid;
|
||||||
border-width: 3px;
|
border-width: 3px;
|
||||||
border-colour: $white;
|
border-color: $white;
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
box-shadow: 0 0 0 1px rgba($white, 0.5);
|
box-shadow: 0 0 0 1px $white-50-opaque;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
background: $link-hover-colour;
|
background: $link-hover-colour;
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ $path: '/static/images/';
|
|||||||
@import 'components/browse-list';
|
@import 'components/browse-list';
|
||||||
@import 'components/email-message';
|
@import 'components/email-message';
|
||||||
@import 'components/api-key';
|
@import 'components/api-key';
|
||||||
@import 'components/previous-next-navigation';
|
@import 'components/vendor/previous-next-navigation';
|
||||||
|
|
||||||
@import 'views/job';
|
@import 'views/job';
|
||||||
@import 'views/edit-template';
|
@import 'views/edit-template';
|
||||||
|
|||||||
@@ -108,7 +108,11 @@ gulp.task('watchForChanges', function() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
gulp.task('lint:sass', () => gulp
|
gulp.task('lint:sass', () => gulp
|
||||||
.src(paths.src + 'stylesheets/**/*.scss')
|
.src([
|
||||||
|
paths.src + 'stylesheets/*.scss',
|
||||||
|
paths.src + 'stylesheets/components/*.scss',
|
||||||
|
paths.src + 'stylesheets/views/*.scss',
|
||||||
|
])
|
||||||
.pipe(plugins.sassLint())
|
.pipe(plugins.sassLint())
|
||||||
.pipe(plugins.sassLint.format(stylish))
|
.pipe(plugins.sassLint.format(stylish))
|
||||||
.pipe(plugins.sassLint.failOnError())
|
.pipe(plugins.sassLint.failOnError())
|
||||||
|
|||||||
Reference in New Issue
Block a user