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