VERSION 2.0
This commit is contained in:
@@ -0,0 +1,98 @@
|
||||
/* ==========================================================================
|
||||
Page intro
|
||||
========================================================================== */
|
||||
|
||||
.intro {
|
||||
margin: 1rem 0;
|
||||
padding-top: 2rem;
|
||||
padding-bottom: 2rem;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@media screen and (min-width: 1280px) {
|
||||
.intro-image + .inner {
|
||||
position: relative;
|
||||
|
||||
|
||||
top: -8rem;
|
||||
margin-bottom: -8rem;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 500px) {
|
||||
// .intro {
|
||||
// height: 0;
|
||||
// }
|
||||
|
||||
.intro-image{
|
||||
height: 0px !important;
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
.intro-image {
|
||||
position: relative;
|
||||
margin-top: -3rem; /* compensate for intro top margin */
|
||||
margin-bottom: 3rem;
|
||||
height: 50vh;
|
||||
overflow: hidden;
|
||||
&::before {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
@if $intro-image-color-overlay == true {
|
||||
background-color: rgba($accent-color, 0.25);
|
||||
};
|
||||
content: '';
|
||||
}
|
||||
|
||||
img {
|
||||
min-height: 100%;
|
||||
min-width: 100%;
|
||||
max-width: none;
|
||||
}
|
||||
}
|
||||
|
||||
.intro-text {
|
||||
|
||||
/* remove space after last child element */
|
||||
> *:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.intro-title {
|
||||
@include fluid-type($min-vw, $max-vw, 26px, 80px);
|
||||
margin-bottom: 1rem;
|
||||
color: tint($text-color, 25%);
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.intro-subtitle {
|
||||
@include fluid-type($min-vw, $max-vw, 18px, 28px);
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.intro-actions {
|
||||
@include list-unstyled;
|
||||
|
||||
li {
|
||||
display: inline-block;
|
||||
}
|
||||
}
|
||||
|
||||
.intro-more {
|
||||
|
||||
> p:first-child {
|
||||
font-size: 1.125em;
|
||||
line-height: 1.625;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user