mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
fix demo stylelint
This commit is contained in:
parent
ba4f02b9b4
commit
0a2ed005af
@ -112,11 +112,11 @@ export default {
|
||||
}
|
||||
|
||||
.van-col {
|
||||
margin-bottom: 10px;
|
||||
color: @white;
|
||||
font-size: 13px;
|
||||
line-height: 30px;
|
||||
text-align: center;
|
||||
margin-bottom: 10px;
|
||||
background-clip: content-box;
|
||||
|
||||
&:nth-child(odd) {
|
||||
|
@ -82,10 +82,10 @@ export default {
|
||||
|
||||
.demo-collapse {
|
||||
.van-icon-question-o {
|
||||
color: @blue;
|
||||
vertical-align: -3px;
|
||||
margin-left: 5px;
|
||||
color: @blue;
|
||||
font-size: 15px;
|
||||
vertical-align: -3px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
@ -132,9 +132,9 @@ export default {
|
||||
}
|
||||
|
||||
img {
|
||||
box-sizing: border-box;
|
||||
width: 100%;
|
||||
padding: 25px 20px 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
@ -74,31 +74,31 @@ export default {
|
||||
font-size: 0;
|
||||
|
||||
&-list {
|
||||
padding-top: 10px;
|
||||
box-sizing: border-box;
|
||||
min-height: calc(100vh - 65px);
|
||||
padding-top: 10px;
|
||||
}
|
||||
|
||||
.van-col {
|
||||
float: none;
|
||||
text-align: center;
|
||||
height: 100px;
|
||||
display: inline-block;
|
||||
float: none;
|
||||
height: 100px;
|
||||
text-align: center;
|
||||
vertical-align: middle;
|
||||
|
||||
span {
|
||||
display: block;
|
||||
padding: 0 5px;
|
||||
color: @gray-darker;
|
||||
font-size: 12px;
|
||||
line-height: 18px;
|
||||
color: @gray-darker;
|
||||
}
|
||||
}
|
||||
|
||||
.van-icon {
|
||||
font-size: 32px;
|
||||
margin: 20px 0 10px;
|
||||
color: @text-color;
|
||||
font-size: 32px;
|
||||
}
|
||||
|
||||
.van-tab__pane {
|
||||
|
@ -65,16 +65,16 @@ export default {
|
||||
|
||||
img,
|
||||
div[lazy] {
|
||||
padding: 15px;
|
||||
box-sizing: border-box;
|
||||
width: 100%;
|
||||
height: 250px;
|
||||
margin: 10px 0 0;
|
||||
padding: 15px;
|
||||
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;
|
||||
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,
|
||||
|
@ -124,11 +124,11 @@ export default {
|
||||
}
|
||||
|
||||
.page-desc {
|
||||
padding: 5px 0;
|
||||
margin: 0;
|
||||
padding: 5px 0;
|
||||
color: @gray-darker;
|
||||
font-size: 14px;
|
||||
text-align: center;
|
||||
color: @gray-darker;
|
||||
|
||||
&--text {
|
||||
margin: 0;
|
||||
|
@ -64,8 +64,8 @@ export default {
|
||||
<style lang="less">
|
||||
.demo-pagination {
|
||||
.van-pagination {
|
||||
margin: 5px 0;
|
||||
width: 100%;
|
||||
margin: 5px 0;
|
||||
}
|
||||
|
||||
.van-doc-demo-block {
|
||||
|
@ -103,8 +103,8 @@ export default {
|
||||
}
|
||||
|
||||
.van-popup {
|
||||
padding: 20px;
|
||||
box-sizing: border-box;
|
||||
padding: 20px;
|
||||
|
||||
&--center {
|
||||
width: 60%;
|
||||
@ -116,8 +116,8 @@ export default {
|
||||
}
|
||||
|
||||
&--top {
|
||||
color: @white;
|
||||
width: 100%;
|
||||
color: @white;
|
||||
line-height: 20px;
|
||||
background-color: rgba(0, 0, 0, 0.8);
|
||||
}
|
||||
|
@ -85,16 +85,16 @@ export default {
|
||||
}
|
||||
|
||||
p {
|
||||
margin: 13px 0 0;
|
||||
font-size: 14px;
|
||||
line-height: 20px;
|
||||
margin: 13px 0 0;
|
||||
}
|
||||
}
|
||||
|
||||
img {
|
||||
flex-shrink: 0;
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
flex-shrink: 0;
|
||||
margin-right: 15px;
|
||||
}
|
||||
}
|
||||
|
@ -130,8 +130,8 @@ export default {
|
||||
font-size: 10px;
|
||||
line-height: 18px;
|
||||
text-align: center;
|
||||
border-radius: 100px;
|
||||
background-color: @red;
|
||||
border-radius: 100px;
|
||||
}
|
||||
|
||||
.van-doc-demo-block__title {
|
||||
|
@ -112,8 +112,8 @@ export default {
|
||||
p,
|
||||
h3 {
|
||||
margin: 0;
|
||||
font-size: inherit;
|
||||
font-weight: normal;
|
||||
font-size: inherit;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
@ -89,9 +89,9 @@ export default {
|
||||
|
||||
.demo-style {
|
||||
.van-ellipsis {
|
||||
font-size: 13px;
|
||||
margin-left: 15px;
|
||||
max-width: 250px;
|
||||
margin-left: 15px;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.van-hairline--top {
|
||||
@ -104,14 +104,14 @@ export default {
|
||||
}
|
||||
|
||||
.demo-animate-block {
|
||||
position: fixed;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
position: fixed;
|
||||
border-radius: 3px;
|
||||
margin: -50px 0 0 -50px;
|
||||
background-color: @blue;
|
||||
border-radius: 3px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
@ -89,13 +89,13 @@ export default {
|
||||
.van-swipe-cell {
|
||||
&__left,
|
||||
&__right {
|
||||
color: @white;
|
||||
font-size: 15px;
|
||||
display: inline-block;
|
||||
width: 65px;
|
||||
height: 44px;
|
||||
display: inline-block;
|
||||
text-align: center;
|
||||
color: @white;
|
||||
font-size: 15px;
|
||||
line-height: 44px;
|
||||
text-align: center;
|
||||
background-color: @red;
|
||||
}
|
||||
}
|
||||
|
@ -135,8 +135,8 @@ export default {
|
||||
&-item {
|
||||
color: @white;
|
||||
font-size: 20px;
|
||||
text-align: center;
|
||||
line-height: 150px;
|
||||
text-align: center;
|
||||
|
||||
&:nth-child(even) {
|
||||
background-color: #39a9ed;
|
||||
@ -148,11 +148,11 @@ export default {
|
||||
}
|
||||
|
||||
img {
|
||||
display: block;
|
||||
box-sizing: border-box;
|
||||
width: 100%;
|
||||
height: 240px;
|
||||
display: block;
|
||||
padding: 30px 60px;
|
||||
box-sizing: border-box;
|
||||
background-color: @white;
|
||||
pointer-events: none;
|
||||
}
|
||||
@ -171,8 +171,8 @@ export default {
|
||||
right: 5px;
|
||||
bottom: 5px;
|
||||
padding: 2px 5px;
|
||||
font-size: 12px;
|
||||
color: @white;
|
||||
font-size: 12px;
|
||||
background: rgba(0, 0, 0, .1);
|
||||
}
|
||||
}
|
||||
|
@ -186,8 +186,8 @@ export default {
|
||||
}
|
||||
|
||||
.van-tab__pane {
|
||||
background-color: @white;
|
||||
padding: 20px;
|
||||
background-color: @white;
|
||||
}
|
||||
|
||||
.van-tabs--card .van-tab__pane {
|
||||
@ -203,9 +203,9 @@ export default {
|
||||
}
|
||||
|
||||
.custom-pane {
|
||||
text-align: center;
|
||||
height: 50px;
|
||||
line-height: 50px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.van-doc-demo-block:last-child {
|
||||
|
Loading…
x
Reference in New Issue
Block a user