perfect-gui 4.1.3 → 4.2.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 +5 -4
- package/package.json +1 -1
- package/src/styles.js +398 -363
package/README.md
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
# Perfect GUI
|
|
2
2
|
A nice, simple and (probably not) perfect GUI for JavaScript.
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
## API
|
|
5
|
+
[Documentation](https://thibka.github.io/perfect-gui/public/)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
## Features
|
|
5
9
|
- image buttons
|
|
6
10
|
- multiple panels
|
|
7
11
|
- easy positioning
|
|
@@ -10,9 +14,6 @@ Features:
|
|
|
10
14
|
|
|
11
15
|
<img src="https://raw.githubusercontent.com/thibka/thibka.github.io/master/perfect-gui/_data/capture.png" width="580"/>
|
|
12
16
|
|
|
13
|
-
## API
|
|
14
|
-
[Documentation](https://thibka.github.io/perfect-gui/public/)
|
|
15
|
-
|
|
16
17
|
## Install
|
|
17
18
|
|
|
18
19
|
```bash
|
package/package.json
CHANGED
package/src/styles.js
CHANGED
|
@@ -3,366 +3,401 @@
|
|
|
3
3
|
* depending on a css loader
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
return /* css */`
|
|
8
|
-
.p-gui {
|
|
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
|
-
.p-gui
|
|
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
|
-
.p-gui__image {
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
text
|
|
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
|
-
.p-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
.p-
|
|
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
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
.p-gui__vector2-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
.p-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
.p-gui__color
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
6
|
+
export default function( position_type ) {
|
|
7
|
+
return /* css */`
|
|
8
|
+
.p-gui {
|
|
9
|
+
--main-border-radius: 5px;
|
|
10
|
+
--color-bg: #121212;
|
|
11
|
+
--color-border: #484848;
|
|
12
|
+
--color-border-2: rgba(255,255,255,.1);
|
|
13
|
+
--color-accent: #1681ca;
|
|
14
|
+
--color-accent-hover: #218fda;
|
|
15
|
+
|
|
16
|
+
position: ${ position_type };
|
|
17
|
+
top: 0;
|
|
18
|
+
left: 0;
|
|
19
|
+
transform: translate3d(0,0,0);
|
|
20
|
+
padding-top: 21px;
|
|
21
|
+
background: var(--color-bg);
|
|
22
|
+
display: flex;
|
|
23
|
+
justify-content: center;
|
|
24
|
+
flex-wrap: wrap;
|
|
25
|
+
font-family: Verdana, Arial, sans-serif;
|
|
26
|
+
width: 290px;
|
|
27
|
+
overflow: auto;
|
|
28
|
+
box-shadow: 0 0 2px black;
|
|
29
|
+
box-sizing: border-box;
|
|
30
|
+
z-index: 99999;
|
|
31
|
+
user-select: none;
|
|
32
|
+
border-bottom-right-radius: 3px;
|
|
33
|
+
border-bottom-left-radius: 3px;
|
|
34
|
+
cursor: auto;
|
|
35
|
+
border-radius: var(--main-border-radius);
|
|
36
|
+
border: 1px solid var(--color-border);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.p-gui * {
|
|
40
|
+
font-size: 11px;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.p-gui::-webkit-scrollbar,
|
|
44
|
+
.p-gui *::-webkit-scrollbar {
|
|
45
|
+
width: 10px;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.p-gui::-webkit-scrollbar-track,
|
|
49
|
+
.p-gui *::-webkit-scrollbar-track {
|
|
50
|
+
background: #2f2f2f;
|
|
51
|
+
border-radius: 3px;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.p-gui::-webkit-scrollbar-thumb,
|
|
55
|
+
.p-gui *::-webkit-scrollbar-thumb {
|
|
56
|
+
background: #757576;
|
|
57
|
+
border-radius: 10px;
|
|
58
|
+
box-sizing: border-box;
|
|
59
|
+
border: 1px solid #2f2f2f;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.p-gui--collapsed {
|
|
63
|
+
height: 0;
|
|
64
|
+
padding: 21px 10px 0 10px;
|
|
65
|
+
overflow: hidden;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.p-gui__header {
|
|
69
|
+
position: absolute;
|
|
70
|
+
top: 0;
|
|
71
|
+
left: 0;
|
|
72
|
+
width: 100%;
|
|
73
|
+
height: 20px;
|
|
74
|
+
background-color: rgba(0, 0, 0, .8);
|
|
75
|
+
cursor: grab;
|
|
76
|
+
color: grey;
|
|
77
|
+
font-size: 10px;
|
|
78
|
+
line-height: 20px;
|
|
79
|
+
padding-left: 12px;
|
|
80
|
+
box-sizing: border-box;
|
|
81
|
+
touch-action: none;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.p-gui__header-close {
|
|
85
|
+
width: 20px;
|
|
86
|
+
height: 20px;
|
|
87
|
+
position: absolute;
|
|
88
|
+
top: 0;
|
|
89
|
+
right: 5px;
|
|
90
|
+
cursor: pointer;
|
|
91
|
+
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUAQMAAAC3R49OAAAABlBMVEUAAAD///+l2Z/dAAAAAXRSTlMAQObYZgAAABFJREFUCNdjIAb8//8BjIkAAOrOBd3TR0jRAAAAAElFTkSuQmCC);
|
|
92
|
+
background-size: 50% 50%;
|
|
93
|
+
background-position: center;
|
|
94
|
+
background-repeat: no-repeat;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.p-gui--collapsed .p-gui__header-close {
|
|
98
|
+
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUAQMAAAC3R49OAAAABlBMVEUAAAD///+l2Z/dAAAAAXRSTlMAQObYZgAAABVJREFUCNdjYEhgIIj///8AwsSoBQD43QydY5mb0QAAAABJRU5ErkJggg==);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.p-gui__image-container {
|
|
102
|
+
width: 100%;
|
|
103
|
+
display: grid;
|
|
104
|
+
grid-template-columns: repeat(auto-fill, 32%);
|
|
105
|
+
justify-content: space-between;
|
|
106
|
+
padding: 0 2%;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.p-gui__image {
|
|
110
|
+
aspect-ratio: 1 / 1;
|
|
111
|
+
background-size: cover;
|
|
112
|
+
cursor: pointer;
|
|
113
|
+
position: relative;
|
|
114
|
+
margin-top: 1px;
|
|
115
|
+
margin-bottom: 19px;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.p-gui__image-text {
|
|
119
|
+
position: absolute;
|
|
120
|
+
bottom: -15px;
|
|
121
|
+
color: #eee;
|
|
122
|
+
text-shadow: 0 -1px 0 #111;
|
|
123
|
+
white-space: nowrap;
|
|
124
|
+
width: 100%;
|
|
125
|
+
overflow: hidden;
|
|
126
|
+
text-overflow: ellipsis;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.p-gui__button,
|
|
130
|
+
.p-gui__switch,
|
|
131
|
+
.p-gui__list,
|
|
132
|
+
.p-gui__vector2,
|
|
133
|
+
.p-gui__color {
|
|
134
|
+
width: 100%;
|
|
135
|
+
padding: 7px 13px;
|
|
136
|
+
color: white;
|
|
137
|
+
cursor: pointer;
|
|
138
|
+
position: relative;
|
|
139
|
+
box-sizing: border-box;
|
|
140
|
+
margin-bottom: 3px;
|
|
141
|
+
margin: 3px;
|
|
142
|
+
|
|
143
|
+
border: 1px solid var(--color-border-2);
|
|
144
|
+
border-radius: var(--main-border-radius);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.p-gui__vector2 {
|
|
148
|
+
padding: 7px;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.p-gui__button,
|
|
152
|
+
.p-gui__switch {
|
|
153
|
+
margin-right: 4px;
|
|
154
|
+
margin-left: 4px;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.p-gui__button {
|
|
158
|
+
background: var(--color-accent);
|
|
159
|
+
text-align: center;
|
|
160
|
+
color: white;
|
|
161
|
+
border: none;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.p-gui__button:hover {
|
|
165
|
+
background: var(--color-accent-hover);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.p-gui__switch {
|
|
169
|
+
background: rgba(255, 255, 255, .05);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.p-gui__switch:hover {
|
|
173
|
+
background: rgba(255, 255, 255, .1);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.p-gui__folder .p-gui__button,
|
|
177
|
+
.p-gui__folder .p-gui__switch {
|
|
178
|
+
margin-right: 0;
|
|
179
|
+
margin-left: 0;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.p-gui__vector2 {
|
|
183
|
+
background: transparent;
|
|
184
|
+
aspect-ratio: 1;
|
|
185
|
+
padding-bottom: 0;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.p-gui__vector2-area {
|
|
189
|
+
position: relative;
|
|
190
|
+
background: rgba(0, 0, 0, .3);
|
|
191
|
+
margin-top: 8px;
|
|
192
|
+
width: 100%;
|
|
193
|
+
height: calc(100% - 28px);
|
|
194
|
+
touch-action: none;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.p-gui__vector2-line {
|
|
198
|
+
position: absolute;
|
|
199
|
+
background: white;
|
|
200
|
+
opacity: .3;
|
|
201
|
+
pointer-events: none;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.p-gui__vector2-line-x {
|
|
205
|
+
width: 100%;
|
|
206
|
+
height: 1px;
|
|
207
|
+
left: 0;
|
|
208
|
+
top: 50%;
|
|
209
|
+
transform: translateY(-50%);
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
.p-gui__vector2-line-y {
|
|
213
|
+
width: 1px;
|
|
214
|
+
height: 100%;
|
|
215
|
+
top: 0;
|
|
216
|
+
left: 50%;
|
|
217
|
+
transform: translateX(-50%);
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.p-gui__vector2-dot {
|
|
221
|
+
position: absolute;
|
|
222
|
+
top: 0;
|
|
223
|
+
left: 0;
|
|
224
|
+
width: 8px;
|
|
225
|
+
height: 8px;
|
|
226
|
+
border-radius: 50%;
|
|
227
|
+
background: #d5d5d5;
|
|
228
|
+
border: 2px solid #ff9999;
|
|
229
|
+
transform: translate(-50%, -50%);
|
|
230
|
+
pointer-events: none;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.p-gui__switch-checkbox {
|
|
234
|
+
width: 5px;
|
|
235
|
+
height: 5px;
|
|
236
|
+
background-color: rgba(0, 0, 0, .5);
|
|
237
|
+
border: 1px solid grey;
|
|
238
|
+
position: absolute;
|
|
239
|
+
top: 0;
|
|
240
|
+
right: 10px;
|
|
241
|
+
bottom: 0;
|
|
242
|
+
margin: auto;
|
|
243
|
+
border-radius: 50%;
|
|
244
|
+
pointer-events: none;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.p-gui__switch-checkbox--active {
|
|
248
|
+
background-color: #00ff89;
|
|
249
|
+
box-shadow: 0 0 7px #00ff89;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
.p-gui__list,
|
|
253
|
+
.p-gui__color {
|
|
254
|
+
cursor: default;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
.p-gui__list-dropdown,
|
|
258
|
+
.p-gui__color-picker {
|
|
259
|
+
position: absolute;
|
|
260
|
+
right: 5px;
|
|
261
|
+
top: 0;
|
|
262
|
+
bottom: 0;
|
|
263
|
+
margin: auto;
|
|
264
|
+
height: 21px;
|
|
265
|
+
cursor: pointer;
|
|
266
|
+
border-radius: 3px;
|
|
267
|
+
border: 1px solid var(--color-border-2);
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
.p-gui__list-dropdown {
|
|
271
|
+
background: rgba(255, 255, 255,.05);
|
|
272
|
+
color: white;
|
|
273
|
+
padding: 0 12px;
|
|
274
|
+
top: 0px;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
.p-gui__list-dropdown:hover {
|
|
278
|
+
background: rgba(255, 255, 255, .1);
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
.p-gui__color-picker {
|
|
282
|
+
-webkit-appearance: none;
|
|
283
|
+
padding: 0;
|
|
284
|
+
background-color: transparent;
|
|
285
|
+
border: 1px solid #222222;
|
|
286
|
+
overflow: hidden;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
.p-gui__color-picker::-webkit-color-swatch-wrapper {
|
|
290
|
+
padding: 0;
|
|
291
|
+
}
|
|
292
|
+
.p-gui__color-picker::-webkit-color-swatch {
|
|
293
|
+
border: none;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
.p-gui__slider {
|
|
297
|
+
width: 100%;
|
|
298
|
+
margin-bottom: 8px;
|
|
299
|
+
padding: 7px;
|
|
300
|
+
color: white;
|
|
301
|
+
position: relative;
|
|
302
|
+
min-height: 14px;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
.p-gui__slider-ctrl {
|
|
306
|
+
-webkit-appearance: none;
|
|
307
|
+
padding: 0;
|
|
308
|
+
font: inherit;
|
|
309
|
+
outline: none;
|
|
310
|
+
opacity: .8;
|
|
311
|
+
background: var(--color-accent);
|
|
312
|
+
box-sizing: border-box;
|
|
313
|
+
cursor: pointer;
|
|
314
|
+
position: absolute;
|
|
315
|
+
bottom: -4px; /* 5px height -1px de dépassement du curseur */
|
|
316
|
+
right: 0;
|
|
317
|
+
height: 5px;
|
|
318
|
+
width: 100%;
|
|
319
|
+
margin: 0;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
/* la zone de déplacement */
|
|
323
|
+
.p-gui__slider-ctrl::-webkit-slider-runnable-track {
|
|
324
|
+
height: 13px;
|
|
325
|
+
border: none;
|
|
326
|
+
border-radius: 0;
|
|
327
|
+
background-color: transparent; /* supprimé définie sur l'input */
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
/* Curseur */
|
|
331
|
+
.p-gui__slider-ctrl::-webkit-slider-thumb {
|
|
332
|
+
-webkit-appearance: none; /* également nécessaire sur le curseur */
|
|
333
|
+
width: 15px;
|
|
334
|
+
height: 7px;
|
|
335
|
+
border: none; /* pris en compte sur Webkit et Edge */
|
|
336
|
+
background: white; /* pris en compte sur Webkit only */
|
|
337
|
+
position: relative;
|
|
338
|
+
top: 3px;
|
|
339
|
+
border-radius: 1px;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
.p-gui__slider-value,
|
|
343
|
+
.p-gui__vector-value {
|
|
344
|
+
display: inline-block;
|
|
345
|
+
position: absolute;
|
|
346
|
+
right: 7px;
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
.p-gui__folder {
|
|
350
|
+
width: 100%;
|
|
351
|
+
position: relative;
|
|
352
|
+
background: #434343;
|
|
353
|
+
overflow: auto;
|
|
354
|
+
margin-bottom: 3px;
|
|
355
|
+
display: flex;
|
|
356
|
+
flex-wrap: wrap;
|
|
357
|
+
border-left: 3px solid grey;
|
|
358
|
+
border-bottom: 1px solid grey;
|
|
359
|
+
padding: 0 3px;
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
.p-gui__folder:last-of-type {
|
|
363
|
+
margin-bottom: 0;
|
|
364
|
+
border-bottom: none;
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
.p-gui__folder--first {
|
|
368
|
+
margin-top: 0;
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
.p-gui__folder--closed {
|
|
372
|
+
height: 32px;
|
|
373
|
+
overflow: hidden;
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
.p-gui__folder-header {
|
|
377
|
+
padding: 10px 5px;
|
|
378
|
+
background-color: rgba(0, 0, 0, .5);
|
|
379
|
+
color: white;
|
|
380
|
+
cursor: pointer;
|
|
381
|
+
width: 100%;
|
|
382
|
+
margin: 0 -2px 2px -3px;
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
.p-gui__folder-header:hover {
|
|
386
|
+
background-color: rgba(0, 0, 0, .75);
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
.p-gui__folder-arrow {
|
|
390
|
+
width: 8px;
|
|
391
|
+
height: 8px;
|
|
392
|
+
display: inline-block;
|
|
393
|
+
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAHlBMVEUAAAD///////////////////////////////////8kfJuVAAAACXRSTlMA9Z1fCdMo1yxEJnA0AAAAK0lEQVQI12PABlRgjKkJUMZMYRhjpgqMAZSEMICSaIzpDWiKhdENhEhgAgATSg5jyWnYewAAAABJRU5ErkJggg==);
|
|
394
|
+
background-size: contain;
|
|
395
|
+
margin-right: 5px;
|
|
396
|
+
transform: rotate(90deg)
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
.p-gui__folder--closed .p-gui__folder-arrow {
|
|
400
|
+
transform: rotate(0deg);
|
|
401
|
+
}
|
|
402
|
+
`
|
|
403
|
+
};
|