Skip to content

Commit

Permalink
Align label with checkbox
Browse files Browse the repository at this point in the history
- Follow up from
go-gitea#21655 (comment)
- Use vertical-align and line-height to get it to align exactly with the checkbox.
  • Loading branch information
Gusted committed Nov 2, 2022
1 parent 4827f42 commit 511e011
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion templates/install.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@
<input id="log_root_path" name="log_root_path" value="{{.log_root_path}}" placeholder="log" required>
<span class="help">{{.locale.Tr "install.log_root_path_helper"}}</span>
</div>
<div class="inline field">
<div class="inline field left-label">
<label for="enable_update_checker">{{.locale.Tr "install.enable_update_checker"}}</label>
<div class="ui checkbox">
<input name="enable_update_checker" type="checkbox">
Expand Down
5 changes: 5 additions & 0 deletions web_src/less/_install.less
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@
margin-left: @input-padding+15px;
}

&.left-label label {
vertical-align: top;
line-height: 17px;
}

&.optional {
.title {
margin-left: 38%;
Expand Down

0 comments on commit 511e011

Please sign in to comment.