Skip to content

Commit

Permalink
fix(form): code background same as form's one (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
lowlighter authored Jun 8, 2024
1 parent f6a981c commit 0bbda0b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions styles/forms/form.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ <h2 id="form">
<p>
Has rounded corners, a background, and an automatic overflow.
</p>
<ul>
<li><code data-hl="css">code</code> has a <code>◉ --bg-subtle</code> background.</li>
</ul>
<div class="example">
<form method="get" onsubmit="event.preventDefault()" onreset="console.log('okk')">
<label>
Expand Down
4 changes: 4 additions & 0 deletions styles/forms/mod.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ form {
margin-bottom: 0;
}

form code {
background: var(--bg-subtle);
}

/* Fieldset */
fieldset {
padding: .5rem 1rem;
Expand Down

0 comments on commit 0bbda0b

Please sign in to comment.