]> git.proxmox.com Git - ceph.git/blame - ceph/src/pybind/mgr/dashboard/frontend/src/styles.scss
import ceph nautilus 14.2.2
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / src / styles.scss
CommitLineData
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 */
10html {
11 background-color: $color-app-bg;
12}
13html,
14body {
15 width: 100%;
16 height: 100%;
17 font-size: 12px;
18}
19a {
20 color: $color-links;
21 cursor: pointer;
22}
23a:hover,
24a:focus {
25 color: $color-links-focus;
26}
27h1 {
28 letter-spacing: -1px;
29 font-size: 2em;
30}
31h2 {
32 letter-spacing: -1px;
33 font-size: 1.833em;
34}
35h3 {
36 display: block;
37 font-size: 1.583em;
38 font-weight: 400;
39}
40h4 {
41 font-size: 1.5em;
42 line-height: normal;
43}
44option {
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],
124fieldset[disabled] .btn-primary,
125.btn-primary.disabled:hover,
126.btn-primary[disabled]:hover,
127fieldset[disabled] .btn-primary:hover,
128.btn-primary.disabled:focus,
129.btn-primary[disabled]:focus,
130fieldset[disabled] .btn-primary:focus,
131.btn-primary.disabled:active,
132.btn-primary[disabled]:active,
133fieldset[disabled] .btn-primary:active,
134.btn-primary.disabled.active,
135.btn-primary[disabled].active,
136fieldset[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,
154button.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}
275tags-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}
280uib-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 */
312.form-group > .control-label > span.required {
313 @extend .fa;
314 @extend .fa-asterisk;
315 @extend .required;
316 font-size: 6px;
317 padding-left: 4px;
318 vertical-align: text-top;
319}
320.form-control {
321 display: table-cell;
322
323 &:focus {
324 border-color: rgba($color-primary, 0.8);
325 outline: 0;
326 box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px 2px rgba($color-primary, 0.5);
327 }
328}
329/* Panel */
330.panel-footer button.btn:not(:first-child) {
331 margin-left: 5px;
332}
333/* Modal dialog */
334.modal-footer button.btn:not(:first-child) {
335 margin-left: 5px;
336}
337.margin-right-sm {
338 margin-right: 10px;
339}
340.nav-tabs {
341 margin-bottom: 15px;
342}
343/* Icons */
344.ceph-icon {
345 background: url('assets/Ceph_Logo_Stacked_RGB_120411_fa_228x228.png');
346}
347.prometheus-icon {
348 background: url('assets/prometheus_logo.svg');
349}
350.custom-icon {
351 padding: 10px;
352 margin-right: 1em;
353 background-clip: padding-box;
354 background-size: contain;
355 background-repeat: no-repeat;
356}
357/* Notification icons */
358.toast-message .custom-icon {
359 /* Display icons in white, regardless of their origin color. */
360 filter: brightness(0) invert(1);
361 -webkit-filter: brightness(0) invert(1);
362 -moz-filter: brightness(0) invert(1);
363 -o-filter: brightness(0) invert(1);
364 -ms-filter: brightness(0) invert(1);
365}
366/* Block UI */
367.block-ui-wrapper {
368 background: $color-transparent-black !important;
369}
370
371h3.page-header {
372 margin-left: 1em;
373 margin-top: 1em;
374 border-color: #f0f0f0;
375}
376
377.tooltip-wide .tooltip-inner {
378 width: 400px;
379}
380
381.tooltip-inner {
382 background-color: white;
383 border: 1px solid grey;
384 color: #333;
385 font-size: 1.1em;
386}
81eedcae
TL
387
388.toast-message > ul {
389 padding-left: 1em;
390 margin: 0;
391}