Skip to content

Commit

Permalink
relocate some styles to lists.scss
Browse files Browse the repository at this point in the history
  • Loading branch information
dvdherron committed Dec 18, 2023
1 parent bc58670 commit 13ae3bd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
10 changes: 1 addition & 9 deletions src/lib/components/ratio/ColorIssues.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,10 @@
</details>

<style lang="scss">
// Overrides the pattern from _lists
summary {
cursor: pointer;
margin-block-end: var(--gutter);
}
dl {
display: block;
}
dd {
margin-inline-start: 0;
}
summary {
list-style-position: outside;
--description-margin-inline: 0;
}
</style>
9 changes: 7 additions & 2 deletions src/sass/patterns/_lists.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,12 @@ details {
background-color: var(--status-result-bg, var(--bgcolor));
border-radius: var(--border-radius);
color: var(--status-result-fg, var(--fgcolor));
padding: var(--double-gutter);
}

summary {
cursor: pointer;
list-style-position: outside;
margin-block-end: var(--gutter);
}

dl {
Expand All @@ -31,5 +36,5 @@ dl {
}

dd {
margin-inline-start: var(--gutter);
margin-inline-start: var(--description-margin-inline, var(--gutter));
}

0 comments on commit 13ae3bd

Please sign in to comment.