cards!
This commit is contained in:
parent
c020aa9b78
commit
98abe339fa
6 changed files with 154 additions and 8 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue