fix: style lint bug

This commit is contained in:
songwanli2025@163.com 2019-12-17 18:09:46 +08:00
parent ee7ca02b41
commit cd42f85153
32 changed files with 40 additions and 62 deletions

View File

@ -1,6 +1,6 @@
module.exports = {
extends: ['plugin:vue/recommended', '@vue/standard'],
parserOptions: {
parserOptions: {
parser: "babel-eslint"
},
rules: {

View File

@ -10,7 +10,7 @@
"dev": "cross-env NODE_ENV=development && webpack-dev-server --config build/webpack.dev.js",
"serve": "npm run dev",
"lint": "eslint packages/**/*.{js,vue} test/**/*.{js,vue} build/**/*.{js,vue} demo/**/*.{js,vue} && stylelint \"styles/**/*.scss\"",
"lint-style": "stylelint \"styles/**/*.scss\"",
"lint-style": "stylelint \"styles/**/*.scss\" --fix",
"test": "cross-env NODE_ENV=development BABEL_ENV=test karma start test/unit/karma.conf.js",
"test-cov": "cross-env NODE_ENV=development BABEL_ENV=test karma start test/unit/karma.conf.js && http-server test/unit/coverage",
"test-release": "cross-env NODE_ENV=production webpack-dev-server --config build/webpack.release.js",

View File

@ -110,9 +110,6 @@
&::-webkit-scrollbar-track {
background: transparent;
}
&::-webkit-scrollbar-thumb {
border-radius: 2.5px;
}
&::-webkit-scrollbar-corner {
background: transparent;
}

View File

@ -61,7 +61,7 @@
display: flex;
flex-direction: column;
& > {
@include b(anchor-link) {
@include b(anchor-link) {
padding-left: 16px;
}
}
@ -81,7 +81,7 @@
padding-right: 16px;
transition: color .3s $default-cubic-bezier;
}
color: map-get($--anchor-link-title-text-color, 'default');;
color: map-get($--anchor-link-title-text-color, 'default');
&:hover, &:focus {
color: map-get($--anchor-link-title-text-color, 'hover');
}

View File

@ -13,7 +13,7 @@
}
@include e(default-button) {
@include once {
transition: box-shadow .3s $default-cubic-bezier, fill .3s $default-cubic-bezier;;
transition: box-shadow .3s $default-cubic-bezier, fill .3s $default-cubic-bezier;
border-radius: 20px;
height: 40px;
width: 40px;

View File

@ -1,7 +1,6 @@
@import './mixins/mixins.scss';
@import './themes/vars.scss';
@keyframes n-base-loading-rotate {
to {
transform: rotate(1turn)

View File

@ -296,6 +296,4 @@
}
}
}
}
}

View File

@ -102,7 +102,7 @@
}
}
@include b(base-select-menu-light-bar) {
transition: background-color .3s $default-cubic-bezier;
// transition: background-color .3s $default-cubic-bezier;
position: absolute;
width:100%;
background-color: $--base-select-menu-light-bar-background-color;

View File

@ -41,8 +41,8 @@
transform: scale(0.5);
transform-origin: center;
transition: transform 0.3s $default-cubic-bezier,
opacity 0.3s $default-cubic-bezier,
border-color 0.3s $default-cubic-bezier;
opacity 0.3s $default-cubic-bezier,
border-color 0.3s $default-cubic-bezier;
}
@include e(check-mark) {
content: "";
@ -56,8 +56,8 @@
transform: scale(0.5);
transform-origin: center;
transition: transform 0.3s $default-cubic-bezier,
opacity 0.3s $default-cubic-bezier,
border-color 0.3s $default-cubic-bezier;
opacity 0.3s $default-cubic-bezier,
border-color 0.3s $default-cubic-bezier;
}
}
@include e(label) {

View File

@ -27,7 +27,6 @@
}
.n-input-key-value__item--action {
width: 70px;
display: inline-block;
align-items: center;
display: flex;
margin-left: 13px;

View File

@ -93,7 +93,7 @@
height: $--input-icon-size;
width: $--input-icon-size;
@include b(icon) {
font-size: $--input-icon-size;;
font-size: $--input-icon-size;
path {
transition: fill .3s $default-cubic-bezier;
}

View File

@ -20,7 +20,9 @@
padding: 0 8px;
margin: 0;
@include m(padding) {
/* stylelint-disable */
font-family: 'Lato';
/* stylelint-enable */
border-radius: 6px;
background-color: rgba(255, 255, 255, .3);
margin: 8px;

View File

@ -47,13 +47,13 @@
color: $--notification-text-color;
@include once {
transition:
background-color .3s $default-cubic-bezier,
color .3s $default-cubic-bezier,
opacity .3s $default-cubic-bezier,
transform .3s $default-cubic-bezier,
max-height .3s $default-cubic-bezier,
margin-bottom .3s linear,
box-shadow .3s $default-cubic-bezier;
background-color .3s $default-cubic-bezier,
color .3s $default-cubic-bezier,
opacity .3s $default-cubic-bezier,
transform .3s $default-cubic-bezier,
max-height .3s $default-cubic-bezier,
margin-bottom .3s linear,
box-shadow .3s $default-cubic-bezier;
font-family: $default-font-family;
font-size: 14px;
font-weight: 400;
@ -114,7 +114,6 @@
padding-top: 16px;
padding-bottom: 16px;
box-sizing: border-box;
width: 100%;
display: flex;
flex-direction: column;
margin-left: 40px;

View File

@ -122,13 +122,4 @@
box-shadow: $--slider-indicator-box-shadow;
border-radius: 4px;
}
}
}

View File

@ -3,7 +3,9 @@
@include themes-mixin {
@include b(statistic) {
@include once {
/* stylelint-disable */
font-family: 'Lato';
/* stylelint-enable */
}
@include b(statistic-value) {
@include once {

View File

@ -58,13 +58,6 @@
}
}
}
&::before {
box-shadow: $--switch-switcher-box-shadow;
transition: $--switch-switcher-transition;
}
&::after {
transition: $--switch-switcher-transition;
}
background-color: map-get($map: $--switch-rail-background-color, $key: 'inactive');
&::before {
background-image: map-get($map: $--switch-switcher-color, $key: 'inactive');

View File

@ -27,9 +27,9 @@
font-weight: 700;
transition: color .3s $default-cubic-bezier;
}
@include e(extra) {
// @include e(extra) {
}
// }
justify-content: space-between;
align-items: center;
}

View File

@ -144,6 +144,4 @@ $--timeline-header-margin-top: (
}
}
}
}
}

