From ffcc91c9d328d6eb9ef0522eca0776e60cd6e93b Mon Sep 17 00:00:00 2001 From: Andrew Thornton Date: Wed, 2 Nov 2022 22:58:49 +0000 Subject: [PATCH 1/2] Clean up formatting on install page The install page has been somewhat inconsistently styled for a while. This PR simplifies and standardises the styling of these fields makes things line up better across widths. Replace #21660 Signed-off-by: Andrew Thornton --- templates/install.tmpl | 30 +++++++++++----------- web_src/less/_install.less | 52 ++++++++++++++++++++++++++------------ 2 files changed, 51 insertions(+), 31 deletions(-) diff --git a/templates/install.tmpl b/templates/install.tmpl index 8d6918e6a29c..0625f43cc4e6 100644 --- a/templates/install.tmpl +++ b/templates/install.tmpl @@ -163,8 +163,8 @@ {{.locale.Tr "install.log_root_path_helper"}}
-
+
{{.locale.Tr "install.enable_update_checker_helper"}} @@ -202,13 +202,13 @@
- +
- +
@@ -221,73 +221,73 @@
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
diff --git a/web_src/less/_install.less b/web_src/less/_install.less index 5769ef68ba13..6b0331afad6d 100644 --- a/web_src/less/_install.less +++ b/web_src/less/_install.less @@ -1,36 +1,56 @@ .page-content.install { padding-top: 45px; - form { - @input-padding: 320px !important; + form.ui.form { + @input-padding: 30%; - .inline.field label { + .inline.field > label { text-align: right; width: @input-padding; + padding-right: 10px; + margin-right: 0; + } + + .inline.field > .ui.checkbox:first-child { + margin-left: @input-padding; + padding-left: 5px; + label { + width: auto; + } + } + + .title { + margin-left: @input-padding; + padding-left: 5px; } input { - width: 35% !important; + width: 60%; + } + + details.optional.field { + &[open] { + border-bottom: 1px solid var(--color-secondary); + padding-bottom: 10px; + + summary { + margin-bottom: 10px; + } + } + + * { + box-sizing: border-box; + } } .field { text-align: left; .help { - margin-left: @input-padding+15px; + margin-left: @input-padding; + padding-left: 5px; } - &.optional { - .title { - margin-left: 38%; - } - .checkbox { - margin-left: 40% !important; - label { - width: auto !important; - } - } - } } } From b4aa02236f2cae839b9f053a90bd28a55c582cbc Mon Sep 17 00:00:00 2001 From: Andrew Thornton Date: Wed, 2 Nov 2022 23:01:22 +0000 Subject: [PATCH 2/2] and do the help width too Signed-off-by: Andrew Thornton --- web_src/less/_install.less | 1 + 1 file changed, 1 insertion(+) diff --git a/web_src/less/_install.less b/web_src/less/_install.less index 6b0331afad6d..515d727f8a4f 100644 --- a/web_src/less/_install.less +++ b/web_src/less/_install.less @@ -49,6 +49,7 @@ .help { margin-left: @input-padding; padding-left: 5px; + width: 60%; } }