Merge pull request #16386 from civicrm/5.22
[civicrm-core.git] / css / api4-explorer.css
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;
25 min-height: 500px;
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 }
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 }
42 #bootstrap-theme.api4-explorer-page .explorer-code-panel table td:first-child {
43 width: 5em;
44 }
45
46 #bootstrap-theme.api4-explorer-page .explorer-params-panel > .panel-body > div.api4-input {
47 margin-bottom: 10px;
48 }
49
50 #bootstrap-theme.api4-explorer-page .api4-input.form-inline > label {
51 margin-right: 12px;
52 }
53
54 #bootstrap-theme.api4-explorer-page .explorer-help-panel .panel-body {
55 word-break: break-word;
56 }
57
58 /* because each help p is in a div, this undoes bootstrap removing margin from last-child */
59 #bootstrap-theme.api4-explorer-page .explorer-help-panel .panel-body p {
60 margin-bottom: 10px;
61 }
62
63 #bootstrap-theme.api4-explorer-page form label {
64 text-transform: capitalize;
65 }
66
67 #bootstrap-theme.api4-explorer-page fieldset {
68 padding: 6px;
69 border: 1px solid lightgrey;
70 margin-bottom: 10px;
71 position: relative;
72 }
73
74 #bootstrap-theme.api4-explorer-page fieldset legend {
75 background-color: white;
76 font-size: 13px;
77 margin: 0;
78 width: auto;
79 border: 0 none;
80 padding: 2px 5px;
81 text-transform: capitalize;
82 }
83 #bootstrap-theme.api4-explorer-page fieldset > .btn-group {
84 position: absolute;
85 right: 0;
86 top: 11px;
87 }
88 #bootstrap-theme.api4-explorer-page fieldset > .btn-group .btn {
89 border: 0 none;
90 }
91
92 #bootstrap-theme.api4-explorer-page fieldset div.api4-input {
93 margin-bottom: 10px;
94 }
95
96 #bootstrap-theme.api4-explorer-page fieldset div.api4-input.ui-sortable-helper {
97 background-color: rgba(255, 255, 255, .9);
98 }
99
100 #bootstrap-theme.api4-explorer-page fieldset div.api4-input.ui-sortable-helper {
101 background-color: rgba(255, 255, 255, .9);
102 }
103
104 #bootstrap-theme.api4-explorer-page div.api4-input.form-inline .form-control {
105 margin-right: 6px;
106 }
107
108 #bootstrap-theme.api4-explorer-page div.api4-input.form-inline .form-control:not(.api4-option-selected) {
109 transition: none;
110 box-shadow: none;
111 -webkit-box-shadow: none;
112 -moz-box-shadow: none;
113 }
114
115 #bootstrap-theme.api4-explorer-page div.api4-input.form-inline .form-control label {
116 font-weight: normal;
117 position: relative;
118 top: -2px;
119 }
120
121 #bootstrap-theme.api4-explorer-page .api4-where-fieldset fieldset {
122 float: right;
123 width: calc(100% - 58px);
124 margin-top: -8px;
125 }
126
127 #bootstrap-theme.api4-explorer-page .api4-where-fieldset.api4-sorting fieldset .api4-where-group-sortable {
128 min-height: 3.5em;
129 }
130
131 #bootstrap-theme.api4-explorer-page .api4-input-group {
132 display: inline-block;
133 }
134
135 #bootstrap-theme.api4-explorer-page .api4-clause-badge {
136 width: 55px;
137 display: inline-block;
138 cursor: move;
139 }
140 #bootstrap-theme.api4-explorer-page .api4-clause-badge .badge {
141 opacity: .5;
142 position: relative;
143 }
144 #bootstrap-theme.api4-explorer-page .api4-clause-badge .caret {
145 margin: 0;
146 }
147 #bootstrap-theme.api4-explorer-page .api4-clause-badge .crm-i {
148 display: none;
149 padding: 0 6px;
150 }
151 #bootstrap-theme.api4-explorer-page .ui-sortable-helper .api4-clause-badge .badge span {
152 display: none;
153 }
154 #bootstrap-theme.api4-explorer-page .ui-sortable-helper .api4-clause-badge .crm-i {
155 display: inline-block;
156 }
157
158 #bootstrap-theme.api4-explorer-page .api4-operator,
159 #bootstrap-theme.api4-explorer-page .api4-chain-index,
160 #bootstrap-theme.api4-explorer-page .api4-chain-action {
161 width: 90px;
162 }
163 #bootstrap-theme.api4-explorer-page .api4-chain-params {
164 width: calc(100% - 390px);
165 }
166
167 #bootstrap-theme.api4-explorer-page .api4-add-where-group-menu {
168 min-width: 80px;
169 background-color: rgba(186, 225, 251, 0.94);
170 }
171 #bootstrap-theme.api4-explorer-page .api4-add-where-group-menu a {
172 padding: 5px 10px;
173 }
174
175 /* Collapsible optgroups for select2 */
176 div.select2-drop.collapsible-optgroups-enabled .select2-result-with-children:not(.optgroup-expanded) > .select2-result-sub > li.select2-result {
177 display: none;
178 }
179 div.select2-drop.collapsible-optgroups-enabled .select2-result-with-children > .select2-result-label:before {
180 font-family: FontAwesome;
181 content: "\f0da";
182 display: inline-block;
183 padding-right: 3px;
184 vertical-align: middle;
185 font-weight: normal;
186 }
187 div.select2-drop.collapsible-optgroups-enabled .select2-result-with-children.optgroup-expanded > .select2-result-label:before {
188 content: "\f0d7";
189 }
190
191 /**
192 * Shims so the UI isn't completely broken when a Bootstrap theme is not installed
193 */
194 #bootstrap-theme.api4-explorer-page * {
195 box-sizing: border-box;
196 }
197 .api4-explorer-page.panel {
198 border: 1px solid grey;
199 background-color: white;
200 }
201 .api4-explorer-page.panel-heading {
202 padding: 10px 20px;
203 color: #464354;
204 background-color: #f3f6f7;
205 }