View File

@ -2,7 +2,6 @@
@import './themes/vars.scss';
@import './Detachable.scss';
html {
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;

View File

@ -0,0 +1 @@
//

View File

@ -1,3 +1,3 @@
@mixin setup-dark-affix {
//
}

View File

@ -1,3 +1,3 @@
@mixin setup-dark-auto-complete {
//
}

View File

@ -1,3 +1,3 @@
@mixin setup-dark-drawer {
//
}

View File

@ -1,3 +1,3 @@
@mixin setup-dark-form {
//
}

View File

@ -6,7 +6,7 @@
"error": linear-gradient(252deg, $--error-6 0%, $--error-hs 100%),
"info": linear-gradient(252deg, $--info-6 0%, $--info-hs 100%),
) !global;
};
}
// $default-text-gradient-warning: ;
// $default-text-gradient-success: linear-gradient(14deg, rgba(120,205,104,1) 0%, rgba(20,166,165,1) 100%);

View File

@ -1,3 +1,3 @@
@mixin setup-dark-list {
//
}

View File

@ -1,3 +1,3 @@
@mixin setup-light-affix {
//
}

View File

@ -1,3 +1,3 @@
@mixin setup-light-auto-complete {
//
}

View File

@ -1,3 +1,3 @@
@mixin setup-light-drawer {
//
}

View File

@ -1,3 +1,3 @@
@mixin setup-light-form {
//
}

View File

@ -1,3 +1,3 @@
@mixin setup-light-list {
//
}

View File

@ -1,5 +1,5 @@
@mixin setup-light-nimbus-form {
$--nimbus-form-background-color:white !global;;
$--nimbus-form-background-color:white !global;
$--nimbus-form-title-color: $--n-text-color !global;
$--nimbus-form-text-color: $--n-secondary-text-color !global;
$--nimbus-form-divider-color:$--n-divider-color !global;