1
0
mirror of https://github.com/thangisme/notes.git synced 2024-12-22 07:36:34 -05:00

fix linting / rules

This commit is contained in:
Patrick Marsceill 2018-10-25 11:17:10 -04:00
parent d554236ba3
commit 6a6efba27a
No known key found for this signature in database
GPG Key ID: 286B93882D828F40
5 changed files with 13 additions and 7 deletions

View File

@ -1,4 +1,7 @@
{ {
"ignoreFiles" : [
"assets/css/just-the-docs.scss"
],
"extends": [ "extends": [
"stylelint-config-primer" "stylelint-config-primer"
] ]

View File

@ -12,9 +12,9 @@
margin-right: $sp-1; margin-right: $sp-1;
margin-left: $sp-1; margin-left: $sp-1;
color: $white; color: $white;
text-transform: uppercase;
vertical-align: middle; vertical-align: middle;
background-color: $blue-100; background-color: $blue-100;
text-transform: uppercase;
@include fs-2; @include fs-2;
} }

View File

@ -115,6 +115,7 @@
} }
} }
// stylelint-disable selector-no-type
body { body {
position: relative; position: relative;
padding-bottom: $sp-10; padding-bottom: $sp-10;
@ -124,6 +125,7 @@ body {
padding-bottom: 0; padding-bottom: 0;
} }
} }
// stylelint-enable selector-no-type
.site-footer { .site-footer {
position: absolute; position: absolute;

View File

@ -11,9 +11,9 @@
position: absolute; position: absolute;
top: 0; top: 0;
right: 0; right: 0;
z-index: 101;
height: 60px; height: 60px;
padding-top: $sp-4; padding-top: $sp-4;
z-index: 101;
box-shadow: inset 0 -1px 0 $border-color; box-shadow: inset 0 -1px 0 $border-color;
} }
} }
@ -89,7 +89,6 @@
} }
} }
.navigation-list-toggle { .navigation-list-toggle {
position: absolute; position: absolute;
right: $sp-4; right: $sp-4;

View File

@ -15,7 +15,9 @@
@media (min-width: rem($value)) { @media (min-width: rem($value)) {
@content; @content;
} }
} @else { }
@else {
@warn "No value could be retrieved from `#{$media-query}`. " @warn "No value could be retrieved from `#{$media-query}`. "
+ "Please make sure it is defined in `$media-queries` map."; + "Please make sure it is defined in `$media-queries` map.";
} }
@ -24,11 +26,11 @@
// Responsive container // Responsive container
@mixin container { @mixin container {
padding-left: $gutter-spacing-sm;
padding-right: $gutter-spacing-sm; padding-right: $gutter-spacing-sm;
padding-left: $gutter-spacing-sm;
@include mq(md) { @include mq(md) {
padding-left: $gutter-spacing;
padding-right: $gutter-spacing; padding-right: $gutter-spacing;
padding-left: $gutter-spacing;
} }
} }