Created
February 11, 2019 15:49
-
-
Save athiyadeviyani/f2072d9fd985b02360d99c268eb8437e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* { | |
box-sizing: border-box | |
} | |
body, | |
html { | |
height: 100%; | |
} | |
.bg { | |
/* The image used */ | |
background-image: linear-gradient(120deg, #fbc2eb 0%, #a6c1ee 100%); | |
/* Full height */ | |
height: 100%; | |
width: 100%; | |
/* Center and scale the image nicely */ | |
background-position: center; | |
background-repeat: no-repeat; | |
background-size: cover; | |
} | |
html { | |
-webkit-font-smoothing: antialiased; | |
-moz-osx-font-smoothing: grayscale; | |
font-family: 'Dosis', sans-serif; | |
line-height: 1.6; | |
background-image: linear-gradient(120deg, #fbc2eb 0%, #a6c1ee 100%); | |
} | |
#root { | |
max-width: 1200px; | |
margin: 0 auto; | |
} | |
h1 { | |
font-family: 'Staatliches'; | |
text-align: center; | |
margin: 0 0 0 0; | |
font-size: 1.5rem; | |
color: white; | |
} | |
p { | |
font-size: 1.4rem; | |
padding: 2rem 2rem 2rem 2rem; | |
margin: 0; | |
font-weight: bold; | |
color: purple; | |
} | |
.container { | |
display: flex; | |
flex-wrap: wrap; | |
} | |
.card { | |
width: 100%; | |
height: 200%; | |
margin: 0.5rem; | |
background: white; | |
box-shadow: 2px 4px 25px rgba(0, 0, 0, .1); | |
border-radius: 12px; | |
overflow: hidden; | |
transition: all .2s linear; | |
} | |
.card:hover { | |
box-shadow: 2px 8px 45px rgba(0, 0, 0, .15); | |
transform: translate3D(0, -2px, 0); | |
} | |
@media screen and (min-width: 600px) { | |
.card { | |
flex: 1 1 calc(50% - 2rem); | |
} | |
} | |
@media screen and (min-width: 900px) { | |
.card { | |
flex: 1 1 calc(33% - 2rem); | |
} | |
} | |
.btn-hover { | |
width: 50%; | |
font-size: 100%; | |
color: #fff; | |
cursor: pointer; | |
height: 70px; | |
text-align: center; | |
border: none; | |
background-size: 300% 100%; | |
border-radius: 50px; | |
transition: all .4s ease-in-out; | |
} | |
.btn-hover:hover { | |
background-position: 100% 0; | |
transition: all .4s ease-in-out; | |
} | |
.btn-hover:active { | |
width: 50%; | |
font-size: 100%; | |
color: #fff; | |
cursor: pointer; | |
height: 70px; | |
text-align: center; | |
border: none; | |
background-size: 300% 100%; | |
background-position: 100% 0; | |
transition: all .4s ease-in-out; | |
} | |
.btn-hover:focus { | |
outline: none; | |
} | |
.btn-hover.color-9 { | |
background-image: linear-gradient(to right, #25aae1, #4481eb, #04befe, #3f86ed); | |
box-shadow: 0 4px 15px 0 rgba(65, 132, 234, 0.75); | |
} | |
.btn-hover.color-9:active { | |
background-image: linear-gradient(to right, #25aae1, #4481eb, #04befe, #3f86ed); | |
box-shadow: 0 4px 15px 0 rgba(65, 132, 234, 0.75); | |
} | |
@keyframes pulse_animation { | |
0% { | |
transform: scale(1); | |
} | |
30% { | |
transform: scale(1); | |
} | |
40% { | |
transform: scale(1); | |
} | |
50% { | |
transform: scale(1.2); | |
} | |
60% { | |
transform: scale(1); | |
} | |
70% { | |
transform: scale(1); | |
} | |
80% { | |
transform: scale(1); | |
} | |
100% { | |
transform: scale(1); | |
} | |
} | |
.pulse { | |
animation-name: pulse_animation; | |
animation-duration: 3s; | |
animation-iteration-count: infinite; | |
animation-timing-function: linear; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment