From b1c2f4df0737a5a455a3fc98af4c0da9f6b33aef Mon Sep 17 00:00:00 2001
From: Michael Schmidt
Date: Sat, 21 Jul 2018 21:48:45 +0200
Subject: [PATCH] Improve download page typography (#1484)
Fix some of the texts from breaking in weird ways.
---
download.html | 40 +++++++++++++++++++++++++++-------------
download.js | 14 +++++++++++---
2 files changed, 38 insertions(+), 16 deletions(-)
diff --git a/download.html b/download.html
index b6fd7abab4..3b43f8e4ff 100644
--- a/download.html
+++ b/download.html
@@ -11,11 +11,25 @@
form label {
display: block;
padding: .2em;
+ padding-left: 1.9em;
+ page-break-inside: avoid;
+ break-inside: avoid;
+ -webkit-column-break-inside: avoid;
}
-form input {
- margin-right: .7em;
-}
+ form label .name {
+ margin-right: .3em;
+ }
+
+ form label a.owner {
+ margin-left: 0;
+ hyphens: none;
+ }
+
+ form label input {
+ margin-right: .7em;
+ margin-left: -1.7em;
+ }
form > p:first-of-type > label {
font-size: 150%;
@@ -24,7 +38,7 @@
form > p:first-of-type > label input {
vertical-align: .3em;
}
-
+
.filesize:empty {
display: none;
}
@@ -113,7 +127,7 @@
border-top-right-radius: 0;
border-bottom-right-radius: 0;
}
-
+
#download-css .download-button {
background-color: #dc9e23;
border-top-left-radius: 0;
@@ -129,7 +143,7 @@
@@ -141,29 +155,29 @@ Customize your download
-
+
-
+
Total filesize: ( JavaScript + CSS)
Note: The filesizes displayed refer to non-gizipped files and include any CSS code required. The CSS code is not minified.
-
+
-
+
-
+
@@ -176,4 +190,4 @@ Customize your download