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

@ -11,7 +11,7 @@ button {
width: fit-content;
border-radius: 0.3em;
box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.75);
box-shadow: 0px 0px 10px 0px rgba(darken($background, 10%), 0.5);
transition: all 150ms ease-in-out;
font-size: 14px;

View file

@ -1,3 +1,6 @@
$cardColor: #2f2f2f;
$foreground: #dddddd;
.grid {
display: grid;
align-items: center;
@ -5,3 +8,42 @@
grid-gap: 2rem;
grid-auto-flow: dense;
}
.cards {
display: grid;
flex-direction: row;
justify-content: center;
grid-template-columns: repeat(auto-fit, minmax(256px, 1fr));
grid-gap: 2rem;
grid-auto-flow: dense;
.card {
background-color: $cardColor;
color: $foreground;
box-shadow: 0 0 10px 0 rgba(darken($cardColor, 10%), 0.95);
padding: 1rem;
border-radius: 8px;
border: 2px solid lighten($cardColor, 10%);
cursor: pointer;
transition: all ease-in-out 150ms;
&:hover {
margin-top: -10px;
margin-bottom: 10px;
transition: all ease-in-out 150ms;
}
.header {
text-align: center;
margin-block-start: 0;
padding-bottom: 1rem;
border-bottom: 1px solid lighten($cardColor, 10%);
}
.content {
overflow: hidden;
}
}
}

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
}
}

View file

@ -13,8 +13,8 @@ button {
width: -moz-fit-content;
width: fit-content;
border-radius: 0.3em;
-webkit-box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.75);
box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.75);
-webkit-box-shadow: 0px 0px 10px 0px rgba(12, 12, 12, 0.5);
box-shadow: 0px 0px 10px 0px rgba(12, 12, 12, 0.5);
-webkit-transition: all 150ms ease-in-out;
transition: all 150ms ease-in-out;
font-size: 14px;
@ -530,20 +530,28 @@ img.large {
text-align: center;
padding-top: 3rem;
padding-bottom: 3rem;
-webkit-box-shadow: 0px 0px 10px 0px rgba(12, 12, 12, 0.5);
box-shadow: 0px 0px 10px 0px rgba(12, 12, 12, 0.5);
-webkit-transition: all ease-in-out 150ms;
transition: all ease-in-out 150ms;
}
.color-demo.red {
background-color: #ff4340;
-webkit-box-shadow: 0px 0px 10px 0px rgba(255, 17, 13, 0.5);
box-shadow: 0px 0px 10px 0px rgba(255, 17, 13, 0.5);
}
.color-demo.blue {
background-color: #00bee0;
-webkit-box-shadow: 0px 0px 10px 0px rgba(0, 147, 173, 0.5);
box-shadow: 0px 0px 10px 0px rgba(0, 147, 173, 0.5);
}
.color-demo.green {
background-color: #7cb342;
-webkit-box-shadow: 0px 0px 10px 0px rgba(98, 142, 52, 0.5);
box-shadow: 0px 0px 10px 0px rgba(98, 142, 52, 0.5);
}
.color-demo.bg {
@ -553,10 +561,13 @@ img.large {
.color-demo.fg {
background-color: #eeeeee;
color: #252525;
-webkit-box-shadow: 0px 0px 10px 0px rgba(238, 238, 238, 0.5);
box-shadow: 0px 0px 10px 0px rgba(238, 238, 238, 0.5);
}
.color-demo:hover {
margin-top: -1rem;
margin-top: -0.25rem;
margin-bottom: 0.25rem;
-webkit-transition: all ease-in-out 150ms;
transition: all ease-in-out 150ms;
}
@ -588,6 +599,54 @@ img.large {
grid-auto-flow: dense;
}
.cards {
display: -ms-grid;
display: grid;
-webkit-box-orient: horizontal;
-webkit-box-direction: normal;
-ms-flex-direction: row;
flex-direction: row;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
-ms-grid-columns: (minmax(256px, 1fr))[auto-fit];
grid-template-columns: repeat(auto-fit, minmax(256px, 1fr));
grid-gap: 2rem;
grid-auto-flow: dense;
}
.cards .card {
background-color: #2f2f2f;
color: #dddddd;
-webkit-box-shadow: 0 0 10px 0 rgba(22, 22, 22, 0.95);
box-shadow: 0 0 10px 0 rgba(22, 22, 22, 0.95);
padding: 1rem;
border-radius: 8px;
border: 2px solid #494949;
cursor: pointer;
-webkit-transition: all ease-in-out 150ms;
transition: all ease-in-out 150ms;
}
.cards .card:hover {
margin-top: -10px;
margin-bottom: 10px;
-webkit-transition: all ease-in-out 150ms;
transition: all ease-in-out 150ms;
}
.cards .card .header {
text-align: center;
-webkit-margin-before: 0;
margin-block-start: 0;
padding-bottom: 1rem;
border-bottom: 1px solid #494949;
}
.cards .card .content {
overflow: hidden;
}
.masthead {
height: 100vh;
width: 100%;

File diff suppressed because one or more lines are too long