1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
| .c-side-menu {
| &__header {
| padding: 16px;
| }
|
| &__title {
| margin: 0;
| font-size: 16px;
| font-weight: 600;
| }
|
| &__menu {
| border-right: none;
| }
|
| &__empty {
| padding: 16px;
| color: #999;
| }
|
| &__opened-indicator {
| color: #52c41a;
| font-size: 12px;
| }
|
| // 移动端样式
| &--mobile {
| position: fixed;
| top: 0;
| left: 0;
| z-index: 1000;
| width: 200px;
| height: 100vh;
| background: #fff;
| transform: translateX(-100%);
| transition: transform 0.3s ease;
| box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
|
| &--open {
| transform: translateX(0);
| }
| }
|
| &__overlay {
| position: fixed;
| top: 0;
| left: 0;
| right: 0;
| bottom: 0;
| z-index: 999;
| background: rgba(0, 0, 0, 0.5);
| }
| }
|
|