Last active
May 5, 2019 05:49
-
-
Save abhishekjakhar/6a187bd5aa4a8a31925e5caf6fff7c8b to your computer and use it in GitHub Desktop.
index.css (Mocktail App)
This file contains hidden or 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
@import url('https://fonts.googleapis.com/css?family=Quicksand:400,500,700'); | |
/* Basic */ | |
*, | |
*::after, | |
*:before { | |
margin: 0; | |
padding: 0; | |
box-sizing: inherit; | |
-webkit-font-smoothing: antialiased; | |
} | |
html { | |
height: 100%; | |
width: 100%; | |
} | |
body { | |
box-sizing: border-box; | |
width: 100%; | |
height: 100%; | |
font-family: 'Quicksand', sans-serif; | |
line-height: 1.5; | |
color: #333; | |
padding: 4em; | |
background-color: #CCE8DE; | |
} | |
header { | |
display: flex; | |
justify-content: space-between; | |
align-items: center; | |
flex-direction: column; | |
} | |
h1 { | |
font-size: 42px; | |
margin-bottom: 16px; | |
color: #06373E; | |
} | |
main { | |
padding: 60px 0; | |
} | |
/* Button */ | |
button { | |
border: 0; | |
font-size: 16px; | |
padding: 0 16px; | |
margin: 8px; | |
border-radius: 4px; | |
font-weight: 700; | |
letter-spacing: .025em; | |
background-color: #4BBABC; | |
color: #fff; | |
height: 40px; | |
display: inline-block; | |
cursor: pointer; | |
white-space: nowrap; | |
transition: all .15s ease; | |
} | |
button:hover { | |
box-shadow: 0 7px 14px rgba(50,50,93,.1), 0 3px 6px rgba(0,0,0,.08); | |
transform: translateY(-1px); | |
} | |
button:focus { | |
outline: none; | |
} | |
/* Mocktail */ | |
.mocktail-image { | |
width: 240px; | |
height: 400px; | |
margin: 0 auto; | |
} | |
.mocktail-image img { | |
width: 100%; | |
height: 100%; | |
} | |
/* Spinner */ | |
.spinner { | |
margin: 100px auto 0; | |
width: 60px; | |
text-align: center; | |
display: flex; | |
justify-content: space-between; | |
} | |
.spinner > div { | |
width: 18px; | |
height: 18px; | |
background-color: #06373E; | |
border-radius: 100%; | |
display: inline-block; | |
animation: sk-bouncedelay 1.2s infinite ease-in-out both; | |
} | |
.spinner .bounce1 { animation-delay: -0.32s; } | |
.spinner .bounce2 { animation-delay: -0.16s; } | |
@keyframes sk-bouncedelay { | |
0%, 80%, 100% { transform: scale(0); } | |
40% { transform: scale(1.0); } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment