Commit | Line | Data |
---|---|---|
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 | ||
24463df7 | 106 | #bootstrap-theme.api4-explorer-page .api4-clause-fieldset fieldset { |
19b53e5b C |
107 | float: right; |
108 | width: calc(100% - 58px); | |
109 | margin-top: -8px; | |
110 | } | |
111 | ||
24463df7 | 112 | #bootstrap-theme.api4-explorer-page .api4-clause-fieldset.api4-sorting fieldset .api4-clause-group-sortable { |
19b53e5b C |
113 | min-height: 3.5em; |
114 | } | |
115 | ||
116 | #bootstrap-theme.api4-explorer-page .api4-input-group { | |
117 | display: inline-block; | |
118 | } | |
119 | ||
292c1648 CW |
120 | #bootstrap-theme.api4-explorer-page i.fa-arrows { |
121 | cursor: move; | |
122 | } | |
123 | ||
19b53e5b C |
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, | |
19b53e5b | 149 | #bootstrap-theme.api4-explorer-page .api4-chain-action { |
6ba6f2bd | 150 | width: 90px; |
19b53e5b C |
151 | } |
152 | #bootstrap-theme.api4-explorer-page .api4-chain-params { | |
2a68b84a | 153 | width: calc(100% - 390px); |
19b53e5b C |
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 | ||
a26e006b CW |
180 | #bootstrap-theme.api4-explorer-page .form-control.huge { |
181 | width: 25em; | |
182 | } | |
183 | ||
37d82abe CW |
184 | #bootstrap-theme.api4-explorer-page .form-control.twenty { |
185 | width: 20em; | |
186 | } | |
187 | ||
d7507e89 CW |
188 | /* Another weird shoreditch fix */ |
189 | #bootstrap-theme .form-inline div.checkbox { | |
190 | margin-right: 1em; | |
191 | } | |
192 | #bootstrap-theme .form-inline div.checkbox label input[type=checkbox] { | |
193 | margin: 0; | |
194 | } | |
195 | ||
19b53e5b C |
196 | /** |
197 | * Shims so the UI isn't completely broken when a Bootstrap theme is not installed | |
198 | */ | |
199 | #bootstrap-theme.api4-explorer-page * { | |
200 | box-sizing: border-box; | |
201 | } | |
202 | .api4-explorer-page.panel { | |
203 | border: 1px solid grey; | |
204 | background-color: white; | |
205 | } | |
206 | .api4-explorer-page.panel-heading { | |
207 | padding: 10px 20px; | |
208 | color: #464354; | |
209 | background-color: #f3f6f7; | |
210 | } |