You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
ozgurkon-theme-hugo/src/style/partials/_jumbo.scss

118 lines
2.0 KiB

.jumbo {
position: relative;
height: calc(100vh - var(--toolbar-height));
max-width: 100%;
display: flex;
justify-content: center;
align-items: center;
img.jumbo-logo {
max-width: 100%;
width: var(--jumbo-logo-width, 400px);
height: auto;
filter: drop-shadow(0px 1px 1px var(--darken-3));
}
p {
margin: var(--space-2) 0;
font-size: 2rem;
}
.jumbo-cover {
background-size: cover;
background-attachment: fixed;
background-position: center center;
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
}
#jumbo-img {
display: none;
}
#jumbo-overlay {
transition: opacity var(--jumbo-overlay-transition, 0.4s);
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
opacity: 1;
&.show {
opacity: var(--jumbo-overlay-opacity, 0.6);
}
}
.inner-wrapper{
max-width: 75vw;
.inner {
padding: var(--space-4);
color: var(--primary-txt);
position: relative;
overflow: hidden;
text-align: center;
display: flex;
flex-direction: column;
h2 {
font-size: 2rem;
margin: var(--space-3) 0;
font-weight: bold;
}
h3 {
font-size: 1.8rem;
margin: var(--space-3) 0;
}
a {
align-self: center;
margin: .5em;
}
}
}
.scroll-down {
position: absolute;
bottom: 2rem;
left: 0;
transform: translateX(50vw);
transform-origin: center center;
color: var(--base, white);
.icon {
height: 2.5em;
width: 1.5em;
.scroller {
animation: scrollDownMove .8s ease-in-out alternate infinite;
}
}
}
}
@keyframes scrollDownMove {
from {
transform: translateY(-.15em);
}
to {
transform: translateY(.65em);
}
}
@include mq($until: lg) {
.jumbo .inner {
max-width: 80vw;
padding: 0;
}
.jumbo .inner h1 {
img {
max-width: 100%;
}
font-size: 1.5rem;
}
}