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