Skip to content

Commit

Permalink
webui: fix password reveal pushed to the next line
Browse files Browse the repository at this point in the history
narrow screens style rule makes input & span `display: block`
revert to `inline-block`, assume parent node properly separates stuff
  • Loading branch information
mcspr committed Aug 13, 2024
1 parent 5334739 commit 4c005fa
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions code/html/src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ input.checkbox-toggle::before {
transition: inherit;
}

input.checkbox-toggle ~ .pure-form-message {
input.checkbox-toggle + .pure-form-message {
margin-top: .625em;
}

Expand Down Expand Up @@ -627,7 +627,12 @@ summary {
font-size: 1.2em;
}

.password-reveal:after {
.pure-form input[type="password"]:has(+ .password-reveal),
.pure-form input[type="text"]:has(+ .password-reveal) {
display: inline-block;
}

.password-reveal::before {
content: "👁";
}

Expand Down

0 comments on commit 4c005fa

Please sign in to comment.