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; | |
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-index, | |
150 | #bootstrap-theme.api4-explorer-page .api4-chain-action { | |
151 | width: 70px; | |
152 | } | |
153 | #bootstrap-theme.api4-explorer-page .api4-chain-params { | |
154 | width: calc( 100% - 346px); | |
155 | } | |
156 | ||
157 | #bootstrap-theme.api4-explorer-page .api4-add-where-group-menu { | |
158 | min-width: 80px; | |
159 | background-color: rgba(186, 225, 251, 0.94); | |
160 | } | |
161 | #bootstrap-theme.api4-explorer-page .api4-add-where-group-menu a { | |
162 | padding: 5px 10px; | |
163 | } | |
164 | ||
165 | /* Collapsible optgroups for select2 */ | |
166 | div.select2-drop.collapsible-optgroups-enabled .select2-result-with-children:not(.optgroup-expanded) > .select2-result-sub > li.select2-result { | |
167 | display: none; | |
168 | } | |
169 | div.select2-drop.collapsible-optgroups-enabled .select2-result-with-children > .select2-result-label:before { | |
170 | font-family: FontAwesome; | |
171 | content: "\f0da"; | |
172 | display: inline-block; | |
173 | padding-right: 3px; | |
174 | vertical-align: middle; | |
175 | font-weight: normal; | |
176 | } | |
177 | div.select2-drop.collapsible-optgroups-enabled .select2-result-with-children.optgroup-expanded > .select2-result-label:before { | |
178 | content: "\f0d7"; | |
179 | } | |
180 | ||
181 | /** | |
182 | * Shims so the UI isn't completely broken when a Bootstrap theme is not installed | |
183 | */ | |
184 | #bootstrap-theme.api4-explorer-page * { | |
185 | box-sizing: border-box; | |
186 | } | |
187 | .api4-explorer-page.panel { | |
188 | border: 1px solid grey; | |
189 | background-color: white; | |
190 | } | |
191 | .api4-explorer-page.panel-heading { | |
192 | padding: 10px 20px; | |
193 | color: #464354; | |
194 | background-color: #f3f6f7; | |
195 | } |