Skip to content

Commit

Permalink
change default stamp color to papayawhip
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisburnell committed Mar 29, 2024
1 parent 9e51e2b commit 237f280
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@chrisburnell/paper-stamp",
"version": "0.0.2",
"version": "0.0.3",
"description": "A Web Component to display an img as a paper stamp.",
"main": "paper-stamp.js",
"scripts": {
Expand Down
6 changes: 3 additions & 3 deletions paper-stamp.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ class PaperStamp extends HTMLElement {
radial-gradient(
calc(var(--stamp-perforation, 15px) / 2),
transparent 95%,
var(--stamp-color, whitesmoke)
var(--stamp-color, papayawhip)
),
linear-gradient(var(--stamp-color, whitesmoke) 0 0);
linear-gradient(var(--stamp-color, papayawhip) 0 0);
background-size:
calc(var(--stamp-perforation, 15px) * var(--stamp-spacing, 3.5) / 2) calc(var(--stamp-perforation, 15px) * var(--stamp-spacing, 3.5) / 2),
calc(100% - var(--stamp-perforation, 15px) * var(--stamp-spacing, 3.5) / 2) calc(100% - var(--stamp-perforation, 15px) * var(--stamp-spacing, 3.5) / 2);
Expand All @@ -28,7 +28,7 @@ class PaperStamp extends HTMLElement {
}
:host img {
display: block;
margin: var(--stamp-padding, 15px);
padding: var(--stamp-padding, 15px);
}
`

Expand Down

0 comments on commit 237f280

Please sign in to comment.