[breaking change] rebuild style struct (#2021)
This commit is contained in:
@@ -88,7 +88,7 @@ export default {
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="postcss">
|
||||
<style lang="less">
|
||||
.demo-dialog {
|
||||
.van-doc-demo-block > .van-button {
|
||||
margin-left: 15px;
|
||||
|
||||
@@ -0,0 +1,69 @@
|
||||
@import '../style/var';
|
||||
|
||||
.van-dialog {
|
||||
position: fixed;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
width: 85%;
|
||||
font-size: 16px;
|
||||
overflow: hidden;
|
||||
transition: .3s;
|
||||
border-radius: 4px;
|
||||
background-color: @white;
|
||||
transform: translate3d(-50%, -50%, 0);
|
||||
|
||||
&__header {
|
||||
font-weight: 500;
|
||||
padding-top: 25px;
|
||||
text-align: center;
|
||||
|
||||
&--isolated {
|
||||
padding: 25px 0;
|
||||
}
|
||||
}
|
||||
|
||||
&__message {
|
||||
padding: 25px;
|
||||
font-size: 14px;
|
||||
line-height: 1.5;
|
||||
|
||||
&--has-title {
|
||||
padding-top: 12px;
|
||||
color: @gray-darker;
|
||||
}
|
||||
}
|
||||
|
||||
&__footer {
|
||||
overflow: hidden;
|
||||
user-select: none;
|
||||
|
||||
&--buttons {
|
||||
display: flex;
|
||||
|
||||
.van-button {
|
||||
flex: 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.van-button {
|
||||
border: 0;
|
||||
}
|
||||
|
||||
&__confirm {
|
||||
&,
|
||||
&:active {
|
||||
color: @blue;
|
||||
}
|
||||
}
|
||||
|
||||
&-bounce-enter {
|
||||
opacity: 0;
|
||||
transform: translate3d(-50%, -50%, 0) scale(0.7);
|
||||
}
|
||||
|
||||
&-bounce-leave-active {
|
||||
opacity: 0;
|
||||
transform: translate3d(-50%, -50%, 0) scale(0.9);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user