[breaking change] rebuild style struct (#2021)

This commit is contained in:
neverland
2018-11-03 21:08:06 +08:00
committed by GitHub
parent a5576762d8
commit 11ce2a602f
165 changed files with 1371 additions and 4729 deletions
+1 -1
View File
@@ -55,7 +55,7 @@ export default {
};
</script>
<style lang="postcss">
<style lang="less">
.demo-image-preview {
.van-button {
margin-left: 15px;
+38
View File
@@ -0,0 +1,38 @@
@import '../style/var';
.van-image-preview {
top: 0;
left: 0;
width: 100%;
height: 100%;
position: fixed;
&__image {
top: 0;
left: 0;
right: 0;
bottom: 0;
margin: auto;
max-width: 100%;
max-height: 100%;
position: absolute;
}
&__index {
position: absolute;
top: 10px;
left: 50%;
color: @white;
font-size: 14px;
letter-spacing: 2px;
transform: translate(-50%, 0);
}
&__overlay {
background-color: rgba(0, 0, 0, .9);
}
.van-swipe {
height: 100%;
}
}