medium-zoom-element
Version:
Medium Zoom HTML Element
192 lines (164 loc) • 3 kB
CSS
* {
box-sizing: border-box;
}
body {
font-family: 'Work Sans', sans-serif;
font-size: 20px;
color: #212121;
background-color: #fff;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
h1,
h2 {
font-family: 'Varela Round';
}
h1 {
font-size: 2em;
margin-bottom: 2em;
}
h2 {
font-size: 1.4em;
margin: 2em 0 1em 0;
}
a {
text-decoration: none;
}
p {
line-height: 1.5;
margin: 0 0 2em;
word-break: break-all;
word-break: break-word;
-webkit-hyphens: auto;
-moz-hyphens: auto;
-ms-hyphens: auto;
hyphens: auto;
}
.header,
.footer {
overflow: hidden;
position: relative;
display: -webkit-flex;
display: -moz-flex;
display: -ms-flex;
display: -o-flex;
display: flex;
flex-direction: column;
padding: 92px 24px;
text-align: center;
color: #fff;
background: #00ab6c;
background: -moz-linear-gradient(top, #00ab6c 0%, #13cc69 100%);
background: -webkit-linear-gradient(top, #00ab6c 0%, #13cc69 100%);
background: linear-gradient(to bottom, #00ab6c 0%, #13cc69 100%);
align-items: center;
justify-content: center;
}
.header::before {
content: '';
position: absolute;
top: calc(100% - 16px);
width: 100%;
background-color: rgba(255, 255, 255, 0.3);
height: 92px;
transform: skewY(2deg);
}
.header::after {
content: '';
position: absolute;
top: calc(100% - 16px);
width: 100%;
background-color: rgba(255, 255, 255, 0.5);
height: 92px;
transform: skewY(-4deg);
}
.header__title {
font-size: 3em;
margin-bottom: 0.4em;
}
.header__subtitle {
font-size: 1.2em;
letter-spacing: -0.02em;
color: rgba(255, 255, 255, 0.8);
}
.header__info {
font-size: 1em;
margin: 2em;
}
.footer__copyright {
margin: 2em 0;
color: rgba(255, 255, 255, 0.8);
}
.footer a {
color: #fff;
}
.container {
width: 100%;
max-width: 768px;
margin: 48px auto;
padding: 16px;
}
.text-center {
text-align: center;
}
.button {
display: inline-block;
min-width: 120px;
margin: 4px;
padding: 16px 24px;
transition: all 0.16s;
border: none;
border-radius: 32px;
font-size: 0.8em;
color: #fff;
background-color: #13cc69;
}
button.button {
font: inherit;
cursor: pointer;
outline: none;
}
.button:hover,
button.button:hover {
background-color: #00ab6c;
}
.button.button--action {
background-color: #2196f3;
}
.button.button--action:hover {
background-color: #1976d2;
}
.header .button,
.footer .button {
color: #fff;
border: 2px solid #fff;
background: transparent;
}
.header .button:hover,
.footer .button:hover {
color: #13cc69;
background-color: #fff;
}
figcaption {
font-size: 0.8em;
font-weight: 300;
margin: 16px;
text-align: center;
color: #999;
}
@media (min-width: 900px) {
.pull-left,
.pull-right {
width: 400px;
margin: 24px;
}
.pull-right {
float: right;
margin-right: -92px;
}
.pull-left {
float: left;
margin-left: -92px;
}
}