-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathFormItPluginStyling.css
More file actions
535 lines (456 loc) · 10.4 KB
/
FormItPluginStyling.css
File metadata and controls
535 lines (456 loc) · 10.4 KB
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
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
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
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
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
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
/* make changes carefully! */
/* this stylesheet controls styling for all first-party FormIt plugins */
/* contains stacked sections: header/content/footer */
body {
padding: 0;
margin: 0;
display: flex;
flex-direction: column;
flex-wrap: nowrap;
width:100%;
height:100%;
overflow: hidden;
}
/* the area between the header and the footer */
.contentContainer
{
font-family: Arial;
padding-left: 10px;
padding-right: 10px;
flex-grow: 1;
overflow-y: auto;
}
/* typical body text */
.contentContainer p,
.contentContainer ul,
#pluginFooterContainer ul {
line-height: 20px;
}
.contentContainer .codeSnippet {
font-family: 'Courier New', Courier, monospace;
font-weight: bold;
}
/* scrollable list container */
.scrollableListContainer {
display: flex;
overflow-y: auto;
flex-direction: column;
height: 150px; /* default, but can be overridden in the ListContainer element */
background-color: #f2f2f2;
padding: 10px;
}
.scrollableListContainer #scrollableListContainerZeroStateLabel {
color: rgb(59, 59, 59);
text-align: center;
}
/* scrollable list elements */
.simpleListItemContainer {
color: rgb(0, 0, 0);
background-color: #dddddd;
padding: 5px;
margin-top: 5px;
margin-bottom: 5px;
word-wrap: break-word;
width: 100%;
}
.contentContainer input[type=button]#expandableItemButton {
width: 100%;
text-align: left;
color: white;
background-color: #6a7e94;
border: 2px solid transparent;
padding: 5px;
margin-top: 10px;
margin-bottom: 0px;
}
.contentContainer input[type=button]#expandableItemButton:hover,
.contentContainer input[type=button]#expandableItemButton:focus,
.contentContainer input[type=button]#expandableItemButton:active,
.contentContainer input[type=button]#expandableItemButton.expandableItemButtonExpanded {
color: white;
background-color: #6a7e94;
border: 2px solid #c3e8f4;
padding: 5px;
}
.expandableContentContainer {
display: block;
padding: 10px;
height: 100px;
background-color: #e0e0e0;
border-top: none;
border-bottom: 2px solid #c3e8f4;
border-left: 2px solid #c3e8f4;
border-right: 2px solid #c3e8f4;
}
/* unordered lists */
.contentContainer ul,
#pluginFooterContainer ul {
margin-bottom: 0;
}
.contentContainer li {
list-style-type: none;
position: relative;
margin-top: 7px;
margin-bottom: 7px;
margin-left: -1.5em;
}
.contentContainer li:before {
content: ' ';
display: block;
width: 5px;
height: 5px;
background: grey;
position: absolute;
top: 6px;
left: -15px;
}
/* top-level header, for distinguishing between multiple sections in one plugin*/
h1 {
margin-top: 20px;
font-size: 20px;
font-family: Arial;
color: grey;
}
h1:first-of-type {
margin-top: 10px;
}
/* horizontal rule */
hr {
border-top: 1px solid #cfcfcf;
}
/* sub-header, for describing the plugin or sub-plugin */
.pluginSubheaderContainer {
margin-top: 1.75em;
margin-bottom: 0em;
}
.pluginSubheader {
margin: 0px;
font-size: 1.15em;
font-weight: bold;
color: dimgrey;
}
/* forms + inputs */
.contentContainer form {
font-family: Arial;
margin-left: 0px;
}
.contentContainer .inputLabel {
width: auto;
align-self: center;
}
.contentContainer input,
.contentContainer textarea {
font-family: Arial;
color: #4676a9;
border: 1px solid #4676a9;
padding: 4px;
margin-top: 5px;
margin-bottom: 5px;
width: 100%;
}
.contentContainer input:hover, .contentContainer input:focus,
.contentContainer textarea:hover, .contentContainer textarea:focus {
border: 2px solid #c3e8f4;
padding: 3px;
margin-top: 5px;
margin-bottom: 5px;
outline: none;
}
.contentContainer input:disabled,
.contentContainer textarea:disabled {
color: #616161;
border: 2px solid #cfcfcf;
background-color: #f2f2f2;
padding: 3px;
margin-top: 5px;
margin-bottom: 5px;
outline: none;
}
.contentContainer input:disabled:hover,
.contentContainer textarea:disabled:hover {
border: 2px solid #cfcfcf;
background-color: #f2f2f2;
padding: 3px;
margin-top: 5px;
margin-bottom: 5px;
outline: none;
}
.contentContainer input[type=number] {
width: 30%;
}
/* checkbox */
.contentContainer input[type=checkbox] {
display: inline-block;
width: 20px;
height: 20px;
margin-right: 7px;
color: #f5f5f5;
}
/* radio button */
.contentContainer input[type=radio] {
display: inline-block;
width: 20px;
height: 20px;
margin-right: 7px;
color: #f5f5f5;
}
/* select list / drop-down */
select {
width: 100%;
color: #4676a9;
border: 1px solid #4676a9;
padding: 4px 4px 4px 0px;
margin-top: 5px;
margin-bottom: 5px;
outline: none;
}
select:hover, select:focus {
border: 1px solid #c3e8f4;
}
option {
color: #4676a9;
}
option:hover {
background-color: #c3e8f4;
}
/* button */
.contentContainer input[type=button], input[type=submit] {
display: block;
color: white;
background-color: #4676a9;
border: 1px solid #4676a9;
margin-top: 5px;
margin-bottom: 20px;
padding: 7px;
outline: none;
width: auto;
}
.contentContainer input[type=button]:hover, input[type=submit]:hover {
color: white;
background-color: #4676a9;
border: 2px solid #c3e8f4;
padding: 6px;
margin-bottom: 20px;
}
.contentContainer input[type=button]:focus, input[type=submit]:focus {
color: white;
background-color: #4676a9;
border: 2px solid #c3e8f4;
padding: 6px;
outline: none;
}
.contentContainer input[type=button]:disabled {
color: white;
background-color: darkgrey;
border: 1px solid darkgrey;
outline: none;
width: auto;
}
.contentContainer input[type=button]:hover:disabled {
border: 2px solid darkgrey;
}
/* typical button with info toggle */
#buttonWithInfoToggleRow {
display: flex;
align-items: center;
}
#buttonWithInfoToggle {
margin-top: 10px;
margin-bottom: 10px;
}
/* the info toggle */
#infoToggle {
padding: 5px;
margin-left: 5px;
height: 20px;
}
#infoToggle:hover {
background-color: #c3e8f4;
}
.infoToggleActive {
background-color: #c3e8f4;
}
.infoToggleInactive {
background-color: transparent;
}
/* the info toggle */
#infoToggleDescription {
padding: 5px;
border: 5px solid #c3e8f4;
background: white;
}
/* deselect module */
#deselectButtonRow {
display: flex;
align-items: center;
}
/* deselect button */
#deselectButtonRow #deselectButton {
width: 20px;
height: 20px;
margin-right: 5px;
padding: 5px;
}
#deselectButtonRow #deselectButton:hover {
background-color: #c3e8f4;
}
/* string attribute delete button */
#stringAttributeDeleteButton
{
width: 20px;
height: 20px;
margin-right: 5px;
margin-left: -10px;
padding: 5px;
}
#stringAttributeDeleteButton:hover {
background-color: #c3e8f4;
}
/* contains an input and its label */
.inputModuleContainer {
margin-top: 10px;
margin-bottom: 10px;
}
/* used for the first input module after header/instructions */
.inputModuleContainerTop {
margin-top: 20px;
margin-bottom: 10px;
}
/* used for the last input module */
.inputModuleContainerBottom {
margin-top: 10px;
margin-bottom: 0px;
}
/* used when the input module is not part of a layout with other input modules */
.inputModuleContainerStandalone {
margin-bottom: 0px;
}
/* contains multiple modules */
.multiModuleContainer {
display: flex;
margin-top: 10px;
margin-bottom: 10px;
}
/* hide and show UI based on logic */
.hide {
display: none;
}
.show {
display: block;
}
/* typical horizontal spacer */
.horizontalSpacer {
display: block;
height: 10px;
}
/* information containers - primarily used in Properties Plus */
.infoContainer {
margin-top: 15px;
margin-bottom: 15px;
background-color: #ededed;
font-family: Arial;
padding: 10px;
}
/* the header for info containers */
.infoHeader {
color:rgb(59, 59, 59);
font-weight: bold;
padding-bottom: 10px;
}
/* the header for info containers */
.infoHeaderExpandable {
color: #4676a9;
font-weight: bold;
padding-bottom: 10px;
cursor: pointer;
}
.infoHeaderExpandable:hover {
color: #6ebbd4;
}
.infoHeaderExpandableCollapsed {
color: #4676a9;
font-weight: bold;
padding-bottom: 0px;
cursor: pointer;
}
.infoHeaderExpandableCollapsed:hover {
color: #6ebbd4;
}
.infoHeaderCollapsedIcon {
content: url('https://formit3d.github.io/SharedPluginUtilities/img/arrow-collapsed.png');
width: 15px;
height: 15px;
float: right;
}
.infoHeaderExpandableCollapsed:hover .infoHeaderCollapsedIcon,
.infoHeaderExpandable:hover .infoHeaderCollapsedIcon {
content: url('https://formit3d.github.io/SharedPluginUtilities/img/arrow-collapsed_hover.png');
width: 15px;
height: 15px;
float: right;
}
.infoHeaderExpandedIcon {
content: url('https://formit3d.github.io/SharedPluginUtilities/img/arrow-expanded.png');
width: 15px;
height: 15px;
float: right;
}
.infoHeaderExpandable:hover .infoHeaderExpandedIcon {
content: url('https://formit3d.github.io/SharedPluginUtilities/img/arrow-expanded_hover.png');
width: 15px;
height: 15px;
float: right;
}
.infoList {
line-height: 25px;
}
.infoListIndented {
line-height: 25px;
padding-left: 20px;
}
/* unsupported version container */
#unsupportedVersionContainer {
background-color: #f2f2f2;
padding: 10px 10px 30px 10px;
margin-top: 20px;
}
#unsupportedVersionContainer #unsupportedVersionIcon {
float: left;
margin: 20px 20px 50px 10px;
}
#unsupportedVersionContainer a {
color: #4676a9;
text-decoration: none;
}
/* the footer: information about plugins, maybe some day a link to this plugin's change log */
#pluginFooterDiv {
background-color: #f2f2f2;
font-family: sans-serif;
padding: 15px;
}
#pluginFooterContainer {
flex-shrink: 0;
width: 100%;
font-size: 16px;
margin-top: 10px;
}
#pluginFooterContainer a {
color: #4676a9;
text-decoration: none;
}
#pluginFooterContainer a:hover {
color: rgb(158, 189, 199);
}
#pluginFooterContainer a:visited {
color: #4676a9;
}
#pluginFooterContainer #pluginFooterIcon {
float: left;
margin: 15px 25px 35px 15px;
}
#pluginFooterContainer li {
list-style-type: none;
position: relative;
margin-top: 7px;
margin-bottom: 7px;
}