@penskemediacorp/larva-css 1.6.0-alpha.0 → 1.6.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 -63
- 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 -48
- package/build/css/utilities.common.inline.css +27 -466
- package/gulpfile.js +110 -82
- package/lib/generators.js +93 -0
- package/package.json +14 -6
- package/src/01-generic/elements.common.inline.scss +37 -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 +97 -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 +27 -0
- package/src/03-utilities/u-border.common.inline.scss +210 -5
- 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 -16
- 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 +83 -4
- package/src/03-utilities/u-filter.common.async.scss +5 -0
- package/src/03-utilities/u-flex.common.inline.scss +128 -9
- package/src/03-utilities/u-font-family.common.inline.scss +41 -16
- 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 +41 -5
- 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 +23 -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 +194 -10
- 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 -22
- 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
|
@@ -1,27 +1,146 @@
|
|
|
1
|
-
@import '
|
|
1
|
+
@import 'setup';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
$flex_basis: ( 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 85, 90, 95, 100 );
|
|
4
|
+
$breakpoints: (
|
|
5
|
+
'',
|
|
6
|
+
'mobile-max',
|
|
7
|
+
'desktop',
|
|
8
|
+
'desktop-xl'
|
|
9
|
+
);
|
|
10
|
+
|
|
11
|
+
.lrv-u-flex {
|
|
4
12
|
display: flex;
|
|
5
13
|
}
|
|
6
14
|
|
|
7
|
-
.
|
|
15
|
+
.lrv-u-flex-grow-1 {
|
|
16
|
+
flex-grow: 1;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.lrv-u-flex-shrink-0 {
|
|
20
|
+
flex-shrink: 0;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.lrv-u-flex-wrap-wrap {
|
|
24
|
+
flex-wrap: wrap;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.lrv-u-flex-direction-column {
|
|
28
|
+
flex-direction: column;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@include pmc-breakpoint( desktop ) {
|
|
32
|
+
|
|
33
|
+
.lrv-u-flex\@desktop {
|
|
34
|
+
display: flex;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.lrv-u-flex-grow-1\@desktop {
|
|
38
|
+
flex-grow: 1;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.lrv-u-flex-shrink-0\@desktop {
|
|
42
|
+
flex-shrink: 0;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.lrv-u-flex-wrap-wrap\@desktop {
|
|
46
|
+
flex-wrap: wrap;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.lrv-u-flex-direction-column\@desktop {
|
|
50
|
+
flex-direction: column;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
// Legacy - should not use @tablet and @mobile-max
|
|
56
|
+
|
|
57
|
+
.lrv-u-flex\@tablet {
|
|
8
58
|
|
|
9
59
|
@include pmc-breakpoint( tablet ) {
|
|
10
60
|
display: flex;
|
|
11
61
|
}
|
|
12
62
|
}
|
|
13
63
|
|
|
14
|
-
.
|
|
15
|
-
|
|
64
|
+
.lrv-u-flex\@desktop-xl-max {
|
|
65
|
+
@include pmc-breakpoint( desktop-xl-max ) {
|
|
66
|
+
display: flex;
|
|
67
|
+
}
|
|
16
68
|
}
|
|
17
69
|
|
|
18
|
-
.
|
|
19
|
-
|
|
70
|
+
.lrv-u-flex-direction-row-reverse\@desktop-xl-max {
|
|
71
|
+
@include pmc-breakpoint( desktop-xl-max ) {
|
|
72
|
+
flex-direction: row-reverse;
|
|
73
|
+
}
|
|
20
74
|
}
|
|
21
75
|
|
|
22
|
-
.
|
|
76
|
+
.lrv-u-flex-direction-column\@tablet {
|
|
77
|
+
|
|
78
|
+
@include pmc-breakpoint( tablet ) {
|
|
79
|
+
flex-direction: column;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.lrv-u-flex-direction-column\@mobile-max {
|
|
23
84
|
|
|
24
85
|
@include pmc-breakpoint( mobile-max ) {
|
|
25
86
|
flex-direction: column;
|
|
26
87
|
}
|
|
27
|
-
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.lrv-u-flex-direction-column\@desktop-xl {
|
|
91
|
+
@include pmc-breakpoint( desktop-xl ) {
|
|
92
|
+
flex-direction: column;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.lrv-u-flex-direction-column\@desktop-xl-max {
|
|
97
|
+
@include pmc-breakpoint(desktop-xl-max) {
|
|
98
|
+
flex-direction: column;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.lrv-u-flex-wrap-wrap\@mobile-max {
|
|
103
|
+
@include pmc-breakpoint(mobile-max) {
|
|
104
|
+
flex-wrap: wrap;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.lrv-u-flex-direction-column-reverse\@mobile-max {
|
|
109
|
+
@include pmc-breakpoint(mobile-max) {
|
|
110
|
+
flex-direction: column-reverse;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.lrv-u-flex-basis-100p\@desktop-xl-max {
|
|
115
|
+
@include pmc-breakpoint( desktop-xl-max ) {
|
|
116
|
+
flex-basis: 100%;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.lrv-u-flex-shrink-0\@mobile-max {
|
|
121
|
+
@include pmc-breakpoint( mobile-max ) {
|
|
122
|
+
flex-shrink: 0;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
@each $breakpoint in $breakpoints {
|
|
127
|
+
|
|
128
|
+
@each $size in $flex_basis {
|
|
129
|
+
$per : #{$size}#{'%'};
|
|
130
|
+
|
|
131
|
+
@if '' == $breakpoint {
|
|
132
|
+
// No breakpoint
|
|
133
|
+
.lrv-u-flex-basis-#{$size}p {
|
|
134
|
+
flex-basis: $per;
|
|
135
|
+
}
|
|
136
|
+
} @else {
|
|
137
|
+
@include pmc-breakpoint( #{$breakpoint} ) {
|
|
138
|
+
.lrv-u-flex-basis-#{$size}p\@#{$breakpoint} {
|
|
139
|
+
flex-basis: $per;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
} // end flex loop
|
|
145
|
+
|
|
146
|
+
} // end breakpoints loop
|
|
@@ -1,21 +1,46 @@
|
|
|
1
|
-
|
|
2
|
-
// The pmc-u-font-family generator can be used for brands that need A-grade support for IE11,
|
|
3
|
-
// and a PostCSS script can be created to include the basic generator verison according to
|
|
4
|
-
// configuraiton in larva.config.js.
|
|
5
|
-
|
|
6
|
-
.wf-active {
|
|
7
|
-
--font-family-primary: var( --font-family-primary-fancy );
|
|
8
|
-
--font-family-secondary: var( --font-family-secondary-fancy );
|
|
9
|
-
}
|
|
1
|
+
@import 'setup';
|
|
10
2
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
3
|
+
$warned-font-family: false;
|
|
4
|
+
|
|
5
|
+
@each $token, $value in $TOKENS-MAP {
|
|
6
|
+
$token-str: quote( $token );
|
|
7
|
+
|
|
8
|
+
@if $warned-font-family == false {
|
|
9
|
+
@warn 'Font family utilities will be will be deprecated. Please set up a-font using a style guide.';
|
|
10
|
+
$warned-font-family: true;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
// example: font-family-primary-fancy, 'Graphik', sans-serif
|
|
14
|
+
// example: font-family-primary, Helvetica
|
|
15
|
+
@if str-index( $token-str, 'font-family' ) and not str-index( $token-str, '-font-family-' ) {
|
|
14
16
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
+
// The webfont/'fancy' variation is added via custom property
|
|
18
|
+
// in generic/typography
|
|
19
|
+
@if not str-index( $token-str, 'fancy' ) {
|
|
20
|
+
.lrv-u-#{$token} {
|
|
21
|
+
font-family: $value;
|
|
22
|
+
font-family: var( --#{$token}, #{$value} );
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
17
26
|
}
|
|
18
27
|
|
|
19
|
-
|
|
20
|
-
|
|
28
|
+
//
|
|
29
|
+
// Media Queries
|
|
30
|
+
//
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
@each $token, $value in $TOKENS-MAP {
|
|
34
|
+
$token-str: quote( $token );
|
|
35
|
+
|
|
36
|
+
@if str-index( $token-str, 'font-family' ) and not str-index( $token-str, '-font-family-' ) {
|
|
37
|
+
|
|
38
|
+
@if not str-index( $token-str, 'fancy' ) {
|
|
39
|
+
|
|
40
|
+
.lrv-u-#{$token}\@desktop {
|
|
41
|
+
font-family: $value;
|
|
42
|
+
font-family: var( --#{$token}, #{$value} );
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
21
46
|
}
|
|
@@ -1,7 +1,17 @@
|
|
|
1
|
-
@import '
|
|
2
|
-
@import '@penskemediacorp/larva-scss/dist/generators';
|
|
1
|
+
@import 'setup';
|
|
3
2
|
|
|
4
|
-
@
|
|
3
|
+
@each $token, $value in $TOKENS-MAP {
|
|
4
|
+
$token-str: quote( $token );
|
|
5
|
+
|
|
6
|
+
@if str-index( $token-str, 'font-size' ) and not str-index( $token-str, '-font-size-' ) {
|
|
7
|
+
.lrv-u-#{$token} {
|
|
8
|
+
font-size: $value;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
// Generates classes .lrv-u-font-size-{int}
|
|
14
|
+
@include u-font-size(
|
|
5
15
|
(
|
|
6
16
|
($font-size-8,)
|
|
7
17
|
($font-size-10,)
|
|
@@ -17,8 +27,10 @@
|
|
|
17
27
|
($font-size-40,)
|
|
18
28
|
($font-size-50,)
|
|
19
29
|
($font-size-86,)
|
|
30
|
+
($font-size-8, mobile-max)
|
|
20
31
|
($font-size-12, mobile-max)
|
|
21
32
|
($font-size-14, mobile-max)
|
|
33
|
+
($font-size-16, mobile-max)
|
|
22
34
|
($font-size-18, mobile-max)
|
|
23
35
|
($font-size-22, mobile-max)
|
|
24
36
|
($font-size-26, mobile-max)
|
|
@@ -42,5 +54,46 @@
|
|
|
42
54
|
($font-size-32, desktop-xl,)
|
|
43
55
|
($font-size-28, desktop-xl,)
|
|
44
56
|
($font-size-46, desktop-xl,)
|
|
45
|
-
)
|
|
46
|
-
|
|
57
|
+
), $NAMESPACE: 'lrv-' );
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
//
|
|
61
|
+
// Media Queries
|
|
62
|
+
//
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
@each $token, $value in $TOKENS-MAP {
|
|
66
|
+
$token-str: quote( $token );
|
|
67
|
+
|
|
68
|
+
@if str-index( $token-str, 'font-size' ) and not str-index( $token-str, '-font-size-' ) {
|
|
69
|
+
|
|
70
|
+
@include pmc-breakpoint( desktop ) {
|
|
71
|
+
.lrv-u-#{$token}\@desktop {
|
|
72
|
+
font-size: $value;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
@each $token, $value in $TOKENS-MAP {
|
|
79
|
+
$token-str: quote( $token );
|
|
80
|
+
|
|
81
|
+
@if str-index( $token-str, 'font-size' ) and not str-index( $token-str, '-font-size-' ) {
|
|
82
|
+
|
|
83
|
+
@include pmc-breakpoint( desktop-xl ) {
|
|
84
|
+
.lrv-u-#{$token}\@desktop-xl {
|
|
85
|
+
font-size: $value;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.lrv-u-font-size-13 {
|
|
92
|
+
font-size: pmc-rem(13);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.lrv-u-font-size-13\@mobile-max {
|
|
96
|
+
@include pmc-breakpoint( mobile-max ) {
|
|
97
|
+
font-size: pmc-rem(13);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
@@ -1,12 +1,50 @@
|
|
|
1
|
-
@import '
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
@
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
);
|
|
1
|
+
@import 'setup';
|
|
2
|
+
|
|
3
|
+
$warned-font-weight: false;
|
|
4
|
+
|
|
5
|
+
@each $token, $value in $TOKENS-MAP {
|
|
6
|
+
|
|
7
|
+
@if $warned-font-weight == false {
|
|
8
|
+
@warn 'Font weight utilities will be will be deprecated. Please set up a-font using a style guide.';
|
|
9
|
+
$warned-font-weight: true;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
$token-str: quote( $token );
|
|
13
|
+
|
|
14
|
+
@if str-index( $token-str, 'font-weight' ) and not str-index( $token-str, '-font-weight-' ) {
|
|
15
|
+
.lrv-u-#{$token} {
|
|
16
|
+
font-weight: $value;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
//
|
|
23
|
+
// Media Queries
|
|
24
|
+
//
|
|
25
|
+
|
|
26
|
+
@each $token, $value in $TOKENS-MAP {
|
|
27
|
+
$token-str: quote( $token );
|
|
28
|
+
|
|
29
|
+
@if str-index( $token-str, 'font-weight' ) and not str-index( $token-str, '-font-weight-' ) {
|
|
30
|
+
|
|
31
|
+
@include pmc-breakpoint( desktop ) {
|
|
32
|
+
.lrv-u-#{$token}\@desktop {
|
|
33
|
+
font-weight: $value;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
@each $token, $value in $TOKENS-MAP {
|
|
40
|
+
$token-str: quote( $token );
|
|
41
|
+
|
|
42
|
+
@if str-index( $token-str, 'font-weight' ) and not str-index( $token-str, '-font-weight-' ) {
|
|
43
|
+
|
|
44
|
+
@include pmc-breakpoint( desktop-xl ) {
|
|
45
|
+
.lrv-u-#{$token}\@desktop-xl {
|
|
46
|
+
font-weight: $value;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
@@ -1,7 +1,43 @@
|
|
|
1
|
-
|
|
2
|
-
height: 100%;
|
|
3
|
-
}
|
|
1
|
+
@import '@penskemediacorp/larva-scss/dist/tools';
|
|
4
2
|
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
$heights_map: (
|
|
4
|
+
'height-auto': auto,
|
|
5
|
+
'height-16': pmc-rem(16),
|
|
6
|
+
'height-20': pmc-rem(20),
|
|
7
|
+
'height-24': pmc-rem(24),
|
|
8
|
+
'height-30': pmc-rem(30),
|
|
9
|
+
'height-40': pmc-rem(40),
|
|
10
|
+
'height-50': pmc-rem(50),
|
|
11
|
+
'height-100': pmc-rem(100),
|
|
12
|
+
'height-150': pmc-rem(150),
|
|
13
|
+
'height-200': pmc-rem(200),
|
|
14
|
+
'height-300': pmc-rem(300),
|
|
15
|
+
'height-20p': 20%,
|
|
16
|
+
'height-30p': 30%,
|
|
17
|
+
'height-50p': 50%,
|
|
18
|
+
'height-75p': 75%,
|
|
19
|
+
'height-100p': 100%,
|
|
20
|
+
);
|
|
21
|
+
|
|
22
|
+
@include basic-utility-generator( 'height', (
|
|
23
|
+
height-auto,
|
|
24
|
+
height-16,
|
|
25
|
+
height-20,
|
|
26
|
+
height-24,
|
|
27
|
+
height-30,
|
|
28
|
+
height-40,
|
|
29
|
+
height-50,
|
|
30
|
+
height-100,
|
|
31
|
+
height-150,
|
|
32
|
+
height-200,
|
|
33
|
+
height-300,
|
|
34
|
+
height-20p,
|
|
35
|
+
height-30p,
|
|
36
|
+
height-50p,
|
|
37
|
+
height-75p,
|
|
38
|
+
height-100p,
|
|
39
|
+
), $heights_map, $NAMESPACE: 'lrv-' );
|
|
40
|
+
|
|
41
|
+
.lrv-u-max-height-50 {
|
|
42
|
+
max-height: pmc-rem(50);
|
|
7
43
|
}
|
|
@@ -1,13 +1,49 @@
|
|
|
1
|
-
@import '
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
@
|
|
6
|
-
(
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
)
|
|
1
|
+
@import 'setup';
|
|
2
|
+
|
|
3
|
+
$warned-line-height: false;
|
|
4
|
+
|
|
5
|
+
@each $token, $value in $TOKENS-MAP {
|
|
6
|
+
$token-str: quote( $token );
|
|
7
|
+
|
|
8
|
+
@if $warned-line-height == false {
|
|
9
|
+
@warn 'Line height utilities will be will be deprecated. Please set up a-font using a style guide.';
|
|
10
|
+
$warned-line-height: true;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
@if str-index( $token-str, 'line-height' ) and not str-index( $token-str, '-line-height-' ) {
|
|
14
|
+
.lrv-u-#{$token} {
|
|
15
|
+
line-height: $value;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
//
|
|
21
|
+
// Media Queries
|
|
22
|
+
//
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
@each $token, $value in $TOKENS-MAP {
|
|
26
|
+
$token-str: quote( $token );
|
|
27
|
+
|
|
28
|
+
@if str-index( $token-str, 'line-height' ) and not str-index( $token-str, '-line-height-' ) {
|
|
29
|
+
|
|
30
|
+
@include pmc-breakpoint( desktop ) {
|
|
31
|
+
.lrv-u-#{$token}\@desktop {
|
|
32
|
+
line-height: $value;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
@each $token, $value in $TOKENS-MAP {
|
|
39
|
+
$token-str: quote( $token );
|
|
40
|
+
|
|
41
|
+
@if str-index( $token-str, 'line-height' ) and not str-index( $token-str, '-line-height-' ) {
|
|
42
|
+
|
|
43
|
+
@include pmc-breakpoint( desktop-xl ) {
|
|
44
|
+
.lrv-u-#{$token}\@desktop-xl {
|
|
45
|
+
line-height: $value;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|