vant-css: use hairline classes instead of mixins

This commit is contained in:
陈嘉涵
2017-09-05 10:50:17 +08:00
parent 99f712104e
commit 9dd8a93067
63 changed files with 414 additions and 466 deletions
+19 -28
View File
@@ -1,17 +1,15 @@
@import "./mixins/border_retina.css";
@import './common/var.css';
.van-order-goods {
background-color: #fff;
background-color: $white;
&-card {
margin-left: -15px;
position: relative;
background-color: #fafafa;
&:not(:first-child),
&__delivery {
&:not(:first-child) {
&::after {
@mixin border-retina (top);
border-top-width: 1px;
}
}
@@ -29,14 +27,14 @@
}
&__tag-green {
color: #fff;
background-color: #4b0;
color: $white;
background-color: $green-wx;
}
&__tag-red {
color: #ed5050;
color: $gray;
padding: 5px 8px;
border: 1px solid #ed5050;
border: 1px solid $gray;
}
&__delivery {
@@ -44,7 +42,7 @@
background-color: transparent;
.van-cell__value {
color: #666;
color: $gray-darker;
}
}
@@ -76,17 +74,17 @@
&__message {
width: 100%;
height: 100%;
background-color: #f8f8f8;
background-color: $background-color;
h2 {
color: #999;
color: $gray-dark;
font-size: 12px;
line-height: 18px;
padding: 5px 0 5px 10px;
}
ul {
background-color: #fff;
background-color: $white;
}
p,
@@ -107,10 +105,9 @@
li {
display: flex;
padding: 0 10px;
position: relative;
&:not(:last-child)::after {
@mixin border-retina (bottom);
border-bottom-width: 1px;
}
img {
@@ -124,14 +121,9 @@
&-empty {
margin-left: -15px;
text-align: center;
position: relative;
&::after {
@mixin border-retina (top);
}
p {
color: #999;
color: $gray-dark;
padding: 0 10px;
font-size: 14px;
line-height: 20px;
@@ -148,7 +140,7 @@
margin: 15px 0;
padding: 0 10px;
line-height: 39px;
border-color: #e5e5e5;
border-color: $gray-light;
}
}
@@ -167,7 +159,7 @@
}
a {
color: #333;
color: $text-color;
font-size: 14px;
}
@@ -179,13 +171,12 @@
&-message {
textarea {
color: #666;
color: $gray-darker;
padding: 0;
width: 100%;
height: 22px;
border: none;
resize: none;
outline: none;
display: block;
font-size: 14px;
line-height: 22px;
@@ -197,7 +188,7 @@
}
p {
color: #666;
color: $gray-darker;
text-align: left;
}
@@ -208,7 +199,7 @@
&-price {
.van-cell__value {
color: #f44;
color: $red;
}
}
}