-
Notifications
You must be signed in to change notification settings - Fork 64
Expand file tree
/
Copy pathmain.css
More file actions
175 lines (149 loc) 路 3.76 KB
/
Copy pathmain.css
File metadata and controls
175 lines (149 loc) 路 3.76 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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
/*
* SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
/* settings.scss pins `.section h2` to 20px but leaves h3 at the 1.6em from
core, so an unstyled subheading outgrows the heading above it. */
.section h3 {
font-size: 18px;
}
.info {
font-weight: bold;
}
.smallinfo {
color: var(--color-text-maxcontrast);
}
.infobox {
display: flex;
flex-wrap: nowrap;
align-items: center;
padding: 16px;
margin: 16px 0;
background-color: var(--color-main-background);
border: 2px solid var(--color-border);
border-radius: var(--border-radius-large);
}
@media (width <= 1280px) {
.infobox {
display: block;
word-break: break-word;
}
}
.infobox h3 {
font-weight: bold;
padding: 5px 0 10px 0;
margin: 0;
/* Names like ubuntu--vg-ubuntu--lv offer no break opportunity of their own */
overflow-wrap: break-word;
}
.chart-container {
position: relative;
margin: 10px;
}
.clipboardButton {
display: inline-block;
position: relative;
top: 2px;
margin-left: 5px;
}
/* GRID SYSTEM */
/* auto-fit + minmax reflows on the container's own width, so the settings pane
-- which is much narrower than the viewport -- no longer needs breakpoints. */
.row {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
gap: 30px;
}
/* Card lists: network interfaces, shares, disks. auto-fill rather than auto-fit
keeps the empty tracks, so a host with a single interface gets one card rather
than one band stretched across the whole pane. The track fits the widest card
-- a disk, which puts a chart beside its stats -- so every list steps at the
same width. */
.row--cards {
grid-template-columns: repeat(auto-fill, minmax(min(360px, 100%), 1fr));
margin: 16px 0;
}
/* The gap spaces the cards now; the stock margin would stack on top of it. */
.row--cards .infobox {
margin: 0;
}
/* Stat tiles above the load and memory charts. */
.row--tiles {
grid-template-columns: repeat(auto-fit, minmax(min(110px, 100%), 1fr));
gap: 8px;
margin: 16px 0;
}
/* Grid items are min-width:auto by default, so a long unbreakable value such as
a device name would widen its track instead of wrapping. */
.row > * {
min-width: 0;
}
.active-users-wrapper {
flex: 1;
display: flex;
gap: 0 1rem;
flex-wrap: wrap;
align-items: center;
justify-content: center;
}
.active-users-box {
padding: 0.25rem 1rem;
flex: 1;
min-width: 150px;
border-left: 2px solid var(--color-border);
}
@media (width <= 1280px) {
.active-users-box {
padding: 1rem 0.5rem;
border: none;
text-align: center;
}
}
.active-users-box:first-child {
border: none;
}
.active-users-box .info {
font-size: 2rem;
}
.smoothie-chart-tooltip {
display: flex;
flex-wrap: nowrap;
align-items: center;
padding: 16px;
margin: 0 0.25rem;
background-color: var(--color-main-background);
border: 2px solid var(--color-border);
border-radius: var(--border-radius-large);
}
/* Core's reset sets `white-space: nowrap` on every table. A long value such as
the CPU model then cannot wrap: the table grows past its column and prints
over the section beside it. */
.server-info-table table {
width: 100%;
white-space: normal;
overflow-wrap: break-word;
}
/* Core pads neither, so a header would otherwise sit flush against the edge
while every row below it is indented. */
.server-info-table th,
.server-info-table td {
padding: 6px;
border-bottom: 1px solid var(--color-border);
}
.server-info-table th {
color: var(--color-text-maxcontrast);
}
.server-info-table tr:last-child td {
border-bottom: none;
}
.server-info__tag-wrapper {
display: flex;
flex-wrap: wrap;
}
.server-info__php-extension-tag {
display: inline-block;
margin: 2px;
padding: 1px 9px;
border-radius: 16px;
border: 1px solid var(--color-main-text);
}