@primer/brand-css 0.66.0-rc.b9b07b6c → 0.66.0-rc.bfc673d9
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
|
}
|
|
@@ -32,6 +32,64 @@
|
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
+
/* Gridline variant */
|
|
36
|
+
|
|
37
|
+
.RiverAccordion--variant-gridline {
|
|
38
|
+
position: relative;
|
|
39
|
+
padding-inline: var(--brand-RiverAccordion-variant-gridline-spacing-outerInline);
|
|
40
|
+
padding-block: var(--brand-RiverAccordion-variant-gridline-spacing-outerBlock);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.RiverAccordion--variant-gridline::before,
|
|
44
|
+
.RiverAccordion--variant-gridline::after {
|
|
45
|
+
content: '';
|
|
46
|
+
position: absolute;
|
|
47
|
+
left: 50%;
|
|
48
|
+
transform: translateX(-50%);
|
|
49
|
+
width: 100vw;
|
|
50
|
+
height: 0;
|
|
51
|
+
border-top: var(--brand-borderWidth-thin) solid var(--brand-color-border-muted);
|
|
52
|
+
z-index: 1;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.RiverAccordion--variant-gridline::before {
|
|
56
|
+
top: 0;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.RiverAccordion--variant-gridline::after {
|
|
60
|
+
bottom: 0;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
@media (min-width: 48rem) {
|
|
64
|
+
.RiverAccordion--variant-gridline {
|
|
65
|
+
--gap-width: var(--brand-RiverAccordion-variant-gridline-spacing-contentGap);
|
|
66
|
+
--half-column: calc(50% - var(--gap-width) / 2);
|
|
67
|
+
|
|
68
|
+
gap: var(--gap-width);
|
|
69
|
+
align-items: center;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.RiverAccordion--variant-gridline.RiverAccordion__align-start {
|
|
73
|
+
grid-template-columns: var(--half-column) var(--half-column);
|
|
74
|
+
grid-template-areas: 'accordion visual';
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.RiverAccordion--variant-gridline.RiverAccordion__align-end {
|
|
78
|
+
grid-template-columns: var(--half-column) var(--half-column);
|
|
79
|
+
grid-template-areas: 'visual accordion';
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
@media (min-width: 80rem) {
|
|
84
|
+
.RiverAccordion--variant-gridline {
|
|
85
|
+
border-inline: var(--brand-borderWidth-thin) solid var(--brand-color-border-muted);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.RiverAccordion--variant-gridline .RiverAccordion__visualsWrapper {
|
|
90
|
+
border-radius: var(--brand-borderRadius-medium);
|
|
91
|
+
}
|
|
92
|
+
|
|
35
93
|
.RiverAccordion__accordionContainer {
|
|
36
94
|
grid-area: accordion;
|
|
37
95
|
}
|
|
@@ -41,6 +99,7 @@
|
|
|
41
99
|
}
|
|
42
100
|
|
|
43
101
|
.RiverAccordion__visualsWrapper {
|
|
102
|
+
width: 100%;
|
|
44
103
|
overflow: hidden;
|
|
45
104
|
border-radius: var(--brand-borderRadius-xlarge);
|
|
46
105
|
display: grid;
|
|
@@ -159,10 +218,12 @@
|
|
|
159
218
|
}
|
|
160
219
|
|
|
161
220
|
.RiverAccordion__icon {
|
|
162
|
-
|
|
163
|
-
|
|
221
|
+
flex-shrink: 0;
|
|
222
|
+
display: flex;
|
|
223
|
+
align-items: center;
|
|
224
|
+
color: var(--brand-color-text-muted);
|
|
164
225
|
}
|
|
165
226
|
|
|
166
227
|
.RiverAccordion__item--open .RiverAccordion__icon {
|
|
167
|
-
|
|
228
|
+
color: var(--brand-color-text-default);
|
|
168
229
|
}
|