Some fixes and CSS enhancements

This commit is contained in:
Miraty 2023-01-21 02:52:28 +01:00
parent 335b826559
commit b872ec8281
5 changed files with 15 additions and 6 deletions

View file

@ -1,5 +1,7 @@
form { form {
text-align: center; text-align: center;
margin-top: 0.6rem;
margin-bottom: 0.6rem;
} }
input, select, textarea { input, select, textarea {

View file

@ -29,10 +29,14 @@ h1 {
} }
h2 { h2 {
font-size: 1.3rem; font-size: 1.4rem;
} }
header, main > *:not(table, pre, form), form > *:not(textarea), footer { h3 {
font-size: 1.1rem;
}
header, main > *:not(pre, form), form > *:not(textarea), footer {
max-width: 40rem; max-width: 40rem;
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;
@ -98,3 +102,8 @@ a[rel=external]:after {
dt a { dt a {
font-size: 1.1rem; font-size: 1.1rem;
} }
table {
max-width: none;
border-spacing: 1ch 0;
}

View file

@ -811,7 +811,7 @@ msgstr "Valeurs par défaut"
#: pg-view/ns/edit.php:40 #: pg-view/ns/edit.php:40
#, php-format #, php-format
msgid "If the TTL is omitted, it will default to %s seconds." msgid "If the TTL is omitted, it will default to %s seconds."
msgstr "Si le TTL est omis, is sera définit à %s secondes." msgstr "Si le TTL est omis, il sera définit à %s secondes."
#: pg-view/ns/edit.php:42 #: pg-view/ns/edit.php:42
msgid "Precising the class (<code>IN</code>) is optional." msgid "Precising the class (<code>IN</code>) is optional."

View file

@ -7,5 +7,3 @@ if ($zone_content === false)
output(500, 'Unable to read registry file.'); output(500, 'Unable to read registry file.');
$data['zone-content'] = parseZoneFile($zone_content, ['A', 'AAAA', 'NS', 'DS'], $_POST['domain']); $data['zone-content'] = parseZoneFile($zone_content, ['A', 'AAAA', 'NS', 'DS'], $_POST['domain']);
output(200);

View file

@ -38,7 +38,7 @@ if (isset($data['zone-table'])) { ?>
foreach ($data['zone-table'] as $zone_line) { foreach ($data['zone-table'] as $zone_line) {
echo ' <tr>' . LF; echo ' <tr>' . LF;
foreach ($zone_line as $element) foreach ($zone_line as $element)
echo ' <td><code>' . htmlspecialchars($element) . '</code></td>' . LF; echo ' <td><code>' . $element . '</code></td>' . LF;
echo ' </tr>' . LF; echo ' </tr>' . LF;
} }
} }