From fab3ccc4c5e5b18f6d195e95018a45ab0d218f2c Mon Sep 17 00:00:00 2001 From: ediblecode Date: Fri, 22 Jul 2016 12:52:26 +0100 Subject: [PATCH] Fix lint issue --- src/stylesheets/.sass-lint.yml | 2 +- src/stylesheets/components/_buttons.scss | 2 +- src/stylesheets/components/_phase.scss | 2 +- src/stylesheets/helpers/hacks/_hacks.scss | 2 +- src/stylesheets/settings/_colours.scss | 2 +- src/stylesheets/typography/_lists.scss | 3 ++- 6 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/stylesheets/.sass-lint.yml b/src/stylesheets/.sass-lint.yml index 6268e4ef9..cef424880 100644 --- a/src/stylesheets/.sass-lint.yml +++ b/src/stylesheets/.sass-lint.yml @@ -51,7 +51,7 @@ rules: - convention: hyphenatedlowercase mixins-before-declarations: 1 nesting-depth: - - max-depth: 2 + - max-depth: 3 no-attribute-selectors: 0 no-color-keywords: 0 no-color-literals: 0 diff --git a/src/stylesheets/components/_buttons.scss b/src/stylesheets/components/_buttons.scss index 63ec37160..b6bba34d7 100644 --- a/src/stylesheets/components/_buttons.scss +++ b/src/stylesheets/components/_buttons.scss @@ -30,7 +30,7 @@ $button-colour: #11779b; } .btn { - @include remove-moz-focus-inner; + @include remove-mz-focus-inner; appearance: none; background: get-colour(blue); border: 0; diff --git a/src/stylesheets/components/_phase.scss b/src/stylesheets/components/_phase.scss index 43e1af573..96e8a8979 100644 --- a/src/stylesheets/components/_phase.scss +++ b/src/stylesheets/components/_phase.scss @@ -13,7 +13,7 @@ &__tag { display: table-cell; - padding: 0 em(8) 0; + padding: 0 em(8); } &__label { diff --git a/src/stylesheets/helpers/hacks/_hacks.scss b/src/stylesheets/helpers/hacks/_hacks.scss index 95dc4ac74..2070ba685 100644 --- a/src/stylesheets/helpers/hacks/_hacks.scss +++ b/src/stylesheets/helpers/hacks/_hacks.scss @@ -27,7 +27,7 @@ } /// Fix unwanted button padding in Firefox -@mixin remove-moz-focus-inner { +@mixin remove-mz-focus-inner { &:moz-focus-inner { border: 0; padding: 0; diff --git a/src/stylesheets/settings/_colours.scss b/src/stylesheets/settings/_colours.scss index 1a02f9d4e..09b4f0b50 100644 --- a/src/stylesheets/settings/_colours.scss +++ b/src/stylesheets/settings/_colours.scss @@ -161,7 +161,7 @@ $tones: ( @return call($function, $base-colour, $args...); } - @error "Invalid `$tone`: #{$tone}. Must be one of $tones."; + @error 'Invalid `$tone`: #{$tone}. Must be one of $tones.'; } @error 'Palette #{$palette} could not be found'; diff --git a/src/stylesheets/typography/_lists.scss b/src/stylesheets/typography/_lists.scss index e3a7443a4..39fda5e64 100644 --- a/src/stylesheets/typography/_lists.scss +++ b/src/stylesheets/typography/_lists.scss @@ -8,7 +8,8 @@ padding: 0; } -ul, ol { +ul, +ol { @extend %list; }