blob: 222bc7ec8c45151af63c8e1a7d25cac87fa6b28b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
|
// Style
.downtime-list .list-item,
.downtime-detail .list-item {
.progress {
.progress-bar {
background-color: @color-ok;
}
}
.visual {
background-color: @gray-lighter;
}
.main {
border-top: 1px solid @gray-light;
}
&:first-child .main {
border-top: none;
.progress-bar {
border-top: 1px solid @gray-light;
}
}
&.in-effect {
.visual {
background-color: @color-ok;
color: @text-color-on-icinga-blue;
}
.main {
padding-top: 0; // If active the progress bar represents the padding top
}
}
}
// Layout
.downtime-list .list-item {
.caption > * {
display: inline;
}
}
.downtime-list .list-item,
.downtime-detail .list-item {
.progress {
height: 2px;
margin-bottom: ~"calc(.5em - 2px)";
min-width: 100%;
position: relative;
.progress-bar {
height: 100%;
max-width: 100%;
}
}
&:first-child .main .progress-bar {
height: ~"calc(100% + 1px)"; // +1px due to the border added exclusively for the first item
}
.visual {
justify-content: center;
flex-shrink: 0;
line-height: 1em;
margin-right: .5em;
padding: .5em .25em;
text-align: center;
width: 6em;
strong {
font-size: 1.5em;
line-height: 1em;
}
}
}
.item-list.downtime-list.minimal .list-item {
.visual {
display: block;
line-height: 1.5;
width: 8em;
white-space: nowrap;
strong {
display: inline-block;
font-size: 1em;
}
}
}
|