Skip to content

Commit d47e1fe

Browse files
authored
Migrate more tables to .units-table (hestiacp#3662)
* Add .units-table-heading-cell To control which column has the "heading cell". * Migrate List Backup Exclusions to .units-table * Tidy formatting * Migrate List Mail DNS to .units-table * Migrate List Backup Detail to .units-table
1 parent cb95e94 commit d47e1fe

22 files changed

+349
-256
lines changed

web/css/src/themes/default.css

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -955,13 +955,6 @@
955955
}
956956

957957
.units-table-cell {
958-
/* Row heading cell */
959-
&:nth-child(2) {
960-
font-size: 0.9rem;
961-
padding-top: 5px;
962-
padding-bottom: 5px;
963-
}
964-
965958
& a {
966959
color: #353535;
967960

@@ -979,13 +972,18 @@
979972
&:nth-child(1) {
980973
line-height: 0.6;
981974
}
975+
}
976+
}
982977

983-
/* Row heading cell */
984-
&:nth-child(2) {
985-
font-size: 0.8rem;
986-
padding-top: 10px;
987-
padding-bottom: 10px;
988-
}
978+
.units-table-heading-cell {
979+
font-size: 0.9rem;
980+
padding-top: 5px;
981+
padding-bottom: 5px;
982+
983+
@media (--viewport-large) {
984+
font-size: 0.8rem;
985+
padding-top: 10px;
986+
padding-bottom: 10px;
989987
}
990988
}
991989

web/templates/pages/list_access_keys.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
<label for="check<?= $i ?>" class="u-hide-desktop"><?= _("Select") ?></label>
7979
</div>
8080
</div>
81-
<div class="units-table-cell u-text-bold">
81+
<div class="units-table-cell units-table-heading-cell u-text-bold">
8282
<span class="u-hide-desktop"><?= _("Access Key") ?>:</span>
8383
<a href="/list/access-key/?key=<?= htmlentities($key) ?>&token=<?= $_SESSION["token"] ?>" title="<?= _("Access Key") ?>: <?= $key ?>">
8484
<?= $key ?>

web/templates/pages/list_backup.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
<label for="check<?= $i ?>" class="u-hide-desktop"><?= _("Select") ?></label>
7575
</div>
7676
</div>
77-
<div class="units-table-cell u-text-bold">
77+
<div class="units-table-cell units-table-heading-cell u-text-bold">
7878
<span class="u-hide-desktop"><?= _("File Name") ?>:</span>
7979
<?php if ($read_only === "true") { ?>
8080
<?= $key ?>

0 commit comments

Comments
 (0)