mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-07 17:44:35 +08:00
Fix lesshint problems
This commit is contained in:
parent
54045fc7c2
commit
c66a226004
@ -8,5 +8,12 @@
|
|||||||
"qualifyingElement": false,
|
"qualifyingElement": false,
|
||||||
"duplicateProperty": false,
|
"duplicateProperty": false,
|
||||||
"importPath": false,
|
"importPath": false,
|
||||||
"finalNewline": false
|
"finalNewline": false,
|
||||||
|
"excludedFiles": [
|
||||||
|
"components/layout/style/mixin.less",
|
||||||
|
"components/style/core/base.less",
|
||||||
|
"components/style/core/iconfont.less",
|
||||||
|
"components/style/core/normalize.less",
|
||||||
|
"components/style/mixins/compatibility.less"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
@ -13,7 +13,7 @@ title: 按钮类型
|
|||||||
import { Button } from 'antd';
|
import { Button } from 'antd';
|
||||||
|
|
||||||
ReactDOM.render(<div>
|
ReactDOM.render(<div>
|
||||||
<Button type="primary">主按钮</Button>
|
<Button type="primary">主按钮1</Button>
|
||||||
<Button>次按钮</Button>
|
<Button>次按钮</Button>
|
||||||
<Button type="ghost">幽灵按钮</Button>
|
<Button type="ghost">幽灵按钮</Button>
|
||||||
<Button type="dashed">虚线按钮</Button>
|
<Button type="dashed">虚线按钮</Button>
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
|
|
||||||
&:hover,
|
&:hover,
|
||||||
&-focused {
|
&-focused {
|
||||||
.@{checkbox-inner-prefix-cls} {
|
.@{checkbox-inner-prefix-cls} {
|
||||||
border-color: #bcbcbc;
|
border-color: #bcbcbc;
|
||||||
}
|
}
|
||||||
|
@ -49,6 +49,7 @@
|
|||||||
.col(1); // kickstart it
|
.col(1); // kickstart it
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// lesshint false
|
||||||
.loop-grid-columns(@index, @class) when (@index > 0) {
|
.loop-grid-columns(@index, @class) when (@index > 0) {
|
||||||
.col@{class}-@{index} {
|
.col@{class}-@{index} {
|
||||||
display: block;
|
display: block;
|
||||||
|
@ -1,98 +0,0 @@
|
|||||||
// Grid system
|
|
||||||
.row {
|
|
||||||
.make-row();
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
|
|
||||||
.row-flex {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: row;
|
|
||||||
flex-wrap: wrap;
|
|
||||||
|
|
||||||
&:before,
|
|
||||||
&:after {
|
|
||||||
display: flex;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// x轴原点
|
|
||||||
.row-flex-start {
|
|
||||||
justify-content: flex-start;
|
|
||||||
}
|
|
||||||
|
|
||||||
// x轴居中
|
|
||||||
.row-flex-center {
|
|
||||||
justify-content: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
// x轴反方向
|
|
||||||
.row-flex-end {
|
|
||||||
justify-content: flex-end;
|
|
||||||
}
|
|
||||||
|
|
||||||
// x轴平分
|
|
||||||
.row-flex-space-between {
|
|
||||||
justify-content: space-between;
|
|
||||||
}
|
|
||||||
|
|
||||||
// x轴有间隔地平分
|
|
||||||
.row-flex-space-around {
|
|
||||||
justify-content: space-around;
|
|
||||||
}
|
|
||||||
|
|
||||||
// 顶部对齐
|
|
||||||
.row-flex-top {
|
|
||||||
align-items: flex-start;
|
|
||||||
}
|
|
||||||
|
|
||||||
// 居中对齐
|
|
||||||
.row-flex-middle {
|
|
||||||
align-items: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
// 底部对齐
|
|
||||||
.row-flex-bottom {
|
|
||||||
align-items: flex-end;
|
|
||||||
}
|
|
||||||
|
|
||||||
.col {
|
|
||||||
position: relative;
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
|
|
||||||
.make-grid-columns();
|
|
||||||
.make-grid();
|
|
||||||
|
|
||||||
// Extra small grid
|
|
||||||
//
|
|
||||||
// Columns, offsets, pushes, and pulls for extra small devices like
|
|
||||||
// smartphones.
|
|
||||||
|
|
||||||
.make-grid(-xs);
|
|
||||||
|
|
||||||
// Small grid
|
|
||||||
//
|
|
||||||
// Columns, offsets, pushes, and pulls for the small device range, from phones
|
|
||||||
// to tablets.
|
|
||||||
|
|
||||||
@media (min-width: @screen-sm-min) {
|
|
||||||
.make-grid(-sm);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// Medium grid
|
|
||||||
//
|
|
||||||
// Columns, offsets, pushes, and pulls for the desktop device range.
|
|
||||||
|
|
||||||
@media (min-width: @screen-md-min) {
|
|
||||||
.make-grid(-md);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// Large grid
|
|
||||||
//
|
|
||||||
// Columns, offsets, pushes, and pulls for the large desktop device range.
|
|
||||||
|
|
||||||
@media (min-width: @screen-lg-min) {
|
|
||||||
.make-grid(-lg);
|
|
||||||
}
|
|
@ -121,7 +121,7 @@
|
|||||||
"lint": "npm run srclint && npm run demolint && npm run lesshint",
|
"lint": "npm run srclint && npm run demolint && npm run lesshint",
|
||||||
"srclint": "RUN_ENV=SRC eslint components test site scripts ./*.js --ext '.js,.jsx'",
|
"srclint": "RUN_ENV=SRC eslint components test site scripts ./*.js --ext '.js,.jsx'",
|
||||||
"demolint": "RUN_ENV=DEMO eslint components/*/demo/*.md --ext '.md'",
|
"demolint": "RUN_ENV=DEMO eslint components/*/demo/*.md --ext '.md'",
|
||||||
"lesshint": "lesshint components/style -e 'components/style/+(core|mixins)/+(base|iconfont|normalize|layouts|compatibility|grid).less'",
|
"lesshint": "lesshint components",
|
||||||
"eslint-fix": "eslint --fix components test site scripts ./*.js --ext '.js,.jsx' && eslint-tinker ./components/*/demo/*.md",
|
"eslint-fix": "eslint --fix components test site scripts ./*.js --ext '.js,.jsx' && eslint-tinker ./components/*/demo/*.md",
|
||||||
"test": "npm run lint && npm run dist && npm run jest",
|
"test": "npm run lint && npm run dist && npm run jest",
|
||||||
"jest": "jest",
|
"jest": "jest",
|
||||||
|
Loading…
Reference in New Issue
Block a user