Skip to content

Commit

Permalink
refactored users-list CSS example to use --tagify-dd-item-pad varia…
Browse files Browse the repository at this point in the history
…ble instead of hard-coded property setter
  • Loading branch information
Yair Even Or authored and Yair Even Or committed Jul 30, 2022
1 parent e6139c9 commit 7fae41a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -857,8 +857,11 @@ <h3>JAVASCRIPT</h3>
<script>renderPRE(document.currentScript, "users-list")</script>
<h3>CSS</h3>
<style contenteditable>/* Suggestions items */
:root {
--tagify-dd-item-pad: .5em .7em;
}

.tagify__dropdown.users-list .tagify__dropdown__item{
padding: .5em .7em;
display: grid;
grid-template-columns: auto 1fr;
gap: 0 1em;
Expand Down

0 comments on commit 7fae41a

Please sign in to comment.