datat.fi/_sass/basically-basic/_intro.scss

47 lines
841 B
SCSS
Raw Normal View History

/* ==========================================================================
Page intro
========================================================================== */
2017-03-07 23:12:17 +02:00
#intro {
margin: 1rem 0 1rem;
padding-top: 2rem;
padding-bottom: 2rem;
}
.intro-image {
position: relative;
margin-top: -3rem; /* compensate for intro top margin */
margin-bottom: 2rem;
img {
width: 100%;
}
}
2017-03-07 23:12:17 +02:00
.intro-text {
/* remove space after last child element */
2017-03-07 23:12:17 +02:00
> *:last-child {
margin-bottom: 0;
}
}
.intro-title {
margin-bottom: 0.5rem;
color: tint($text-color, 25%);
@include fluid-type($min-vw, $max-vw, 26px, 80px);
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;
}
}