-
Notifications
You must be signed in to change notification settings - Fork 138
/
index.less
99 lines (84 loc) 路 1.87 KB
/
index.less
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
@import '../../style/variable/index.less';
@import '../../style/mixins/box.less';
@import '../../style/mixins/reset.less';
@import '../../style//motion/move.less';
.@{drawer-prefix} {
.reset-component-new();
position: absolute;
pointer-events: none;
width: 100%;
height: 100%;
&-wrapper {
position: fixed;
outline: none;
z-index: 1000;
&.@{drawer-prefix}-with-mask {
.box(fixed);
}
}
&-opened {
&.@{drawer-prefix}-push {
transition: transform var(--ix-motion-duration-medium) var(--ix-motion-ease-out);
transition-delay: var(--ix-motion-duration-fast);
}
&.@{drawer-prefix}-pull {
transition: transform var(--ix-motion-duration-medium) var(--ix-motion-ease-in);
}
}
&-sentinel {
width: 0;
height: 0;
overflow: hidden;
outline: none;
}
&-content {
.reset-font-size();
.reset-color();
position: relative;
display: flex;
flex-direction: column;
height: 100%;
pointer-events: auto;
overflow: hidden;
border: var(--ix-drawer-border-width) var(--ix-drawer-border-type) var(--ix-drawer-border-color);
> .@{header-prefix} {
padding-left: 16px;
padding-right: 16px;
}
}
&-body {
flex: 1;
padding: 8px 16px;
overflow: auto;
}
&-footer {
display: flex;
padding: 12px 16px;
.@{button-prefix} + .@{button-prefix} {
margin-left: 8px;
}
}
&-start {
.@{drawer-prefix}-content {
box-shadow: var(--ix-drawer-box-shadow-start);
border-left: none;
}
}
&-end {
.@{drawer-prefix}-content {
box-shadow: var(--ix-drawer-box-shadow-end);
border-right: none;
}
}
&-top {
.@{drawer-prefix}-content {
box-shadow: var(--ix-drawer-box-shadow-top);
border-top: none;
}
}
&-bottom {
.@{drawer-prefix}-content {
border-bottom: none;
}
}
}