This commit is contained in:
oitsjustjose 2020-03-02 23:55:58 -05:00
commit 98abe339fa
6 changed files with 154 additions and 8 deletions

View file

@ -95,18 +95,22 @@ img {
text-align: center;
padding-top: 3rem;
padding-bottom: 3rem;
box-shadow: 0px 0px 10px 0px rgba(darken($background, 10%), 0.5);
transition: all ease-in-out 150ms;
&.red {
background-color: $red;
box-shadow: 0px 0px 10px 0px rgba(darken($red, 10%), 0.5);
}
&.blue {
background-color: $cyan;
box-shadow: 0px 0px 10px 0px rgba(darken($cyan, 10%), 0.5);
}
&.green {
background-color: $green;
box-shadow: 0px 0px 10px 0px rgba(darken($green, 10%), 0.5);
}
&.bg {
@ -116,10 +120,12 @@ img {
&.fg {
background-color: $foreground;
color: $background;
box-shadow: 0px 0px 10px 0px rgba($foreground, 0.5);
}
&:hover {
margin-top: -1rem;
transition: all ease-in-out 150ms;
margin-top: -0.25rem; // "Pop Up" action on hover
margin-bottom: 0.25rem; // Prevent the entire page from shifting on hover
transition: all ease-in-out 150ms; // Smooth out the animation
}
}