Skip to content
This repository has been archived by the owner on Feb 3, 2023. It is now read-only.

Commit

Permalink
fix(style): button hover animation
Browse files Browse the repository at this point in the history
  • Loading branch information
Wamibee committed Mar 10, 2022
1 parent d749c2f commit 7b64e45
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 2 deletions.
28 changes: 26 additions & 2 deletions src/assets/styles/scss/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -142,12 +142,17 @@ p {
align-items: center;
padding: 15px 25px 15px 0;
white-space: nowrap;
transition: all .15s;

@apply text-brown bg-beige;

&:hover{
@apply bg-dark-beige;
}

@media (max-width: 600px) {
padding: 10px 20px 10px 0;
}

@apply text-brown bg-beige;

&:not(.btn-icon):before{
content: "";
Expand Down Expand Up @@ -205,6 +210,11 @@ p {
@apply text-beige bg-brown;
border-width: 2px;
@apply border-brown;
transition: all .15s;

&:hover{
@apply bg-dark-brown;
}

&:before{
@apply bg-beige;
Expand All @@ -222,6 +232,20 @@ p {
border: 2px solid #7B6253;

@apply border-brown;

&:hover{
@apply text-beige bg-brown;

&:before{
@apply bg-beige;
}

.btn-text{
&:before{
@apply text-beige;
}
}
}
}

&.btn-icon {
Expand Down
2 changes: 2 additions & 0 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ module.exports = {
'brown': '#867065',
'light-brown': '#B78E64',
'dark-brown': '#7B6253',
'darkest-brown': '#27201c',
'beige': '#F4E9DD',
'dark-beige': '#d6c4b0',
'salmon': '#FF9B70'
},
fontSize: {
Expand Down

0 comments on commit 7b64e45

Please sign in to comment.