Skip to content

Instantly share code, notes, and snippets.

@abhishekjakhar
Last active May 5, 2019
Embed
What would you like to do?
index.css (Mocktail App)
@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