130 lines
1.9 KiB
CSS
130 lines
1.9 KiB
CSS
.introduction {
|
|
position: relative;
|
|
text-align: center;
|
|
margin-top: -4rem;
|
|
width: 100vw;
|
|
margin-left: 50%;
|
|
transform: translateX(-50%);
|
|
padding: 12rem 0;
|
|
background-color: grey;
|
|
}
|
|
|
|
.background-image {
|
|
position: absolute;
|
|
top: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.background-image::after {
|
|
content: "";
|
|
display: block;
|
|
position: absolute;
|
|
top: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
background: var(--color-primary);
|
|
opacity: .5;
|
|
}
|
|
|
|
.background-image img {
|
|
max-width: 100%;
|
|
max-height: 100%;
|
|
object-fit: cover;
|
|
filter: saturate(30%);
|
|
user-select: none;
|
|
}
|
|
|
|
.badge {
|
|
transform: skew(-4deg) rotate(-4deg);
|
|
max-width: calc(100vw - 2rem);
|
|
margin: 0 auto 4rem;
|
|
}
|
|
|
|
.badge .date {
|
|
font-size: 19px;
|
|
display: inline-block;
|
|
background: #fff;
|
|
color: #262626;
|
|
padding: 0 .75rem;
|
|
margin-bottom: 2.5rem;
|
|
}
|
|
|
|
.badge h1 {
|
|
font-size: 28px;
|
|
line-height: 1.25;
|
|
color: #262626;
|
|
margin: 0;
|
|
}
|
|
|
|
.badge h1 .spacer {
|
|
height: 1rem;
|
|
}
|
|
|
|
.badge h1 span {
|
|
font-size: 28px;
|
|
background: #fff;
|
|
-webkit-box-decoration-break: clone;
|
|
box-decoration-break: clone;
|
|
}
|
|
|
|
.badge h1 span:first-child {
|
|
font-weight: 500;
|
|
padding: .1em .5em;
|
|
}
|
|
.badge h1 span:first-child::after {
|
|
content: "\A";
|
|
white-space: pre;
|
|
line-height: 3rem;
|
|
}
|
|
|
|
.badge h1 span:last-child {
|
|
font-weight: 800;
|
|
font-size: 44px;
|
|
padding: .02em .25em;
|
|
}
|
|
|
|
.social-media {
|
|
list-style-type: none;
|
|
padding: 0;
|
|
}
|
|
|
|
.social-media li {
|
|
display: inline-block;
|
|
}
|
|
|
|
.social-media li:not(:first-child) {
|
|
margin-left: 36px;
|
|
}
|
|
|
|
.social-link {
|
|
color: #fff;
|
|
filter: drop-shadow(0 0 10px rgba(0,0,0,.5));
|
|
transition: opacity .3s ease-out;
|
|
}
|
|
|
|
.social-link:hover {
|
|
opacity: .75;
|
|
}
|
|
|
|
.social-media svg {
|
|
height: 4rem;
|
|
padding: 4px;
|
|
fill: currentColor;
|
|
}
|
|
|
|
@media (width < 640px) {
|
|
.introduction {
|
|
padding: 6.5rem 0;
|
|
}
|
|
.badge .date {
|
|
font-size: 16px;
|
|
}
|
|
.badge h1 span {
|
|
font-size: 18px;
|
|
}
|
|
}
|