[improvement] Panel: add less vars (#3136)

This commit is contained in:
neverland 2019-04-11 17:55:59 +08:00 committed by GitHub
parent 3645999b3c
commit 9820e0ed62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 5 deletions

View File

@ -88,7 +88,7 @@ body {
}
.van-doc-demo-section {
margin-top: -46px;
padding-top: 46px;
margin-top: -56px;
padding-top: 56px;
}
</style>

View File

@ -1,13 +1,13 @@
@import '../style/var';
.van-panel {
background: @white;
background: @panel-background-color;
&__header-value {
color: @red;
color: @panel-header-value-color;
}
&__footer {
padding: 10px 15px;
padding: @panel-footer-padding;
}
}

View File

@ -190,6 +190,11 @@
// Overlay
@overlay-background-color: rgba(0, 0, 0, 0.7);
// Panel
@panel-background-color: @white;
@panel-header-value-color: @red;
@panel-footer-padding: 10px 15px;
// Radio
@radio-size: 20px;
@radio-border-color: @gray-light;