Skip to content

Commit

Permalink
review edits
Browse files Browse the repository at this point in the history
  • Loading branch information
dvdherron committed Dec 19, 2023
1 parent 88bac50 commit 72e099c
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 3 deletions.
31 changes: 29 additions & 2 deletions src/lib/components/ratio/ColorIssues.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,40 @@
<style lang="scss">
.known-issues {
grid-area: knownissues;
padding: var(--shim) var(--double-gutter);
margin-inline: calc(var(--gutter) * -1);
padding: var(--gutter);
}
summary {
align-items: center;
display: grid;
gap: var(--shim-plus);
grid-template-columns: max-content var(--triangle-height);
&::marker {
content: none;
}
&::before {
border-color: transparent transparent transparent currentColor;
border-style: solid;
border-width: var(--triangle-width) 0 var(--triangle-width)
var(--triangle-height);
content: '';
grid-column: 2;
grid-row: 1;
margin-top: var(--half-shim);
transform: rotate;
}
}
[open] summary::before {
transform: rotate(90deg);
}
.issues-list {
display: grid;
gap: var(--gutter);
gap: var(--half-shim);
grid-auto-rows: auto;
grid-template-columns: 1fr;
margin-block-start: var(--gutter);
}
dt {
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/ratio/index.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
background-color: var(--bgcolor);
color: var(--fgcolor);
display: grid;
gap: var(--result-layout-gap, var(--double-gutter));
gap: var(--result-layout-gap, var(--shim));
grid-template:
'contrastinfo' min-content
'status' min-content
Expand Down
2 changes: 2 additions & 0 deletions src/sass/config/scale/_ui.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,5 @@ $icon-medium: 1.5em;
$ratio-width: 10rem;
$range-thumb-size: 1.35rem;
$range-input: 0.85rem;
$triangle-width: var(--shim);
$triangle-height: var(--shim-plus);
4 changes: 4 additions & 0 deletions src/sass/patterns/_lists.scss
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ dl {
display: grid;
grid-template-columns: auto 1fr;
margin-block: var(--half-shim) var(--double-gutter);

&:last-child {
margin-block-end: 0;
}
}

dd {
Expand Down
2 changes: 2 additions & 0 deletions src/sass/patterns/_themes.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

// If the ratio is too low, make sure important info has high enough contrast
[data-pass='false'] {
--link: var(--status-result-fg);
--link-focus: var(--status-result-fg);
--status-result-bg: var(--text);
--status-result-fg: var(--bg);
}

0 comments on commit 72e099c

Please sign in to comment.