-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
Copy path_intro.scss
67 lines (55 loc) · 1.12 KB
/
_intro.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/* ==========================================================================
Page intro
========================================================================== */
.intro {
margin: 1rem 0;
padding-top: 2rem;
padding-bottom: 2rem;
}
.intro-image {
position: relative;
margin-top: -3rem; /* compensate for intro top margin */
margin-bottom: 3rem;
&::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 {
width: 100%;
}
}
.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;
}
}