]>
Commit | Line | Data |
---|---|---|
11fdf7f2 TL |
1 | /* You can add global styles to this file, and also import other style files */ |
2 | ||
3 | @import 'defaults'; | |
4 | $fa-font-path: '../node_modules/fork-awesome/fonts'; | |
5 | @import '../node_modules/fork-awesome/scss/fork-awesome'; | |
6 | $font_family_1: 'ForkAwesome'; | |
7 | @import 'app/ceph/dashboard/info-card/info-card-popover.scss'; | |
8 | ||
9 | /* Basics */ | |
10 | html { | |
11 | background-color: $color-app-bg; | |
12 | } | |
13 | html, | |
14 | body { | |
15 | width: 100%; | |
16 | height: 100%; | |
17 | font-size: 12px; | |
18 | } | |
19 | a { | |
20 | color: $color-links; | |
21 | cursor: pointer; | |
22 | } | |
23 | a:hover, | |
24 | a:focus { | |
25 | color: $color-links-focus; | |
26 | } | |
27 | h1 { | |
28 | letter-spacing: -1px; | |
29 | font-size: 2em; | |
30 | } | |
31 | h2 { | |
32 | letter-spacing: -1px; | |
33 | font-size: 1.833em; | |
34 | } | |
35 | h3 { | |
36 | display: block; | |
37 | font-size: 1.583em; | |
38 | font-weight: 400; | |
39 | } | |
40 | h4 { | |
41 | font-size: 1.5em; | |
42 | line-height: normal; | |
43 | } | |
44 | option { | |
45 | font-weight: normal; | |
46 | font-style: normal; | |
47 | } | |
48 | /* For awesome-bootstrap-checkbox */ | |
49 | .checkbox input[type='checkbox']:checked + label:after { | |
50 | font-family: $font_family_1; | |
51 | } | |
52 | /*******/ | |
53 | .full-height { | |
54 | height: 100%; | |
55 | } | |
56 | .vertical-align { | |
57 | display: flex; | |
58 | align-items: center; | |
59 | } | |
60 | .loading { | |
61 | position: absolute; | |
62 | top: 50%; | |
63 | left: 50%; | |
64 | } | |
65 | .margin-right-md { | |
66 | margin-right: 15px; | |
67 | } | |
68 | .no-border { | |
69 | border: 0px; | |
70 | box-shadow: 0px 0px 0px !important; | |
71 | } | |
72 | .italic { | |
73 | font-style: italic; | |
74 | } | |
75 | .bold { | |
76 | font-weight: bold; | |
77 | } | |
78 | .text-right { | |
79 | text-align: right; | |
80 | } | |
81 | .text-monospace { | |
82 | font-family: monospace; | |
83 | } | |
84 | ||
85 | /* Buttons */ | |
86 | .btn { | |
87 | &, | |
88 | &:active, | |
89 | &.active { | |
90 | &:focus, | |
91 | &.focus { | |
92 | outline: 0; | |
93 | } | |
94 | } | |
95 | } | |
96 | .btn-primary { | |
97 | color: $color-button-text; | |
98 | background-color: $color-accent; | |
99 | border-color: $color-accent; | |
100 | border-radius: $button-radius; | |
101 | } | |
102 | .btn-primary:hover, | |
103 | .btn-primary:focus, | |
104 | .btn-primary:active, | |
105 | .btn-primary.active, | |
106 | .open .dropdown-toggle.btn-primary { | |
107 | color: $color-button-text; | |
108 | background-color: lighten($color-accent, 10); | |
109 | border-color: lighten($color-accent, 10); | |
110 | } | |
111 | .btn-primary:active, | |
112 | .btn-primary.active, | |
113 | .open .dropdown-toggle.btn-primary { | |
114 | background-image: none; | |
115 | ||
116 | &:hover, | |
117 | &:focus { | |
118 | background-color: lighten($color-accent, 10); | |
119 | border-color: lighten($color-accent, 10); | |
120 | } | |
121 | } | |
122 | .btn-primary.disabled, | |
123 | .btn-primary[disabled], | |
124 | fieldset[disabled] .btn-primary, | |
125 | .btn-primary.disabled:hover, | |
126 | .btn-primary[disabled]:hover, | |
127 | fieldset[disabled] .btn-primary:hover, | |
128 | .btn-primary.disabled:focus, | |
129 | .btn-primary[disabled]:focus, | |
130 | fieldset[disabled] .btn-primary:focus, | |
131 | .btn-primary.disabled:active, | |
132 | .btn-primary[disabled]:active, | |
133 | fieldset[disabled] .btn-primary:active, | |
134 | .btn-primary.disabled.active, | |
135 | .btn-primary[disabled].active, | |
136 | fieldset[disabled] .btn-primary.active { | |
137 | background-color: $color-accent; | |
138 | border-color: $color-accent; | |
139 | } | |
140 | .btn-primary .badge { | |
141 | color: $color-primary; | |
142 | background-color: $color-button-badge; | |
143 | } | |
144 | .btn-primary .caret { | |
145 | color: $color-button-caret; | |
146 | } | |
147 | .btn-default { | |
148 | border-radius: $button-radius; | |
149 | } | |
150 | .form-group .btn-default { | |
151 | border-radius: 4px; | |
152 | } | |
153 | .btn-group > .btn > i.fa, | |
154 | button.btn.btn-label > i.fa { | |
155 | /** Add space between icon and text */ | |
156 | padding-right: 5px; | |
157 | } | |
158 | ||
159 | /* Dropdown */ | |
160 | .dropdown-menu { | |
161 | min-width: 50px; | |
162 | z-index: 999999; | |
163 | } | |
164 | .dropdown-menu > li > a { | |
165 | color: $color-dropdown-menu; | |
166 | cursor: pointer; | |
167 | } | |
168 | .dropdown-menu > li > a > i.fa { | |
169 | /** Add space between icon and text */ | |
170 | padding-right: 5px; | |
171 | } | |
172 | .dropdown-menu > .active > a { | |
173 | color: $color-dropdown-active-text; | |
174 | background-color: $color-dropdown-active-bg; | |
175 | ||
176 | &, | |
177 | &:hover, | |
178 | &:focus { | |
179 | background-color: darken($color-dropdown-active-bg, 10); | |
180 | } | |
181 | } | |
182 | .dataTables_wrapper .dropdown-menu > li.divider { | |
183 | cursor: auto; | |
184 | } | |
185 | ||
186 | /* Grid */ | |
187 | .container, | |
188 | .container-fluid { | |
189 | padding-left: 30px; | |
190 | padding-right: 30px; | |
191 | } | |
192 | .row { | |
193 | margin-left: -30px; | |
194 | margin-right: -30px; | |
195 | } | |
196 | .col-lg-1, | |
197 | .col-lg-10, | |
198 | .col-lg-11, | |
199 | .col-lg-12, | |
200 | .col-lg-2, | |
201 | .col-lg-3, | |
202 | .col-lg-4, | |
203 | .col-lg-5, | |
204 | .col-lg-6, | |
205 | .col-lg-7, | |
206 | .col-lg-8, | |
207 | .col-lg-9, | |
208 | .col-md-1, | |
209 | .col-md-10, | |
210 | .col-md-11, | |
211 | .col-md-12, | |
212 | .col-md-2, | |
213 | .col-md-3, | |
214 | .col-md-4, | |
215 | .col-md-5, | |
216 | .col-md-6, | |
217 | .col-md-7, | |
218 | .col-md-8, | |
219 | .col-md-9, | |
220 | .col-sm-1, | |
221 | .col-sm-10, | |
222 | .col-sm-11, | |
223 | .col-sm-12, | |
224 | .col-sm-2, | |
225 | .col-sm-3, | |
226 | .col-sm-4, | |
227 | .col-sm-5, | |
228 | .col-sm-6, | |
229 | .col-sm-7, | |
230 | .col-sm-8, | |
231 | .col-sm-9, | |
232 | .col-xs-1, | |
233 | .col-xs-10, | |
234 | .col-xs-11, | |
235 | .col-xs-12, | |
236 | .col-xs-2, | |
237 | .col-xs-3, | |
238 | .col-xs-4, | |
239 | .col-xs-5, | |
240 | .col-xs-6, | |
241 | .col-xs-7, | |
242 | .col-xs-8, | |
243 | .col-xs-9 { | |
244 | padding-left: 30px; | |
245 | padding-right: 30px; | |
246 | } | |
247 | /* Caret */ | |
248 | .caret { | |
249 | color: $color-caret-text; | |
250 | } | |
251 | /* Progressbar */ | |
252 | .progress-bar { | |
253 | background-image: none !important; | |
254 | } | |
255 | .progress-bar-info { | |
256 | background-color: $color-progress-bar-info-bg; | |
257 | } | |
258 | .progress-bar-freespace { | |
259 | background-color: $color-progress-bar-freespace-bg; | |
260 | } | |
261 | .oaprogress { | |
262 | position: relative; | |
263 | margin-bottom: 0; | |
264 | } | |
265 | .oaprogress div.progress-bar { | |
266 | position: static; | |
267 | } | |
268 | .oaprogress span { | |
269 | position: absolute; | |
270 | display: block; | |
271 | width: 100%; | |
272 | color: $color-oaprogress-text; | |
273 | font-weight: normal; | |
274 | } | |
275 | tags-input .tags { | |
276 | border-radius: 4px; | |
277 | border: 1px solid $color-tags-border; | |
278 | box-shadow: inset 0 1px 1px $color-tags-box-shadow; | |
279 | } | |
280 | uib-accordion .panel-title, | |
281 | .panel .accordion-title { | |
282 | font-size: 14px !important; | |
283 | } | |
284 | .panel-body h2:first-child { | |
285 | margin-top: 0; | |
286 | } | |
287 | .pull-left { | |
288 | float: left; | |
289 | } | |
290 | .disabled { | |
291 | pointer-events: none; | |
292 | } | |
293 | .clickable { | |
294 | cursor: pointer; | |
295 | } | |
296 | .has-error .has-error-btn, | |
297 | .has-error .has-error-btn:disabled:hover { | |
298 | background-color: $color-error-btn-bg; | |
299 | border-color: $color-error-btn-border; | |
300 | } | |
301 | /* If javascript is disabled. */ | |
302 | .noscript { | |
303 | padding-top: 5em; | |
304 | } | |
305 | .noscript p { | |
306 | color: $color-noscript-text; | |
307 | } | |
308 | .required { | |
309 | color: $color-required-text; | |
310 | } | |
311 | /* Forms */ | |
eafe8130 TL |
312 | .form-group > .control-label > span.required, |
313 | .form-group > .col-sm-12 > .control-label > span.required { | |
11fdf7f2 TL |
314 | @extend .fa; |
315 | @extend .fa-asterisk; | |
316 | @extend .required; | |
317 | font-size: 6px; | |
318 | padding-left: 4px; | |
319 | vertical-align: text-top; | |
320 | } | |
321 | .form-control { | |
322 | display: table-cell; | |
323 | ||
324 | &:focus { | |
325 | border-color: rgba($color-primary, 0.8); | |
326 | outline: 0; | |
327 | box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px 2px rgba($color-primary, 0.5); | |
328 | } | |
329 | } | |
330 | /* Panel */ | |
331 | .panel-footer button.btn:not(:first-child) { | |
332 | margin-left: 5px; | |
333 | } | |
334 | /* Modal dialog */ | |
335 | .modal-footer button.btn:not(:first-child) { | |
336 | margin-left: 5px; | |
337 | } | |
338 | .margin-right-sm { | |
339 | margin-right: 10px; | |
340 | } | |
341 | .nav-tabs { | |
342 | margin-bottom: 15px; | |
343 | } | |
344 | /* Icons */ | |
345 | .ceph-icon { | |
346 | background: url('assets/Ceph_Logo_Stacked_RGB_120411_fa_228x228.png'); | |
347 | } | |
348 | .prometheus-icon { | |
349 | background: url('assets/prometheus_logo.svg'); | |
350 | } | |
351 | .custom-icon { | |
352 | padding: 10px; | |
353 | margin-right: 1em; | |
354 | background-clip: padding-box; | |
355 | background-size: contain; | |
356 | background-repeat: no-repeat; | |
357 | } | |
358 | /* Notification icons */ | |
359 | .toast-message .custom-icon { | |
360 | /* Display icons in white, regardless of their origin color. */ | |
361 | filter: brightness(0) invert(1); | |
362 | -webkit-filter: brightness(0) invert(1); | |
363 | -moz-filter: brightness(0) invert(1); | |
364 | -o-filter: brightness(0) invert(1); | |
365 | -ms-filter: brightness(0) invert(1); | |
366 | } | |
367 | /* Block UI */ | |
368 | .block-ui-wrapper { | |
369 | background: $color-transparent-black !important; | |
370 | } | |
371 | ||
372 | h3.page-header { | |
373 | margin-left: 1em; | |
374 | margin-top: 1em; | |
375 | border-color: #f0f0f0; | |
376 | } | |
377 | ||
378 | .tooltip-wide .tooltip-inner { | |
379 | width: 400px; | |
380 | } | |
381 | ||
382 | .tooltip-inner { | |
383 | background-color: white; | |
384 | border: 1px solid grey; | |
385 | color: #333; | |
386 | font-size: 1.1em; | |
387 | } | |
81eedcae TL |
388 | |
389 | .toast-message > ul { | |
390 | padding-left: 1em; | |
391 | margin: 0; | |
392 | } |