-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcomponent.section.css
More file actions
61 lines (51 loc) · 1.58 KB
/
Copy pathcomponent.section.css
File metadata and controls
61 lines (51 loc) · 1.58 KB
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
/* SECTION */
.section {
padding-block: var(--section-spacing);
}
/* Variants only swap the local custom properties */
.section-filled {
background-color: var(--section-filled-background-color);
}
.section-primary {
background-color: var(--section-primary-background-color);
color: var(--section-primary-text-color);
/* Children (links, buttons, eyebrow…) follow the inverted surface */
--text-color: var(--section-primary-text-color);
--link-color: var(--section-primary-link-color);
--link-color-hover: var(--section-primary-link-color-hover);
--section-eyebrow-color: var(--section-primary-eyebrow-color);
--section-lede-color: var(--section-primary-lede-color);
}
/* The header and content each compose .wrap with their own width preset
(header defaults to .wrap-md, content to .wrap-lg), so a section can pair
a narrow reading-width header with a wider content column. */
.section_content {
/* default doesn't need styling */
}
.section_header {
margin-bottom: var(--section-header-spacing);
text-align: center;
}
.section_eyebrow {
margin-bottom: var(--xs2);
font-size: var(--text-sm);
font-weight: var(--semi-bold);
letter-spacing: var(--tracking-lg);
text-transform: uppercase;
color: var(--section-eyebrow-color);
}
.section_title {
margin-bottom: var(--xs3);
font-size: var(--display-md);
}
.section_lede {
font-size: var(--text-lg);
color: var(--section-lede-color);
}
/* Centered button row: the "closing CTA" is a Section with one of these */
.section_actions {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: var(--xs3);
}