-
Notifications
You must be signed in to change notification settings - Fork 67
Expand file tree
/
Copy pathSectionIntroStacked.module.css
More file actions
162 lines (136 loc) · 4.37 KB
/
Copy pathSectionIntroStacked.module.css
File metadata and controls
162 lines (136 loc) · 4.37 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
.SectionIntroStacked {
--brand-Grid-spacing-row: var(--base-size-48);
}
.SectionIntroStacked--variant-gridline {
position: relative;
padding-inline: var(--base-size-24);
padding-block: var(--base-size-32);
--SectionIntroStacked-item-divider-overflow-start: var(--base-size-24);
--SectionIntroStacked-item-divider-overflow-end: var(--base-size-24);
}
@media screen and (min-width: 63.25rem) {
.SectionIntroStacked--variant-gridline {
padding-inline: var(--base-size-64);
padding-block: var(--base-size-64);
/* At large viewports, left overflow is 0 (vertical divider bounds the start) */
--SectionIntroStacked-item-divider-overflow-start: 0px;
--SectionIntroStacked-item-divider-overflow-end: var(--base-size-64);
}
}
@media screen and (min-width: 63.25rem) {
.SectionIntroStacked--variant-gridline {
padding-inline: var(--base-size-64);
padding-block: var(--base-size-64);
--SectionIntroStacked-item-divider-overflow-start: 0px;
--SectionIntroStacked-item-divider-overflow-end: calc(var(--brand-Grid-spacing-margin) + var(--base-size-64));
}
}
@media screen and (min-width: 80rem) {
.SectionIntroStacked--variant-gridline {
border-inline: var(--brand-borderWidth-thin) solid var(--brand-color-border-muted);
}
}
.SectionIntroStacked-heading--muted,
.SectionIntroStackedItem__item-text--muted {
color: var(--brand-color-text-muted);
}
.SectionIntroStacked-heading--muted em,
.SectionIntroStacked-heading--muted b,
.SectionIntroStackedItem__item-text em,
.SectionIntroStackedItem__item-text b {
color: var(--brand-color-text-default);
font-style: normal;
font-weight: var(--base-text-weight-normal);
}
.SectionIntroStacked--full-width .SectionIntroStacked-heading {
max-width: none;
}
.SectionIntroStacked-description {
margin-block-start: var(--base-size-16);
max-width: 50ch;
}
.SectionIntroStacked-link {
margin-block-start: var(--base-size-16);
}
.SectionIntroStacked-items {
margin: 0;
padding: 0;
list-style: none;
display: flex;
flex-direction: column;
}
@media screen and (max-width: 63.25rem) {
.SectionIntroStacked-heading {
font-size: var(--brand-text-size-600);
}
}
@media screen and (min-width: 63.25rem) {
.SectionIntroStacked-items {
position: relative;
top: var(--base-size-2);
}
.SectionIntroStacked--variant-gridline .SectionIntroStacked-items {
border-inline-start: var(--brand-borderWidth-thin) solid var(--brand-color-border-muted);
margin-block: calc(-1 * var(--base-size-64));
padding-block: 0;
position: static;
top: auto;
}
.SectionIntroStacked--variant-gridline .SectionIntroStackedItem-item {
/* Inset item content from the vertical gridline */
padding-inline-start: var(--base-size-32);
padding-inline-end: var(--base-size-32);
}
}
.SectionIntroStacked--variant-gridline .SectionIntroStackedItem-item {
border-block-end: none;
position: relative;
}
/* Restore equal padding on first/last items in gridline variant */
.SectionIntroStacked--variant-gridline .SectionIntroStackedItem-item:first-child {
padding-block-start: var(--base-size-40);
}
.SectionIntroStacked--variant-gridline .SectionIntroStackedItem-item:last-child {
padding-block-end: var(--base-size-40);
}
.SectionIntroStacked--variant-gridline .SectionIntroStackedItem-item:not(:last-child)::after {
content: '';
position: absolute;
bottom: 0;
left: calc(-1 * var(--SectionIntroStacked-item-divider-overflow-start));
right: calc(-1 * var(--SectionIntroStacked-item-divider-overflow-end));
border-bottom: var(--brand-borderWidth-thin) solid var(--brand-color-border-muted);
}
.SectionIntroStackedItem-item {
padding-block: var(--base-size-40);
border-block-end: var(--brand-borderWidth-thin) solid var(--brand-color-border-muted);
}
.SectionIntroStackedItem-item:last-child {
border-block-end: none;
padding-block-end: 0;
}
.SectionIntroStackedItem-item:first-child {
padding-block-start: 0;
}
.SectionIntroStackedItem-item--with-icon {
display: flex;
flex-direction: row;
align-items: flex-start;
gap: var(--base-size-24);
}
@media screen and (min-width: 63.25rem) {
.SectionIntroStackedItem-item--with-icon {
gap: var(--base-size-48);
}
}
.SectionIntroStackedItem__content {
display: flex;
flex-direction: column;
gap: var(--base-size-8);
flex: 1;
min-width: 0;
}
.SectionIntroStackedItem__icon {
flex-shrink: 0;
border-radius: var(--base-size-12);
}