Skip to content

Commit

Permalink
scale button size upon clicking to provide visual feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
mrin9 committed Sep 28, 2024
1 parent bfecc6e commit 704565c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/styles/input-styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ export default css`
white-space: nowrap;
border: 2px solid var(--primary-color);
background-color:transparent;
transition: background-color 0.2s;
user-select: none;
cursor: pointer;
box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
transition-duration: 0.75s;
}
.m-btn.primary {
background-color: var(--primary-color);
Expand All @@ -44,6 +44,11 @@ export default css`
cursor: not-allowed;
opacity: 0.4;
}
.m-btn:active {
filter: brightness(75%);
transform: scale(0.95);
transition:scale 0s;
}
.toolbar-btn {
cursor: pointer;
padding: 4px;
Expand Down

0 comments on commit 704565c

Please sign in to comment.