Skip to content

Commit

Permalink
[QOLDEV-262] fix margins for multi-select elements
Browse files Browse the repository at this point in the history
- Don't add list item spacing to 'select2' elements that are styled by JavaScript
  • Loading branch information
ThrawnCA committed Feb 1, 2023
1 parent 435d694 commit c81b2fd
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/assets/_project/_blocks/layout/content/_content.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,11 @@
margin-left: 1em;
font-size: 1rem;
}
ul li, ol li {
margin-bottom: 0.5em;
ul, ol {
// don't add margins to elements styled by JavaScript
li:not(.select2 li) {
margin-bottom: 0.5em;
}
}
}

Expand Down

0 comments on commit c81b2fd

Please sign in to comment.