@primer/brand-css 0.66.0-rc.b9b07b6c → 0.66.0-rc.d5c4bb5d
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2,6 +2,60 @@
|
|
|
2
2
|
--brand-Grid-spacing-row: var(--base-size-48);
|
|
3
3
|
}
|
|
4
4
|
|
|
5
|
+
.SectionIntroStacked--variant-gridline {
|
|
6
|
+
position: relative;
|
|
7
|
+
padding-inline: var(--base-size-24);
|
|
8
|
+
padding-block: var(--base-size-32);
|
|
9
|
+
|
|
10
|
+
--SectionIntroStacked-item-divider-overflow-start: var(--base-size-24);
|
|
11
|
+
--SectionIntroStacked-item-divider-overflow-end: var(--base-size-24);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@media screen and (min-width: 63.25rem) {
|
|
15
|
+
.SectionIntroStacked--variant-gridline {
|
|
16
|
+
padding-inline: var(--base-size-64);
|
|
17
|
+
padding-block: var(--base-size-64);
|
|
18
|
+
/* At large viewports, left overflow is 0 (vertical divider bounds the start) */
|
|
19
|
+
--SectionIntroStacked-item-divider-overflow-start: 0px;
|
|
20
|
+
--SectionIntroStacked-item-divider-overflow-end: var(--base-size-64);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
@media screen and (min-width: 63.25rem) {
|
|
25
|
+
.SectionIntroStacked--variant-gridline {
|
|
26
|
+
padding-inline: var(--base-size-64);
|
|
27
|
+
padding-block: var(--base-size-64);
|
|
28
|
+
--SectionIntroStacked-item-divider-overflow-start: 0px;
|
|
29
|
+
--SectionIntroStacked-item-divider-overflow-end: calc(var(--brand-Grid-spacing-margin) + var(--base-size-64));
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.SectionIntroStacked--variant-gridline::before,
|
|
34
|
+
.SectionIntroStacked--variant-gridline::after {
|
|
35
|
+
content: '';
|
|
36
|
+
position: absolute;
|
|
37
|
+
left: 50%;
|
|
38
|
+
transform: translateX(-50%);
|
|
39
|
+
width: 100vw;
|
|
40
|
+
height: 0;
|
|
41
|
+
border-top: var(--brand-borderWidth-thin) solid var(--brand-color-border-muted);
|
|
42
|
+
z-index: 1;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.SectionIntroStacked--variant-gridline::before {
|
|
46
|
+
top: 0;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.SectionIntroStacked--variant-gridline::after {
|
|
50
|
+
bottom: 0;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
@media screen and (min-width: 80rem) {
|
|
54
|
+
.SectionIntroStacked--variant-gridline {
|
|
55
|
+
border-inline: var(--brand-borderWidth-thin) solid var(--brand-color-border-muted);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
5
59
|
.SectionIntroStacked-heading--muted,
|
|
6
60
|
.SectionIntroStackedItem__item-text--muted {
|
|
7
61
|
color: var(--brand-color-text-muted);
|
|
@@ -20,6 +74,11 @@
|
|
|
20
74
|
max-width: none;
|
|
21
75
|
}
|
|
22
76
|
|
|
77
|
+
.SectionIntroStacked-description {
|
|
78
|
+
margin-block-start: var(--base-size-16);
|
|
79
|
+
max-width: 50ch;
|
|
80
|
+
}
|
|
81
|
+
|
|
23
82
|
.SectionIntroStacked-link {
|
|
24
83
|
margin-block-start: var(--base-size-16);
|
|
25
84
|
}
|
|
@@ -30,7 +89,6 @@
|
|
|
30
89
|
list-style: none;
|
|
31
90
|
display: flex;
|
|
32
91
|
flex-direction: column;
|
|
33
|
-
gap: var(--base-size-32);
|
|
34
92
|
}
|
|
35
93
|
|
|
36
94
|
@media screen and (max-width: 63.25rem) {
|
|
@@ -39,14 +97,86 @@
|
|
|
39
97
|
}
|
|
40
98
|
}
|
|
41
99
|
|
|
42
|
-
@media screen and (min-width:
|
|
43
|
-
.SectionIntroStackedItem-item {
|
|
44
|
-
gap: var(--base-size-40);
|
|
45
|
-
}
|
|
46
|
-
|
|
100
|
+
@media screen and (min-width: 63.25rem) {
|
|
47
101
|
.SectionIntroStacked-items {
|
|
48
|
-
/* Optical alignment with adjacent content */
|
|
49
102
|
position: relative;
|
|
50
103
|
top: var(--base-size-2);
|
|
51
104
|
}
|
|
105
|
+
|
|
106
|
+
.SectionIntroStacked--variant-gridline .SectionIntroStacked-items {
|
|
107
|
+
border-inline-start: var(--brand-borderWidth-thin) solid var(--brand-color-border-muted);
|
|
108
|
+
margin-block: calc(-1 * var(--base-size-64));
|
|
109
|
+
padding-block: 0;
|
|
110
|
+
position: static;
|
|
111
|
+
top: auto;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.SectionIntroStacked--variant-gridline .SectionIntroStackedItem-item {
|
|
115
|
+
/* Inset item content from the vertical gridline */
|
|
116
|
+
padding-inline-start: var(--base-size-32);
|
|
117
|
+
padding-inline-end: var(--base-size-32);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.SectionIntroStacked--variant-gridline .SectionIntroStackedItem-item {
|
|
122
|
+
border-block-end: none;
|
|
123
|
+
position: relative;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
/* Restore equal padding on first/last items in gridline variant */
|
|
127
|
+
.SectionIntroStacked--variant-gridline .SectionIntroStackedItem-item:first-child {
|
|
128
|
+
padding-block-start: var(--base-size-40);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.SectionIntroStacked--variant-gridline .SectionIntroStackedItem-item:last-child {
|
|
132
|
+
padding-block-end: var(--base-size-40);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.SectionIntroStacked--variant-gridline .SectionIntroStackedItem-item:not(:last-child)::after {
|
|
136
|
+
content: '';
|
|
137
|
+
position: absolute;
|
|
138
|
+
bottom: 0;
|
|
139
|
+
left: calc(-1 * var(--SectionIntroStacked-item-divider-overflow-start));
|
|
140
|
+
right: calc(-1 * var(--SectionIntroStacked-item-divider-overflow-end));
|
|
141
|
+
border-bottom: var(--brand-borderWidth-thin) solid var(--brand-color-border-muted);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.SectionIntroStackedItem-item {
|
|
145
|
+
padding-block: var(--base-size-40);
|
|
146
|
+
border-block-end: var(--brand-borderWidth-thin) solid var(--brand-color-border-muted);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.SectionIntroStackedItem-item:last-child {
|
|
150
|
+
border-block-end: none;
|
|
151
|
+
padding-block-end: 0;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.SectionIntroStackedItem-item:first-child {
|
|
155
|
+
padding-block-start: 0;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.SectionIntroStackedItem-item--with-icon {
|
|
159
|
+
display: flex;
|
|
160
|
+
flex-direction: row;
|
|
161
|
+
align-items: flex-start;
|
|
162
|
+
gap: var(--base-size-24);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
@media screen and (min-width: 63.25rem) {
|
|
166
|
+
.SectionIntroStackedItem-item--with-icon {
|
|
167
|
+
gap: var(--base-size-48);
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.SectionIntroStackedItem__content {
|
|
172
|
+
display: flex;
|
|
173
|
+
flex-direction: column;
|
|
174
|
+
gap: var(--base-size-8);
|
|
175
|
+
flex: 1;
|
|
176
|
+
min-width: 0;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.SectionIntroStackedItem__icon {
|
|
180
|
+
flex-shrink: 0;
|
|
181
|
+
border-radius: var(--brand-borderRadius-medium);
|
|
52
182
|
}
|