[build] add stylelint-config-rational-order plugin

This commit is contained in:
陈嘉涵
2019-05-09 19:00:53 +08:00
parent 21589c9b9f
commit ba4f02b9b4
64 changed files with 571 additions and 442 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
.clearfix() {
&::after {
content: '';
display: table;
clear: both;
content: '';
}
}
+2 -1
View File
@@ -1,8 +1,9 @@
.multi-ellipsis(@lines) {
display: -webkit-box;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: @lines;
/* autoprefixer: ignore next */
-webkit-box-orient: vertical;
}
+6 -6
View File
@@ -1,27 +1,27 @@
.hairline-common() {
content: ' ';
position: absolute;
pointer-events: none;
box-sizing: border-box;
content: ' ';
pointer-events: none;
}
.hairline(@border-color: #ebedf0) {
.hairline-common();
top: -50%;
left: -50%;
right: -50%;
bottom: -50%;
transform: scale(0.5);
left: -50%;
border: 0 solid @border-color;
transform: scale(0.5);
}
.hairline-bottom(@border-color: #ebedf0, @left: 0) {
.hairline-common();
left: @left;
right: 0;
bottom: 0;
transform: scaleY(0.5);
left: @left;
border-bottom: 1px solid @border-color;
transform: scaleY(0.5);
}
+1 -1
View File
@@ -33,6 +33,6 @@ ul {
input,
button,
textarea {
font: inherit;
color: inherit;
font: inherit;
}
+4 -4
View File
@@ -83,10 +83,10 @@ audio,
video {
margin: 0;
padding: 0;
border: 0;
font: inherit;
font-size: 100%;
vertical-align: baseline;
border: 0;
}
html {
@@ -148,14 +148,14 @@ summary {
}
body {
font-family: Arial, Helvetica, 'STHeiti STXihei', 'Microsoft YaHei', Tohoma, sans-serif;
color: @text-color;
font-family: Arial, Helvetica, 'STHeiti STXihei', 'Microsoft YaHei', Tohoma, sans-serif;
background-color: @background-color;
}
a {
background: transparent;
text-decoration: none;
background: transparent;
}
button,
@@ -166,7 +166,7 @@ input[type='email'],
input[type='search'],
select,
textarea {
font-family: inherit;
margin: 0;
font-family: inherit;
-webkit-appearance: none;
}