Skip to content

Commit

Permalink
Update color-swatch.css
Browse files Browse the repository at this point in the history
  • Loading branch information
LeaVerou authored and jgerigmeyer committed Feb 16, 2024
1 parent b1095c9 commit 792b1c9
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions elements/color-swatch/color-swatch.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
:host {
display: inline-flex;
align-items: center;
gap: .15em;
align-items: baseline;
gap: .2em;
margin-inline: .1em;
}

Expand All @@ -13,15 +13,13 @@
--box-shadow-blur: clamp(2px, .1em, 5px);
--box-shadow-color: rgb(0 0 0 / .3);

display: inline-flex;
vertical-align: calc(-1 * var(--border-width));
position: relative;
bottom: calc(-1 * var(--border-width) - .1em);
width: 1.2em;
height: 1.2em;
height: 1.2em;
border: var(--border-width) solid white;
box-sizing: border-box;
background: var(--color-image, 0), var(--transparency-grid, canvas);

box-shadow: calc(var(--box-shadow-blur) * .2) calc(var(--box-shadow-blur) * .2) var(--box-shadow-blur) var(--box-shadow-color);
border-radius: clamp(1px, .1em, 10px);
}
Expand Down

0 comments on commit 792b1c9

Please sign in to comment.