[build] update to precss 3.0 (#655)

This commit is contained in:
neverland 2018-09-27 14:38:22 +08:00 committed by GitHub
parent 1bd233534c
commit bce7f20a1e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 442 additions and 293 deletions

View File

@ -39,10 +39,10 @@
"gulp-rename": "^1.2.2", "gulp-rename": "^1.2.2",
"gulp-typescript": "^5.0.0-alpha.3", "gulp-typescript": "^5.0.0-alpha.3",
"html-webpack-plugin": "^3.2.0", "html-webpack-plugin": "^3.2.0",
"postcss-calc": "^6.0.1", "postcss-calc": "^6.0.2",
"postcss-easy-import": "^3.0.0", "postcss-easy-import": "^3.0.0",
"postcss-loader": "^3.0.0", "postcss-loader": "^3.0.0",
"precss": "^2.0.0", "precss": "^3.1.2",
"progress-bar-webpack-plugin": "^1.11.0", "progress-bar-webpack-plugin": "^1.11.0",
"style-loader": "^0.23.0", "style-loader": "^0.23.0",
"typescript": "^3.0.3", "typescript": "^3.0.3",
@ -51,8 +51,8 @@
"vue-loader": "^15.4.2", "vue-loader": "^15.4.2",
"vue-router": "^3.0.1", "vue-router": "^3.0.1",
"vue-template-compiler": "2.5.17", "vue-template-compiler": "2.5.17",
"webpack": "^4.19.1", "webpack": "^4.20.2",
"webpack-cli": "^3.1.0", "webpack-cli": "^3.1.1",
"webpack-serve": "^2.0.2" "webpack-serve": "^2.0.2"
} }
} }

View File

@ -54,7 +54,7 @@
&__title { &__title {
max-height: 40px; max-height: 40px;
@mixin multi-ellipsis 2; @include multi-ellipsis(2);
} }
&__desc { &__desc {
@ -62,7 +62,7 @@
font-size: 12px; font-size: 12px;
max-height: 20px; max-height: 20px;
@mixin ellipsis; @include ellipsis;
} }
&__price, &__price,

View File

@ -1,5 +1,5 @@
@import './mixins/clearfix.pcss'; @import './mixins/clearfix.pcss';
.van-clearfix { .van-clearfix {
@mixin clearfix; @include clearfix;
} }

View File

@ -1,13 +1,13 @@
@import './mixins/ellipsis.pcss'; @import './mixins/ellipsis.pcss';
.van-ellipsis { .van-ellipsis {
@mixin ellipsis; @include ellipsis;
} }
.van-multi-ellipsis--l2 { .van-multi-ellipsis--l2 {
@mixin multi-ellipsis 2 @include multi-ellipsis(2);
} }
.van-multi-ellipsis--l3 { .van-multi-ellipsis--l3 {
@mixin multi-ellipsis 3 @include multi-ellipsis(3);
} }

View File

@ -10,7 +10,7 @@
position: relative; position: relative;
&::after { &::after {
@mixin hairline; @include hairline;
} }
} }

View File

@ -1,4 +1,4 @@
@define-mixin clearfix { @mixin clearfix {
&::after { &::after {
content: ''; content: '';
display: table; display: table;

View File

@ -1,13 +1,13 @@
@define-mixin multi-ellipsis $lines { @mixin multi-ellipsis($lines) {
overflow : hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
display: -webkit-box; display: -webkit-box;
-webkit-line-clamp: $lines; -webkit-line-clamp: $lines;
-webkit-box-orient: vertical; -webkit-box-orient: vertical;
} }
@define-mixin ellipsis { @mixin ellipsis {
overflow: hidden; overflow: hidden;
white-space: nowrap; white-space: nowrap;
text-overflow: ellipsis; text-overflow: ellipsis;
} }

View File

@ -1,6 +1,4 @@
@import '../var.pcss'; @mixin hairline($border-color: #eee) {
@define-mixin hairline $border-retina-color: $border-color {
content: ''; content: '';
position: absolute; position: absolute;
top: -50%; top: -50%;
@ -11,5 +9,5 @@
pointer-events: none; pointer-events: none;
box-sizing: border-box; box-sizing: border-box;
transform-origin: center; /* cover wechat button:after default transforn-origin */ transform-origin: center; /* cover wechat button:after default transforn-origin */
border: 0 solid $border-retina-color; border: 0 solid $border-color;
} }

691
yarn.lock

File diff suppressed because it is too large Load Diff