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,
"zeroUnit": "no_unit",
"qualifyingElement": false,
"duplicateProperty": false,
"importPath": false,
"finalNewline": false,
"newlineAfterBlock": false,
"maxCharPerLine": false,
"excludedFiles": [

View File

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

View File

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

View File

@ -87,7 +87,7 @@
input[type="radio"]:focus,
input[type="checkbox"]:focus {
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;
}

View File

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

View File

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

View File

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

View File

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

View File

@ -77,7 +77,8 @@
opacity: 0.7;
-webkit-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 {
content: '';
position: absolute;

View File

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

View File

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

View File

@ -4,7 +4,6 @@
vertical-align: baseline;
text-align: center;
text-transform: none;
text-rendering: auto;
line-height: 1;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
@ -29,7 +28,8 @@
display: inline-block;
@font-scale: unit(@size / 12px);
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);
.ie-rotate-via-degrees(@rotate);
:root & {

View File

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