Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[stable20] Various design and typography improvements #239

Merged
merged 1 commit into from
Sep 18, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 13 additions & 22 deletions css/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -41,26 +41,26 @@

.info {
font-weight: bold;
color: var(--color-text-light);
}

.smallinfo {
color: var(--color-text-light);
font-size: 11px;
color: var(--color-text-maxcontrast);
}

.infobox {
display: flex;
flex-wrap: nowrap;
align-items: center;

border: 1px solid var(--color-border);
padding: 15px;
margin: 15px 0;
color: var(--color-text-lighter);
background-color: var(--color-background-dark);
border-radius: 6px;
box-shadow: 1px 1px 9px 1px var(--color-box-shadow);
padding: 16px;
margin: 16px 0;
background-color: var(--color-main-background);
border: 2px solid var(--color-border);
border-radius: var(--border-radius-large);

&.cpuSection,
&.memorySection {
padding: 16px 0 0 0;
}
}

.diskchart-container {
Expand All @@ -82,17 +82,7 @@
flex: 1 0 auto;
}

.infobox h2 {
color: #555;
font-size: 18px;
font-weight: bold;
padding: 5px;
margin: 0;
}

.infobox h3 {
color: #555;
font-size: 22px;
font-weight: bold;
padding: 5px 0 10px 0;
margin: 0;
Expand Down Expand Up @@ -208,7 +198,7 @@
min-width: 100%;
}


/*
@media only screen and (max-width: 1200px) {
.col-xl-6 {
flex-basis: 50%;
Expand Down Expand Up @@ -244,3 +234,4 @@
min-width: 100%;
}
}
*/
20 changes: 10 additions & 10 deletions templates/settings-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ function FormatMegabytes($byte) {
<img class="infoicon" src="<?php p(image_path('core', 'actions/screen.svg')); ?>">
<?php p($l->t('Load')); ?>
</h2>
<div class="infobox" id="cpuSection">
<div id="cpuSection" class="infobox">
<div class="cpu-wrapper">
<canvas id="cpuloadcanvas" style="width:100%; height:200px" width="600" height="200"></canvas>
</div>
Expand All @@ -103,7 +103,7 @@ function FormatMegabytes($byte) {
<img class="infoicon" src="<?php p(image_path('core', 'actions/quota.svg')); ?>">
<?php p($l->t('Memory')); ?>
</h2>
<div class="infobox">
<div id="memorySection" class="infobox">
<div class="memory-wrapper">
<canvas id="memorycanvas" style="width:100%; height:200px" width="600" height="200"></canvas>
</div>
Expand Down Expand Up @@ -133,15 +133,15 @@ function FormatMegabytes($byte) {
</div>
<div class="diskinfo-container">
<h3><?php p(basename($disk->getDevice())); ?></h3>
<?php p($l->t('Mount')); ?> :
<?php p($l->t('Mount')); ?>:
<span class="info"><?php p($disk->getMount()); ?></span><br>
<?php p($l->t('Filesystem')); ?> :
<?php p($l->t('Filesystem')); ?>:
<span class="info"><?php p($disk->getFs()); ?></span><br>
<?php p($l->t('Size')); ?> :
<?php p($l->t('Size')); ?>:
<span class="info"><?php p(FormatMegabytes($disk->getUsed() + $disk->getAvailable())); ?></span><br>
<?php p($l->t('Available')); ?> :
<?php p($l->t('Available')); ?>:
<span class="info"><?php p(FormatMegabytes($disk->getAvailable())); ?></span><br>
<?php p($l->t('Used')); ?> :
<?php p($l->t('Used')); ?>:
<span class="info"><?php p($disk->getPercent()); ?></span><br>
</div>
</div>
Expand All @@ -153,9 +153,9 @@ function FormatMegabytes($byte) {
<?php p($l->t('You will get a notification once one of your disks is nearly full.')); ?>
</div>

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

Expand Down