Afform - Fix scanning for input types
[civicrm-core.git] / ext / afform / admin / ang / afGuiEditor.css
CommitLineData
a064e90d 1#afGuiEditor {
f6c0358e
CW
2 display: flex;
3}
4
a064e90d 5#afGuiEditor #afGuiEditor-palette {
f6c0358e 6 flex: 1;
c820e08c 7 margin-right: 5px;
f6c0358e
CW
8}
9
a064e90d 10#afGuiEditor #afGuiEditor-canvas {
f3cd3852 11 flex: 1.5;
c820e08c
CW
12 margin-left: 5px;
13}
14
9651d93c
CW
15#afGuiEditor .panel-body {
16 padding: 5px 12px;
17 position: relative;
18}
19
20#afGuiEditor fieldset legend {
3fc5bbff 21 padding-top: 5px;
9651d93c
CW
22 font-size: 16px;
23 margin-bottom: 5px !important;
24}
25
54dbfd05
CW
26#afGuiEditor-palette fieldset legend {
27 height: 30px;
28}
29
9651d93c
CW
30#afGuiEditor hr {
31 margin-top: 15px;
32 margin-bottom: 10px;
3fc5bbff
CW
33}
34
a064e90d
CW
35#afGuiEditor #afGuiEditor-palette-tabs li {
36 top: 1px;
37}
38
39#afGuiEditor #afGuiEditor-palette-tabs li > a {
c820e08c
CW
40 padding: 10px 15px;
41 font-size: 12px;
42}
43
9651d93c
CW
44#afGuiEditor .af-gui-columns {
45 display: flex;
46 position: relative;
47 flex-wrap: wrap;
48}
49#afGuiEditor .af-gui-columns > * {
50 flex: 1;
51 min-width: 200px;
52}
53
54#afGuiEditor .af-gui-remove-entity {
55 position: absolute;
56 right: 3px;
57 top: 3px;
c820e08c
CW
58}
59
a064e90d
CW
60#afGuiEditor .crm-editable-enabled,
61#afGuiEditor-palette-tabs > li > a > span {
62 display: inline-block;
63 padding: 0 4px !important;
64 border: 2px solid transparent !important;
65}
66#afGuiEditor .crm-editable-enabled:hover:not(:focus) {
67 border: 2px dashed grey !important;
68}
69#afGuiEditor .crm-editable-enabled:before,
70#afGuiEditor .crm-editable-enabled:after {
71 content: '';
72 display: none;
73}
74
edac0d6e 75#afGuiEditor-palette-config .af-gui-entity-values .form-inline {
a064e90d
CW
76 margin-bottom: 10px;
77}
78
79#afGuiEditor-palette-config .form-inline label {
80 min-width: 110px;
f6c0358e 81}
f3cd3852 82
e1aca853
CW
83#afGuiEditor-palette-config .af-gui-entity-palette [type=search] {
84 width: 120px;
85 padding: 3px 3px 3px 5px;
54dbfd05 86 height: 25px;
e1aca853
CW
87 font-weight: normal;
88 position: relative;
89 top: -3px;
90 font-size: 12px;
91}
92
edac0d6e
CW
93#afGuiEditor input[type=search]::placeholder {
94 font-family: FontAwesome;
95 text-align: right;
96}
97#afGuiEditor input[type=search]:-ms-input-placeholder {
98 font-family: FontAwesome;
99 text-align: right;
100}
101#afGuiEditor input[type=search]::-ms-input-placeholder {
102 font-family: FontAwesome;
103 text-align: right;
104}
105
f3cd3852 106#afGuiEditor .af-gui-bar {
3fc5bbff
CW
107 height: 22px;
108 width: 100%;
109 opacity: 0;
110 transition: opacity 1s 2s;
111 position:relative;
4bd44053
CW
112 font-family: "Courier New", Courier, monospace;
113 font-size: 12px;
3fc5bbff
CW
114}
115#afGuiEditor [ui-sortable] .af-gui-bar {
f3cd3852 116 cursor: move;
4bd44053 117 background-color: #f2f2f2;
f3cd3852
CW
118 position: absolute;
119 top: 0;
120 left: 0;
cd5ae5b9 121 padding-left: 15px;
f3cd3852 122}
f3cd3852 123#afGuiEditor-canvas:hover .af-gui-bar {
cd5ae5b9
CW
124 opacity: 1;
125 transition: opacity .2s;
126}
127
128#afGuiEditor .af-gui-bar .btn.active {
129 background-color: #b3b3b3;
f3cd3852
CW
130}
131
e72f4d81 132#afGuiEditor .af-gui-element {
f3cd3852 133 position: relative;
4bd44053 134 padding: 0 3px 3px;
ab3c1d83 135 display: block;
e72f4d81
CW
136}
137
6fb9e8d2 138#afGuiEditor .af-gui-container {
f3cd3852 139 border: 2px dashed transparent;
b4def6e9
CW
140 position: relative;
141 padding: 22px 3px 3px;
4bd44053 142 min-height: 40px;
ab3c1d83
CW
143 display: block;
144}
145
146#afGuiEditor af-gui-markup,
147#afGuiEditor af-gui-field {
148 display: block;
4bd44053
CW
149}
150
6fb9e8d2 151#afGuiEditor .af-gui-container-type-fieldset {
4bd44053 152 box-shadow: 0 0 5px #bbbbbb;
f3cd3852
CW
153}
154
6fb9e8d2 155#afGuiEditor .af-gui-container:hover {
e72f4d81
CW
156 border: 2px dashed #757575;
157}
158
192695ae
CW
159#afGuiEditor .af-gui-markup {
160 padding: 22px 3px 3px;
161 position: relative;
162}
163
164#afGuiEditor div.af-gui-markup-content {
165 display: block;
166 position: relative;
167 padding: 0 !important;
168}
169
170#afGuiEditor .af-gui-markup-content-overlay {
171 position: absolute;
172 top: 0;
173 left: 0;
174 width: 100%;
175 height: 100%;
176}
177
178#afGuiEditor .af-gui-markup-content:hover .af-gui-markup-content-overlay {
179 background-color: rgba(255, 255, 255, .2);
180}
181
f3cd3852
CW
182#afGuiEditor #afGuiEditor-canvas .af-entity-selected {
183 border: 2px dashed #0071bd;
184}
185#afGuiEditor #afGuiEditor-canvas .af-entity-selected > .af-gui-bar {
186 background-color: #0071bd;
5f535e6c
CW
187 opacity: 1;
188 transition: opacity 0s;
189}
70a14f69
CW
190#afGuiEditor #afGuiEditor-canvas .af-entity-selected > .af-gui-bar > .form-inline > button > span,
191#afGuiEditor #afGuiEditor-canvas .af-entity-selected > .af-gui-bar > .form-inline > span {
f3cd3852
CW
192 color: white;
193}
70a14f69
CW
194#afGuiEditor #afGuiEditor-canvas .af-entity-selected > .af-gui-bar > .form-inline > button:hover > span,
195#afGuiEditor #afGuiEditor-canvas .af-entity-selected > .af-gui-bar > .open > button > span,
196#afGuiEditor #afGuiEditor-canvas .af-entity-selected > .af-gui-bar > .form-inline > button:focus > span {
197 color: #0071bd;
198}
f3cd3852 199
65c9e7ae
CW
200#afGuiEditor [ui-sortable] {
201 min-height: 25px;
202}
203
e1aca853
CW
204#afGuiEditor .af-gui-entity-palette-select-list {
205 max-height: 400px;
65c9e7ae
CW
206 overflow-y: auto;
207}
208
e1aca853 209#afGuiEditor .af-gui-entity-palette-select-list [ui-sortable] > div {
65c9e7ae 210 cursor: move;
e1aca853 211 padding-left: 10px;
65c9e7ae
CW
212 position: relative;
213}
e1aca853 214#afGuiEditor .af-gui-entity-palette-select-list [ui-sortable] > div.disabled {
65c9e7ae
CW
215 cursor: auto;
216}
e1aca853 217#afGuiEditor .af-gui-entity-palette-select-list [ui-sortable] > div:not(.disabled):hover {
65c9e7ae
CW
218 background-color: #efefef;
219}
220/* grip handle */
3fc5bbff 221#afGuiEditor [ui-sortable] .af-gui-bar:before,
e1aca853 222#afGuiEditor .af-gui-entity-palette-select-list [ui-sortable] > div:not(.disabled):hover:before,
b4def6e9 223#afGuiEditor [af-gui-edit-options] [ui-sortable] li:before {
65c9e7ae
CW
224 background-size: cover;
225 background: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1IiBoZWlnaHQ9IjUiPgo8cmVjdCB3aWR0aD0iMSIgaGVpZ2h0PSIxIiBmaWxsPSIjODg4Ij48L3JlY3Q+Cjwvc3ZnPg==");
226 width: 10px;
227 height: 15px;
228 content: ' ';
229 display: block;
230 position: absolute;
231 left: 4px;
232 top: 5px;
233}
70a14f69
CW
234#afGuiEditor .af-gui-add-element-button {
235 background-color: transparent;
236}
6fb9e8d2 237#afGuiEditor .af-gui-add-element-button span {
5f535e6c 238 display: inline-block;
3fc5bbff
CW
239 width: 18px;
240 height: 18px;
3fc5bbff 241 color: #0071bd;
5f535e6c 242}
5f535e6c 243
5eaf91d9
CW
244#afGuiEditor .af-gui-layout-icon {
245 width: 12px;
246 height: 11px;
247 display: block;
248 background-image: url('../images/icons.png');
249 background-repeat: no-repeat;
250 margin: 4px 1px;
251}
252#afGuiEditor .af-gui-layout-icon.af-layout-cols {
253 background-position: -12px 0;
254}
255#afGuiEditor .af-gui-layout-icon.af-layout-rows {
256 background-position: -24px 0;
257}
258
259#afGuiEditor .af-gui-layout.af-layout-cols {
260 display: flex;
261}
262#afGuiEditor .af-gui-layout.af-layout-cols > div {
263 flex: 1;
264}
265#afGuiEditor .af-gui-layout.af-layout-inline > div {
266 display: inline-block;
267 width: 300px;
268}
28b4ace4 269
4bd44053
CW
270#afGuiEditor .af-gui-button {
271 padding-left: 15px;
272}
273
9651d93c
CW
274#afGuiEditor .af-gui-button > .btn.disabled {
275 cursor: default !important;
276 color: white !important;
277}
4bd44053
CW
278#afGuiEditor .af-gui-button > .btn.disabled .crm-editable-enabled:hover:not(:focus) {
279 border-color: #f4f4f4 !important;
280}
9651d93c
CW
281
282#afGuiEditor .af-gui-button > .btn-default.disabled {
283 background-color: lightgrey !important;
284}
285
4bd44053
CW
286#afGuiEditor .af-gui-node-title {
287 margin-left: 5px;
288 margin-right: 20px;
289 position: relative;
290}
291
292#afGuiEditor .af-gui-field-required:after {
293 content: '*';
294 color: #cf3458;
295 position: relative;
296 left: -4px;
297}
298
9c572641 299#afGuiEditor .dropdown-menu li {
4bd44053
CW
300 cursor: default;
301}
302
9c572641
CW
303#afGuiEditor .dropdown-menu li .af-gui-field-select-in-dropdown {
304 padding: 2px 19px 2px 21px;
305 clear: both;
306 font-weight: 400;
307 line-height: 1.5384615385;
308 color: #4d4d69;
309 white-space: nowrap;
310}
311
312#afGuiEditor .dropdown-menu li > * > label {
313 font-weight: normal;
e1aca853 314 cursor: pointer;
9c572641
CW
315}
316
317#afGuiEditor .dropdown-menu li .af-gui-field-select-in-dropdown > select {
318 max-width: 120px;
319 padding-left: 5px;
320 padding-right: 5px;
321}
322
51ec7d5a
CW
323#afGuiEditor li .af-gui-field-select-in-dropdown input[type=color] {
324 width: 30px;
325 padding: 2px 4px;
326}
327
e1aca853
CW
328#afGuiEditor li .af-gui-field-select-in-dropdown input[type=number] {
329 width: 50px;
330 padding-right: 0;
331}
332
9c572641 333/* For editing field placeholder text */
b4def6e9 334#afGuiEditor .af-gui-field-input input[type=text].form-control {
4bd44053
CW
335 color: #9a9a9a;
336}
337
b22ac9e5 338#afGuiEditor .af-gui-field-input-type-number input[type=text].form-control {
4bd44053
CW
339 background-image: url('../images/number.png');
340 background-repeat: no-repeat;
341 background-position: center right 6px;
342}
343
b4def6e9 344#afGuiEditor .af-gui-field-input input.crm-form-date {
4bd44053
CW
345 width: 140px;
346 margin-right: -2px;
347}
b4def6e9 348#afGuiEditor .af-gui-field-input input.crm-form-time {
4bd44053
CW
349 width: 80px;
350}
351
b4def6e9
CW
352#afGuiEditor .af-gui-field-input-type-radio label.radio {
353 font-weight: normal;
354 margin-right: 10px;
355}
356#afGuiEditor .af-gui-field-input-type-radio label.radio input[type=radio] {
357 margin: 0;
b4def6e9 358}
22946dcf
CW
359#afGuiEditor .af-gui-field-input-type-select .input-group-btn {
360 position: initial;
361}
21dff704 362#afGuiEditor .af-gui-field-input-type-chainselect .input-group .dropdown-toggle,
22946dcf
CW
363#afGuiEditor .af-gui-field-input-type-select .input-group .dropdown-toggle {
364 padding: 3px 11px;
365}
366#afGuiEditor .af-gui-field-input-type-select .input-group .dropdown-menu {
367 width: 100%;
368 right: 0;
369}
370#afGuiEditor .af-gui-field-input-type-select .input-group .dropdown-menu a {
371 cursor: default;
372}
b4def6e9 373
4bd44053
CW
374#afGuiEditor .af-gui-text-h1 {
375 font-weight: bolder;
376 font-size: 16px;
377}
378
379#afGuiEditor .af-gui-text-h2 {
380 font-weight: bold;
381 font-size: 15px;
382}
383
384#afGuiEditor .af-gui-text-legend,
385#afGuiEditor .af-gui-text-h3 {
386 font-weight: bold;
387 font-size: 14px;
388}
389
390#afGuiEditor .af-gui-text-legend {
391 text-decoration: underline;
392}
393
394#afGuiEditor .af-gui-text-h4 {
395 font-weight: bold;
396}
397
398#afGuiEditor .af-gui-text-h5 {
399 font-weight: 600;
400}
401
402#afGuiEditor .af-gui-text-h6 {
403 font-weight: 500;
404}
405
406#afGuiEditor .af-gui-field-help {
407 font-style: italic;
408}
b4def6e9 409
192695ae 410#afGuiEditor.af-gui-editing-content {
b4def6e9
CW
411 pointer-events: none;
412 cursor: default;
413}
192695ae
CW
414#afGuiEditor.af-gui-editing-content .panel-heading,
415#afGuiEditor.af-gui-editing-content .af-gui-element,
416#afGuiEditor.af-gui-editing-content .af-gui-markup-content,
417.af-gui-editing-content #afGuiEditor-palette .panel-body > * {
b4def6e9
CW
418 opacity: .5;
419}
6fb9e8d2 420#afGuiEditor.af-gui-editing-content .af-gui-container {
b4def6e9
CW
421 border: 2px solid transparent;
422}
192695ae 423#afGuiEditor.af-gui-editing-content .af-gui-bar {
b4def6e9
CW
424 visibility: hidden;
425}
192695ae 426#afGuiEditor.af-gui-editing-content .af-gui-bar:before {
b4def6e9
CW
427 background: none;
428}
429
192695ae 430#afGuiEditor .af-gui-content-editing-area {
b4def6e9
CW
431 pointer-events: auto;
432 cursor: auto;
433 padding-top: 35px;
434 position: relative;
435}
436
192695ae
CW
437#afGuiEditor [af-gui-edit-options] {
438 border: 2px solid #0071bd;
439}
440
441#afGuiEditor .af-gui-content-editing-area .af-gui-edit-options-bar {
b4def6e9
CW
442 height: 30px;
443 font-family: "Courier New", Courier, monospace;
444 font-size: 12px;
445 width: 100%;
446 background-color: #f2f2f2;
447 position: absolute;
448 top: 0;
449 left: 0;
450 padding-left: 15px;
451}
e1aca853
CW
452#afGuiEditor .af-gui-edit-options-bar .btn-group-sm {
453 position: absolute;
454 top: 0;
455 right: 0;
456}
b4def6e9
CW
457#afGuiEditor [af-gui-edit-options] ul[ui-sortable] {
458 padding: 5px 20px 0;
459}
460#afGuiEditor [af-gui-edit-options] ul[ui-sortable] li {
461 list-style: none;
462 padding-left: 15px;
463 position: relative;
464 background-color:#e7ecf1;
465 cursor: move;
466}
467#afGuiEditor [af-gui-edit-options] ul[ui-sortable] li:nth-child(even) {
468 background-color:#f2f2f2;
469}
470#afGuiEditor [af-gui-edit-options] ul[ui-sortable] li > div {
471 width: calc(100% - 30px);
472 display: inline-block;
473}
474#afGuiEditor [af-gui-edit-options] ul.af-gui-edit-options-deleted li > div {
475 text-decoration: line-through;
476}
477#afGuiEditor [af-gui-edit-options] ul[ui-sortable] li .btn-xs {
478 border: 0 none;
479}
480#afGuiEditor [af-gui-edit-options] h5 {
481 margin-left: 20px;
482}
e9dc7ca5
CW
483
484#afGuiEditor .af-gui-dropzone {
485 background-color: #e9eeff;
486 border: 2px solid #0071bd;
487 min-height: 30px;
488}