@penskemediacorp/larva-css 1.7.0-alpha.0 → 1.7.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 +206 -19
- package/__tests__/fixtures/expected.js +29 -0
- package/__tests__/lib/generators.test.js +11 -0
- package/build/css/algorithms.common.async.css +4 -36
- package/build/css/algorithms.common.inline.css +21 -274
- package/build/css/generic.common.inline.css +4 -67
- package/build/css/js.common.async.css +3 -0
- package/build/css/js.common.inline.css +6 -9
- package/build/css/utilities.common.async.css +8 -55
- package/build/css/utilities.common.inline.css +27 -473
- 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 -13
- 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 +3 -3
- 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-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 +3 -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-transform.common.inline.scss +5 -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 +192 -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/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 -24
- 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 -25
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
@import 'setup';
|
|
2
|
+
|
|
3
|
+
@each $token, $value in $TOKENS-MAP {
|
|
4
|
+
$token-str: quote( $token );
|
|
5
|
+
|
|
6
|
+
// example: background-color-grey-lightest, #EEEEEE
|
|
7
|
+
@if str-index( $token-str, 'background-color' ) {
|
|
8
|
+
|
|
9
|
+
.lrv-u-#{$token}\:hover:hover {
|
|
10
|
+
background-color: $value;
|
|
11
|
+
background-color: var( --#{$token}, #{$value} );
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
@import 'setup';
|
|
2
|
+
|
|
3
|
+
@each $token, $value in $TOKENS-MAP {
|
|
4
|
+
$token-str: quote( $token );
|
|
5
|
+
|
|
6
|
+
@if str-index( $token-str, 'background-color' ) {
|
|
7
|
+
|
|
8
|
+
.lrv-u-#{$token} {
|
|
9
|
+
background-color: $value;
|
|
10
|
+
background-color: var( --#{$token}, #{$value} );
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
//
|
|
16
|
+
// Static Utilities
|
|
17
|
+
//
|
|
18
|
+
|
|
19
|
+
.lrv-u-background-color-transparent {
|
|
20
|
+
background-color: transparent;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
// Media Queries
|
|
24
|
+
|
|
25
|
+
@each $token, $value in $TOKENS-MAP {
|
|
26
|
+
$token-str: quote( $token );
|
|
27
|
+
|
|
28
|
+
@if str-index( $token-str, 'background-color' ) {
|
|
29
|
+
|
|
30
|
+
.lrv-u-#{$token}\@desktop {
|
|
31
|
+
@include pmc-breakpoint( desktop ) {
|
|
32
|
+
background-color: $value;
|
|
33
|
+
background-color: var( --#{$token}, #{$value} );
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -1,11 +1,39 @@
|
|
|
1
|
-
@import '
|
|
2
|
-
@import '@penskemediacorp/larva-scss/dist/tools';
|
|
1
|
+
@import 'setup';
|
|
3
2
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
@each $token, $value in $TOKENS-MAP {
|
|
4
|
+
$token-str: quote( $token );
|
|
5
|
+
|
|
6
|
+
@if str-index( $token-str, 'border-color' ) {
|
|
7
|
+
.lrv-u-#{$token} {
|
|
8
|
+
border-color: $value;
|
|
9
|
+
border-color: var( --#{$token}, #{$value} );
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.lrv-u-#{$token}\:hover:hover {
|
|
13
|
+
border-color: $value;
|
|
14
|
+
border-color: var( --#{$token}, #{$value} );
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.lrv-u-border-color-currentColor {
|
|
20
|
+
border-color: currentColor;
|
|
7
21
|
}
|
|
8
22
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
23
|
+
//
|
|
24
|
+
// Media Queries
|
|
25
|
+
//
|
|
26
|
+
|
|
27
|
+
@each $token, $value in $TOKENS-MAP {
|
|
28
|
+
$token-str: quote( $token );
|
|
29
|
+
|
|
30
|
+
@if str-index( $token-str, 'border-color' ) {
|
|
31
|
+
|
|
32
|
+
.lrv-u-#{$token}\@desktop {
|
|
33
|
+
@include pmc-breakpoint( desktop ) {
|
|
34
|
+
border-color: $value;
|
|
35
|
+
border-color: var( --#{$token}, #{$value} );
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -1,3 +1,27 @@
|
|
|
1
|
-
.
|
|
1
|
+
.lrv-u-border-radius-50p {
|
|
2
2
|
border-radius: 50%;
|
|
3
|
-
}
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.lrv-u-border-radius-100 {
|
|
6
|
+
border-radius: 100px;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.lrv-u-border-radius-5 {
|
|
10
|
+
border-radius: 5px;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.lrv-u-border-radius-br-5 {
|
|
14
|
+
border-bottom-right-radius: 5px;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.lrv-u-border-radius-bl-5 {
|
|
18
|
+
border-bottom-left-radius: 5px;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.lrv-u-border-radius-tr-5 {
|
|
22
|
+
border-top-right-radius: 5px;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.lrv-u-border-radius-tl-5 {
|
|
26
|
+
border-top-left-radius: 5px;
|
|
27
|
+
}
|
|
@@ -1,11 +1,222 @@
|
|
|
1
1
|
@import '@penskemediacorp/larva-scss/dist/tools';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
// TODO: Border widths should be generated from tokens,
|
|
4
|
+
// similar to spacing.
|
|
5
|
+
|
|
6
|
+
.lrv-u-border-b-1 {
|
|
7
|
+
border-bottom-width: 1px;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.lrv-u-border-t-1 {
|
|
11
|
+
border-top-width: 1px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.lrv-u-border-l-1 {
|
|
15
|
+
border-left-width: pmc-rem(1);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.lrv-u-border-r-1 {
|
|
19
|
+
border-right-width: pmc-rem(1);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.lrv-u-border-t-2 {
|
|
23
|
+
border-top-width: 2px;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.lrv-u-border-t-3 {
|
|
27
|
+
border-top-width: 3px;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.lrv-u-border-b-3 {
|
|
31
|
+
border-bottom-width: 3px;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.lrv-u-border-t-5 {
|
|
35
|
+
border-top-width: pmc-rem(5);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.lrv-u-border-a-1 {
|
|
39
|
+
border-width: 1px;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.lrv-u-border-a-2 {
|
|
43
|
+
border-width: pmc-rem(2);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.lrv-u-border-a-3 {
|
|
47
|
+
border-width: 3px;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.lrv-u-border-a-0 {
|
|
51
|
+
border-width: 0;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.lrv-u-border-a-5 {
|
|
55
|
+
border-width: pmc-rem(5);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.lrv-u-border-t-6 {
|
|
59
|
+
border-top-width: pmc-rem(6);
|
|
5
60
|
}
|
|
6
61
|
|
|
7
|
-
.
|
|
62
|
+
.lrv-u-border-b-6 {
|
|
63
|
+
border-bottom-width: pmc-rem(6);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.lrv-u-border-r-6 {
|
|
67
|
+
border-right-width: pmc-rem(6);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.lrv-u-border-r-2 {
|
|
71
|
+
border-right-width: pmc-rem(2);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.lrv-u-border-b-2 {
|
|
75
|
+
border-bottom-width: pmc-rem(2);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.lrv-u-border-l-2 {
|
|
79
|
+
border-left-width: pmc-rem(2);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.lrv-u-border-l-00\@mobile-max {
|
|
83
|
+
@include pmc-breakpoint(mobile-max) {
|
|
84
|
+
border-left-width: 0;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.lrv-u-border-a-1\@mobile-max {
|
|
8
89
|
@include pmc-breakpoint( mobile-max ) {
|
|
9
|
-
border: 1px
|
|
90
|
+
border-width: 1px;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
@include pmc-breakpoint( mobile-max ) {
|
|
95
|
+
.lrv-u-border-a-1\@mobile-max {
|
|
96
|
+
border-width: 1px;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.lrv-u-border-l-00\@mobile-max {
|
|
100
|
+
border-left-width: 0px;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.lrv-u-border-r-00\@mobile-max {
|
|
104
|
+
border-right-width: 0px;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.lrv-u-border-t-1\@mobile-max {
|
|
108
|
+
border-top-width: 1px;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.lrv-u-border-b-00\@mobile-max {
|
|
112
|
+
border-bottom-width: 0px;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.lrv-u-border-b-1\@mobile-max {
|
|
116
|
+
border-bottom-width: 1px;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.lrv-u-border-t-1\@mobile-max {
|
|
121
|
+
@include pmc-breakpoint( mobile-max ) {
|
|
122
|
+
border-top-width: 1px;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.lrv-u-border-t-0\@desktop {
|
|
127
|
+
@include pmc-breakpoint( desktop ) {
|
|
128
|
+
border-top-width: 0px;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
@include pmc-breakpoint( desktop ) {
|
|
133
|
+
.lrv-u-border-a-0\@desktop {
|
|
134
|
+
border-width: 0;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.lrv-u-border-t-3\@desktop {
|
|
138
|
+
border-top-width: 3px;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.lrv-u-border-b-3\@desktop {
|
|
142
|
+
border-bottom-width: 3px;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.lrv-u-border-l-1\@desktop {
|
|
147
|
+
@include pmc-breakpoint( desktop ) {
|
|
148
|
+
border-left-width: 1px;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.lrv-u-border-r-1\@desktop {
|
|
153
|
+
@include pmc-breakpoint( desktop ) {
|
|
154
|
+
border-right-width: 1px;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.lrv-u-border-r-1\@tablet {
|
|
159
|
+
@include pmc-breakpoint( tablet ) {
|
|
160
|
+
border-right-width: 1px;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.lrv-u-border-b-1\@desktop {
|
|
165
|
+
@include pmc-breakpoint( desktop ) {
|
|
166
|
+
border-bottom-width: 1px;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.lrv-u-border-l-1\@desktop-xl {
|
|
171
|
+
@include pmc-breakpoint( desktop-xl ) {
|
|
172
|
+
border-left-width: 1px;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.lrv-u-border-r-1\@desktop-xl {
|
|
177
|
+
@include pmc-breakpoint( desktop-xl ) {
|
|
178
|
+
border-right-width: 1px;
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.lrv-u-border-t-1\@desktop-xl-max {
|
|
183
|
+
@include pmc-breakpoint( desktop-xl-max ) {
|
|
184
|
+
border-top-width: pmc-rem(1);
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.lrv-u-border-t-050\@desktop-xl-max {
|
|
189
|
+
@include pmc-breakpoint( desktop-xl-max ) {
|
|
190
|
+
border-top-width: pmc-rem(1);
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.lrv-u-border-b-2\@mobile-max {
|
|
195
|
+
@include pmc-breakpoint( mobile-max ) {
|
|
196
|
+
border-bottom-width: pmc-rem(2);
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.lrv-u-border-t-1\@tablet {
|
|
201
|
+
@include pmc-breakpoint( tablet ) {
|
|
202
|
+
border-top-width: pmc-rem(1);
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.lrv-u-border-t-0\@desktop-xl {
|
|
207
|
+
@include pmc-breakpoint( desktop-xl ) {
|
|
208
|
+
border-top-width: pmc-rem(0);
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
.lrv-u-border-t-1\@desktop-xl {
|
|
213
|
+
@include pmc-breakpoint( desktop-xl ) {
|
|
214
|
+
border-top-width: pmc-rem(1);
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.lrv-u-border-b-1\@tablet {
|
|
219
|
+
@include pmc-breakpoint( tablet ) {
|
|
220
|
+
border-bottom-width: pmc-rem(1);
|
|
10
221
|
}
|
|
11
222
|
}
|
|
@@ -1,17 +1,77 @@
|
|
|
1
|
+
@import 'setup';
|
|
1
2
|
|
|
2
|
-
.
|
|
3
|
+
.lrv-u-align-items-center {
|
|
3
4
|
align-items: center;
|
|
4
5
|
}
|
|
5
6
|
|
|
6
|
-
.
|
|
7
|
+
.lrv-u-justify-content-center {
|
|
7
8
|
justify-content: center;
|
|
8
9
|
}
|
|
9
10
|
|
|
10
|
-
.
|
|
11
|
+
.lrv-u-justify-content-space-evenly {
|
|
11
12
|
justify-content: space-evenly;
|
|
12
13
|
}
|
|
13
14
|
|
|
14
|
-
.
|
|
15
|
+
.lrv-u-justify-content-space-between {
|
|
15
16
|
justify-content: space-between;
|
|
16
17
|
}
|
|
17
18
|
|
|
19
|
+
.lrv-u-align-items-start {
|
|
20
|
+
align-items: flex-start;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.lrv-u-justify-content-start {
|
|
24
|
+
justify-content: flex-start;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.lrv-u-justify-content-end {
|
|
28
|
+
justify-content: flex-end;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.lrv-u-align-items-end {
|
|
32
|
+
align-items: flex-start;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.lrv-u-align-items-stretch {
|
|
36
|
+
align-items: stretch;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
@include pmc-breakpoint( desktop ) {
|
|
40
|
+
.lrv-u-align-items-center\@desktop {
|
|
41
|
+
align-items: center;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.lrv-u-justify-content-center\@desktop {
|
|
45
|
+
justify-content: center;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.lrv-u-justify-content-space-evenly\@desktop {
|
|
49
|
+
justify-content: space-evenly;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.lrv-u-justify-content-space-between\@desktop {
|
|
53
|
+
justify-content: space-between;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.lrv-u-align-items-start\@desktop {
|
|
57
|
+
align-items: flex-start;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.lrv-u-justify-content-start\@desktop {
|
|
61
|
+
justify-content: flex-start;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.lrv-u-justify-content-end\@desktop {
|
|
65
|
+
justify-content: flex-end;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.lrv-u-align-items-end\@desktop {
|
|
69
|
+
align-items: flex-start;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.lrv-u-justify-content-center\@tablet {
|
|
74
|
+
@include pmc-breakpoint( tablet ) {
|
|
75
|
+
justify-content: center;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
@@ -1,7 +1,38 @@
|
|
|
1
|
-
@import '
|
|
1
|
+
@import 'setup';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
@each $token, $value in $TOKENS-MAP {
|
|
4
|
+
$token-str: quote( $token );
|
|
5
|
+
|
|
6
|
+
// example: box-shadow, 0 0 2px rgba(0,0,0,0.5)
|
|
7
|
+
@if str-index( $token-str, 'box-shadow' ) {
|
|
8
|
+
.lrv-u-#{$token} {
|
|
9
|
+
box-shadow: $value;
|
|
10
|
+
box-shadow: var( --#{$token}, #{$value} );
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
@each $token, $value in $TOKENS-MAP {
|
|
17
|
+
$token-str: quote( $token );
|
|
18
|
+
|
|
19
|
+
// example: box-shadow, 0 0 2px rgba(0,0,0,0.5)
|
|
20
|
+
@if str-index( $token-str, 'box-shadow' ) {
|
|
21
|
+
|
|
22
|
+
@include pmc-breakpoint( desktop ) {
|
|
23
|
+
|
|
24
|
+
.lrv-u-#{$token}\@desktop {
|
|
25
|
+
box-shadow: $value;
|
|
26
|
+
box-shadow: var( --#{$token}, #{$value} );
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
// Legacy Utility
|
|
33
|
+
|
|
34
|
+
.lrv-u-box-shadow-medium\@tablet {
|
|
4
35
|
@include pmc-breakpoint( tablet ) {
|
|
5
36
|
box-shadow: 0 -0.313rem 0.313rem rgba( 0, 0, 0, 0.15 );
|
|
6
37
|
}
|
|
7
|
-
}
|
|
38
|
+
}
|
|
@@ -1,29 +1,27 @@
|
|
|
1
|
-
@import '
|
|
1
|
+
@import 'setup';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
color: var( --color-grey-light );
|
|
6
|
-
}
|
|
3
|
+
@each $token, $value in $TOKENS-MAP {
|
|
4
|
+
$token-str: quote( $token );
|
|
7
5
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
// example: color-grey-lightest, #EEEEEE
|
|
7
|
+
@if str-index( $token-str, 'color' )
|
|
8
|
+
and not str-index( $token-str, 'background' )
|
|
9
|
+
and not str-index( $token-str, 'border' ) {
|
|
12
10
|
|
|
13
|
-
.
|
|
14
|
-
|
|
15
|
-
|
|
11
|
+
.lrv-u-#{$token}\:hover:hover {
|
|
12
|
+
color: $value;
|
|
13
|
+
color: var( --#{$token}, #{$value} );
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
.pmc-u-color-grey-medium-dark {
|
|
19
|
-
color: #{map-get( $semantic-color-list, grey-medium-dark )};
|
|
20
|
-
color: var( --color-grey-medium-dark );
|
|
21
|
-
}
|
|
22
18
|
|
|
23
|
-
|
|
24
|
-
color: map-get( $semantic-color-list, white );
|
|
25
|
-
}
|
|
19
|
+
// Static Utilities
|
|
26
20
|
|
|
27
|
-
.
|
|
28
|
-
color:
|
|
21
|
+
.lrv-u-color-currentColor {
|
|
22
|
+
color: currentColor;
|
|
29
23
|
}
|
|
24
|
+
|
|
25
|
+
.lrv-u-color-transparent {
|
|
26
|
+
color: transparent;
|
|
27
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
@import 'setup';
|
|
2
|
+
|
|
3
|
+
@each $token, $value in $TOKENS-MAP {
|
|
4
|
+
$token-str: quote( $token );
|
|
5
|
+
|
|
6
|
+
// example: color-grey-lightest, #EEEEEE
|
|
7
|
+
@if str-index( $token-str, 'color' )
|
|
8
|
+
and not str-index( $token-str, 'background' )
|
|
9
|
+
and not str-index( $token-str, 'border' ) {
|
|
10
|
+
|
|
11
|
+
.lrv-u-#{$token} {
|
|
12
|
+
color: $value;
|
|
13
|
+
color: var( --#{$token}, #{$value} );
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
//
|
|
19
|
+
// Media Queries
|
|
20
|
+
//
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
@each $token, $value in $TOKENS-MAP {
|
|
24
|
+
$token-str: quote( $token );
|
|
25
|
+
|
|
26
|
+
// example: color-grey-lightest, #EEEEEE
|
|
27
|
+
@if str-index( $token-str, 'color' )
|
|
28
|
+
and not str-index( $token-str, 'background' )
|
|
29
|
+
and not str-index( $token-str, 'border' ) {
|
|
30
|
+
|
|
31
|
+
.lrv-u-#{$token}\@desktop {
|
|
32
|
+
|
|
33
|
+
@include pmc-breakpoint( desktop ) {
|
|
34
|
+
color: $value;
|
|
35
|
+
color: var( --#{$token}, #{$value} );
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -1,15 +1,98 @@
|
|
|
1
|
-
|
|
1
|
+
@import 'setup';
|
|
2
|
+
|
|
3
|
+
.lrv-u-display-block {
|
|
2
4
|
display: block;
|
|
3
5
|
}
|
|
4
6
|
|
|
5
|
-
.
|
|
7
|
+
.lrv-u-display-contents {
|
|
8
|
+
display: contents;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.lrv-u-display-inline {
|
|
6
12
|
display: inline;
|
|
7
13
|
}
|
|
8
14
|
|
|
9
|
-
.
|
|
15
|
+
.lrv-u-display-inline-block {
|
|
10
16
|
display: inline-block;
|
|
11
17
|
}
|
|
12
18
|
|
|
13
|
-
.
|
|
19
|
+
.lrv-u-display-none {
|
|
14
20
|
display: none;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.lrv-u-display-table {
|
|
24
|
+
display: table;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.lrv-u-display-inline-flex {
|
|
28
|
+
display: inline-flex;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@include pmc-breakpoint( desktop ) {
|
|
32
|
+
|
|
33
|
+
.lrv-u-display-table\@desktop {
|
|
34
|
+
display: table;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.lrv-u-display-block\@desktop {
|
|
38
|
+
display: block;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.lrv-u-display-contents\@desktop {
|
|
42
|
+
display: contents;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.lrv-u-display-inline\@desktop {
|
|
46
|
+
display: inline;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.lrv-u-display-inline-block\@desktop {
|
|
50
|
+
display: inline-block;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.lrv-u-display-none\@desktop {
|
|
54
|
+
display: none;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.lrv-u-display-inline-flex\@desktop {
|
|
58
|
+
display: inline-flex;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
@include pmc-breakpoint( desktop-xl ) {
|
|
63
|
+
|
|
64
|
+
.lrv-u-display-none\@desktop-xl {
|
|
65
|
+
display: none;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.lrv-u-display-block\@desktop-xl {
|
|
69
|
+
display: block;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
// Legacy
|
|
74
|
+
.lrv-u-display-none\@mobile-max {
|
|
75
|
+
@include pmc-breakpoint( mobile-max ) {
|
|
76
|
+
display: none;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.lrv-u-display-none\:first-child\@desktop-max {
|
|
81
|
+
@include pmc-breakpoint( desktop-max ) {
|
|
82
|
+
&> *:first-child {
|
|
83
|
+
display: none;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.lrv-u-display-inline-block\@mobile-max {
|
|
89
|
+
@include pmc-breakpoint( mobile-max ) {
|
|
90
|
+
display: inline-block;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.lrv-u-display-block\@mobile-max {
|
|
95
|
+
@include pmc-breakpoint( mobile-max ) {
|
|
96
|
+
display: block;
|
|
97
|
+
}
|
|
15
98
|
}
|