|
1 | 1 | @import './theme/static/index.less'; |
2 | 2 |
|
3 | | -.drawer { |
4 | | - position: fixed; |
5 | | - z-index: 9999; |
6 | | - -webkit-transition: width 0s ease 0.3s, height 0s ease 0.3s, |
7 | | - -webkit-transform 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86); |
8 | | - transition: width 0s ease 0.3s, height 0s ease 0.3s, |
9 | | - -webkit-transform 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86); |
10 | | - transition: width 0s ease 0.3s, height 0s ease 0.3s, |
11 | | - transform 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86); |
12 | | - transition: width 0s ease 0.3s, height 0s ease 0.3s, |
13 | | - transform 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86), |
14 | | - -webkit-transform 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86); |
15 | | -} |
16 | | - |
17 | 3 | .drawer > * { |
18 | 4 | -webkit-transition: opacity 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86), |
19 | 5 | -webkit-transform 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86), |
|
31 | 17 | -webkit-box-shadow 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86); |
32 | 18 | } |
33 | 19 |
|
34 | | -.drawer.drawer-open { |
35 | | - -webkit-transition: -webkit-transform 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86); |
36 | | - transition: -webkit-transform 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86); |
37 | | - transition: transform 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86); |
38 | | - transition: transform 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86), |
39 | | - -webkit-transform 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86); |
40 | | -} |
41 | | - |
42 | 20 | .drawer .drawer-mask { |
43 | 21 | background: #000; |
44 | 22 | opacity: 0; |
|
63 | 41 | } |
64 | 42 |
|
65 | 43 | .drawer-handle { |
66 | | - position: absolute; |
67 | | - top: 72px; |
| 44 | + position: fixed; |
| 45 | + top: 100px; |
68 | 46 | width: 41px; |
69 | 47 | height: 40px; |
70 | 48 | cursor: pointer; |
71 | | - z-index: 0; |
| 49 | + z-index: 100; |
72 | 50 | text-align: center; |
73 | 51 | line-height: 40px; |
74 | 52 | font-size: 16px; |
|
82 | 60 | -ms-flex-align: center; |
83 | 61 | align-items: center; |
84 | 62 | background: #fff; |
85 | | -} |
86 | | - |
87 | | -.drawer-handle-icon { |
88 | | - width: 14px; |
89 | | - height: 2px; |
90 | | - background: #333; |
91 | | - position: relative; |
92 | | - -webkit-transition: background 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86); |
93 | | - transition: background 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86); |
94 | | -} |
95 | | - |
96 | | -.drawer-handle-icon:after, |
97 | | -.drawer-handle-icon:before { |
98 | | - content: ''; |
99 | | - display: block; |
100 | | - position: absolute; |
101 | | - background: #333; |
102 | | - width: 100%; |
103 | | - height: 2px; |
104 | | - -webkit-transition: -webkit-transform 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86); |
105 | | - transition: -webkit-transform 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86); |
106 | | - transition: transform 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86); |
107 | | - transition: transform 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86), |
108 | | - -webkit-transform 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86); |
109 | | -} |
110 | | - |
111 | | -.drawer-handle-icon:before { |
112 | | - top: -5px; |
113 | | -} |
114 | | - |
115 | | -.drawer-handle-icon:after { |
116 | | - top: 5px; |
| 63 | + -webkit-box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15); |
| 64 | + box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15); |
| 65 | + border-radius: 0 4px 4px 0; |
117 | 66 | } |
118 | 67 |
|
119 | 68 | .drawer-left, |
|
129 | 78 | height: 100%; |
130 | 79 | } |
131 | 80 |
|
132 | | -.drawer-left.drawer-open, |
133 | | -.drawer-right.drawer-open { |
134 | | - width: 100%; |
135 | | -} |
136 | | - |
137 | | -.drawer-left.drawer-open.no-mask, |
138 | | -.drawer-right.drawer-open.no-mask { |
139 | | - width: 0; |
140 | | -} |
141 | | - |
142 | 81 | .drawer-left { |
143 | 82 | top: 0; |
144 | 83 | left: 0; |
145 | 84 | } |
146 | 85 | .drawer-left .ant-drawer-body { |
147 | 86 | padding: 0; |
148 | 87 | } |
149 | | - |
150 | | -.drawer-left .drawer-handle { |
151 | | - right: -40px; |
152 | | - border-radius: 0 4px 4px 0; |
153 | | -} |
154 | | - |
155 | | -.drawer-left .drawer-handle, |
156 | | -.drawer-left.drawer-open .drawer-content-wrapper { |
157 | | - -webkit-box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15); |
158 | | - box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15); |
159 | | -} |
0 commit comments