Merge pull request #18569 from eileenmcnaughton/synt
[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 {
78 background-color: white;
79 font-size: 13px;
80 margin: 0;
81 width: auto;
82 border: 0 none;
83 padding: 2px 5px;
84 text-transform: capitalize;
85}
86#bootstrap-theme.api4-explorer-page fieldset > .btn-group {
87 position: absolute;
88 right: 0;
89 top: 11px;
90}
91#bootstrap-theme.api4-explorer-page fieldset > .btn-group .btn {
92 border: 0 none;
93}
94
95#bootstrap-theme.api4-explorer-page fieldset div.api4-input {
96 margin-bottom: 10px;
97}
98
99#bootstrap-theme.api4-explorer-page fieldset div.api4-input.ui-sortable-helper {
100 background-color: rgba(255, 255, 255, .9);
101}
102
103#bootstrap-theme.api4-explorer-page fieldset div.api4-input.ui-sortable-helper {
104 background-color: rgba(255, 255, 255, .9);
105}
106
0c8e6f1e 107#bootstrap-theme.api4-explorer-page div.api4-input.form-inline label.form-control {
19b53e5b
C
108 margin-right: 6px;
109}
0c8e6f1e
CW
110#bootstrap-theme.api4-explorer-page div.api4-input.form-inline label.form-control input[type=checkbox] {
111 margin: 0 2px 0 0;
112}
19b53e5b 113
0c8e6f1e 114#bootstrap-theme.api4-explorer-page div.api4-input.form-inline label.form-control:not(.api4-option-selected) {
19b53e5b
C
115 transition: none;
116 box-shadow: none;
117 -webkit-box-shadow: none;
118 -moz-box-shadow: none;
0c8e6f1e 119 font-weight: normal;
19b53e5b
C
120}
121
122#bootstrap-theme.api4-explorer-page div.api4-input.form-inline .form-control label {
123 font-weight: normal;
124 position: relative;
125 top: -2px;
126}
127
24463df7 128#bootstrap-theme.api4-explorer-page .api4-clause-fieldset fieldset {
19b53e5b
C
129 float: right;
130 width: calc(100% - 58px);
131 margin-top: -8px;
132}
133
24463df7 134#bootstrap-theme.api4-explorer-page .api4-clause-fieldset.api4-sorting fieldset .api4-clause-group-sortable {
19b53e5b
C
135 min-height: 3.5em;
136}
137
138#bootstrap-theme.api4-explorer-page .api4-input-group {
139 display: inline-block;
140}
141
292c1648
CW
142#bootstrap-theme.api4-explorer-page i.fa-arrows {
143 cursor: move;
144}
145
19b53e5b
C
146#bootstrap-theme.api4-explorer-page .api4-clause-badge {
147 width: 55px;
148 display: inline-block;
149 cursor: move;
150}
151#bootstrap-theme.api4-explorer-page .api4-clause-badge .badge {
152 opacity: .5;
153 position: relative;
154}
155#bootstrap-theme.api4-explorer-page .api4-clause-badge .caret {
156 margin: 0;
157}
158#bootstrap-theme.api4-explorer-page .api4-clause-badge .crm-i {
159 display: none;
160 padding: 0 6px;
161}
162#bootstrap-theme.api4-explorer-page .ui-sortable-helper .api4-clause-badge .badge span {
163 display: none;
164}
165#bootstrap-theme.api4-explorer-page .ui-sortable-helper .api4-clause-badge .crm-i {
166 display: inline-block;
167}
168
169#bootstrap-theme.api4-explorer-page .api4-operator,
170#bootstrap-theme.api4-explorer-page .api4-chain-index,
19b53e5b 171#bootstrap-theme.api4-explorer-page .api4-chain-action {
6ba6f2bd 172 width: 90px;
19b53e5b
C
173}
174#bootstrap-theme.api4-explorer-page .api4-chain-params {
2a68b84a 175 width: calc(100% - 390px);
19b53e5b
C
176}
177
178#bootstrap-theme.api4-explorer-page .api4-add-where-group-menu {
179 min-width: 80px;
180 background-color: rgba(186, 225, 251, 0.94);
181}
182#bootstrap-theme.api4-explorer-page .api4-add-where-group-menu a {
183 padding: 5px 10px;
184}
185
186/* Collapsible optgroups for select2 */
187div.select2-drop.collapsible-optgroups-enabled .select2-result-with-children:not(.optgroup-expanded) > .select2-result-sub > li.select2-result {
188 display: none;
189}
190div.select2-drop.collapsible-optgroups-enabled .select2-result-with-children > .select2-result-label:before {
191 font-family: FontAwesome;
192 content: "\f0da";
193 display: inline-block;
194 padding-right: 3px;
195 vertical-align: middle;
196 font-weight: normal;
197}
198div.select2-drop.collapsible-optgroups-enabled .select2-result-with-children.optgroup-expanded > .select2-result-label:before {
199 content: "\f0d7";
200}
201
a26e006b
CW
202#bootstrap-theme.api4-explorer-page .form-control.huge {
203 width: 25em;
204}
205
37d82abe
CW
206#bootstrap-theme.api4-explorer-page .form-control.twenty {
207 width: 20em;
208}
209
d7507e89
CW
210/* Another weird shoreditch fix */
211#bootstrap-theme .form-inline div.checkbox {
212 margin-right: 1em;
213}
214#bootstrap-theme .form-inline div.checkbox label input[type=checkbox] {
215 margin: 0;
216}
217
19b53e5b
C
218/**
219 * Shims so the UI isn't completely broken when a Bootstrap theme is not installed
220 */
221#bootstrap-theme.api4-explorer-page * {
222 box-sizing: border-box;
223}
224.api4-explorer-page.panel {
225 border: 1px solid grey;
226 background-color: white;
227}
228.api4-explorer-page.panel-heading {
229 padding: 10px 20px;
230 color: #464354;
231 background-color: #f3f6f7;
232}