fix demo stylelint

This commit is contained in:
陈嘉涵 2019-05-10 10:28:31 +08:00
parent ba4f02b9b4
commit 0a2ed005af
15 changed files with 38 additions and 38 deletions

View File

@ -112,11 +112,11 @@ export default {
} }
.van-col { .van-col {
margin-bottom: 10px;
color: @white; color: @white;
font-size: 13px; font-size: 13px;
line-height: 30px; line-height: 30px;
text-align: center; text-align: center;
margin-bottom: 10px;
background-clip: content-box; background-clip: content-box;
&:nth-child(odd) { &:nth-child(odd) {

View File

@ -82,10 +82,10 @@ export default {
.demo-collapse { .demo-collapse {
.van-icon-question-o { .van-icon-question-o {
color: @blue;
vertical-align: -3px;
margin-left: 5px; margin-left: 5px;
color: @blue;
font-size: 15px; font-size: 15px;
vertical-align: -3px;
} }
} }
</style> </style>

View File

@ -132,9 +132,9 @@ export default {
} }
img { img {
box-sizing: border-box;
width: 100%; width: 100%;
padding: 25px 20px 0; padding: 25px 20px 0;
box-sizing: border-box;
} }
} }
</style> </style>

View File

@ -74,31 +74,31 @@ export default {
font-size: 0; font-size: 0;
&-list { &-list {
padding-top: 10px;
box-sizing: border-box; box-sizing: border-box;
min-height: calc(100vh - 65px); min-height: calc(100vh - 65px);
padding-top: 10px;
} }
.van-col { .van-col {
float: none;
text-align: center;
height: 100px;
display: inline-block; display: inline-block;
float: none;
height: 100px;
text-align: center;
vertical-align: middle; vertical-align: middle;
span { span {
display: block; display: block;
padding: 0 5px; padding: 0 5px;
color: @gray-darker;
font-size: 12px; font-size: 12px;
line-height: 18px; line-height: 18px;
color: @gray-darker;
} }
} }
.van-icon { .van-icon {
font-size: 32px;
margin: 20px 0 10px; margin: 20px 0 10px;
color: @text-color; color: @text-color;
font-size: 32px;
} }
.van-tab__pane { .van-tab__pane {

View File

@ -65,16 +65,16 @@ export default {
img, img,
div[lazy] { div[lazy] {
padding: 15px; box-sizing: border-box;
width: 100%; width: 100%;
height: 250px; height: 250px;
margin: 10px 0 0; margin: 10px 0 0;
padding: 15px;
background-color: white; background-color: white;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
background-size: 315px 250px;
background-position: 15px;
background-repeat: no-repeat; background-repeat: no-repeat;
box-sizing: border-box; background-position: 15px;
background-size: 315px 250px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
} }
.van-doc-demo-block__title, .van-doc-demo-block__title,

View File

@ -124,11 +124,11 @@ export default {
} }
.page-desc { .page-desc {
padding: 5px 0;
margin: 0; margin: 0;
padding: 5px 0;
color: @gray-darker;
font-size: 14px; font-size: 14px;
text-align: center; text-align: center;
color: @gray-darker;
&--text { &--text {
margin: 0; margin: 0;

View File

@ -64,8 +64,8 @@ export default {
<style lang="less"> <style lang="less">
.demo-pagination { .demo-pagination {
.van-pagination { .van-pagination {
margin: 5px 0;
width: 100%; width: 100%;
margin: 5px 0;
} }
.van-doc-demo-block { .van-doc-demo-block {

View File

@ -103,8 +103,8 @@ export default {
} }
.van-popup { .van-popup {
padding: 20px;
box-sizing: border-box; box-sizing: border-box;
padding: 20px;
&--center { &--center {
width: 60%; width: 60%;
@ -116,8 +116,8 @@ export default {
} }
&--top { &--top {
color: @white;
width: 100%; width: 100%;
color: @white;
line-height: 20px; line-height: 20px;
background-color: rgba(0, 0, 0, 0.8); background-color: rgba(0, 0, 0, 0.8);
} }

View File

@ -85,16 +85,16 @@ export default {
} }
p { p {
margin: 13px 0 0;
font-size: 14px; font-size: 14px;
line-height: 20px; line-height: 20px;
margin: 13px 0 0;
} }
} }
img { img {
flex-shrink: 0;
width: 32px; width: 32px;
height: 32px; height: 32px;
flex-shrink: 0;
margin-right: 15px; margin-right: 15px;
} }
} }

View File

@ -130,8 +130,8 @@ export default {
font-size: 10px; font-size: 10px;
line-height: 18px; line-height: 18px;
text-align: center; text-align: center;
border-radius: 100px;
background-color: @red; background-color: @red;
border-radius: 100px;
} }
.van-doc-demo-block__title { .van-doc-demo-block__title {

View File

@ -112,8 +112,8 @@ export default {
p, p,
h3 { h3 {
margin: 0; margin: 0;
font-size: inherit;
font-weight: normal; font-weight: normal;
font-size: inherit;
} }
} }
</style> </style>

View File

@ -89,9 +89,9 @@ export default {
.demo-style { .demo-style {
.van-ellipsis { .van-ellipsis {
font-size: 13px;
margin-left: 15px;
max-width: 250px; max-width: 250px;
margin-left: 15px;
font-size: 13px;
} }
.van-hairline--top { .van-hairline--top {
@ -104,14 +104,14 @@ export default {
} }
.demo-animate-block { .demo-animate-block {
position: fixed;
top: 50%; top: 50%;
left: 50%; left: 50%;
width: 100px; width: 100px;
height: 100px; height: 100px;
position: fixed;
border-radius: 3px;
margin: -50px 0 0 -50px; margin: -50px 0 0 -50px;
background-color: @blue; background-color: @blue;
border-radius: 3px;
} }
} }
</style> </style>

View File

@ -89,13 +89,13 @@ export default {
.van-swipe-cell { .van-swipe-cell {
&__left, &__left,
&__right { &__right {
color: @white; display: inline-block;
font-size: 15px;
width: 65px; width: 65px;
height: 44px; height: 44px;
display: inline-block; color: @white;
text-align: center; font-size: 15px;
line-height: 44px; line-height: 44px;
text-align: center;
background-color: @red; background-color: @red;
} }
} }

View File

@ -135,8 +135,8 @@ export default {
&-item { &-item {
color: @white; color: @white;
font-size: 20px; font-size: 20px;
text-align: center;
line-height: 150px; line-height: 150px;
text-align: center;
&:nth-child(even) { &:nth-child(even) {
background-color: #39a9ed; background-color: #39a9ed;
@ -148,11 +148,11 @@ export default {
} }
img { img {
display: block;
box-sizing: border-box;
width: 100%; width: 100%;
height: 240px; height: 240px;
display: block;
padding: 30px 60px; padding: 30px 60px;
box-sizing: border-box;
background-color: @white; background-color: @white;
pointer-events: none; pointer-events: none;
} }
@ -171,8 +171,8 @@ export default {
right: 5px; right: 5px;
bottom: 5px; bottom: 5px;
padding: 2px 5px; padding: 2px 5px;
font-size: 12px;
color: @white; color: @white;
font-size: 12px;
background: rgba(0, 0, 0, .1); background: rgba(0, 0, 0, .1);
} }
} }

View File

@ -186,8 +186,8 @@ export default {
} }
.van-tab__pane { .van-tab__pane {
background-color: @white;
padding: 20px; padding: 20px;
background-color: @white;
} }
.van-tabs--card .van-tab__pane { .van-tabs--card .van-tab__pane {
@ -203,9 +203,9 @@ export default {
} }
.custom-pane { .custom-pane {
text-align: center;
height: 50px; height: 50px;
line-height: 50px; line-height: 50px;
text-align: center;
} }
.van-doc-demo-block:last-child { .van-doc-demo-block:last-child {