@penskemediacorp/larva-css 0.5.3 → 0.5.6
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/__tests__/fixtures/expected.js +19 -31
- package/build/css/algorithms.common.async.css +2 -1
- package/build/css/algorithms.common.inline.css +11 -9
- package/build/css/js.common.async.css +2 -1
- package/build/css/utilities.common.async.css +2 -1
- package/build/css/utilities.common.inline.css +7 -5
- package/lib/generators.js +18 -13
- package/package.json +4 -4
- 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 +7 -0
- package/src/02-algorithms/a-crop/a-crop.common.inline.scss +17 -0
- package/src/02-algorithms/a-floated/a-floated.common.inline.scss +6 -0
- package/src/02-algorithms/a-glue/a-glue.common.inline.scss +4 -0
- package/src/02-algorithms/a-hidden/a-hidden.common.inline.scss +6 -0
- package/src/02-algorithms/a-icon/a-icon.common.inline.scss +17 -0
- package/src/02-algorithms/a-truncate-ellipsis/a-truncate-ellipsis.common.async.scss +55 -0
- package/src/02-algorithms/a-unstyle-link/a-unstyle-link.common.inline.scss +4 -2
- package/src/03-utilities/u-border.common.inline.scss +29 -1
- package/src/03-utilities/u-flex.common.inline.scss +6 -0
- package/src/03-utilities/u-font-size.common.inline.scss +10 -0
- package/src/03-utilities/u-letter-spacing.common.inline.scss +11 -0
- package/src/03-utilities/u-list-style.common.async.scss +3 -0
- package/src/03-utilities/u-margin.common.inline.scss +1 -1
- package/src/03-utilities/u-text-decoration.common.inline.scss +6 -0
- package/src/03-utilities/u-width.common.inline.scss +35 -0
- package/src/04-js/js-PopOver.common.async.scss +13 -0
- package/src/_generated/_a-font.scss +380 -608
|
@@ -17,3 +17,20 @@ $aspect-ratios: (
|
|
|
17
17
|
.lrv-a-crop-contain img { // Required for a-crop
|
|
18
18
|
object-fit: contain;
|
|
19
19
|
}
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
.lrv-a-crop-1x1\@tablet {
|
|
23
|
+
@include pmc-breakpoint( tablet ) {
|
|
24
|
+
|
|
25
|
+
position: relative;
|
|
26
|
+
padding-bottom: 100%;
|
|
27
|
+
|
|
28
|
+
img {
|
|
29
|
+
position: absolute;
|
|
30
|
+
width: 100%;
|
|
31
|
+
height: 100%;
|
|
32
|
+
object-fit: cover;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -78,3 +78,20 @@
|
|
|
78
78
|
.lrv-a-icon-bullet {
|
|
79
79
|
--a-icon-content: '\02022';
|
|
80
80
|
}
|
|
81
|
+
|
|
82
|
+
.lrv-a-icon-after-arrow-top-left {
|
|
83
|
+
&::before {
|
|
84
|
+
position: absolute;
|
|
85
|
+
content: '';
|
|
86
|
+
display: block;
|
|
87
|
+
width: pmc-rem(24);
|
|
88
|
+
height: pmc-rem(24);
|
|
89
|
+
left: 13%;
|
|
90
|
+
border: 2px solid map-get( $TOKENS-MAP, color-black );
|
|
91
|
+
border-right-color: transparent;
|
|
92
|
+
border-bottom-color: transparent;
|
|
93
|
+
transform: rotate( 45deg );
|
|
94
|
+
top: pmc-rem(-12);
|
|
95
|
+
background-color: $color-white;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
@import 'setup';
|
|
2
|
+
|
|
3
|
+
.lrv-a-truncate-ellipsis {
|
|
4
|
+
white-space: nowrap;
|
|
5
|
+
overflow: hidden;
|
|
6
|
+
text-overflow: ellipsis;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
@mixin _a-truncate-ellipsis($line: 1) {
|
|
10
|
+
overflow: hidden;
|
|
11
|
+
text-overflow: ellipsis;
|
|
12
|
+
display: -webkit-box;
|
|
13
|
+
-webkit-line-clamp: $line;
|
|
14
|
+
-webkit-box-orient: vertical; // stylelint-disable-line property-no-vendor-prefix
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.lrv-a-truncate-ellipsis-1line {
|
|
18
|
+
@include _a-truncate-ellipsis(1);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.lrv-a-truncate-ellipsis-2line {
|
|
22
|
+
@include _a-truncate-ellipsis(2);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.lrv-a-truncate-ellipsis-3line {
|
|
26
|
+
@include _a-truncate-ellipsis(3);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.lrv-a-truncate-ellipsis-5line {
|
|
30
|
+
@include _a-truncate-ellipsis(3);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.lrv-a-truncate-ellipsis-3line\@desktop-xl {
|
|
34
|
+
@include pmc-breakpoint( desktop-xl ) {
|
|
35
|
+
@include _a-truncate-ellipsis(3);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.lrv-a-truncate-ellipsis-5line\@desktop-xl-max {
|
|
40
|
+
@include pmc-breakpoint(desktop-xl-max) {
|
|
41
|
+
@include _a-truncate-ellipsis(5);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.lrv-a-truncate-ellipsis-1line\@tablet-desktop-only {
|
|
46
|
+
@media only screen and (max-width: $screen-desktop-xl) and (min-width: $screen-tablet) {
|
|
47
|
+
@include _a-truncate-ellipsis(1);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.lrv-a-truncate-ellipsis-2line\@mobile-max {
|
|
52
|
+
@include pmc-breakpoint(mobile-max) {
|
|
53
|
+
@include _a-truncate-ellipsis(2);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
@@ -11,14 +11,26 @@
|
|
|
11
11
|
border-top-width: 1px;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
+
.lrv-u-border-l-1 {
|
|
15
|
+
border-left-width: pmc-rem(1);
|
|
16
|
+
}
|
|
17
|
+
|
|
14
18
|
.lrv-u-border-t-3 {
|
|
15
19
|
border-top-width: 3px;
|
|
16
20
|
}
|
|
17
21
|
|
|
22
|
+
.lrv-u-border-t-5 {
|
|
23
|
+
border-top-width: pmc-rem(5);
|
|
24
|
+
}
|
|
25
|
+
|
|
18
26
|
.lrv-u-border-a-1 {
|
|
19
27
|
border-width: 1px;
|
|
20
28
|
}
|
|
21
29
|
|
|
30
|
+
.lrv-u-border-a-2 {
|
|
31
|
+
border-width: pmc-rem(2);
|
|
32
|
+
}
|
|
33
|
+
|
|
22
34
|
.lrv-u-border-a-3 {
|
|
23
35
|
border-width: 3px;
|
|
24
36
|
}
|
|
@@ -27,6 +39,10 @@
|
|
|
27
39
|
border-width: 0;
|
|
28
40
|
}
|
|
29
41
|
|
|
42
|
+
.lrv-u-border-a-5 {
|
|
43
|
+
border-width: pmc-rem(5);
|
|
44
|
+
}
|
|
45
|
+
|
|
30
46
|
.lrv-u-border-a-1\@mobile-max {
|
|
31
47
|
@include pmc-breakpoint( mobile-max ) {
|
|
32
48
|
border-width: 1px;
|
|
@@ -49,4 +65,16 @@
|
|
|
49
65
|
@include pmc-breakpoint( desktop ) {
|
|
50
66
|
border-right-width: 1px;
|
|
51
67
|
}
|
|
52
|
-
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.lrv-u-border-t-1\@desktop-xl-max {
|
|
71
|
+
@include pmc-breakpoint( desktop-xl-max ) {
|
|
72
|
+
border-top-width: pmc-rem(1);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.lrv-u-border-t-050\@desktop-xl-max {
|
|
77
|
+
@include pmc-breakpoint( desktop-xl-max ) {
|
|
78
|
+
border-top-width: pmc-rem(1);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
@@ -146,7 +146,7 @@ $margins_with_breakpoints: (
|
|
|
146
146
|
('b', $spacer-050, mobile-max),
|
|
147
147
|
('tb', $spacer-0, mobile-max),
|
|
148
148
|
('tb', $spacer-1, mobile-max),
|
|
149
|
-
|
|
149
|
+
('l', $spacer-1, tablet),
|
|
150
150
|
('r', $spacer-1, tablet),
|
|
151
151
|
('r', $spacer-0, tablet),
|
|
152
152
|
('b', $spacer-1, tablet),
|
|
@@ -3,8 +3,11 @@
|
|
|
3
3
|
$widths_map: (
|
|
4
4
|
'width-16': pmc-rem(16),
|
|
5
5
|
'width-30': pmc-rem(30),
|
|
6
|
+
'width-50': pmc-rem(50),
|
|
6
7
|
'width-100': pmc-rem(100),
|
|
8
|
+
'width-150': pmc-rem(150),
|
|
7
9
|
'width-200': pmc-rem(200),
|
|
10
|
+
'width-215': pmc-rem(215),
|
|
8
11
|
'width-300': pmc-rem(300),
|
|
9
12
|
'width-30p': 30%,
|
|
10
13
|
'width-50p': 50%,
|
|
@@ -15,8 +18,11 @@ $widths_map: (
|
|
|
15
18
|
@include basic-utility-generator( 'width', (
|
|
16
19
|
width-16,
|
|
17
20
|
width-30,
|
|
21
|
+
width-50,
|
|
18
22
|
width-100,
|
|
23
|
+
width-150,
|
|
19
24
|
width-200,
|
|
25
|
+
width-215,
|
|
20
26
|
width-300,
|
|
21
27
|
width-30p,
|
|
22
28
|
width-50p,
|
|
@@ -43,4 +49,33 @@ $widths_map: (
|
|
|
43
49
|
@include pmc-breakpoint( desktop ) {
|
|
44
50
|
width: 75%;
|
|
45
51
|
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.lrv-u-width-35\@mobile-max {
|
|
55
|
+
@include pmc-breakpoint( mobile-max ) {
|
|
56
|
+
width: pmc-rem(35);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
.lrv-u-width-154\@desktop-xl {
|
|
60
|
+
@include pmc-breakpoint(desktop-xl) {
|
|
61
|
+
width: pmc-rem(154);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.lrv-u-width-177\@tablet-and-desktop-only {
|
|
66
|
+
@media only screen and (max-width: $screen-desktop-xl) and (min-width: $screen-tablet) {
|
|
67
|
+
width: pmc-rem(177);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.lrv-u-width-36p\@desktop-xl {
|
|
72
|
+
@include pmc-breakpoint(desktop-xl) {
|
|
73
|
+
width: 36%;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.lrv-u-width-64p\@desktop-xl {
|
|
78
|
+
@include pmc-breakpoint(desktop-xl) {
|
|
79
|
+
width: 64%;
|
|
80
|
+
}
|
|
46
81
|
}
|