-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy pathsection-header.css
More file actions
58 lines (50 loc) · 1.17 KB
/
Copy pathsection-header.css
File metadata and controls
58 lines (50 loc) · 1.17 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
:root {
--section-header-description-color: var(--gray-60);
}
.cauldron--theme-dark {
--section-header-description-color: var(--accent-light);
}
.SectionHeader {
container-type: inline-size;
}
.SectionHeader__content {
display: grid;
word-break: break-word;
grid-template-columns: 1fr;
grid-template-areas:
'heading'
'description'
'children';
}
.SectionHeader__actions {
margin-top: var(--space-small);
grid-area: children;
}
.SectionHeader .SectionHeader__content .SectionHeader__description {
margin: var(--space-smallest) 0 0 0;
padding: 0;
color: var(--section-header-description-color);
font-size: var(--text-size-base);
grid-area: description;
max-width: 30.5rem;
}
.SectionHeader :is(h1, h2, h3, h4, h5, h6) {
font-size: var(--text-size-heading-2);
font-weight: var(--font-weight-medium);
margin: 0;
padding: 0;
}
@container (min-width: 48rem) {
.SectionHeader__content {
grid-template-columns: 1fr auto;
grid-template-areas:
'heading children'
'description children';
align-items: start;
column-gap: var(--space-smallest);
}
.SectionHeader__actions {
margin: 0;
justify-self: end;
}
}