Skip to content

Commit

Permalink
remove superflous and wrong selectors
Browse files Browse the repository at this point in the history
* textarea selector was used multiple times, even though there is no <textarea> in the HTML.

div + div selector was changed to p + p, as all input and label elements are nested inside p elements, and not divs in the example.
  • Loading branch information
DavidStaus authored and hamishwillee committed Dec 22, 2024
1 parent 6d6c727 commit a917a8d
Showing 1 changed file with 2 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ form {
border-radius: 1em;
}

div + div {
p + p {
margin-top: 1em;
}

Expand All @@ -135,7 +135,7 @@ label span {
}

input,
textarea {
fieldset {
font: 1em sans-serif;
width: 250px;
box-sizing: border-box;
Expand All @@ -153,18 +153,6 @@ textarea:focus {
border-color: #000;
}

textarea {
vertical-align: top;
height: 5em;
resize: vertical;
}

fieldset {
width: 250px;
box-sizing: border-box;
border: 1px solid #999;
}

button {
margin: 20px 0 0 0;
}
Expand Down

0 comments on commit a917a8d

Please sign in to comment.