1
0
mirror of https://github.com/nostalgic-css/NES.css.git synced 2025-08-06 06:27:27 +02:00

Merge pull request #368 from nostalgic-css/fix-stylelint-errors

Fix stylelint errors
This commit is contained in:
B.C.Rikko
2019-10-17 14:06:28 +09:00
committed by GitHub
4 changed files with 8 additions and 5 deletions

View File

@@ -112,7 +112,9 @@
}, },
"lint-staged": { "lint-staged": {
"scss/**/*.scss": [ "scss/**/*.scss": [
"npm run postbuild" "npm run prebuild:stylelint",
"npm run postbuild",
"git add"
], ],
"*.js": [ "*.js": [
"eslint '.storybook/**/*.js' 'story/**/*.js'" "eslint '.storybook/**/*.js' 'story/**/*.js'"

View File

@@ -44,10 +44,11 @@
&.is-dark { &.is-dark {
@include rounded-corners(true); @include rounded-corners(true);
background: $base-color;
color: $background-color; color: $background-color;
background: $base-color;
border-image-outset: 2; border-image-outset: 2;
box-shadow: 0px 0px 0 8px $base-color; box-shadow: 0 0 0 8px $base-color;
&.from-left, &.from-left,
&.from-right { &.from-right {

View File

@@ -8,7 +8,7 @@
@include compact-rounded-corners(); @include compact-rounded-corners();
width: calc(100% - #{2*$border-size}); width: calc(100% - #{2 * $border-size});
padding: 0.5rem 1rem; padding: 0.5rem 1rem;
margin: 4px; margin: 4px;
background-clip: padding-box; background-clip: padding-box;

View File

@@ -11,7 +11,7 @@
$colors: ($base-color, map-get($default-colors, "shadow")); $colors: ($base-color, map-get($default-colors, "shadow"));
position: relative; position: relative;
width: calc(100% - #{2*$border-size}); width: calc(100% - #{2 * $border-size});
margin: 4px; margin: 4px;
select { select {