Skip to content

Commit 1b21c4a

Browse files
authored
Merge pull request #239 from nextcloud/backport/238/stable20
[stable20] Various design and typography improvements
2 parents 3680bc2 + d2e577f commit 1b21c4a

2 files changed

Lines changed: 23 additions & 32 deletions

File tree

css/style.scss

Lines changed: 13 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -41,26 +41,26 @@
4141

4242
.info {
4343
font-weight: bold;
44-
color: var(--color-text-light);
4544
}
4645

4746
.smallinfo {
48-
color: var(--color-text-light);
49-
font-size: 11px;
47+
color: var(--color-text-maxcontrast);
5048
}
5149

5250
.infobox {
5351
display: flex;
5452
flex-wrap: nowrap;
5553
align-items: center;
56-
57-
border: 1px solid var(--color-border);
58-
padding: 15px;
59-
margin: 15px 0;
60-
color: var(--color-text-lighter);
61-
background-color: var(--color-background-dark);
62-
border-radius: 6px;
63-
box-shadow: 1px 1px 9px 1px var(--color-box-shadow);
54+
padding: 16px;
55+
margin: 16px 0;
56+
background-color: var(--color-main-background);
57+
border: 2px solid var(--color-border);
58+
border-radius: var(--border-radius-large);
59+
60+
&.cpuSection,
61+
&.memorySection {
62+
padding: 16px 0 0 0;
63+
}
6464
}
6565

6666
.diskchart-container {
@@ -82,17 +82,7 @@
8282
flex: 1 0 auto;
8383
}
8484

85-
.infobox h2 {
86-
color: #555;
87-
font-size: 18px;
88-
font-weight: bold;
89-
padding: 5px;
90-
margin: 0;
91-
}
92-
9385
.infobox h3 {
94-
color: #555;
95-
font-size: 22px;
9686
font-weight: bold;
9787
padding: 5px 0 10px 0;
9888
margin: 0;
@@ -208,7 +198,7 @@
208198
min-width: 100%;
209199
}
210200

211-
201+
/*
212202
@media only screen and (max-width: 1200px) {
213203
.col-xl-6 {
214204
flex-basis: 50%;
@@ -244,3 +234,4 @@
244234
min-width: 100%;
245235
}
246236
}
237+
*/

templates/settings-admin.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ function FormatMegabytes($byte) {
9090
<img class="infoicon" src="<?php p(image_path('core', 'actions/screen.svg')); ?>">
9191
<?php p($l->t('Load')); ?>
9292
</h2>
93-
<div class="infobox" id="cpuSection">
93+
<div id="cpuSection" class="infobox">
9494
<div class="cpu-wrapper">
9595
<canvas id="cpuloadcanvas" style="width:100%; height:200px" width="600" height="200"></canvas>
9696
</div>
@@ -103,7 +103,7 @@ function FormatMegabytes($byte) {
103103
<img class="infoicon" src="<?php p(image_path('core', 'actions/quota.svg')); ?>">
104104
<?php p($l->t('Memory')); ?>
105105
</h2>
106-
<div class="infobox">
106+
<div id="memorySection" class="infobox">
107107
<div class="memory-wrapper">
108108
<canvas id="memorycanvas" style="width:100%; height:200px" width="600" height="200"></canvas>
109109
</div>
@@ -133,15 +133,15 @@ function FormatMegabytes($byte) {
133133
</div>
134134
<div class="diskinfo-container">
135135
<h3><?php p(basename($disk->getDevice())); ?></h3>
136-
<?php p($l->t('Mount')); ?> :
136+
<?php p($l->t('Mount')); ?>:
137137
<span class="info"><?php p($disk->getMount()); ?></span><br>
138-
<?php p($l->t('Filesystem')); ?> :
138+
<?php p($l->t('Filesystem')); ?>:
139139
<span class="info"><?php p($disk->getFs()); ?></span><br>
140-
<?php p($l->t('Size')); ?> :
140+
<?php p($l->t('Size')); ?>:
141141
<span class="info"><?php p(FormatMegabytes($disk->getUsed() + $disk->getAvailable())); ?></span><br>
142-
<?php p($l->t('Available')); ?> :
142+
<?php p($l->t('Available')); ?>:
143143
<span class="info"><?php p(FormatMegabytes($disk->getAvailable())); ?></span><br>
144-
<?php p($l->t('Used')); ?> :
144+
<?php p($l->t('Used')); ?>:
145145
<span class="info"><?php p($disk->getPercent()); ?></span><br>
146146
</div>
147147
</div>
@@ -153,9 +153,9 @@ function FormatMegabytes($byte) {
153153
<?php p($l->t('You will get a notification once one of your disks is nearly full.')); ?>
154154
</div>
155155

156-
<p><?php p($l->t('Files:')); ?> <em id="numFilesStorage"><?php p($_['storage']['num_files']); ?></em></p>
157-
<p><?php p($l->t('Storages:')); ?> <em id="numFilesStorages"><?php p($_['storage']['num_storages']); ?></em></p>
158-
<p><?php p($l->t('Free Space:')); ?> <em id="systemDiskFreeSpace"><?php p($_['system']['freespace']); ?></em>
156+
<p><?php p($l->t('Files:')); ?> <strong id="numFilesStorage"><?php p($_['storage']['num_files']); ?></strong></p>
157+
<p><?php p($l->t('Storages:')); ?> <strong id="numFilesStorages"><?php p($_['storage']['num_storages']); ?></strong></p>
158+
<p><?php p($l->t('Free Space:')); ?> <strong id="systemDiskFreeSpace"><?php p($_['system']['freespace']); ?></strong>
159159
</p>
160160
</div>
161161

0 commit comments

Comments
 (0)