File tree Expand file tree Collapse file tree 2 files changed +50
-22
lines changed Expand file tree Collapse file tree 2 files changed +50
-22
lines changed Original file line number Diff line number Diff line change 5
5
>
6
6
<veui-button
7
7
ui =" s"
8
+ class =" normal"
8
9
@click =" open = !open"
9
10
>
10
11
<veui-icon name =" clock" />
11
12
{{ t('changelog') }}
12
13
</veui-button >
14
+ <div
15
+ class =" mobile"
16
+ @click =" open = !open"
17
+ >
18
+ <veui-icon
19
+ class =" collapsed-icon"
20
+ name =" clock"
21
+ />
22
+ </div >
13
23
<veui-drawer
14
24
:title =" t('changelog')"
15
25
:open.sync =" open"
@@ -50,28 +60,45 @@ export default {
50
60
}
51
61
</script >
52
62
53
- <style scoped>
54
- .trigger {
55
- position : absolute ;
56
- right : 60px ;
57
- height : 36px ;
58
- display : flex ;
59
- align-items : center ;
60
- }
63
+ <style lang="stylus" scoped>
64
+ .trigger
65
+ position absolute
66
+ right 60px
67
+ height 36px
68
+ display flex
69
+ align-items center
61
70
62
- .changelog {
63
- padding : 12px 16px ;
64
- }
71
+ .changelog
72
+ padding 12px 16px
65
73
66
- @media (max-width : 480px ) {
67
- .trigger {
68
- top : 80px ;
69
- right : 30px ;
70
- height : auto ;
71
- }
74
+ .mobile
75
+ display none
72
76
73
- .drawer {
74
- --dls-drawer-width : calc (100vw - 16px );
75
- }
76
- }
77
+ @media (max-width 480px )
78
+ .normal
79
+ display none
80
+
81
+ .mobile
82
+ display flex
83
+ align-items center
84
+ justify-content center
85
+ width 36px
86
+ height 36px
87
+ position fixed
88
+ top 140px
89
+ right 0
90
+ border 1px solid #e2 e6 f0
91
+ border-top-left-radius 4px
92
+ border-bottom-left-radius 4px
93
+ background-color #f f f
94
+ box-shadow 0 0 12px rgba (0 , 0 , 0 , 0.1 )
95
+ font-size 20px
96
+
97
+ .trigger
98
+ top 80px
99
+ right 30px
100
+ height auto
101
+
102
+ .drawer
103
+ --dls-drawer-width calc (100vw - 16px )
77
104
</style >
Original file line number Diff line number Diff line change @@ -95,6 +95,7 @@ export default {
95
95
96
96
& .expanded
97
97
transform translateX (0 )
98
+ box-shadow 0 0 36px rgba (0 , 0 , 0 , 0.1 )
98
99
99
100
.toggle
100
101
z-index - 1
@@ -112,7 +113,7 @@ export default {
112
113
background-color #f f f
113
114
box-shadow 0 0 12px rgba (0 , 0 , 0 , 0.1 )
114
115
font-size 20px
115
- transition transform 0.3 s , opacity 0.3 s
116
+ z-index 1
116
117
117
118
& ::before
118
119
content ""
You can’t perform that action at this time.
0 commit comments