-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.css
More file actions
141 lines (134 loc) · 2.77 KB
/
example.css
File metadata and controls
141 lines (134 loc) · 2.77 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
137
138
139
140
141
/* === System Status widget minimal CSS === */
/* Header / title / refresh button */
.widget-header {
display: flex;
justify-content: space-between;
align-items: center;
font-size: 1.25rem;
font-weight: 600;
color: #222;
}
.widget-title {
display: flex;
align-items: center;
gap: 0.5rem;
}
.widget-action {
font-size: 1rem;
padding: 0.2rem 0.8rem;
border: none;
background: white;
border-radius: 999px;
cursor: pointer;
display: flex;
align-items: center;
gap: 0.4rem;
}
/* Container for all partition status sections */
.sinfo-container {
font-family: system-ui, sans-serif;
color: #111;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
border-radius: 8px;
padding: 1rem;
background: #f9fafa;
display: grid;
grid-auto-flow: column;
grid-template-rows: repeat(3, 1fr);
grid-auto-columns: 300px;
gap: 1rem;
overflow-x: auto;
scroll-snap-type: x mandatory;
-webkit-overflow-scrolling: touch;
scrollbar-width: thin;
scrollbar-color: #888 #eee;
}
.sinfo-container::-webkit-scrollbar {
height: 8px;
}
.sinfo-container::-webkit-scrollbar-track {
background: #eee;
border-radius: 4px;
}
.sinfo-container::-webkit-scrollbar-thumb {
background-color: #888;
border-radius: 4px;
transition: background-color 0.2s ease;
}
.sinfo-container::-webkit-scrollbar-thumb:hover {
background-color: #555;
}
/* Individual partition card */
.sinfo-section {
background: #fff;
border-radius: 10px;
padding: 1rem 1.5rem;
box-shadow: 0 1px 3px rgba(0,0,0,0.06);
position: relative;
height: 100%;
display: flex;
flex-direction: column;
justify-content: space-between;
}
.sinfo-title {
font-size: 1.1rem;
font-weight: 700;
margin-bottom: 2px;
text-transform: lowercase;
}
.sinfo-subtitle {
font-size: 0.85rem;
color: #666;
margin-bottom: 0.5rem;
}
.sinfo-status {
display: flex;
justify-content: space-between;
align-items: center;
font-size: 0.95rem;
margin-bottom: 0.25rem;
}
/* Utilization bar */
.sinfo-bar-wrapper {
height: 6px;
background: #eee;
border-radius: 4px;
overflow: hidden;
margin: 4px 0 6px;
}
.sinfo-bar-fill {
height: 100%;
transition: width 0.3s ease;
}
.red { background-color: #f44336; }
.yellow { background-color: #ffeb3b; color: #000; }
.green { background-color: #4caf50; }
/* Status chip and offline indicator */
.status-chip {
background-color: #d4f6da;
color: #0f8029;
font-size: 0.75rem;
padding: 2px 8px;
border-radius: 999px;
font-weight: 600;
}
.offline {
font-size: 0.85rem;
color: #444;
text-align: right;
}
/* Timestamp line */
.last-updated {
font-size: 0.75rem;
color: #666;
margin-top: -0.5rem;
}
/* Fallback / error state */
.no-data-msg {
padding: 1rem;
background: #fff;
border-radius: 10px;
font-size: 0.95rem;
text-align: center;
color: #555;
}