Fix some lesshint problems

This commit is contained in:
afc163 2017-01-11 21:45:09 +08:00
parent 1dd5fce324
commit 4654db312f
14 changed files with 13 additions and 22 deletions

View File

@ -6,9 +6,6 @@
"importantRule": false, "importantRule": false,
"zeroUnit": "no_unit", "zeroUnit": "no_unit",
"qualifyingElement": false, "qualifyingElement": false,
"duplicateProperty": false,
"importPath": false,
"finalNewline": false,
"newlineAfterBlock": false, "newlineAfterBlock": false,
"maxCharPerLine": false, "maxCharPerLine": false,
"excludedFiles": [ "excludedFiles": [

View File

@ -24,7 +24,6 @@
&.dragging { &.dragging {
cursor: pointer; cursor: pointer;
cursor: hand;
} }
} }
.slick-slider .slick-track, .slick-slider .slick-track,
@ -165,7 +164,6 @@
outline: none; outline: none;
font-size: 0; font-size: 0;
color: transparent; color: transparent;
cursor: pointer;
transition: all .3s; transition: all .3s;
&:hover, &:hover,
&:focus { &:focus {

View File

@ -39,8 +39,8 @@
transition: transform 0.24s ease; transition: transform 0.24s ease;
top: 0; top: 0;
left: 16px; left: 16px;
top: ~"16px \9"; top: ~"16px \9"; // lesshint duplicateProperty: false
left: ~"0 \9"; left: ~"0 \9"; // lesshint duplicateProperty: false
&:before { &:before {
content: "\e606"; content: "\e606";
} }

View File

@ -87,7 +87,7 @@
input[type="radio"]:focus, input[type="radio"]:focus,
input[type="checkbox"]:focus { input[type="checkbox"]:focus {
outline: thin dotted; outline: thin dotted;
outline: 5px auto -webkit-focus-ring-color; // lesshint spaceAroundOperator: false outline: 5px auto -webkit-focus-ring-color; // lesshint duplicateProperty: false
outline-offset: -2px; outline-offset: -2px;
} }

View File

@ -152,7 +152,6 @@
.@{ant-prefix}-select-selection { .@{ant-prefix}-select-selection {
background-color: inherit; background-color: inherit;
border: 0;
margin: -1px; margin: -1px;
border: 1px solid transparent; border: 1px solid transparent;
box-shadow: none; box-shadow: none;

View File

@ -1,6 +1,6 @@
@import "../../style/themes/default"; @import "../../style/themes/default";
@import "../../style/mixins/index"; @import "../../style/mixins/index";
@import '../../input/style/mixin.less'; @import '../../input/style/mixin';
.@{ant-prefix}-mention-wrapper { .@{ant-prefix}-mention-wrapper {
position: relative; position: relative;
@ -70,7 +70,6 @@
color: @text-color; color: @text-color;
white-space: nowrap; white-space: nowrap;
cursor: pointer; cursor: pointer;
white-space: nowrap;
text-overflow: ellipsis; text-overflow: ellipsis;
overflow: hidden; overflow: hidden;
transition: background 0.3s ease; transition: background 0.3s ease;

View File

@ -115,7 +115,7 @@
left: 0; left: 0;
bottom: 0; bottom: 0;
background-color: #373737; background-color: #373737;
background-color: rgba(55, 55, 55, 0.6); background-color: rgba(55, 55, 55, 0.6); // lesshint duplicateProperty: false
height: 100%; height: 100%;
z-index: @zindex-modal-mask; z-index: @zindex-modal-mask;
filter: ~"alpha(opacity=50)"; filter: ~"alpha(opacity=50)";

View File

@ -299,7 +299,6 @@
border-radius: 4px; border-radius: 4px;
cursor: default; cursor: default;
float: left; float: left;
padding: 0 16px;
margin-right: 4px; margin-right: 4px;
max-width: 99%; max-width: 99%;
position: relative; position: relative;
@ -444,7 +443,6 @@
color: @text-color; color: @text-color;
white-space: nowrap; white-space: nowrap;
cursor: pointer; cursor: pointer;
white-space: nowrap;
overflow: hidden; overflow: hidden;
transition: background 0.3s ease; transition: background 0.3s ease;

View File

@ -77,7 +77,8 @@
opacity: 0.7; opacity: 0.7;
-webkit-filter: blur(1px); -webkit-filter: blur(1px);
filter: blur(1px); filter: blur(1px);
filter: ~"progid\:DXImageTransform\.Microsoft\.Blur(PixelRadius\=1, MakeShadow\=false)"; /* IE6~IE9 */ /* IE6~IE9 */
filter: ~"progid\:DXImageTransform\.Microsoft\.Blur(PixelRadius\=1, MakeShadow\=false)"; // lesshint duplicateProperty: false
&:after { &:after {
content: ''; content: '';
position: absolute; position: absolute;

View File

@ -8,4 +8,3 @@
transform: rotate(360deg); transform: rotate(360deg);
} }
} }

View File

@ -1,2 +1,2 @@
@import "./themes/default"; @import "./themes/default";
@import "./core/index.less"; @import "./core/index";

View File

@ -13,4 +13,4 @@
font-size: 0; font-size: 0;
height: 0; height: 0;
} }
} }

View File

@ -4,7 +4,6 @@
vertical-align: baseline; vertical-align: baseline;
text-align: center; text-align: center;
text-transform: none; text-transform: none;
text-rendering: auto;
line-height: 1; line-height: 1;
text-rendering: optimizeLegibility; text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
@ -29,7 +28,8 @@
display: inline-block; display: inline-block;
@font-scale: unit(@size / 12px); @font-scale: unit(@size / 12px);
font-size: @font-size-base; font-size: @font-size-base;
font-size: ~"@{size} \9"; // ie8-9 // ie8-9
font-size: ~"@{size} \9"; // lesshint duplicateProperty: false
transform: scale(@font-scale) rotate(@rotate); transform: scale(@font-scale) rotate(@rotate);
.ie-rotate-via-degrees(@rotate); .ie-rotate-via-degrees(@rotate);
:root & { :root & {

View File

@ -1,7 +1,7 @@
// Mixins // Mixins
// -------------------------------------------------- // --------------------------------------------------
@import "opacity.less"; @import "opacity";
@import "size.less"; @import "size";
@import "compatibility"; @import "compatibility";
@import "clearfix"; @import "clearfix";
@import "iconfont"; @import "iconfont";