Bläddra i källkod

Some fixes and CSS enhancements

Miraty 2 år sedan
förälder
incheckning
b872ec8281
5 ändrade filer med 15 tillägg och 6 borttagningar
  1. 2 0
      css/form.css
  2. 11 2
      css/main.css
  3. 1 1
      locales/fr/C/LC_MESSAGES/messages.po
  4. 0 2
      pg-act/reg/print.php
  5. 1 1
      pg-view/ns/print.php

+ 2 - 0
css/form.css

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

+ 11 - 2
css/main.css

@@ -29,10 +29,14 @@ h1 {
 }
 
 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;
 	margin-left: auto;
 	margin-right: auto;
@@ -98,3 +102,8 @@ a[rel=external]:after {
 dt a {
 	font-size: 1.1rem;
 }
+
+table {
+	max-width: none;
+	border-spacing: 1ch 0;
+}

+ 1 - 1
locales/fr/C/LC_MESSAGES/messages.po

@@ -811,7 +811,7 @@ msgstr "Valeurs par défaut"
 #: pg-view/ns/edit.php:40
 #, php-format
 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
 msgid "Precising the class (<code>IN</code>) is optional."

+ 0 - 2
pg-act/reg/print.php

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

+ 1 - 1
pg-view/ns/print.php

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