Merge pull request #18662 from eileenmcnaughton/blockdel2
[civicrm-core.git] / css / api4-explorer.css
CommitLineData
19b53e5b
C
1/* Style rules for Api4 Explorer */
2
3#bootstrap-theme.api4-explorer-page .panel-heading {
4 height: 50px;
5}
6#bootstrap-theme.api4-explorer-page .panel-body {
7 min-height: calc( 100% - 50px);
8}
9#bootstrap-theme.api4-explorer-page .explorer-params-panel .panel-heading {
10 padding-top: 12px;
11}
12#bootstrap-theme.api4-explorer-page .explorer-params-panel .panel-heading button {
13 position: relative;
14 top: -5px;
15}
16#bootstrap-theme .explorer-params-panel .panel-heading .form-inline > .select2-container {
17 max-width: 25% !important;
18}
19#bootstrap-theme.api4-explorer-page .api4-explorer-row {
20 display: flex;
21}
22#bootstrap-theme.api4-explorer-page > div > .panel {
23 flex: 1;
24 margin: 10px;
9cea3619 25 min-height: 500px;
19b53e5b
C
26}
27#bootstrap-theme.api4-explorer-page > div > form.panel {
28 flex: 2;
29}
30/* Fix weird shorditch style */
31#bootstrap-theme.api4-explorer-page .api4-explorer-row .panel .panel-heading {
32 border-bottom-right-radius: 0;
33 border-bottom-left-radius: 0;
34 margin-bottom: 0;
35}
b65fa6dc
CW
36#bootstrap-theme.api4-explorer-page .panel-heading.nav-tabs {
37 padding: 8px 0 0 20px;
38}
39#bootstrap-theme .panel-heading>li>a {
40 background-color: #f1f1f18c
41}
19b53e5b 42#bootstrap-theme.api4-explorer-page .explorer-code-panel table td:first-child {
19d01932
CW
43 width: 6em;
44 word-break: break-word;
45}
46#bootstrap-theme.api4-explorer-page .explorer-code-panel table td pre {
47 min-height: 3.3em;
48}
49#bootstrap-theme.api4-explorer-page .explorer-code-panel .panel-heading.nav li a {
50 text-transform: uppercase;
19b53e5b
C
51}
52
53#bootstrap-theme.api4-explorer-page .explorer-params-panel > .panel-body > div.api4-input {
54 margin-bottom: 10px;
55}
56
19b53e5b
C
57#bootstrap-theme.api4-explorer-page .explorer-help-panel .panel-body {
58 word-break: break-word;
59}
60
9cea3619
CW
61/* because each help p is in a div, this undoes bootstrap removing margin from last-child */
62#bootstrap-theme.api4-explorer-page .explorer-help-panel .panel-body p {
63 margin-bottom: 10px;
64}
65
19b53e5b
C
66#bootstrap-theme.api4-explorer-page form label {
67 text-transform: capitalize;
68}
69
70#bootstrap-theme.api4-explorer-page fieldset {
71 padding: 6px;
72 border: 1px solid lightgrey;
73 margin-bottom: 10px;
74 position: relative;
75}
76
77#bootstrap-theme.api4-explorer-page fieldset legend {
19b53e5b
C
78 font-size: 13px;
79 margin: 0;
80 width: auto;
81 border: 0 none;
82 padding: 2px 5px;
83 text-transform: capitalize;
84}
9b057f1e 85#bootstrap-theme.api4-explorer-page crm-api4-clause > .btn-group {
19b53e5b
C
86 position: absolute;
87 right: 0;
9b057f1e 88 top: 0;
19b53e5b 89}
9b057f1e 90#bootstrap-theme.api4-explorer-page crm-api4-clause > .btn-group .btn {
19b53e5b
C
91 border: 0 none;
92}
93
94#bootstrap-theme.api4-explorer-page fieldset div.api4-input {
95 margin-bottom: 10px;
96}
97
98#bootstrap-theme.api4-explorer-page fieldset div.api4-input.ui-sortable-helper {
99 background-color: rgba(255, 255, 255, .9);
100}
101
102#bootstrap-theme.api4-explorer-page fieldset div.api4-input.ui-sortable-helper {
103 background-color: rgba(255, 255, 255, .9);
104}
105
0c8e6f1e 106#bootstrap-theme.api4-explorer-page div.api4-input.form-inline label.form-control {
19b53e5b
C
107 margin-right: 6px;
108}
0c8e6f1e
CW
109#bootstrap-theme.api4-explorer-page div.api4-input.form-inline label.form-control input[type=checkbox] {
110 margin: 0 2px 0 0;
111}
19b53e5b 112
0c8e6f1e 113#bootstrap-theme.api4-explorer-page div.api4-input.form-inline label.form-control:not(.api4-option-selected) {
19b53e5b
C
114 transition: none;
115 box-shadow: none;
116 -webkit-box-shadow: none;
117 -moz-box-shadow: none;
0c8e6f1e 118 font-weight: normal;
19b53e5b
C
119}
120
121#bootstrap-theme.api4-explorer-page div.api4-input.form-inline .form-control label {
122 font-weight: normal;
123 position: relative;
124 top: -2px;
125}
126
24463df7 127#bootstrap-theme.api4-explorer-page .api4-clause-fieldset fieldset {
19b53e5b
C
128 float: right;
129 width: calc(100% - 58px);
130 margin-top: -8px;
131}
132
24463df7 133#bootstrap-theme.api4-explorer-page .api4-clause-fieldset.api4-sorting fieldset .api4-clause-group-sortable {
19b53e5b
C
134 min-height: 3.5em;
135}
136
137#bootstrap-theme.api4-explorer-page .api4-input-group {
138 display: inline-block;
139}
140
292c1648
CW
141#bootstrap-theme.api4-explorer-page i.fa-arrows {
142 cursor: move;
143}
144
19b53e5b
C
145#bootstrap-theme.api4-explorer-page .api4-clause-badge {
146 width: 55px;
147 display: inline-block;
148 cursor: move;
149}
150#bootstrap-theme.api4-explorer-page .api4-clause-badge .badge {
151 opacity: .5;
152 position: relative;
153}
154#bootstrap-theme.api4-explorer-page .api4-clause-badge .caret {
155 margin: 0;
156}
157#bootstrap-theme.api4-explorer-page .api4-clause-badge .crm-i {
158 display: none;
159 padding: 0 6px;
160}
161#bootstrap-theme.api4-explorer-page .ui-sortable-helper .api4-clause-badge .badge span {
162 display: none;
163}
164#bootstrap-theme.api4-explorer-page .ui-sortable-helper .api4-clause-badge .crm-i {
165 display: inline-block;
166}
167
168#bootstrap-theme.api4-explorer-page .api4-operator,
169#bootstrap-theme.api4-explorer-page .api4-chain-index,
19b53e5b 170#bootstrap-theme.api4-explorer-page .api4-chain-action {
6ba6f2bd 171 width: 90px;
19b53e5b
C
172}
173#bootstrap-theme.api4-explorer-page .api4-chain-params {
2a68b84a 174 width: calc(100% - 390px);
19b53e5b
C
175}
176
177#bootstrap-theme.api4-explorer-page .api4-add-where-group-menu {
178 min-width: 80px;
179 background-color: rgba(186, 225, 251, 0.94);
180}
181#bootstrap-theme.api4-explorer-page .api4-add-where-group-menu a {
182 padding: 5px 10px;
183}
184
185/* Collapsible optgroups for select2 */
186div.select2-drop.collapsible-optgroups-enabled .select2-result-with-children:not(.optgroup-expanded) > .select2-result-sub > li.select2-result {
187 display: none;
188}
189div.select2-drop.collapsible-optgroups-enabled .select2-result-with-children > .select2-result-label:before {
190 font-family: FontAwesome;
191 content: "\f0da";
192 display: inline-block;
193 padding-right: 3px;
194 vertical-align: middle;
195 font-weight: normal;
196}
197div.select2-drop.collapsible-optgroups-enabled .select2-result-with-children.optgroup-expanded > .select2-result-label:before {
198 content: "\f0d7";
199}
200
a26e006b
CW
201#bootstrap-theme.api4-explorer-page .form-control.huge {
202 width: 25em;
203}
204
37d82abe
CW
205#bootstrap-theme.api4-explorer-page .form-control.twenty {
206 width: 20em;
207}
208
d7507e89
CW
209/* Another weird shoreditch fix */
210#bootstrap-theme .form-inline div.checkbox {
211 margin-right: 1em;
212}
213#bootstrap-theme .form-inline div.checkbox label input[type=checkbox] {
214 margin: 0;
215}
216
19b53e5b
C
217/**
218 * Shims so the UI isn't completely broken when a Bootstrap theme is not installed
219 */
220#bootstrap-theme.api4-explorer-page * {
221 box-sizing: border-box;
222}
223.api4-explorer-page.panel {
224 border: 1px solid grey;
225 background-color: white;
226}
227.api4-explorer-page.panel-heading {
228 padding: 10px 20px;
229 color: #464354;
230 background-color: #f3f6f7;
231}