@primer/brand-css 0.82.0 → 0.83.0-rc.4ec10de1
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.
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
@property --brand-GridlineGroup-hoverStart {
|
|
2
|
+
syntax: '<color>';
|
|
3
|
+
inherits: false;
|
|
4
|
+
initial-value: transparent;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.GridlineGroup__container {
|
|
8
|
+
inline-size: 100%;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.GridlineGroup {
|
|
12
|
+
box-sizing: border-box;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.GridlineGroup__container > .GridlineGroup {
|
|
16
|
+
margin-inline: auto;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@media screen and (min-width: 48rem) and (max-width: 63.24rem) {
|
|
20
|
+
.GridlineGroup--contained {
|
|
21
|
+
/* TODO: Replace the Security recipe's 91px tablet gutters when a matching layout token exists. */
|
|
22
|
+
max-inline-size: calc(100% - 182px);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.GridlineGroup--outerBorder-inline {
|
|
27
|
+
border-inline: var(--brand-borderWidth-thin) solid var(--brand-GridlineGroup-borderColor);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.GridlineGroup--outerBorder-block {
|
|
31
|
+
border-block: var(--brand-borderWidth-thin) solid var(--brand-GridlineGroup-borderColor);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.GridlineGroup--outerBorder-all {
|
|
35
|
+
border: var(--brand-borderWidth-thin) solid var(--brand-GridlineGroup-borderColor);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.GridlineGroup__item {
|
|
39
|
+
position: relative;
|
|
40
|
+
display: grid;
|
|
41
|
+
grid-template-columns: minmax(0, 1fr);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.GridlineGroup__content {
|
|
45
|
+
display: grid;
|
|
46
|
+
grid-template-columns: minmax(0, 1fr);
|
|
47
|
+
animation: GridlineGroup-content-enter var(--brand-animation-duration-default) var(--brand-animation-easing-default)
|
|
48
|
+
both;
|
|
49
|
+
animation-delay: inherit;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.GridlineGroup__item--animated {
|
|
53
|
+
animation: GridlineGroup-item-enter var(--brand-animation-duration-default) var(--brand-animation-easing-default) both;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
@keyframes GridlineGroup-item-enter {
|
|
57
|
+
from {
|
|
58
|
+
opacity: 0;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
to {
|
|
62
|
+
opacity: 1;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
@keyframes GridlineGroup-content-enter {
|
|
67
|
+
from {
|
|
68
|
+
transform: translateY(var(--brand-animation-variant-slideInUp-distance));
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
to {
|
|
72
|
+
transform: translateY(0);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.GridlineGroup__item--animated:focus-within {
|
|
77
|
+
opacity: 1 !important;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.GridlineGroup__item--animated:focus-within > .GridlineGroup__content {
|
|
81
|
+
transform: none !important;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/* Lines are drawn over each item's edge, so they don't shift its content. */
|
|
85
|
+
.GridlineGroup__item::after {
|
|
86
|
+
content: '';
|
|
87
|
+
position: absolute;
|
|
88
|
+
inset: 0;
|
|
89
|
+
z-index: 1;
|
|
90
|
+
border-block-end: var(--brand-borderWidth-thin) solid var(--brand-GridlineGroup-borderColor);
|
|
91
|
+
border-inline-end: var(--brand-borderWidth-thin) solid var(--brand-GridlineGroup-borderColor);
|
|
92
|
+
pointer-events: none;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.GridlineGroup .GridlineGroup__item {
|
|
96
|
+
background-image: linear-gradient(180deg, var(--brand-GridlineGroup-hoverStart) 0%, transparent 100%);
|
|
97
|
+
transition: --brand-GridlineGroup-hoverStart var(--brand-animation-duration-extended)
|
|
98
|
+
var(--brand-animation-easing-default);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.GridlineGroup .GridlineGroup__item:is(:hover, :focus-within) {
|
|
102
|
+
--brand-GridlineGroup-hoverStart: var(--brand-GridlineGroup-bgColor-hover);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
@media (prefers-reduced-motion: reduce) {
|
|
106
|
+
.GridlineGroup .GridlineGroup__item {
|
|
107
|
+
animation: none;
|
|
108
|
+
transition: none;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.GridlineGroup .GridlineGroup__content {
|
|
112
|
+
animation: none;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.GridlineGroup__item--xsmall-flushEnd::after {
|
|
117
|
+
border-inline-end-width: 0;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.GridlineGroup__item--xsmall-lastRow::after {
|
|
121
|
+
border-block-end-width: 0;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
@media screen and (min-width: 34rem) {
|
|
125
|
+
.GridlineGroup__item--small-flushEnd::after {
|
|
126
|
+
border-inline-end-width: 0;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.GridlineGroup__item--small-notFlushEnd::after {
|
|
130
|
+
border-inline-end-width: var(--brand-borderWidth-thin);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.GridlineGroup__item--small-lastRow::after {
|
|
134
|
+
border-block-end-width: 0;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.GridlineGroup__item--small-notLastRow::after {
|
|
138
|
+
border-block-end-width: var(--brand-borderWidth-thin);
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
@media screen and (min-width: 48rem) {
|
|
143
|
+
.GridlineGroup__item--medium-flushEnd::after {
|
|
144
|
+
border-inline-end-width: 0;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.GridlineGroup__item--medium-notFlushEnd::after {
|
|
148
|
+
border-inline-end-width: var(--brand-borderWidth-thin);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.GridlineGroup__item--medium-lastRow::after {
|
|
152
|
+
border-block-end-width: 0;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.GridlineGroup__item--medium-notLastRow::after {
|
|
156
|
+
border-block-end-width: var(--brand-borderWidth-thin);
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
@media screen and (min-width: 63.25rem) {
|
|
161
|
+
.GridlineGroup__item--large-flushEnd::after {
|
|
162
|
+
border-inline-end-width: 0;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.GridlineGroup__item--large-notFlushEnd::after {
|
|
166
|
+
border-inline-end-width: var(--brand-borderWidth-thin);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.GridlineGroup__item--large-lastRow::after {
|
|
170
|
+
border-block-end-width: 0;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.GridlineGroup__item--large-notLastRow::after {
|
|
174
|
+
border-block-end-width: var(--brand-borderWidth-thin);
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
@media screen and (min-width: 80rem) {
|
|
179
|
+
.GridlineGroup__item--xlarge-flushEnd::after {
|
|
180
|
+
border-inline-end-width: 0;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.GridlineGroup__item--xlarge-notFlushEnd::after {
|
|
184
|
+
border-inline-end-width: var(--brand-borderWidth-thin);
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.GridlineGroup__item--xlarge-lastRow::after {
|
|
188
|
+
border-block-end-width: 0;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.GridlineGroup__item--xlarge-notLastRow::after {
|
|
192
|
+
border-block-end-width: var(--brand-borderWidth-thin);
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
@media screen and (min-width: 87.5rem) {
|
|
197
|
+
.GridlineGroup__item--xxlarge-flushEnd::after {
|
|
198
|
+
border-inline-end-width: 0;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.GridlineGroup__item--xxlarge-notFlushEnd::after {
|
|
202
|
+
border-inline-end-width: var(--brand-borderWidth-thin);
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.GridlineGroup__item--xxlarge-lastRow::after {
|
|
206
|
+
border-block-end-width: 0;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.GridlineGroup__item--xxlarge-notLastRow::after {
|
|
210
|
+
border-block-end-width: var(--brand-borderWidth-thin);
|
|
211
|
+
}
|
|
212
|
+
}
|
package/components/Hero/Hero.css
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
}
|
|
5
5
|
|
|
6
6
|
.Hero--variant-default {
|
|
7
|
-
padding: var(--brand-Hero-
|
|
7
|
+
padding: var(--brand-Hero-padding);
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
.Hero--align-start {
|
|
@@ -320,14 +320,7 @@
|
|
|
320
320
|
}
|
|
321
321
|
|
|
322
322
|
.Hero-eyebrow {
|
|
323
|
-
margin-block-end: var(--
|
|
324
|
-
}
|
|
325
|
-
|
|
326
|
-
/* Small breakpoint and up */
|
|
327
|
-
@media screen and (min-width: 34rem) {
|
|
328
|
-
.Hero--variant-default {
|
|
329
|
-
padding: var(--brand-Hero-regular-padding);
|
|
330
|
-
}
|
|
323
|
+
margin-block-end: var(--brand-Hero-eyebrow-marginBlockEnd);
|
|
331
324
|
}
|
|
332
325
|
|
|
333
326
|
.Hero-video-poster-button {
|