[breaking change] remove reset.css dependencies (#196)

* [breaking change] remove reset.css dependencies

* [bugfix] Doc footerNav not show

* [bugfix] PasswordInput Doc link
This commit is contained in:
neverland
2017-10-12 06:25:55 -05:00
committed by GitHub
parent 560ccfdec2
commit 47576ec47c
19 changed files with 331 additions and 305 deletions

View File

@@ -54,10 +54,11 @@
&__title {
font-size: 14px;
margin-bottom: 4px;
margin: 0 0 4px;
}
&__subtitle {
margin: 0;
font-size: 12px;
color: $gray-darker;
}

View File

@@ -1,12 +1,12 @@
@import './common/var.css';
$van-checkbox-size: 18px;
$van-checkbox-size: 20px;
.van-checkbox {
overflow: hidden;
.van-icon-success {
color: #fff;
color: $white;
display: block;
line-height: 1;
font-size: 14px;
@@ -15,10 +15,11 @@ $van-checkbox-size: 18px;
border: 1px solid #aaa;
width: $van-checkbox-size;
height: $van-checkbox-size;
box-sizing: border-box;
&::before {
margin: 0 auto;
line-height: $van-checkbox-size;
line-height: calc($van-checkbox-size - 2px);
transition: all .2s cubic-bezier(.12,.4,.29,1.46) .1s;
transform: scale(0);
}
@@ -26,7 +27,7 @@ $van-checkbox-size: 18px;
&__input {
position: relative;
height: calc($van-checkbox-size + 2px);
height: $van-checkbox-size;
margin-right: 15px;
float: left;
}
@@ -37,14 +38,14 @@ $van-checkbox-size: 18px;
left: 0;
opacity: 0;
margin: 0;
width: calc($van-checkbox-size + 2px);
height: calc($van-checkbox-size + 2px);
width: $van-checkbox-size;
height: $van-checkbox-size;
}
&__label {
display: block;
margin-left: 37px;
line-height: calc($van-checkbox-size + 2px);
line-height: $van-checkbox-size;
}
&--round {

View File

@@ -30,6 +30,8 @@ ul {
list-style: none;
}
button {
font-family: inherit;
input,
button,
textarea {
font: inherit;
}

View File

@@ -2,7 +2,7 @@
.van-contact-card {
position: relative;
background-color: #fff;
background-color: $white;
&--add {
line-height: 40px;

View File

@@ -25,8 +25,9 @@
}
&__text {
margin: 0;
color: $text-color;
font-size: 14px;
color: #333;
line-height: 1.5;
}

View File

@@ -146,7 +146,7 @@
span {
color: $gray-dark;
font-size: 12px;
margin-top: 5px;
margin: 5px 0 0;
}
p,

View File

@@ -4,7 +4,6 @@
/* base */
@import './base.css';
@import './reset.css';
/* common components */
@import './col.css';

View File

@@ -6,7 +6,7 @@
user-select: none;
text-align: center;
line-height: 46px;
background-color: #fff;
background-color: $white;
.van-icon {
color: $blue;

View File

@@ -1,202 +1,218 @@
@import './mixins/border_retina.css';
@import './common/var.css';
.van-sku-container {
background: #f8f8f8;
}
.van-sku-layout {
background: #fff;
}
.van-sku-body {
max-height: 350px;
overflow-y: scroll;
&::-webkit-scrollbar {
display: none;
.van-sku {
&-container {
background: $background-color;
}
}
.van-sku-group-container {
position: relative;
padding-top: 12px;
padding-bottom: 2px;
margin-left: 15px;
&::after {
@mixin border-retina (bottom);
&-layout {
background: $white;
}
}
.van-sku-row-group {
margin-right: 15px;
margin-bottom: 10px;
&-body {
max-height: 350px;
overflow-y: scroll;
&:last-child {
margin-bottom: 0;
&::-webkit-scrollbar {
display: none;
}
}
}
/*
sku header
*/
.van-sku-header {
position: relative;
margin-left: 15px;
&-group-container {
margin-left: 15px;
position: relative;
padding: 12px 0 2px;
&::after {
@mixin border-retina (bottom);
&::after {
@mixin border-retina (bottom);
}
}
}
.van-sku-header__img-wrap {
position: relative;
float: left;
margin-top: -10px;
width: 80px;
height: 80px;
background: #fafafa;
border-radius: 2px;
.van-sku__goods-img {
&-row-group {
margin: 0 15px 10px 0;
&:last-child {
margin-bottom: 0;
}
}
/* sku header */
&-header {
position: relative;
margin-left: 15px;
&::after {
@mixin border-retina (bottom);
}
&__img-wrap {
position: relative;
float: left;
margin-top: -10px;
width: 80px;
height: 80px;
background: $background-color;
border-radius: 2px;
.van-sku__goods-img {
position: absolute;
margin: auto;
top: 0;
left: 0;
right: 0;
bottom: 0;
max-width: 100%;
max-height: 100%;
}
}
&__goods-info {
padding: 10px 60px 10px 10px;
min-height: 82px;
overflow: hidden;
box-sizing: border-box;
}
}
&__goods-name {
font-size: 12px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
&__price-symbol {
font-size: 14px;
vertical-align: middle;
}
&__price-num {
vertical-align: middle;
}
&__goods-price {
color: $red;
margin-top: 10px;
font-size: 16px;
vertical-align: middle;
}
&__close-icon {
position: absolute;
margin: auto;
top: 0;
left: 0;
right: 0;
bottom: 0;
max-width: 100%;
max-height: 100%;
width: 44px;
height: 44px;
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAMAAAApWqozAAAAUVBMVEUAAACfn5+bm5uampqZmZmoqKiampqampqZmZmampqampqbm5ubm5uZmZmqqqqampqampqZmZmampqampqampqbm5ubm5uampqdnZ2ampqZmZkjZXmqAAAAGnRSTlMAFYBC5wm+rdPv1Ckl8wzZxKWicm9eUjoN8nSyS9UAAAFVSURBVDjLvZXbrsIgEEWhtAUU6M1a3f//oSeHWKfuVhv7IC+TkJVhz4UZ9bsThq5uYmzqbgifSV04LI4r9Fs0FRHw/WhCugUz9h6IRdpmryVgzfLGWKC8brEF0E58ObVAsUIrC1y2fFwAW9GdhTfb6oyHZQ3+/C7us39VcgXE79o3sIgylayXdZdpIaJVH08rQnTE9BmeEPXsWMK1rV6m01Xz/dO1g5H3nH6yNcoZNnCPPoOXTjplemYlnR4h2wG9YppZ1WPItsOomGZWjeiyrWEU08wqgzrbBkERfWJWBTTZRiTFNLMqIWZ7x43atQYa+lA33EmG5KyB0yyDApT8/uvWFCCnTvIrtKRuLgqzQktRpNzMCi3l5kaymZXqiGS3blGX2Zl2ftGi6+avqtcsUvN/8a2++LCHRsH+kDkwvg4Mxt2Re3yY85pIsiaOLKD91faz8wcoUxux/aS9awAAAABJRU5ErkJggg==);
background-size: 22px 22px;
background-repeat: no-repeat;
background-position: 7px 10px;
}
}
.van-sku-header__goods-info {
padding: 10px 60px 10px 10px;
min-height: 62px;
overflow: hidden;
}
.van-sku__goods-name {
font-size: 12px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.van-sku__price-symbol {
font-size: 14px;
vertical-align: middle;
}
.van-sku__price-num {
vertical-align: middle;
}
.van-sku__goods-price {
margin-top: 10px;
font-size: 16px;
color: #f44;
vertical-align: middle;
}
.van-sku__close-icon {
position: absolute;
top: 0;
right: 0;
width: 44px;
height: 44px;
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAMAAAApWqozAAAAUVBMVEUAAACfn5+bm5uampqZmZmoqKiampqampqZmZmampqampqbm5ubm5uZmZmqqqqampqampqZmZmampqampqampqbm5ubm5uampqdnZ2ampqZmZkjZXmqAAAAGnRSTlMAFYBC5wm+rdPv1Ckl8wzZxKWicm9eUjoN8nSyS9UAAAFVSURBVDjLvZXbrsIgEEWhtAUU6M1a3f//oSeHWKfuVhv7IC+TkJVhz4UZ9bsThq5uYmzqbgifSV04LI4r9Fs0FRHw/WhCugUz9h6IRdpmryVgzfLGWKC8brEF0E58ObVAsUIrC1y2fFwAW9GdhTfb6oyHZQ3+/C7us39VcgXE79o3sIgylayXdZdpIaJVH08rQnTE9BmeEPXsWMK1rV6m01Xz/dO1g5H3nH6yNcoZNnCPPoOXTjplemYlnR4h2wG9YppZ1WPItsOomGZWjeiyrWEU08wqgzrbBkERfWJWBTTZRiTFNLMqIWZ7x43atQYa+lA33EmG5KyB0yyDApT8/uvWFCCnTvIrtKRuLgqzQktRpNzMCi3l5kaymZXqiGS3blGX2Zl2ftGi6+avqtcsUvN/8a2++LCHRsH+kDkwvg4Mxt2Re3yY85pIsiaOLKD91faz8wcoUxux/aS9awAAAABJRU5ErkJggg==);
background-size: 22px 22px;
background-repeat: no-repeat;
background-position: 7px 10px;
}
/*
sku row
*/
.van-sku-row__title {
font-size: 14px;
padding-bottom: 10px;
}
.van-sku-row__item {
display: inline-block;
padding: 5px 9px;
margin-right: 10px;
margin-bottom: 10px;
height: 16px;
min-width: 32px;
line-height: 16px;
font-size: 12px;
color: #333;
text-align: center;
border: 1px solid #999;
border-radius: 3px;
/* sku row */
&-row {
&__title {
font-size: 14px;
padding-bottom: 10px;
}
&.van-sku-row__item--active {
border-color: #f44;
color: #fff;
background: #f44;
&__item {
display: inline-block;
padding: 5px 9px;
margin: 0 10px 10px 0;
height: 28px;
min-width: 52px;
line-height: 16px;
font-size: 12px;
color: $text-color;
text-align: center;
border: 1px solid $gray-dark;
border-radius: 3px;
box-sizing: border-box;
&.van-sku-row__item--active {
color: $white;
border-color: $red;
background: $red;
}
&.van-sku-row__item--disabled {
background: $active-color;
border-color: $gray-light;
color: $gray;
}
}
}
&.van-sku-row__item--disabled {
background: #efefef;
border-color: #e5e5e5;
color: #cacaca;
/* sku stepper */
&-stepper {
&-stock {
padding: 12px 0;
margin-left: 15px;
}
&-container {
height: 30px;
margin-right: 20px;
}
}
}
&__stepper {
top: 7px;
left: 4px;
float: right;
/*
sku stepper
*/
.van-sku-stepper-stock {
padding: 12px 0;
margin-left: 15px;
}
.van-sku-stepper-container {
height: 30px;
margin-right: 20px;
}
.van-sku__stepper-title {
float: left;
line-height: 30px;
font-size: 14px;
}
.van-sku__stepper {
float: right;
top: 7px;
left: 4px;
}
.van-sku__stock {
display: inline-block;
margin-right: 10px;
color: #999;
font-size: 12px;
}
.van-sku__quota {
display: inline-block;
color: #f44;
font-size: 12px;
}
&-title {
float: left;
line-height: 30px;
font-size: 14px;
}
}
/*
sku actions
*/
.van-sku-actions {
margin-top: 10px;
font-size: 0;
}
.van-sku__add-cart-btn {
width: 50%;
height: 50px;
padding: 0;
border: 0;
background: #f85;
color: #fff;
font-size: 16px;
line-height: 50px;
text-align: center;
&__stock {
display: inline-block;
margin-right: 10px;
color: $gray-dark;
font-size: 12px;
}
&__quota {
display: inline-block;
color: $red;
font-size: 12px;
}
& + .van-sku__buy-btn {
/* sku actions */
&-actions {
margin-top: 10px;
font-size: 0;
}
&__add-cart-btn {
width: 50%;
height: 50px;
padding: 0;
border: 0;
background: $orange;
color: $white;
font-size: 16px;
line-height: 50px;
text-align: center;
& + .van-sku__buy-btn {
width: 50%;
}
}
&__buy-btn {
width: 100%;
height: 50px;
padding: 0;
border: 0;
background: $red;
color: $white;
font-size: 16px;
line-height: 50px;
text-align: center;
}
}
.van-sku__buy-btn {
width: 100%;
height: 50px;
padding: 0;
border: 0;
background: #f44;
color: #fff;
font-size: 16px;
line-height: 50px;
text-align: center;
}

View File

@@ -13,7 +13,7 @@
font-size: 12px;
line-height: 18px;
padding: 10px 10px;
background-color: #fff6e1;
background-color: $white6e1;
}
&__bar {

View File

@@ -1,12 +1,13 @@
@import './common/var.css';
.van-switch {
height: 31px;
width: 51px;
height: 33px;
width: 53px;
display: inline-block;
position: relative;
background: $white;
border-radius: 16px;
box-sizing: border-box;
border: 1px solid rgba(0, 0, 0, .1);
border-radius: 32px;

View File

@@ -13,6 +13,7 @@
align-items: center;
justify-content: center;
flex-direction: column;
box-sizing: border-box;
transform: translate3d(-50%, -50%, 0);
background-color: rgba(39, 39, 39, .7);
@@ -32,12 +33,12 @@
&--text {
padding: 12px;
min-width: 200px;
min-width: 220px;
}
&--default {
width: 90px;
min-height: 90px;
width: 120px;
min-height: 120px;
padding: 15px;
.van-toast__icon {