-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
136 lines (127 loc) · 2.34 KB
/
style.css
File metadata and controls
136 lines (127 loc) · 2.34 KB
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
:root {
--colourCritical: rgb(255, 56, 56);
--colourSerious: rgb(255, 179, 2);
--colourCaution: rgb(252, 232, 58);
--colourNormal: rgb(86, 240, 0);
--colourStandby: rgb(45, 204, 255);
--colourOff: rgb(158, 167, 173);
}
* {
margin: 0;
padding: 0;
}
body {
background-color: #121212;
color: white;
font-family: monospace;
}
.container {
display: grid;
grid-template-rows: 100%;
grid-template-columns: 100%;
grid-template-areas: "hosts";
}
.container__hosts {
grid-area: hosts;
display: flex;
flex-flow: row wrap;
justify-content: center;
align-items: center;
gap: 1em;
flex: 1;
}
.host {
display: grid;
grid-template-rows: 20px 1fr;
grid-template-columns: 1em 1em 1fr 20px;
grid-template-areas:
"cpu mem name icon"
"cpu mem proc proc";
/* border: 0.3em solid #ffffff;
border-radius: 6px; */
background-color: rgb(255, 255, 255, 5%);
margin: 0.4em;
padding: 0.4em;
width: 12em;
}
.host:hover {
background-color: rgb(255, 255, 255, 10%);
}
.host__cpu {
grid-area: cpu;
}
.host__mem {
grid-area: mem;
}
.host__name {
grid-area: name;
padding-left: 0.5em;
}
.host__icon {
grid-area: icon;
border-radius: 50%;
}
.host__processes {
grid-area: proc;
padding: 0.5em;
display: flex;
flex-flow: row wrap;
justify-content: flex-start;
align-items: flex-start;
flex: 2;
}
.progress {
display: flex;
flex-direction: column-reverse;
justify-items: flex-start;
}
.progress__fill {
display: block;
background-color: #000;
border-radius: 6px 6px 0 0;
transition: height 200ms ease-in-out;
}
.progress__fill--cpu {
background-color: #659cef;
}
.progress__fill--mem {
background-color: #760dea;
}
.host__icon--stopped {
background-color: var(--colourOff);
order: 3;
}
.host__icon--error {
background-color: var(--colourCritical);
order: 1;
}
.host__icon--running {
background-color: var(--colourNormal);
order: 2;
}
.process {
border: 0.3em solid #000000;
border-radius: 2px;
margin: 0.4em;
padding: 0.2em;
background-color: rgb(255, 255, 255, 5%);
user-select: none;
}
.process:hover {
transform: scale(1.2);
}
.process--running {
border-color: var(--colourNormal);
order: 2;
}
.process--stopped {
border-color: var(--colourOff);
order: 3;
}
.process--error {
border-color: var(--colourCritical);
order: 1;
}
.process--collapsed * {
display: none;
}