@whitesev/pops 3.2.1 → 3.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +249 -249
- package/dist/index.amd.js +736 -948
- package/dist/index.amd.js.map +1 -1
- package/dist/index.amd.min.js +1 -1
- package/dist/index.amd.min.js.map +1 -1
- package/dist/index.cjs.js +736 -948
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.cjs.min.js +1 -1
- package/dist/index.cjs.min.js.map +1 -1
- package/dist/index.esm.js +736 -948
- package/dist/index.esm.js.map +1 -1
- package/dist/index.esm.min.js +1 -1
- package/dist/index.esm.min.js.map +1 -1
- package/dist/index.iife.js +736 -948
- package/dist/index.iife.js.map +1 -1
- package/dist/index.iife.min.js +1 -1
- package/dist/index.iife.min.js.map +1 -1
- package/dist/index.system.js +736 -948
- package/dist/index.system.js.map +1 -1
- package/dist/index.system.min.js +1 -1
- package/dist/index.system.min.js.map +1 -1
- package/dist/index.umd.js +736 -948
- package/dist/index.umd.js.map +1 -1
- package/dist/index.umd.min.js +1 -1
- package/dist/index.umd.min.js.map +1 -1
- package/dist/types/src/PopsCore.d.ts +15 -7
- package/dist/types/src/components/folder/types/index.d.ts +43 -13
- package/dist/types/src/types/PopsDOMUtilsEventType.d.ts +313 -313
- package/dist/types/src/types/animation.d.ts +19 -19
- package/dist/types/src/types/button.d.ts +94 -94
- package/dist/types/src/types/components.d.ts +211 -211
- package/dist/types/src/types/event.d.ts +43 -43
- package/dist/types/src/types/global.d.ts +31 -31
- package/dist/types/src/types/icon.d.ts +32 -32
- package/dist/types/src/types/inst.d.ts +28 -28
- package/dist/types/src/types/main.d.ts +66 -66
- package/dist/types/src/types/mask.d.ts +52 -52
- package/dist/types/src/types/position.d.ts +60 -60
- package/package.json +28 -27
- package/src/Pops.ts +206 -206
- package/src/PopsAnimation.ts +32 -32
- package/src/PopsCSS.ts +54 -54
- package/src/PopsCore.ts +53 -37
- package/src/PopsIcon.ts +95 -95
- package/src/PopsInst.ts +21 -21
- package/src/components/alert/defaultConfig.ts +62 -62
- package/src/components/alert/index.ts +163 -163
- package/src/components/alert/types/index.ts +23 -23
- package/src/components/confirm/defaultConfig.ts +90 -90
- package/src/components/confirm/index.ts +165 -165
- package/src/components/confirm/types/index.ts +13 -17
- package/src/components/drawer/defaultConfig.ts +89 -89
- package/src/components/drawer/index.css +37 -37
- package/src/components/drawer/index.ts +245 -245
- package/src/components/drawer/types/index.ts +62 -61
- package/src/components/folder/defaultConfig.ts +151 -151
- package/src/components/folder/folderIcon.ts +28 -28
- package/src/components/folder/index.css +303 -303
- package/src/components/folder/index.ts +953 -932
- package/src/components/folder/types/index.ts +143 -110
- package/src/components/iframe/defaultConfig.ts +60 -60
- package/src/components/iframe/index.css +76 -76
- package/src/components/iframe/index.ts +331 -331
- package/src/components/iframe/types/index.ts +96 -96
- package/src/components/loading/defaultConfig.ts +29 -29
- package/src/components/loading/index.css +66 -66
- package/src/components/loading/index.ts +101 -101
- package/src/components/loading/types/index.ts +36 -34
- package/src/components/panel/css/components-select.css +84 -84
- package/src/components/panel/defaultConfig.ts +868 -868
- package/src/components/panel/handlerComponents.ts +3993 -3993
- package/src/components/panel/index.css +1403 -1403
- package/src/components/panel/index.ts +221 -221
- package/src/components/panel/types/components-button.ts +56 -56
- package/src/components/panel/types/components-common.ts +73 -73
- package/src/components/panel/types/components-container.ts +25 -25
- package/src/components/panel/types/components-deepMenu.ts +64 -64
- package/src/components/panel/types/components-input.ts +90 -90
- package/src/components/panel/types/components-own.ts +16 -16
- package/src/components/panel/types/components-select.ts +169 -169
- package/src/components/panel/types/components-selectMultiple.ts +105 -104
- package/src/components/panel/types/components-slider.ts +55 -55
- package/src/components/panel/types/components-switch.ts +33 -33
- package/src/components/panel/types/components-textarea.ts +45 -45
- package/src/components/panel/types/index.ts +244 -244
- package/src/components/prompt/defaultConfig.ts +94 -94
- package/src/components/prompt/index.css +34 -34
- package/src/components/prompt/index.ts +187 -215
- package/src/components/prompt/types/index.ts +57 -56
- package/src/components/rightClickMenu/defaultConfig.ts +103 -103
- package/src/components/rightClickMenu/index.css +115 -115
- package/src/components/rightClickMenu/index.ts +662 -662
- package/src/components/rightClickMenu/types/index.ts +145 -143
- package/src/components/searchSuggestion/defaultConfig.ts +63 -63
- package/src/components/searchSuggestion/index.ts +813 -813
- package/src/components/searchSuggestion/types/index.ts +244 -242
- package/src/components/tooltip/defaultConfig.ts +33 -33
- package/src/components/tooltip/index.css +199 -199
- package/src/components/tooltip/index.ts +617 -617
- package/src/components/tooltip/types/index.ts +123 -121
- package/src/config/CommonCSSClassName.ts +17 -17
- package/src/config/GlobalConfig.ts +63 -63
- package/src/css/animation.css +987 -987
- package/src/css/button.css +551 -551
- package/src/css/common.css +54 -54
- package/src/css/index.css +253 -253
- package/src/css/ninePalaceGridPosition.css +50 -50
- package/src/css/scrollbar.css +22 -22
- package/src/handler/PopsElementHandler.ts +303 -303
- package/src/handler/PopsHandler.ts +611 -611
- package/src/types/PopsDOMUtilsEventType.d.ts +313 -313
- package/src/types/animation.d.ts +19 -19
- package/src/types/button.d.ts +94 -94
- package/src/types/components.d.ts +211 -211
- package/src/types/event.d.ts +43 -43
- package/src/types/global.d.ts +31 -31
- package/src/types/icon.d.ts +32 -32
- package/src/types/inst.d.ts +28 -28
- package/src/types/main.d.ts +66 -66
- package/src/types/mask.d.ts +52 -52
- package/src/types/position.d.ts +60 -60
- package/src/utils/PopsDOMUtils.ts +2483 -2483
- package/src/utils/PopsDOMUtilsEventsConfig.ts +4 -4
- package/src/utils/PopsInstanceUtils.ts +714 -714
- package/src/utils/PopsMathUtils.ts +71 -71
- package/src/utils/PopsSafeUtils.ts +22 -22
- package/src/utils/PopsUtils.ts +391 -421
package/src/css/common.css
CHANGED
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
.pops-flex-items-center {
|
|
2
|
-
display: flex;
|
|
3
|
-
align-items: center;
|
|
4
|
-
}
|
|
5
|
-
.pops-flex-y-center {
|
|
6
|
-
display: flex;
|
|
7
|
-
justify-content: space-between;
|
|
8
|
-
}
|
|
9
|
-
.pops-flex-x-center {
|
|
10
|
-
display: flex;
|
|
11
|
-
align-content: center;
|
|
12
|
-
}
|
|
13
|
-
.pops-hide {
|
|
14
|
-
display: none;
|
|
15
|
-
}
|
|
16
|
-
.pops-hide-important {
|
|
17
|
-
display: none !important;
|
|
18
|
-
}
|
|
19
|
-
.pops-no-border {
|
|
20
|
-
border: 0;
|
|
21
|
-
}
|
|
22
|
-
.pops-no-border-important {
|
|
23
|
-
border: 0 !important;
|
|
24
|
-
}
|
|
25
|
-
.pops-user-select-none {
|
|
26
|
-
-webkit-user-select: none;
|
|
27
|
-
-moz-user-select: none;
|
|
28
|
-
-ms-user-select: none;
|
|
29
|
-
user-select: none;
|
|
30
|
-
}
|
|
31
|
-
.pops-line-height-center {
|
|
32
|
-
line-height: normal;
|
|
33
|
-
align-content: center;
|
|
34
|
-
}
|
|
35
|
-
.pops-width-fill {
|
|
36
|
-
width: 100%;
|
|
37
|
-
width: -moz-available;
|
|
38
|
-
width: -webkit-fill-available;
|
|
39
|
-
}
|
|
40
|
-
.pops-height-fill {
|
|
41
|
-
height: 100%;
|
|
42
|
-
height: -moz-available;
|
|
43
|
-
height: -webkit-fill-available;
|
|
44
|
-
}
|
|
45
|
-
.pops-text-is-disabled {
|
|
46
|
-
--pops-text-is-disabled-color: #a8abb2;
|
|
47
|
-
--pops-panel-forms-container-item-left-desc-text-color: var(--pops-text-is-disabled-color);
|
|
48
|
-
color: var(--pops-text-is-disabled-color);
|
|
49
|
-
}
|
|
50
|
-
.pops-text-is-disabled-important {
|
|
51
|
-
--pops-text-is-disabled-color: #a8abb2;
|
|
52
|
-
--pops-panel-forms-container-item-left-desc-text-color: var(--pops-text-is-disabled-color) !important;
|
|
53
|
-
color: var(--pops-text-is-disabled-color) !important;
|
|
54
|
-
}
|
|
1
|
+
.pops-flex-items-center {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
}
|
|
5
|
+
.pops-flex-y-center {
|
|
6
|
+
display: flex;
|
|
7
|
+
justify-content: space-between;
|
|
8
|
+
}
|
|
9
|
+
.pops-flex-x-center {
|
|
10
|
+
display: flex;
|
|
11
|
+
align-content: center;
|
|
12
|
+
}
|
|
13
|
+
.pops-hide {
|
|
14
|
+
display: none;
|
|
15
|
+
}
|
|
16
|
+
.pops-hide-important {
|
|
17
|
+
display: none !important;
|
|
18
|
+
}
|
|
19
|
+
.pops-no-border {
|
|
20
|
+
border: 0;
|
|
21
|
+
}
|
|
22
|
+
.pops-no-border-important {
|
|
23
|
+
border: 0 !important;
|
|
24
|
+
}
|
|
25
|
+
.pops-user-select-none {
|
|
26
|
+
-webkit-user-select: none;
|
|
27
|
+
-moz-user-select: none;
|
|
28
|
+
-ms-user-select: none;
|
|
29
|
+
user-select: none;
|
|
30
|
+
}
|
|
31
|
+
.pops-line-height-center {
|
|
32
|
+
line-height: normal;
|
|
33
|
+
align-content: center;
|
|
34
|
+
}
|
|
35
|
+
.pops-width-fill {
|
|
36
|
+
width: 100%;
|
|
37
|
+
width: -moz-available;
|
|
38
|
+
width: -webkit-fill-available;
|
|
39
|
+
}
|
|
40
|
+
.pops-height-fill {
|
|
41
|
+
height: 100%;
|
|
42
|
+
height: -moz-available;
|
|
43
|
+
height: -webkit-fill-available;
|
|
44
|
+
}
|
|
45
|
+
.pops-text-is-disabled {
|
|
46
|
+
--pops-text-is-disabled-color: #a8abb2;
|
|
47
|
+
--pops-panel-forms-container-item-left-desc-text-color: var(--pops-text-is-disabled-color);
|
|
48
|
+
color: var(--pops-text-is-disabled-color);
|
|
49
|
+
}
|
|
50
|
+
.pops-text-is-disabled-important {
|
|
51
|
+
--pops-text-is-disabled-color: #a8abb2;
|
|
52
|
+
--pops-panel-forms-container-item-left-desc-text-color: var(--pops-text-is-disabled-color) !important;
|
|
53
|
+
color: var(--pops-text-is-disabled-color) !important;
|
|
54
|
+
}
|
package/src/css/index.css
CHANGED
|
@@ -1,253 +1,253 @@
|
|
|
1
|
-
@charset "utf-8";
|
|
2
|
-
.pops * {
|
|
3
|
-
-webkit-box-sizing: border-box;
|
|
4
|
-
box-sizing: border-box;
|
|
5
|
-
margin: 0;
|
|
6
|
-
padding: 0;
|
|
7
|
-
-webkit-tap-highlight-color: transparent;
|
|
8
|
-
/* 代替::-webkit-scrollbar */
|
|
9
|
-
scrollbar-width: thin;
|
|
10
|
-
}
|
|
11
|
-
.pops {
|
|
12
|
-
--pops-bg-opacity: 1;
|
|
13
|
-
--pops-bd-opacity: 1;
|
|
14
|
-
--pops-font-size: 16px;
|
|
15
|
-
interpolate-size: allow-keywords;
|
|
16
|
-
--pops-color: #000000;
|
|
17
|
-
--pops-bg-color: rgb(255, 255, 255, var(--pops-bg-opacity));
|
|
18
|
-
--pops-bd-color: rgb(235, 238, 245, var(--pops-bd-opacity));
|
|
19
|
-
--pops-box-shadow-color: rgba(0, 0, 0, 0.12);
|
|
20
|
-
--pops-title-color: #000000;
|
|
21
|
-
--pops-title-border-color: var(--pops-bd-color);
|
|
22
|
-
--pops-content-color: #000000;
|
|
23
|
-
--pops-bottom-btn-controls-border-color: var(--pops-bd-color);
|
|
24
|
-
--pops-components-is-disabled-text-color: #a8abb2;
|
|
25
|
-
--pops-components-is-disabled-bg-color: #f5f7fa;
|
|
26
|
-
}
|
|
27
|
-
@media (prefers-color-scheme: dark) {
|
|
28
|
-
.pops {
|
|
29
|
-
--pops-mask-bg-opacity: 0.8;
|
|
30
|
-
--pops-color: #ffffff;
|
|
31
|
-
--pops-bg-color: rgb(17, 17, 17, var(--pops-bg-opacity));
|
|
32
|
-
--pops-bd-color: rgb(55, 55, 55, var(--pops-bd-opacity));
|
|
33
|
-
--pops-box-shadow-color: rgba(81, 81, 81, 0.12);
|
|
34
|
-
--pops-title-color: #e8e8e8;
|
|
35
|
-
--pops-title-border-color: var(--pops-bd-color);
|
|
36
|
-
--pops-content-color: #e5e5e5;
|
|
37
|
-
--pops-components-is-disabled-text-color: #a8abb2;
|
|
38
|
-
--pops-components-is-disabled-bg-color: #262727;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
.pops {
|
|
42
|
-
color: var(--pops-color);
|
|
43
|
-
background-color: var(--pops-bg-color);
|
|
44
|
-
border: 1px solid var(--pops-bd-color);
|
|
45
|
-
border-radius: 4px;
|
|
46
|
-
font-size: var(--pops-font-size);
|
|
47
|
-
line-height: normal;
|
|
48
|
-
box-shadow: 0 0 12px var(--pops-box-shadow-color);
|
|
49
|
-
box-sizing: border-box;
|
|
50
|
-
overflow: hidden;
|
|
51
|
-
transition: all 0.35s;
|
|
52
|
-
display: flex;
|
|
53
|
-
flex-direction: column;
|
|
54
|
-
}
|
|
55
|
-
.pops-anim {
|
|
56
|
-
position: fixed;
|
|
57
|
-
top: 0;
|
|
58
|
-
right: 0;
|
|
59
|
-
bottom: 0;
|
|
60
|
-
left: 0;
|
|
61
|
-
width: 100%;
|
|
62
|
-
height: 100%;
|
|
63
|
-
}
|
|
64
|
-
.pops-anim[anim=""] {
|
|
65
|
-
top: unset;
|
|
66
|
-
right: unset;
|
|
67
|
-
bottom: unset;
|
|
68
|
-
left: unset;
|
|
69
|
-
width: unset;
|
|
70
|
-
height: unset;
|
|
71
|
-
transition: none;
|
|
72
|
-
}
|
|
73
|
-
/* 底部图标动画和样式 */
|
|
74
|
-
.pops i.pops-bottom-icon[is-loading="true"] {
|
|
75
|
-
animation: rotating 2s linear infinite;
|
|
76
|
-
}
|
|
77
|
-
.pops i.pops-bottom-icon {
|
|
78
|
-
height: 1em;
|
|
79
|
-
width: 1em;
|
|
80
|
-
line-height: normal;
|
|
81
|
-
display: inline-flex;
|
|
82
|
-
justify-content: center;
|
|
83
|
-
align-items: center;
|
|
84
|
-
position: relative;
|
|
85
|
-
fill: currentColor;
|
|
86
|
-
color: inherit;
|
|
87
|
-
font-size: inherit;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
/* 遮罩层样式 */
|
|
91
|
-
.pops-mask {
|
|
92
|
-
--pops-mask-bg-opacity: 0.4;
|
|
93
|
-
--pops-mask-bg-color: rgba(0, 0, 0, var(--pops-mask-bg-opacity));
|
|
94
|
-
}
|
|
95
|
-
.pops-mask {
|
|
96
|
-
position: fixed;
|
|
97
|
-
top: 0;
|
|
98
|
-
right: 0;
|
|
99
|
-
bottom: 0;
|
|
100
|
-
left: 0;
|
|
101
|
-
width: 100%;
|
|
102
|
-
height: 100%;
|
|
103
|
-
border: 0;
|
|
104
|
-
border-radius: 0;
|
|
105
|
-
background-color: var(--pops-mask-bg-color);
|
|
106
|
-
box-shadow: none;
|
|
107
|
-
transition: none;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
.pops-header-controls button.pops-header-control[type][data-header] {
|
|
111
|
-
float: right;
|
|
112
|
-
margin: 0 0;
|
|
113
|
-
outline: 0;
|
|
114
|
-
border: 0;
|
|
115
|
-
border-color: rgb(136, 136, 136, var(--pops-bd-opacity));
|
|
116
|
-
background-color: transparent;
|
|
117
|
-
color: #888;
|
|
118
|
-
cursor: pointer;
|
|
119
|
-
}
|
|
120
|
-
.pops-header-controls button.pops-header-control[data-type="max"],
|
|
121
|
-
.pops-header-controls button.pops-header-control[data-type="mise"],
|
|
122
|
-
.pops-header-controls button.pops-header-control[data-type="min"] {
|
|
123
|
-
outline: 0 !important;
|
|
124
|
-
border: 0;
|
|
125
|
-
border-color: rgb(136, 136, 136, var(--pops-bd-opacity));
|
|
126
|
-
background-color: transparent;
|
|
127
|
-
color: rgb(136, 136, 136);
|
|
128
|
-
cursor: pointer;
|
|
129
|
-
transition: all 0.3s ease-in-out;
|
|
130
|
-
}
|
|
131
|
-
button.pops-header-control i {
|
|
132
|
-
color: rgb(144, 147, 153);
|
|
133
|
-
font-size: inherit;
|
|
134
|
-
display: inline-flex;
|
|
135
|
-
justify-content: center;
|
|
136
|
-
align-items: center;
|
|
137
|
-
position: relative;
|
|
138
|
-
fill: currentColor;
|
|
139
|
-
}
|
|
140
|
-
button.pops-header-control svg {
|
|
141
|
-
height: 1.25em;
|
|
142
|
-
width: 1.25em;
|
|
143
|
-
}
|
|
144
|
-
button.pops-header-control {
|
|
145
|
-
right: 15px;
|
|
146
|
-
padding: 0;
|
|
147
|
-
border: none;
|
|
148
|
-
outline: 0;
|
|
149
|
-
background: 0 0;
|
|
150
|
-
cursor: pointer;
|
|
151
|
-
position: unset;
|
|
152
|
-
line-height: normal;
|
|
153
|
-
}
|
|
154
|
-
button.pops-header-control i:hover {
|
|
155
|
-
color: rgb(64, 158, 255);
|
|
156
|
-
}
|
|
157
|
-
.pops-header-controls[data-margin] button.pops-header-control {
|
|
158
|
-
margin: 0 6px;
|
|
159
|
-
display: flex;
|
|
160
|
-
align-items: center;
|
|
161
|
-
}
|
|
162
|
-
.pops[type-value] .pops-header-controls {
|
|
163
|
-
display: flex;
|
|
164
|
-
gap: 6px;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
/* 代码块 <code> */
|
|
168
|
-
.pops code {
|
|
169
|
-
font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
|
|
170
|
-
font-size: 0.85em;
|
|
171
|
-
color: #000;
|
|
172
|
-
background-color: #f0f0f0;
|
|
173
|
-
border-radius: 3px;
|
|
174
|
-
border: 0;
|
|
175
|
-
padding: 0.2em 0;
|
|
176
|
-
white-space: normal;
|
|
177
|
-
background: #f5f5f5;
|
|
178
|
-
text-wrap: wrap;
|
|
179
|
-
text-align: left;
|
|
180
|
-
word-spacing: normal;
|
|
181
|
-
word-break: normal;
|
|
182
|
-
word-wrap: normal;
|
|
183
|
-
line-height: 1.4;
|
|
184
|
-
-moz-tab-size: 8;
|
|
185
|
-
-o-tab-size: 8;
|
|
186
|
-
tab-size: 8;
|
|
187
|
-
-webkit-hyphens: none;
|
|
188
|
-
-moz-hyphens: none;
|
|
189
|
-
-ms-hyphens: none;
|
|
190
|
-
hyphens: none;
|
|
191
|
-
direction: ltr;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
.pops code::before,
|
|
195
|
-
.pops code::after {
|
|
196
|
-
letter-spacing: -0.2em;
|
|
197
|
-
content: "\00a0";
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
/* 标题 */
|
|
201
|
-
.pops .pops-title {
|
|
202
|
-
-webkit-user-select: none;
|
|
203
|
-
-moz-user-select: none;
|
|
204
|
-
-ms-user-select: none;
|
|
205
|
-
user-select: none;
|
|
206
|
-
display: flex;
|
|
207
|
-
align-items: center;
|
|
208
|
-
justify-content: space-between;
|
|
209
|
-
border-bottom: 1px solid var(--pops-title-border-color);
|
|
210
|
-
width: 100%;
|
|
211
|
-
height: var(--container-title-height);
|
|
212
|
-
}
|
|
213
|
-
/* 标题-普通文本 */
|
|
214
|
-
.pops .pops-title p[pops] {
|
|
215
|
-
color: var(--pops-title-color);
|
|
216
|
-
width: 100%;
|
|
217
|
-
overflow: hidden;
|
|
218
|
-
text-indent: 15px;
|
|
219
|
-
text-overflow: ellipsis;
|
|
220
|
-
white-space: nowrap;
|
|
221
|
-
font-weight: 500;
|
|
222
|
-
line-height: normal;
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
/* 内容 */
|
|
226
|
-
.pops .pops-content {
|
|
227
|
-
width: 100%;
|
|
228
|
-
/*height: calc(
|
|
229
|
-
100% - var(--container-title-height) - var(--container-bottom-btn-height)
|
|
230
|
-
);*/
|
|
231
|
-
flex: 1;
|
|
232
|
-
overflow: auto;
|
|
233
|
-
word-break: break-word;
|
|
234
|
-
}
|
|
235
|
-
/* 内容-普通文本 */
|
|
236
|
-
.pops .pops-content p[pops] {
|
|
237
|
-
color: var(--pops-content-color);
|
|
238
|
-
padding: 5px 10px;
|
|
239
|
-
text-indent: 15px;
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
/* 底部-按钮组 */
|
|
243
|
-
.pops .pops-botttom-btn-controls {
|
|
244
|
-
display: flex;
|
|
245
|
-
padding: 10px 10px 10px 10px;
|
|
246
|
-
width: 100%;
|
|
247
|
-
height: var(--container-bottom-btn-height);
|
|
248
|
-
max-height: var(--container-bottom-btn-height);
|
|
249
|
-
line-height: normal;
|
|
250
|
-
border-top: 1px solid var(--pops-bottom-btn-controls-border-color);
|
|
251
|
-
text-align: right;
|
|
252
|
-
align-items: center;
|
|
253
|
-
}
|
|
1
|
+
@charset "utf-8";
|
|
2
|
+
.pops * {
|
|
3
|
+
-webkit-box-sizing: border-box;
|
|
4
|
+
box-sizing: border-box;
|
|
5
|
+
margin: 0;
|
|
6
|
+
padding: 0;
|
|
7
|
+
-webkit-tap-highlight-color: transparent;
|
|
8
|
+
/* 代替::-webkit-scrollbar */
|
|
9
|
+
scrollbar-width: thin;
|
|
10
|
+
}
|
|
11
|
+
.pops {
|
|
12
|
+
--pops-bg-opacity: 1;
|
|
13
|
+
--pops-bd-opacity: 1;
|
|
14
|
+
--pops-font-size: 16px;
|
|
15
|
+
interpolate-size: allow-keywords;
|
|
16
|
+
--pops-color: #000000;
|
|
17
|
+
--pops-bg-color: rgb(255, 255, 255, var(--pops-bg-opacity));
|
|
18
|
+
--pops-bd-color: rgb(235, 238, 245, var(--pops-bd-opacity));
|
|
19
|
+
--pops-box-shadow-color: rgba(0, 0, 0, 0.12);
|
|
20
|
+
--pops-title-color: #000000;
|
|
21
|
+
--pops-title-border-color: var(--pops-bd-color);
|
|
22
|
+
--pops-content-color: #000000;
|
|
23
|
+
--pops-bottom-btn-controls-border-color: var(--pops-bd-color);
|
|
24
|
+
--pops-components-is-disabled-text-color: #a8abb2;
|
|
25
|
+
--pops-components-is-disabled-bg-color: #f5f7fa;
|
|
26
|
+
}
|
|
27
|
+
@media (prefers-color-scheme: dark) {
|
|
28
|
+
.pops {
|
|
29
|
+
--pops-mask-bg-opacity: 0.8;
|
|
30
|
+
--pops-color: #ffffff;
|
|
31
|
+
--pops-bg-color: rgb(17, 17, 17, var(--pops-bg-opacity));
|
|
32
|
+
--pops-bd-color: rgb(55, 55, 55, var(--pops-bd-opacity));
|
|
33
|
+
--pops-box-shadow-color: rgba(81, 81, 81, 0.12);
|
|
34
|
+
--pops-title-color: #e8e8e8;
|
|
35
|
+
--pops-title-border-color: var(--pops-bd-color);
|
|
36
|
+
--pops-content-color: #e5e5e5;
|
|
37
|
+
--pops-components-is-disabled-text-color: #a8abb2;
|
|
38
|
+
--pops-components-is-disabled-bg-color: #262727;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
.pops {
|
|
42
|
+
color: var(--pops-color);
|
|
43
|
+
background-color: var(--pops-bg-color);
|
|
44
|
+
border: 1px solid var(--pops-bd-color);
|
|
45
|
+
border-radius: 4px;
|
|
46
|
+
font-size: var(--pops-font-size);
|
|
47
|
+
line-height: normal;
|
|
48
|
+
box-shadow: 0 0 12px var(--pops-box-shadow-color);
|
|
49
|
+
box-sizing: border-box;
|
|
50
|
+
overflow: hidden;
|
|
51
|
+
transition: all 0.35s;
|
|
52
|
+
display: flex;
|
|
53
|
+
flex-direction: column;
|
|
54
|
+
}
|
|
55
|
+
.pops-anim {
|
|
56
|
+
position: fixed;
|
|
57
|
+
top: 0;
|
|
58
|
+
right: 0;
|
|
59
|
+
bottom: 0;
|
|
60
|
+
left: 0;
|
|
61
|
+
width: 100%;
|
|
62
|
+
height: 100%;
|
|
63
|
+
}
|
|
64
|
+
.pops-anim[anim=""] {
|
|
65
|
+
top: unset;
|
|
66
|
+
right: unset;
|
|
67
|
+
bottom: unset;
|
|
68
|
+
left: unset;
|
|
69
|
+
width: unset;
|
|
70
|
+
height: unset;
|
|
71
|
+
transition: none;
|
|
72
|
+
}
|
|
73
|
+
/* 底部图标动画和样式 */
|
|
74
|
+
.pops i.pops-bottom-icon[is-loading="true"] {
|
|
75
|
+
animation: rotating 2s linear infinite;
|
|
76
|
+
}
|
|
77
|
+
.pops i.pops-bottom-icon {
|
|
78
|
+
height: 1em;
|
|
79
|
+
width: 1em;
|
|
80
|
+
line-height: normal;
|
|
81
|
+
display: inline-flex;
|
|
82
|
+
justify-content: center;
|
|
83
|
+
align-items: center;
|
|
84
|
+
position: relative;
|
|
85
|
+
fill: currentColor;
|
|
86
|
+
color: inherit;
|
|
87
|
+
font-size: inherit;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/* 遮罩层样式 */
|
|
91
|
+
.pops-mask {
|
|
92
|
+
--pops-mask-bg-opacity: 0.4;
|
|
93
|
+
--pops-mask-bg-color: rgba(0, 0, 0, var(--pops-mask-bg-opacity));
|
|
94
|
+
}
|
|
95
|
+
.pops-mask {
|
|
96
|
+
position: fixed;
|
|
97
|
+
top: 0;
|
|
98
|
+
right: 0;
|
|
99
|
+
bottom: 0;
|
|
100
|
+
left: 0;
|
|
101
|
+
width: 100%;
|
|
102
|
+
height: 100%;
|
|
103
|
+
border: 0;
|
|
104
|
+
border-radius: 0;
|
|
105
|
+
background-color: var(--pops-mask-bg-color);
|
|
106
|
+
box-shadow: none;
|
|
107
|
+
transition: none;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.pops-header-controls button.pops-header-control[type][data-header] {
|
|
111
|
+
float: right;
|
|
112
|
+
margin: 0 0;
|
|
113
|
+
outline: 0;
|
|
114
|
+
border: 0;
|
|
115
|
+
border-color: rgb(136, 136, 136, var(--pops-bd-opacity));
|
|
116
|
+
background-color: transparent;
|
|
117
|
+
color: #888;
|
|
118
|
+
cursor: pointer;
|
|
119
|
+
}
|
|
120
|
+
.pops-header-controls button.pops-header-control[data-type="max"],
|
|
121
|
+
.pops-header-controls button.pops-header-control[data-type="mise"],
|
|
122
|
+
.pops-header-controls button.pops-header-control[data-type="min"] {
|
|
123
|
+
outline: 0 !important;
|
|
124
|
+
border: 0;
|
|
125
|
+
border-color: rgb(136, 136, 136, var(--pops-bd-opacity));
|
|
126
|
+
background-color: transparent;
|
|
127
|
+
color: rgb(136, 136, 136);
|
|
128
|
+
cursor: pointer;
|
|
129
|
+
transition: all 0.3s ease-in-out;
|
|
130
|
+
}
|
|
131
|
+
button.pops-header-control i {
|
|
132
|
+
color: rgb(144, 147, 153);
|
|
133
|
+
font-size: inherit;
|
|
134
|
+
display: inline-flex;
|
|
135
|
+
justify-content: center;
|
|
136
|
+
align-items: center;
|
|
137
|
+
position: relative;
|
|
138
|
+
fill: currentColor;
|
|
139
|
+
}
|
|
140
|
+
button.pops-header-control svg {
|
|
141
|
+
height: 1.25em;
|
|
142
|
+
width: 1.25em;
|
|
143
|
+
}
|
|
144
|
+
button.pops-header-control {
|
|
145
|
+
right: 15px;
|
|
146
|
+
padding: 0;
|
|
147
|
+
border: none;
|
|
148
|
+
outline: 0;
|
|
149
|
+
background: 0 0;
|
|
150
|
+
cursor: pointer;
|
|
151
|
+
position: unset;
|
|
152
|
+
line-height: normal;
|
|
153
|
+
}
|
|
154
|
+
button.pops-header-control i:hover {
|
|
155
|
+
color: rgb(64, 158, 255);
|
|
156
|
+
}
|
|
157
|
+
.pops-header-controls[data-margin] button.pops-header-control {
|
|
158
|
+
margin: 0 6px;
|
|
159
|
+
display: flex;
|
|
160
|
+
align-items: center;
|
|
161
|
+
}
|
|
162
|
+
.pops[type-value] .pops-header-controls {
|
|
163
|
+
display: flex;
|
|
164
|
+
gap: 6px;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
/* 代码块 <code> */
|
|
168
|
+
.pops code {
|
|
169
|
+
font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
|
|
170
|
+
font-size: 0.85em;
|
|
171
|
+
color: #000;
|
|
172
|
+
background-color: #f0f0f0;
|
|
173
|
+
border-radius: 3px;
|
|
174
|
+
border: 0;
|
|
175
|
+
padding: 0.2em 0;
|
|
176
|
+
white-space: normal;
|
|
177
|
+
background: #f5f5f5;
|
|
178
|
+
text-wrap: wrap;
|
|
179
|
+
text-align: left;
|
|
180
|
+
word-spacing: normal;
|
|
181
|
+
word-break: normal;
|
|
182
|
+
word-wrap: normal;
|
|
183
|
+
line-height: 1.4;
|
|
184
|
+
-moz-tab-size: 8;
|
|
185
|
+
-o-tab-size: 8;
|
|
186
|
+
tab-size: 8;
|
|
187
|
+
-webkit-hyphens: none;
|
|
188
|
+
-moz-hyphens: none;
|
|
189
|
+
-ms-hyphens: none;
|
|
190
|
+
hyphens: none;
|
|
191
|
+
direction: ltr;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.pops code::before,
|
|
195
|
+
.pops code::after {
|
|
196
|
+
letter-spacing: -0.2em;
|
|
197
|
+
content: "\00a0";
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
/* 标题 */
|
|
201
|
+
.pops .pops-title {
|
|
202
|
+
-webkit-user-select: none;
|
|
203
|
+
-moz-user-select: none;
|
|
204
|
+
-ms-user-select: none;
|
|
205
|
+
user-select: none;
|
|
206
|
+
display: flex;
|
|
207
|
+
align-items: center;
|
|
208
|
+
justify-content: space-between;
|
|
209
|
+
border-bottom: 1px solid var(--pops-title-border-color);
|
|
210
|
+
width: 100%;
|
|
211
|
+
height: var(--container-title-height);
|
|
212
|
+
}
|
|
213
|
+
/* 标题-普通文本 */
|
|
214
|
+
.pops .pops-title p[pops] {
|
|
215
|
+
color: var(--pops-title-color);
|
|
216
|
+
width: 100%;
|
|
217
|
+
overflow: hidden;
|
|
218
|
+
text-indent: 15px;
|
|
219
|
+
text-overflow: ellipsis;
|
|
220
|
+
white-space: nowrap;
|
|
221
|
+
font-weight: 500;
|
|
222
|
+
line-height: normal;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
/* 内容 */
|
|
226
|
+
.pops .pops-content {
|
|
227
|
+
width: 100%;
|
|
228
|
+
/*height: calc(
|
|
229
|
+
100% - var(--container-title-height) - var(--container-bottom-btn-height)
|
|
230
|
+
);*/
|
|
231
|
+
flex: 1;
|
|
232
|
+
overflow: auto;
|
|
233
|
+
word-break: break-word;
|
|
234
|
+
}
|
|
235
|
+
/* 内容-普通文本 */
|
|
236
|
+
.pops .pops-content p[pops] {
|
|
237
|
+
color: var(--pops-content-color);
|
|
238
|
+
padding: 5px 10px;
|
|
239
|
+
text-indent: 15px;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
/* 底部-按钮组 */
|
|
243
|
+
.pops .pops-botttom-btn-controls {
|
|
244
|
+
display: flex;
|
|
245
|
+
padding: 10px 10px 10px 10px;
|
|
246
|
+
width: 100%;
|
|
247
|
+
height: var(--container-bottom-btn-height);
|
|
248
|
+
max-height: var(--container-bottom-btn-height);
|
|
249
|
+
line-height: normal;
|
|
250
|
+
border-top: 1px solid var(--pops-bottom-btn-controls-border-color);
|
|
251
|
+
text-align: right;
|
|
252
|
+
align-items: center;
|
|
253
|
+
}
|