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