bklLiudl
2025-04-07 4e8f58cb41c7b6d570fd1979d80f74ab8a4d00c2
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
@drawer-prefix-cls: ~"@{css-prefix}drawer";
 
.@{drawer-prefix-cls} {
    width: auto;
    height: 100%;
    position: fixed;
    top: 0;
 
    &-inner{
        position: absolute;
    }
 
    &-left{
        left: 0;
    }
    &-right{
        right: 0;
    }
    &-top, &-bottom{
        width: 100%;
        height: auto;
        top: auto;
    }
    &-bottom{
        bottom: 0;
    }
 
    &-hidden {
        display: none !important;
    }
 
    &-wrap {
        position: fixed;
        overflow: auto;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: @zindex-drawer;
        -webkit-overflow-scrolling: touch;
        outline: 0;
 
        &-inner{
            position: absolute;
            overflow: hidden;
        }
 
        &-dragging{
            user-select: none;
        }
    }
 
    &-wrap * {
        box-sizing: border-box;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    }
 
    &-mask {
        .mask;
        &-inner{
            position: absolute;
        }
    }
 
    &-content {
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        bottom: 0;
        background-color: #fff;
        border: 0;
        background-clip: padding-box;
        box-shadow: 0 4px 12px rgba(0,0,0,.15);
 
        &-no-mask{
            pointer-events: auto;
        }
    }
 
    &-header {
        .content-header;
    }
 
    &-close {
        z-index: 1;
        .content-close(1px, 31px);
    }
 
    &-body {
        width: 100%;
        height: calc(~'100% - 51px');
        padding: 16px;
        font-size: @font-size-base;
        line-height: 1.5;
        word-wrap: break-word;
        position: absolute;
        overflow: auto;
    }
 
    &-no-header &-body{
        height: 100%;
    }
 
    &-no-mask{
        pointer-events: none;
 
        .@{drawer-prefix-cls}-drag{
            pointer-events: auto;
        }
    }
 
    &-drag{
        top: 0;
        height: 100%;
        width: 0;
        position: absolute;
        &-left{
            right: 0;
        }
        &-top, &-bottom{
            top: auto;
            width: 100%;
            height: 0;
        }
        &-top{
            bottom: 0;
        }
        &-bottom{
            top: 0;
        }
        &-move-trigger{
            width: 8px;
            height: 100px;
            line-height: 100px;
            position: absolute;
            top: 50%;
            background: rgb(243, 243, 243);
            transform: translate(-50%, -50%);
            border-radius: 4px;
            box-shadow: 0 0 1px 1px rgba(0, 0, 0, .2);
            cursor: col-resize;
            &-point{
                display: inline-block;
                width: 50%;
                transform: translateX(50%);
                i{
                    display: block;
                    border-bottom: 1px solid rgb(192, 192, 192);
                    padding-bottom: 2px;
                }
            }
        }
        &-top &-move-trigger, &-bottom &-move-trigger{
            width: 100px;
            height: 8px;
            line-height: 8px;
            top: auto;
            left: 50%;
            cursor: row-resize;
            &-point{
                width: 100%;
                height: 50%;
                transform: translateY(-75%);
                text-align: center;
                i{
                    display: inline-block;
                    border-bottom: inherit;
                    width: 1px;
                    height: 100%;
                    border-left: 1px solid rgb(192, 192, 192);
                    padding-bottom: inherit;
                    margin-left: 2px;
                }
            }
        }
    }
}