Skip to content

Commit

Permalink
Merge pull request kevquirk#38 from benaltair/patch-1
Browse files Browse the repository at this point in the history
Move padding to `summary` for larger tap target
  • Loading branch information
kevquirk authored Jun 14, 2021
2 parents efd88ac + c26d173 commit 79ee233
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions simple.css
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,6 @@ input[type="radio"]:enabled:hover{

/* Format the expanding box */
details {
padding: .6rem 1rem;
background: var(--accent-bg);
border: 1px solid var(--border);
border-radius: 5px;
Expand All @@ -247,14 +246,16 @@ details {
summary {
cursor: pointer;
font-weight: bold;
padding: .6rem 1rem;
}

details[open] {
padding-bottom: .75rem;
padding: .6rem 1rem .75rem 1rem;
}

details[open] summary {
margin-bottom: .5rem;
padding: 0;
}

details[open]>*:last-child {
Expand Down

0 comments on commit 79ee233

Please sign in to comment.