-
Notifications
You must be signed in to change notification settings - Fork 156
Expand file tree
/
Copy pathEntryHeader.module.scss
More file actions
65 lines (55 loc) · 978 Bytes
/
EntryHeader.module.scss
File metadata and controls
65 lines (55 loc) · 978 Bytes
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
@import '../../styles/breakpoints';
.component {
color: var(--wpe--color--white);
position: relative;
overflow: hidden;
margin-bottom: 2rem;
@media (min-width: $breakpoint-small) {
margin-bottom: 5rem;
}
}
.has-image {
--wpe--color--title: var(--wpe--color--white);
}
.text,
.image {
margin: auto;
text-align: center;
}
.text {
width: 100%;
max-width: 72rem;
padding: 8.25rem 0;
position: relative;
z-index: 1; // Pull text to the foreground to sit above <FeaturedImage />.
}
.title {
line-height: 1.25;
font-size: 5rem;
color: var(--wpe--color--title);
@media (max-width: $breakpoint-small) {
font-size: 3rem;
}
}
.byline {
font-weight: var(--wpe--font-weight--medium);
font-size: 1.2rem;
}
.image {
margin: 0;
position: absolute;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
z-index: 0;
&::after {
content: '';
top: 0;
left: 0;
height: 100%;
width: 100%;
background-color: rgba(0, 0, 0, 0.6);
position: absolute;
}
}