mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-04-12 14:40:47 +08:00
fix: style lint bug
This commit is contained in:
parent
ee7ca02b41
commit
cd42f85153
@ -1,6 +1,6 @@
|
||||
module.exports = {
|
||||
extends: ['plugin:vue/recommended', '@vue/standard'],
|
||||
parserOptions: {
|
||||
parserOptions: {
|
||||
parser: "babel-eslint"
|
||||
},
|
||||
rules: {
|
||||
|
@ -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",
|
||||
|
@ -110,9 +110,6 @@
|
||||
&::-webkit-scrollbar-track {
|
||||
background: transparent;
|
||||
}
|
||||
&::-webkit-scrollbar-thumb {
|
||||
border-radius: 2.5px;
|
||||
}
|
||||
&::-webkit-scrollbar-corner {
|
||||
background: transparent;
|
||||
}
|
||||
|
@ -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');
|
||||
}
|
||||
|
@ -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;
|
||||
|
@ -1,7 +1,6 @@
|
||||
@import './mixins/mixins.scss';
|
||||
@import './themes/vars.scss';
|
||||
|
||||
|
||||
@keyframes n-base-loading-rotate {
|
||||
to {
|
||||
transform: rotate(1turn)
|
||||
|
@ -296,6 +296,4 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -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;
|
||||
|
@ -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) {
|
||||
|
@ -27,7 +27,6 @@
|
||||
}
|
||||
.n-input-key-value__item--action {
|
||||
width: 70px;
|
||||
display: inline-block;
|
||||
align-items: center;
|
||||
display: flex;
|
||||
margin-left: 13px;
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -122,13 +122,4 @@
|
||||
box-shadow: $--slider-indicator-box-shadow;
|
||||
border-radius: 4px;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
@ -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 {
|
||||
|
@ -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');
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -144,6 +144,4 @@ $--timeline-header-margin-top: (
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -2,7 +2,6 @@
|
||||
@import './themes/vars.scss';
|
||||
@import './Detachable.scss';
|
||||
|
||||
|
||||
html {
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
|
@ -0,0 +1 @@
|
||||
//
|
@ -1,3 +1,3 @@
|
||||
@mixin setup-dark-affix {
|
||||
|
||||
//
|
||||
}
|
@ -1,3 +1,3 @@
|
||||
@mixin setup-dark-auto-complete {
|
||||
|
||||
//
|
||||
}
|
@ -1,3 +1,3 @@
|
||||
@mixin setup-dark-drawer {
|
||||
|
||||
//
|
||||
}
|
@ -1,3 +1,3 @@
|
||||
@mixin setup-dark-form {
|
||||
|
||||
//
|
||||
}
|
@ -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%);
|
||||
|
@ -1,3 +1,3 @@
|
||||
@mixin setup-dark-list {
|
||||
|
||||
//
|
||||
}
|
@ -1,3 +1,3 @@
|
||||
@mixin setup-light-affix {
|
||||
|
||||
//
|
||||
}
|
@ -1,3 +1,3 @@
|
||||
@mixin setup-light-auto-complete {
|
||||
|
||||
//
|
||||
}
|
@ -1,3 +1,3 @@
|
||||
@mixin setup-light-drawer {
|
||||
|
||||
//
|
||||
}
|
@ -1,3 +1,3 @@
|
||||
@mixin setup-light-form {
|
||||
|
||||
//
|
||||
}
|
@ -1,3 +1,3 @@
|
||||
@mixin setup-light-list {
|
||||
|
||||
//
|
||||
}
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user