Skip to content

Commit

Permalink
reduce space around switch button
Browse files Browse the repository at this point in the history
  • Loading branch information
dvdherron committed Feb 4, 2025
1 parent 92b09b5 commit 36800c6
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/lib/components/colors/index.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<Sliders type="fg" color={fg} format={$format} />
</form>

<div data-layout="split">
<div data-layout="color-formats">
<Formats type="bg" color={$bg} format={$format} />
<Formats type="fg" color={$fg} format={$format} />
</div>
Expand All @@ -35,7 +35,7 @@
}
[data-layout] {
column-gap: var(--triple-gutter);
column-gap: var(--gutter);
}
[data-actions='swap-colors'] {
Expand Down
1 change: 1 addition & 0 deletions src/sass/config/scale/_ui.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ $range-thumb-size: 1.35rem;
$range-input: 0.85rem;
$triangle-width: var(--shim);
$triangle-height: var(--shim-plus);
$switch-space: var(--double-gutter);
14 changes: 11 additions & 3 deletions src/sass/initial/_layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,19 @@ body {
grid-template-columns: auto 1fr;
}

[data-layout~='split'] {
[data-layout~='color-formats'] {
display: grid;

@include config.above('sm-page-break') {
grid-template-columns: 1fr 1fr;
grid-template-columns: 1fr var(--switch-space) 1fr;
}
}

[data-content='formats'] {
@include config.above('sm-page-break') {
&:last-of-type {
grid-column: 3;
}
}
}

Expand All @@ -82,7 +90,7 @@ body {
display: grid;
grid-template:
'bginput switch fginput' auto
'bgslide . fgslide' auto / 1fr min-content 1fr;
'bgslide . fgslide' auto / 1fr var(--switch-space) 1fr;
}
}

Expand Down

0 comments on commit 36800c6

Please sign in to comment.