@penskemediacorp/larva-css 1.8.0-alpha.0 → 1.8.0
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.
- package/LICENSE +21 -0
- package/README.md +199 -22
- package/__tests__/fixtures/expected.js +29 -0
- package/__tests__/lib/generators.test.js +11 -0
- package/build/css/algorithms.common.async.css +4 -0
- package/build/css/algorithms.common.inline.css +21 -0
- package/build/css/generic.common.inline.css +4 -0
- package/build/css/js.common.async.css +3 -0
- package/build/css/js.common.inline.css +6 -0
- package/build/css/utilities.common.async.css +8 -0
- package/build/css/utilities.common.inline.css +29 -0
- package/gulpfile.js +110 -82
- package/lib/generators.js +93 -0
- package/package.json +14 -6
- package/src/01-generic/elements.common.inline.scss +33 -1
- package/src/01-generic/forms.common.inline.scss +10 -0
- package/src/01-generic/side-skins.common.inline.scss +10 -0
- package/src/01-generic/typography.common.inline.scss +23 -15
- package/src/02-algorithms/a-buy-now/a-buy-now.common.inline.scss +112 -0
- package/src/02-algorithms/a-carousel-grid/a-carousel-grid.common.inline.scss +66 -0
- package/src/02-algorithms/a-children-border/a-children-border.common.inline.scss +43 -0
- package/src/02-algorithms/a-children-link-color/a-children-link-color.common.inline.scss +15 -0
- package/src/02-algorithms/a-children-link-decoration/a-children-link-decoration.common.inline.scss +13 -0
- package/src/02-algorithms/a-counter/a-counter.common.inline.scss +26 -0
- package/src/02-algorithms/a-crop/README.md +17 -13
- package/src/02-algorithms/a-crop/a-crop.common.inline.scss +96 -12
- package/src/02-algorithms/a-crop/a-crop.html +2 -2
- package/src/02-algorithms/a-floated/a-floated.common.inline.scss +32 -0
- package/src/02-algorithms/a-font/a-font.common.inline.scss +3 -0
- package/src/02-algorithms/a-glue/a-glue.common.inline.scss +63 -6
- package/src/02-algorithms/a-glue/a-glue.html +2 -2
- package/src/02-algorithms/a-grid/README.md +141 -14
- package/src/02-algorithms/a-grid/a-grid.common.inline.scss +53 -5
- package/src/02-algorithms/a-grid/a-grid.html +4 -4
- package/src/02-algorithms/a-hidden/a-hidden.common.inline.scss +43 -0
- package/src/02-algorithms/a-hover-dropup/a-hover-dropup.common.async.scss +7 -7
- package/src/02-algorithms/a-hover-dropup/a-hover-dropup.html +3 -3
- package/src/02-algorithms/a-hover-effect/a-hover-effect.common.async.scss +25 -0
- package/src/02-algorithms/a-hover-effect/a-hover-effect.html +16 -0
- package/src/02-algorithms/a-icon/a-icon.common.async.scss +28 -3
- package/src/02-algorithms/a-icon/a-icon.common.inline.scss +51 -73
- package/src/02-algorithms/a-screen-reader-only/a-screen-reader-only.common.inline.scss +30 -0
- package/src/02-algorithms/a-scrollable-grid/a-scrollable-grid.common.inline.scss +52 -0
- package/src/02-algorithms/a-show-on-hover/a-show-on-hover.common.inline.scss +16 -0
- package/src/02-algorithms/a-space-children/a-space-children.common.inline.scss +88 -17
- package/src/02-algorithms/a-truncate-ellipsis/a-truncate-ellipsis.common.async.scss +71 -0
- package/src/02-algorithms/a-unstyle-button/a-unstyle-button.common.inline.scss +2 -3
- package/src/02-algorithms/a-unstyle-link/a-unstyle-link.common.inline.scss +7 -0
- package/src/02-algorithms/a-unstyle-list/a-unstyle-list.common.inline.scss +1 -1
- package/src/02-algorithms/a-wrapper/a-wrapper.common.inline.scss +14 -2
- package/src/03-utilities/u-background-color.common.async.scss +15 -0
- package/src/03-utilities/u-background-color.common.inline.scss +37 -0
- package/src/03-utilities/u-border-color.common.async.scss +36 -8
- package/src/03-utilities/u-border-radius.common.async.scss +26 -2
- package/src/03-utilities/u-border.common.inline.scss +215 -4
- package/src/03-utilities/u-box-alignment.common.inline.scss +64 -4
- package/src/03-utilities/u-box-shadow.common.async.scss +34 -3
- package/src/03-utilities/u-color.common.async.scss +19 -21
- package/src/03-utilities/u-color.common.inline.scss +39 -0
- package/src/03-utilities/u-cursor.common.async.scss +1 -1
- package/src/03-utilities/u-display.common.inline.scss +87 -4
- package/src/03-utilities/u-filter.common.async.scss +5 -0
- package/src/03-utilities/u-flex.common.inline.scss +151 -9
- package/src/03-utilities/u-font-family.common.inline.scss +41 -17
- package/src/03-utilities/u-font-size.common.inline.scss +58 -5
- package/src/03-utilities/u-font-style.common.inline.scss +9 -0
- package/src/03-utilities/u-font-weight.common.inline.scss +50 -12
- package/src/03-utilities/u-height.common.inline.scss +38 -8
- package/src/03-utilities/u-left.common.inline.scss +7 -0
- package/src/03-utilities/u-letter-spacing.common.inline.scss +11 -0
- package/src/03-utilities/u-line-height.common.inline.scss +49 -13
- package/src/03-utilities/u-list-style.common.async.scss +3 -0
- package/src/03-utilities/u-margin.common.inline.scss +182 -47
- package/src/03-utilities/u-max-width.common.inline.scss +25 -0
- package/src/03-utilities/u-opacity.common.inline.scss +3 -0
- package/src/03-utilities/u-order.common.inline.scss +29 -2
- package/src/03-utilities/u-overflow.common.inline.scss +14 -2
- package/src/03-utilities/u-padding.common.inline.scss +157 -52
- package/src/03-utilities/u-position.common.inline.scss +11 -0
- package/src/03-utilities/u-text-align.common.inline.scss +27 -4
- package/src/03-utilities/u-text-decoration.common.inline.scss +11 -0
- package/src/03-utilities/u-text-transform.common.inline.scss +14 -2
- package/src/03-utilities/u-top.common.inline.scss +7 -0
- package/src/03-utilities/u-transform.common.inline.scss +12 -0
- package/src/03-utilities/u-vertical-align.common.inline.scss +7 -0
- package/src/03-utilities/u-whitespace.common.inline.scss +1 -1
- package/src/03-utilities/u-width.common.inline.scss +198 -12
- package/src/04-js/README.md +5 -0
- package/src/04-js/js-Collapsible.common.inline.scss +15 -0
- package/src/04-js/js-ExpandableSearch.common.async.scss +33 -0
- package/src/04-js/js-Flickity.common.async.scss +91 -0
- package/src/04-js/js-Header.common.inline.scss +73 -0
- package/src/04-js/js-MegaMenu.common.inline.scss +50 -0
- package/src/04-js/js-MobileHeightToggle.common.inline.scss +7 -5
- package/src/04-js/js-PopOver.common.async.scss +13 -0
- package/src/04-js/js-Tooltip.common.inline.scss +17 -0
- package/src/04-js/js-VideoShowcase.common.inline.scss +33 -0
- package/src/04-js/partials/expandable-search.scss +202 -0
- package/src/04-js/partials/flickity.scss +149 -0
- package/src/_generated/_a-font.scss +1027 -0
- package/src/larva-ui/prism.scss +127 -0
- package/src/setup.scss +7 -0
- package/stylelint.config.js +10 -11
- package/build/css/algorithms.common.async.scss +0 -36
- package/build/css/algorithms.common.inline.scss +0 -274
- package/build/css/generic.common.inline.scss +0 -66
- package/build/css/js.common.inline.scss +0 -9
- package/build/css/utilities.common.async.scss +0 -57
- package/build/css/utilities.common.inline.scss +0 -473
- package/holding/a-truncate-children/README.md +0 -3
- package/holding/a-truncate-children/a-truncate-children.browser-test.js +0 -104
- package/holding/a-truncate-children/a-truncate-children.css +0 -4
- package/holding/a-truncate-children/a-truncate-children.html +0 -15
- package/holding/a-truncate-children/a-truncate-children.scss +0 -5
- package/src/01-generic/config.common.inline.scss +0 -18
- package/src/02-algorithms/.DS_Store +0 -0
- package/src/02-algorithms/a-glue/index.js +0 -1
- package/src/02-algorithms/a-icon/a-icon.html +0 -20
- package/src/02-algorithms/a-unstyle-link/a-unstyle-link.common.async.scss +0 -5
- package/src/03-utilities/u-background.common.async.scss +0 -28
|
@@ -1,473 +0,0 @@
|
|
|
1
|
-
.pmc-u-border-a-1 {
|
|
2
|
-
border: 1px solid; }
|
|
3
|
-
|
|
4
|
-
@media (max-width: 47.999rem) {
|
|
5
|
-
.pmc-u-border-a-1\@mobile-max {
|
|
6
|
-
border: 1px solid; } }
|
|
7
|
-
|
|
8
|
-
.pmc-u-align-items-center {
|
|
9
|
-
align-items: center; }
|
|
10
|
-
|
|
11
|
-
.pmc-u-justify-content-center {
|
|
12
|
-
justify-content: center; }
|
|
13
|
-
|
|
14
|
-
.pmc-u-justify-content-space-evenly {
|
|
15
|
-
justify-content: space-evenly; }
|
|
16
|
-
|
|
17
|
-
.pmc-u-justify-content-space-between {
|
|
18
|
-
justify-content: space-between; }
|
|
19
|
-
|
|
20
|
-
.pmc-u-display-block {
|
|
21
|
-
display: block; }
|
|
22
|
-
|
|
23
|
-
.pmc-u-display-inline {
|
|
24
|
-
display: inline; }
|
|
25
|
-
|
|
26
|
-
.pmc-u-display-inline-block {
|
|
27
|
-
display: inline-block; }
|
|
28
|
-
|
|
29
|
-
.pmc-u-display-none {
|
|
30
|
-
display: none; }
|
|
31
|
-
|
|
32
|
-
.pmc-u-flex {
|
|
33
|
-
display: flex; }
|
|
34
|
-
|
|
35
|
-
@media (min-width: 48rem) {
|
|
36
|
-
.pmc-u-flex\@tablet {
|
|
37
|
-
display: flex; } }
|
|
38
|
-
|
|
39
|
-
.pmc-u-flex-grow-1 {
|
|
40
|
-
flex-grow: 1; }
|
|
41
|
-
|
|
42
|
-
.pmc-u-flex-direction-column {
|
|
43
|
-
flex-direction: column; }
|
|
44
|
-
|
|
45
|
-
@media (max-width: 47.999rem) {
|
|
46
|
-
.pmc-u-flex-direction-column\@mobile-max {
|
|
47
|
-
flex-direction: column; } }
|
|
48
|
-
|
|
49
|
-
.wf-active {
|
|
50
|
-
--font-family-primary: var( --font-family-primary-fancy );
|
|
51
|
-
--font-family-secondary: var( --font-family-secondary-fancy ); }
|
|
52
|
-
|
|
53
|
-
.pmc-u-font-family-primary {
|
|
54
|
-
font-family: var(--font-family-primary); }
|
|
55
|
-
|
|
56
|
-
.pmc-u-font-family-secondary {
|
|
57
|
-
font-family: var(--font-family-secondary); }
|
|
58
|
-
|
|
59
|
-
.pmc-u-font-family-basic {
|
|
60
|
-
font-family: Helvetica, sans-serif;
|
|
61
|
-
font-family: var(--font-family-basic); }
|
|
62
|
-
|
|
63
|
-
.pmc-u-font-size-8 {
|
|
64
|
-
font-size: 0.5rem; }
|
|
65
|
-
|
|
66
|
-
.pmc-u-font-size-10 {
|
|
67
|
-
font-size: 0.625rem; }
|
|
68
|
-
|
|
69
|
-
.pmc-u-font-size-12 {
|
|
70
|
-
font-size: 0.75rem; }
|
|
71
|
-
|
|
72
|
-
.pmc-u-font-size-14 {
|
|
73
|
-
font-size: 0.875rem; }
|
|
74
|
-
|
|
75
|
-
.pmc-u-font-size-16 {
|
|
76
|
-
font-size: 1rem; }
|
|
77
|
-
|
|
78
|
-
.pmc-u-font-size-18 {
|
|
79
|
-
font-size: 1.125rem; }
|
|
80
|
-
|
|
81
|
-
.pmc-u-font-size-20 {
|
|
82
|
-
font-size: 1.25rem; }
|
|
83
|
-
|
|
84
|
-
.pmc-u-font-size-24 {
|
|
85
|
-
font-size: 1.5rem; }
|
|
86
|
-
|
|
87
|
-
.pmc-u-font-size-28 {
|
|
88
|
-
font-size: 1.75rem; }
|
|
89
|
-
|
|
90
|
-
.pmc-u-font-size-32 {
|
|
91
|
-
font-size: 2rem; }
|
|
92
|
-
|
|
93
|
-
.pmc-u-font-size-36 {
|
|
94
|
-
font-size: 2.25rem; }
|
|
95
|
-
|
|
96
|
-
.pmc-u-font-size-40 {
|
|
97
|
-
font-size: 2.5rem; }
|
|
98
|
-
|
|
99
|
-
.pmc-u-font-size-50 {
|
|
100
|
-
font-size: 3.125rem; }
|
|
101
|
-
|
|
102
|
-
.pmc-u-font-size-86 {
|
|
103
|
-
font-size: 5.375rem; }
|
|
104
|
-
|
|
105
|
-
@media (max-width: 47.999rem) {
|
|
106
|
-
.pmc-u-font-size-12\@mobile-max {
|
|
107
|
-
font-size: 0.75rem; } }
|
|
108
|
-
|
|
109
|
-
@media (max-width: 47.999rem) {
|
|
110
|
-
.pmc-u-font-size-14\@mobile-max {
|
|
111
|
-
font-size: 0.875rem; } }
|
|
112
|
-
|
|
113
|
-
@media (max-width: 47.999rem) {
|
|
114
|
-
.pmc-u-font-size-18\@mobile-max {
|
|
115
|
-
font-size: 1.125rem; } }
|
|
116
|
-
|
|
117
|
-
@media (max-width: 47.999rem) {
|
|
118
|
-
.pmc-u-font-size-22\@mobile-max {
|
|
119
|
-
font-size: 1.375rem; } }
|
|
120
|
-
|
|
121
|
-
@media (max-width: 47.999rem) {
|
|
122
|
-
.pmc-u-font-size-26\@mobile-max {
|
|
123
|
-
font-size: 1.625rem; } }
|
|
124
|
-
|
|
125
|
-
@media (min-width: 48rem) {
|
|
126
|
-
.pmc-u-font-size-18\@tablet {
|
|
127
|
-
font-size: 1.125rem; } }
|
|
128
|
-
|
|
129
|
-
@media (min-width: 48rem) {
|
|
130
|
-
.pmc-u-font-size-14\@tablet {
|
|
131
|
-
font-size: 0.875rem; } }
|
|
132
|
-
|
|
133
|
-
@media (min-width: 48rem) {
|
|
134
|
-
.pmc-u-font-size-26\@tablet {
|
|
135
|
-
font-size: 1.625rem; } }
|
|
136
|
-
|
|
137
|
-
@media (min-width: 48rem) {
|
|
138
|
-
.pmc-u-font-size-28\@tablet {
|
|
139
|
-
font-size: 1.75rem; } }
|
|
140
|
-
|
|
141
|
-
@media (min-width: 48rem) {
|
|
142
|
-
.pmc-u-font-size-38\@tablet {
|
|
143
|
-
font-size: 2.375rem; } }
|
|
144
|
-
|
|
145
|
-
@media (min-width: 48rem) {
|
|
146
|
-
.pmc-u-font-size-46\@tablet {
|
|
147
|
-
font-size: 2.875rem; } }
|
|
148
|
-
|
|
149
|
-
@media (min-width: 62.5rem) {
|
|
150
|
-
.pmc-u-font-size-14\@desktop {
|
|
151
|
-
font-size: 0.875rem; } }
|
|
152
|
-
|
|
153
|
-
@media (min-width: 62.5rem) {
|
|
154
|
-
.pmc-u-font-size-18\@desktop {
|
|
155
|
-
font-size: 1.125rem; } }
|
|
156
|
-
|
|
157
|
-
@media (min-width: 62.5rem) {
|
|
158
|
-
.pmc-u-font-size-20\@desktop {
|
|
159
|
-
font-size: 1.25rem; } }
|
|
160
|
-
|
|
161
|
-
@media (min-width: 62.5rem) {
|
|
162
|
-
.pmc-u-font-size-24\@desktop {
|
|
163
|
-
font-size: 1.5rem; } }
|
|
164
|
-
|
|
165
|
-
@media (min-width: 62.5rem) {
|
|
166
|
-
.pmc-u-font-size-26\@desktop {
|
|
167
|
-
font-size: 1.625rem; } }
|
|
168
|
-
|
|
169
|
-
@media (min-width: 62.5rem) {
|
|
170
|
-
.pmc-u-font-size-32\@desktop {
|
|
171
|
-
font-size: 2rem; } }
|
|
172
|
-
|
|
173
|
-
@media (min-width: 62.5rem) {
|
|
174
|
-
.pmc-u-font-size-36\@desktop {
|
|
175
|
-
font-size: 2.25rem; } }
|
|
176
|
-
|
|
177
|
-
@media (min-width: 62.5rem) {
|
|
178
|
-
.pmc-u-font-size-50\@desktop {
|
|
179
|
-
font-size: 3.125rem; } }
|
|
180
|
-
|
|
181
|
-
@media (min-width: 78.75rem) {
|
|
182
|
-
.pmc-u-font-size-28\@desktop-xl {
|
|
183
|
-
font-size: 1.75rem; } }
|
|
184
|
-
|
|
185
|
-
@media (min-width: 78.75rem) {
|
|
186
|
-
.pmc-u-font-size-56\@desktop-xl {
|
|
187
|
-
font-size: 3.5rem; } }
|
|
188
|
-
|
|
189
|
-
@media (min-width: 78.75rem) {
|
|
190
|
-
.pmc-u-font-size-18\@desktop-xl {
|
|
191
|
-
font-size: 1.125rem; } }
|
|
192
|
-
|
|
193
|
-
@media (min-width: 78.75rem) {
|
|
194
|
-
.pmc-u-font-size-32\@desktop-xl {
|
|
195
|
-
font-size: 2rem; } }
|
|
196
|
-
|
|
197
|
-
@media (min-width: 78.75rem) {
|
|
198
|
-
.pmc-u-font-size-28\@desktop-xl {
|
|
199
|
-
font-size: 1.75rem; } }
|
|
200
|
-
|
|
201
|
-
@media (min-width: 78.75rem) {
|
|
202
|
-
.pmc-u-font-size-46\@desktop-xl {
|
|
203
|
-
font-size: 2.875rem; } }
|
|
204
|
-
|
|
205
|
-
.pmc-u-font-weight-light {
|
|
206
|
-
font-weight: 300; }
|
|
207
|
-
|
|
208
|
-
.pmc-u-font-weight-normal {
|
|
209
|
-
font-weight: 400; }
|
|
210
|
-
|
|
211
|
-
.pmc-u-font-weight-bold {
|
|
212
|
-
font-weight: 700; }
|
|
213
|
-
|
|
214
|
-
.pmc-u-height-100p {
|
|
215
|
-
height: 100%; }
|
|
216
|
-
|
|
217
|
-
.pmc-u-max-height-50 {
|
|
218
|
-
max-height: 3.125rem; }
|
|
219
|
-
|
|
220
|
-
.pmc-u-height-16 {
|
|
221
|
-
height: 1rem; }
|
|
222
|
-
|
|
223
|
-
.pmc-u-line-height-small {
|
|
224
|
-
line-height: 1.1; }
|
|
225
|
-
|
|
226
|
-
.pmc-u-line-height-normal {
|
|
227
|
-
line-height: 1.35; }
|
|
228
|
-
|
|
229
|
-
.pmc-u-line-height-copy {
|
|
230
|
-
line-height: 1.5; }
|
|
231
|
-
|
|
232
|
-
.pmc-u-line-height-large {
|
|
233
|
-
line-height: 1.85; }
|
|
234
|
-
|
|
235
|
-
.pmc-u-margin-t-050 {
|
|
236
|
-
margin-top: 0.5rem; }
|
|
237
|
-
|
|
238
|
-
.pmc-u-margin-t-1 {
|
|
239
|
-
margin-top: 1rem; }
|
|
240
|
-
|
|
241
|
-
.pmc-u-margin-t-2 {
|
|
242
|
-
margin-top: 2rem; }
|
|
243
|
-
|
|
244
|
-
.pmc-u-margin-r-025 {
|
|
245
|
-
margin-right: 0.25rem; }
|
|
246
|
-
|
|
247
|
-
.pmc-u-margin-r-050 {
|
|
248
|
-
margin-right: 0.5rem; }
|
|
249
|
-
|
|
250
|
-
.pmc-u-margin-r-1 {
|
|
251
|
-
margin-right: 1rem; }
|
|
252
|
-
|
|
253
|
-
.pmc-u-margin-r-2 {
|
|
254
|
-
margin-right: 2rem; }
|
|
255
|
-
|
|
256
|
-
.pmc-u-margin-b-00 {
|
|
257
|
-
margin-bottom: 0; }
|
|
258
|
-
|
|
259
|
-
.pmc-u-margin-b-2 {
|
|
260
|
-
margin-bottom: 2rem; }
|
|
261
|
-
|
|
262
|
-
.pmc-u-margin-b-050 {
|
|
263
|
-
margin-bottom: 0.5rem; }
|
|
264
|
-
|
|
265
|
-
.pmc-u-margin-b-1 {
|
|
266
|
-
margin-bottom: 1rem; }
|
|
267
|
-
|
|
268
|
-
.pmc-u-margin-b-025 {
|
|
269
|
-
margin-bottom: 0.25rem; }
|
|
270
|
-
|
|
271
|
-
.pmc-u-margin-l-025 {
|
|
272
|
-
margin-left: 0.25rem; }
|
|
273
|
-
|
|
274
|
-
.pmc-u-margin-l-050 {
|
|
275
|
-
margin-left: 0.5rem; }
|
|
276
|
-
|
|
277
|
-
.pmc-u-margin-l-1 {
|
|
278
|
-
margin-left: 1rem; }
|
|
279
|
-
|
|
280
|
-
.pmc-u-margin-l-2 {
|
|
281
|
-
margin-left: 2rem; }
|
|
282
|
-
|
|
283
|
-
.pmc-u-margin-lr-025 {
|
|
284
|
-
margin-right: 0.25rem;
|
|
285
|
-
margin-left: 0.25rem; }
|
|
286
|
-
|
|
287
|
-
.pmc-u-margin-lr-050 {
|
|
288
|
-
margin-right: 0.5rem;
|
|
289
|
-
margin-left: 0.5rem; }
|
|
290
|
-
|
|
291
|
-
.pmc-u-margin-lr-1 {
|
|
292
|
-
margin-right: 1rem;
|
|
293
|
-
margin-left: 1rem; }
|
|
294
|
-
|
|
295
|
-
.pmc-u-margin-tb-00 {
|
|
296
|
-
margin-top: 0;
|
|
297
|
-
margin-bottom: 0; }
|
|
298
|
-
|
|
299
|
-
.pmc-u-margin-tb-050 {
|
|
300
|
-
margin-top: 0.5rem;
|
|
301
|
-
margin-bottom: 0.5rem; }
|
|
302
|
-
|
|
303
|
-
.pmc-u-margin-tb-1 {
|
|
304
|
-
margin-top: 1rem;
|
|
305
|
-
margin-bottom: 1rem; }
|
|
306
|
-
|
|
307
|
-
.pmc-u-margin-tb-2 {
|
|
308
|
-
margin-top: 2rem;
|
|
309
|
-
margin-bottom: 2rem; }
|
|
310
|
-
|
|
311
|
-
.pmc-u-margin-a-00 {
|
|
312
|
-
margin: 0; }
|
|
313
|
-
|
|
314
|
-
.pmc-u-margin-l-auto {
|
|
315
|
-
margin-left: auto; }
|
|
316
|
-
|
|
317
|
-
.pmc-u-margin-lr-auto {
|
|
318
|
-
margin-left: auto;
|
|
319
|
-
margin-right: auto; }
|
|
320
|
-
|
|
321
|
-
@media (min-width: 48rem) {
|
|
322
|
-
.pmc-u-margin-l-auto\@tablet {
|
|
323
|
-
margin-left: auto; } }
|
|
324
|
-
|
|
325
|
-
@media (max-width: 47.999rem) {
|
|
326
|
-
.pmc-u-order-100\@mobile-max {
|
|
327
|
-
order: 100; } }
|
|
328
|
-
|
|
329
|
-
.pmc-u-overflow-auto {
|
|
330
|
-
overflow: auto; }
|
|
331
|
-
|
|
332
|
-
.pmc-u-padding-t-050 {
|
|
333
|
-
padding-top: 0.5rem; }
|
|
334
|
-
|
|
335
|
-
.pmc-u-padding-t-1 {
|
|
336
|
-
padding-top: 1rem; }
|
|
337
|
-
|
|
338
|
-
.pmc-u-padding-t-2 {
|
|
339
|
-
padding-top: 2rem; }
|
|
340
|
-
|
|
341
|
-
.pmc-u-padding-r-025 {
|
|
342
|
-
padding-right: 0.25rem; }
|
|
343
|
-
|
|
344
|
-
.pmc-u-padding-r-050 {
|
|
345
|
-
padding-right: 0.5rem; }
|
|
346
|
-
|
|
347
|
-
.pmc-u-padding-r-1 {
|
|
348
|
-
padding-right: 1rem; }
|
|
349
|
-
|
|
350
|
-
.pmc-u-padding-r-00 {
|
|
351
|
-
padding-right: 0; }
|
|
352
|
-
|
|
353
|
-
.pmc-u-padding-b-00 {
|
|
354
|
-
padding-bottom: 0; }
|
|
355
|
-
|
|
356
|
-
.pmc-u-padding-b-025 {
|
|
357
|
-
padding-bottom: 0.25rem; }
|
|
358
|
-
|
|
359
|
-
.pmc-u-padding-b-050 {
|
|
360
|
-
padding-bottom: 0.5rem; }
|
|
361
|
-
|
|
362
|
-
.pmc-u-padding-b-1 {
|
|
363
|
-
padding-bottom: 1rem; }
|
|
364
|
-
|
|
365
|
-
.pmc-u-padding-b-2 {
|
|
366
|
-
padding-bottom: 2rem; }
|
|
367
|
-
|
|
368
|
-
.pmc-u-padding-t-025 {
|
|
369
|
-
padding-top: 0.25rem; }
|
|
370
|
-
|
|
371
|
-
.pmc-u-padding-l-1 {
|
|
372
|
-
padding-left: 1rem; }
|
|
373
|
-
|
|
374
|
-
.pmc-u-padding-l-2 {
|
|
375
|
-
padding-left: 2rem; }
|
|
376
|
-
|
|
377
|
-
.pmc-u-padding-lr-025 {
|
|
378
|
-
padding-right: 0.25rem;
|
|
379
|
-
padding-left: 0.25rem; }
|
|
380
|
-
|
|
381
|
-
.pmc-u-padding-lr-050 {
|
|
382
|
-
padding-right: 0.5rem;
|
|
383
|
-
padding-left: 0.5rem; }
|
|
384
|
-
|
|
385
|
-
.pmc-u-padding-lr-1 {
|
|
386
|
-
padding-right: 1rem;
|
|
387
|
-
padding-left: 1rem; }
|
|
388
|
-
|
|
389
|
-
.pmc-u-padding-lr-2 {
|
|
390
|
-
padding-right: 2rem;
|
|
391
|
-
padding-left: 2rem; }
|
|
392
|
-
|
|
393
|
-
.pmc-u-padding-tb-025 {
|
|
394
|
-
padding-top: 0.25rem;
|
|
395
|
-
padding-bottom: 0.25rem; }
|
|
396
|
-
|
|
397
|
-
.pmc-u-padding-tb-050 {
|
|
398
|
-
padding-top: 0.5rem;
|
|
399
|
-
padding-bottom: 0.5rem; }
|
|
400
|
-
|
|
401
|
-
.pmc-u-padding-tb-075 {
|
|
402
|
-
padding-top: 0.75rem;
|
|
403
|
-
padding-bottom: 0.75rem; }
|
|
404
|
-
|
|
405
|
-
.pmc-u-padding-tb-1 {
|
|
406
|
-
padding-top: 1rem;
|
|
407
|
-
padding-bottom: 1rem; }
|
|
408
|
-
|
|
409
|
-
.pmc-u-padding-tb-2 {
|
|
410
|
-
padding-top: 2rem;
|
|
411
|
-
padding-bottom: 2rem; }
|
|
412
|
-
|
|
413
|
-
.pmc-u-padding-a-00 {
|
|
414
|
-
padding: 0; }
|
|
415
|
-
|
|
416
|
-
.pmc-u-padding-a-025 {
|
|
417
|
-
padding: 0.25rem; }
|
|
418
|
-
|
|
419
|
-
.pmc-u-padding-a-050 {
|
|
420
|
-
padding: 0.5rem; }
|
|
421
|
-
|
|
422
|
-
.pmc-u-padding-a-1 {
|
|
423
|
-
padding: 1rem; }
|
|
424
|
-
|
|
425
|
-
.pmc-u-padding-a-2 {
|
|
426
|
-
padding: 2rem; }
|
|
427
|
-
|
|
428
|
-
@media (max-width: 47.999rem) {
|
|
429
|
-
.pmc-u-padding-tb-025\@mobile-max {
|
|
430
|
-
padding-top: 0.25rem;
|
|
431
|
-
padding-bottom: 0.25rem; } }
|
|
432
|
-
|
|
433
|
-
@media (min-width: 48rem) {
|
|
434
|
-
.pmc-u-padding-t-050\@tablet {
|
|
435
|
-
padding-top: 0.5rem; } }
|
|
436
|
-
|
|
437
|
-
@media (min-width: 62.5rem) {
|
|
438
|
-
.pmc-u-padding-tb-050\@desktop {
|
|
439
|
-
padding-top: 0.5rem;
|
|
440
|
-
padding-bottom: 0.5rem; } }
|
|
441
|
-
|
|
442
|
-
.pmc-u-text-align-center {
|
|
443
|
-
text-align: center; }
|
|
444
|
-
|
|
445
|
-
@media (max-width: 47.999rem) {
|
|
446
|
-
.pmc-u-text-align-center\@mobile-max {
|
|
447
|
-
text-align: center; } }
|
|
448
|
-
|
|
449
|
-
@media (min-width: 48rem) {
|
|
450
|
-
.pmc-u-text-align-center\@tablet {
|
|
451
|
-
text-align: center; } }
|
|
452
|
-
|
|
453
|
-
.pmc-u-text-transform-uppercase {
|
|
454
|
-
text-transform: uppercase; }
|
|
455
|
-
|
|
456
|
-
.pmc-u-whitespace-nowrap {
|
|
457
|
-
white-space: nowrap; }
|
|
458
|
-
|
|
459
|
-
.pmc-u-width-16 {
|
|
460
|
-
width: 1rem; }
|
|
461
|
-
|
|
462
|
-
.pmc-u-width-100p {
|
|
463
|
-
width: 100%; }
|
|
464
|
-
|
|
465
|
-
.pmc-u-max-width-100p {
|
|
466
|
-
max-width: 100%; }
|
|
467
|
-
|
|
468
|
-
@media (max-width: 47.999rem) {
|
|
469
|
-
.pmc-u-width-100p\@mobile-max {
|
|
470
|
-
width: 100%; } }
|
|
471
|
-
|
|
472
|
-
.pmc-u-max-width-150 {
|
|
473
|
-
max-width: 9.375rem; }
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
function describe( testString, tests ) {
|
|
2
|
-
console.group( testString );
|
|
3
|
-
tests();
|
|
4
|
-
console.groupEnd();
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
function it( testString, test ) {
|
|
8
|
-
let testResult = test();
|
|
9
|
-
let color = ( false === testResult.result ) ? 'red' : 'green';
|
|
10
|
-
|
|
11
|
-
console.log( `%c ${testString} ${testResult.message}`, `color:${color}` );
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
function assertEquals( value1, value2 ) {
|
|
15
|
-
let message = '';
|
|
16
|
-
let expression = value1 % value2 < 1;
|
|
17
|
-
|
|
18
|
-
if ( false === expression ) {
|
|
19
|
-
message = '\n \t Fail: ' + (value1 % value2).toFixed(1);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
return {
|
|
23
|
-
result: expression,
|
|
24
|
-
message: message
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
function tests() {
|
|
29
|
-
|
|
30
|
-
describe( 'a-space-children-vertical', () => {
|
|
31
|
-
|
|
32
|
-
const parents = document.querySelectorAll( '.a-space-children-vertical' );
|
|
33
|
-
|
|
34
|
-
if ( parents.length > 0 ) {
|
|
35
|
-
|
|
36
|
-
parents.forEach( parent => {
|
|
37
|
-
const children = parent.children;
|
|
38
|
-
const parentBox = parent.getBoundingClientRect();
|
|
39
|
-
|
|
40
|
-
console.log( 'Node:', parent );
|
|
41
|
-
|
|
42
|
-
it( 'does not apply a space above the first item', () => {
|
|
43
|
-
let kid = children[0];
|
|
44
|
-
|
|
45
|
-
return assertEquals( parentBox.top, kid.getBoundingClientRect().top );
|
|
46
|
-
});
|
|
47
|
-
|
|
48
|
-
it( 'spaces children', () => {
|
|
49
|
-
let kid1Box = children[0].getBoundingClientRect();
|
|
50
|
-
let kid2Box = children[1].getBoundingClientRect();
|
|
51
|
-
let parentStyles = window.getComputedStyle( parent );
|
|
52
|
-
let spaceInPixels = parseInt( parentStyles.getPropertyValue( '--a-space-children-spacer' ) ) * 16;
|
|
53
|
-
|
|
54
|
-
return assertEquals( kid1Box.bottom, ( kid2Box.top - spaceInPixels ) );
|
|
55
|
-
});
|
|
56
|
-
|
|
57
|
-
it( 'does not apply a space below the last item', () => {
|
|
58
|
-
let kid = children[ children.length - 1 ];
|
|
59
|
-
|
|
60
|
-
return assertEquals( parentBox.bottom, kid.getBoundingClientRect().bottom );
|
|
61
|
-
});
|
|
62
|
-
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
});
|
|
67
|
-
|
|
68
|
-
describe( 'a-space-children-horizontal', () => {
|
|
69
|
-
|
|
70
|
-
const parents = document.querySelectorAll( '.a-space-children-horizontal' );
|
|
71
|
-
|
|
72
|
-
if ( parents.length > 0 ) {
|
|
73
|
-
|
|
74
|
-
parents.forEach( parent => {
|
|
75
|
-
const children = parent.children;
|
|
76
|
-
const parentBox = parent.getBoundingClientRect();
|
|
77
|
-
|
|
78
|
-
console.log( 'Node:', parent );
|
|
79
|
-
|
|
80
|
-
it( 'does not apply a space left of the first item', () => {
|
|
81
|
-
let kid = children[0];
|
|
82
|
-
|
|
83
|
-
return assertEquals( parentBox.left, kid.getBoundingClientRect().left );
|
|
84
|
-
});
|
|
85
|
-
|
|
86
|
-
it( 'spaces children', () => {
|
|
87
|
-
let kid1 = children[0].getBoundingClientRect();
|
|
88
|
-
let kid2 = children[1].getBoundingClientRect();
|
|
89
|
-
|
|
90
|
-
const spaceInPixels = parseInt( window.getComputedStyle( parent ).getPropertyValue( '--a-space-children-spacer' ) ) * 16;
|
|
91
|
-
|
|
92
|
-
return assertEquals( kid1.right, ( parseInt(kid2.left) - spaceInPixels ) );
|
|
93
|
-
});
|
|
94
|
-
|
|
95
|
-
});
|
|
96
|
-
|
|
97
|
-
}
|
|
98
|
-
});
|
|
99
|
-
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
window.addEventListener( 'load', function() {
|
|
103
|
-
tests();
|
|
104
|
-
});
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="UTF-8">
|
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
-
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
|
7
|
-
<title>Document</title>
|
|
8
|
-
<link rel="stylesheet" href="a-truncate-children.css">
|
|
9
|
-
</head>
|
|
10
|
-
<body>
|
|
11
|
-
<div class="a-truncate-children">
|
|
12
|
-
<p>This text will be truncated when it's parent has a width. Lorem ipsum dolor sit amet consectetur adipisicing elit. Maxime eveniet ad dicta voluptas minus, voluptatem veniam tempore nemo iste cum dolorem modi deserunt. Porro voluptates inventore qui odit, tempora nam.</p>
|
|
13
|
-
</div>
|
|
14
|
-
</body>
|
|
15
|
-
</html>
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
@import '@penskemediacorp/larva-scss/dist/tokens';
|
|
2
|
-
|
|
3
|
-
:root {
|
|
4
|
-
--font-family-primary: #{map-get( $semantic-font-families, 'helvetica' )};
|
|
5
|
-
--font-family-primary-fancy: #{map-get( $semantic-font-families, 'balto' )};
|
|
6
|
-
--font-family-secondary: #{map-get( $semantic-font-families, 'georgia' )};
|
|
7
|
-
--font-family-secondary-fancy: #{map-get( $semantic-font-families, 'eksell' )};
|
|
8
|
-
|
|
9
|
-
--font-family-basic: #{map-get( $semantic-font-families, 'helvetica' )};
|
|
10
|
-
|
|
11
|
-
--site-max-width: #{$screen-desktop-xl};
|
|
12
|
-
|
|
13
|
-
--color-brand-primary: #{map-get( $semantic-color-list, brand-primary )};
|
|
14
|
-
--color-grey-lightest: #{map-get( $semantic-color-list, grey-lightest )};
|
|
15
|
-
--color-grey-light: #{map-get( $semantic-color-list, grey-light )};
|
|
16
|
-
--color-grey: #{map-get( $semantic-color-list, grey )};
|
|
17
|
-
--color-grey-medium-dark: #{map-get( $semantic-color-list, grey-medium-dark )};
|
|
18
|
-
}
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import './a-glue.scss';
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="UTF-8">
|
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
-
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
|
7
|
-
<title>Document</title>
|
|
8
|
-
<link rel="stylesheet" href="../../build/css/common.async.css">
|
|
9
|
-
<link rel="stylesheet" href="../../build/css/common.inline.css">
|
|
10
|
-
<script src="../../test-setup.js"></script>
|
|
11
|
-
<script src="./a-icon.browser-test.js"></script>
|
|
12
|
-
</head>
|
|
13
|
-
<body>
|
|
14
|
-
<p><span class="a-icon-before a-icon-arrow-right">Hello</span></p>
|
|
15
|
-
<p><span class="a-icon-before a-icon-arrow-left">Hello</span></p>
|
|
16
|
-
<p><span class="a-icon-before a-icon-forward-slash">Hi</span></p>
|
|
17
|
-
<p><span class="a-icon-after a-icon-arrow-down">Hi</span></p>
|
|
18
|
-
<div style="height:20px;width:30px" class="a-icon a-icon-envelope"></div>
|
|
19
|
-
</body>
|
|
20
|
-
</html>
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
@import '@penskemediacorp/larva-scss/dist/generators';
|
|
2
|
-
@import '@penskemediacorp/larva-scss/dist/tokens';
|
|
3
|
-
|
|
4
|
-
$color_list: (
|
|
5
|
-
white: white,
|
|
6
|
-
);
|
|
7
|
-
|
|
8
|
-
@include pmc-u-background( (
|
|
9
|
-
white,
|
|
10
|
-
black,
|
|
11
|
-
), $semantic-color-list );
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
.pmc-u-background-brand-primary,
|
|
15
|
-
.pmc-u-background-brand-primary\:hover:hover {
|
|
16
|
-
background-color: map-get( $semantic-color-list, brand-primary );
|
|
17
|
-
background-color: var( --color-brand-primary );
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.pmc-u-background-grey-lightest {
|
|
21
|
-
background-color: map-get( $semantic-color-list, grey-lightest );
|
|
22
|
-
background-color: var( --color-grey-lightest );
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.pmc-u-background-grey-light {
|
|
26
|
-
background-color: map-get( $semantic-color-list, grey-light );
|
|
27
|
-
background-color: var( --color-grey-light );
|
|
28
|
-
}
|