@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.
Files changed (27) hide show
  1. package/__tests__/fixtures/expected.js +19 -31
  2. package/build/css/algorithms.common.async.css +2 -1
  3. package/build/css/algorithms.common.inline.css +11 -9
  4. package/build/css/js.common.async.css +2 -1
  5. package/build/css/utilities.common.async.css +2 -1
  6. package/build/css/utilities.common.inline.css +7 -5
  7. package/lib/generators.js +18 -13
  8. package/package.json +4 -4
  9. package/src/02-algorithms/a-children-link-color/a-children-link-color.common.inline.scss +15 -0
  10. package/src/02-algorithms/a-children-link-decoration/a-children-link-decoration.common.inline.scss +7 -0
  11. package/src/02-algorithms/a-crop/a-crop.common.inline.scss +17 -0
  12. package/src/02-algorithms/a-floated/a-floated.common.inline.scss +6 -0
  13. package/src/02-algorithms/a-glue/a-glue.common.inline.scss +4 -0
  14. package/src/02-algorithms/a-hidden/a-hidden.common.inline.scss +6 -0
  15. package/src/02-algorithms/a-icon/a-icon.common.inline.scss +17 -0
  16. package/src/02-algorithms/a-truncate-ellipsis/a-truncate-ellipsis.common.async.scss +55 -0
  17. package/src/02-algorithms/a-unstyle-link/a-unstyle-link.common.inline.scss +4 -2
  18. package/src/03-utilities/u-border.common.inline.scss +29 -1
  19. package/src/03-utilities/u-flex.common.inline.scss +6 -0
  20. package/src/03-utilities/u-font-size.common.inline.scss +10 -0
  21. package/src/03-utilities/u-letter-spacing.common.inline.scss +11 -0
  22. package/src/03-utilities/u-list-style.common.async.scss +3 -0
  23. package/src/03-utilities/u-margin.common.inline.scss +1 -1
  24. package/src/03-utilities/u-text-decoration.common.inline.scss +6 -0
  25. package/src/03-utilities/u-width.common.inline.scss +35 -0
  26. package/src/04-js/js-PopOver.common.async.scss +13 -0
  27. package/src/_generated/_a-font.scss +380 -608
@@ -0,0 +1,7 @@
1
+ @import 'setup';
2
+
3
+ .lrv-a-children-link-decoration-underline\:hover {
4
+ & > a:hover {
5
+ text-decoration: underline;
6
+ }
7
+ }
@@ -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
+ }
@@ -23,4 +23,10 @@
23
23
  @include pmc-breakpoint( tablet ) {
24
24
  float: left;
25
25
  }
26
+ }
27
+
28
+ .lrv-a-floated-right\@tablet {
29
+ @include pmc-breakpoint(tablet) {
30
+ float: right;
31
+ }
26
32
  }
@@ -48,3 +48,7 @@
48
48
  .lrv-a-glue--b-0 {
49
49
  --a-glue-bottom: 0;
50
50
  }
51
+
52
+ .lrv-a-glue--t-100p {
53
+ --a-glue-top: 100%;
54
+ }
@@ -23,3 +23,9 @@
23
23
  @include _a-hidden;
24
24
  }
25
25
  }
26
+
27
+ .lrv-a-hidden\@desktop-xl-max {
28
+ @include pmc-breakpoint( desktop-xl-max ) {
29
+ @include _a-hidden;
30
+ }
31
+ }
@@ -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
+ }
@@ -1,5 +1,7 @@
1
1
  .lrv-a-unstyle-link,
2
- .lrv-a-unstyle-link:hover {
2
+ .lrv-a-unstyle-link:hover,
3
+ .lrv-a-unstyle-inner-links > a {
3
4
  color: currentColor;
4
- text-decoration: none;
5
+ text-decoration: none;
5
6
  }
7
+
@@ -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
+ }
@@ -66,3 +66,9 @@
66
66
  flex-direction: column;
67
67
  }
68
68
  }
69
+
70
+ .lrv-u-flex-direction-column\@desktop-xl-max {
71
+ @include pmc-breakpoint(desktop-xl-max) {
72
+ flex-direction: column;
73
+ }
74
+ }
@@ -84,4 +84,14 @@
84
84
  }
85
85
  }
86
86
  }
87
+ }
88
+
89
+ .lrv-u-font-size-13 {
90
+ font-size: pmc-rem(13);
91
+ }
92
+
93
+ .lrv-u-font-size-13\@mobile-max {
94
+ @include pmc-breakpoint( mobile-max ) {
95
+ font-size: pmc-rem(13);
96
+ }
87
97
  }
@@ -0,0 +1,11 @@
1
+ @import 'setup';
2
+
3
+ .lrv-u-letter-spacing-015 {
4
+ letter-spacing: pmc-rem(2.4);
5
+ }
6
+
7
+ .lrv-u-letter-spacing-012\@mobile-max {
8
+ @include pmc-breakpoint( mobile-max ) {
9
+ letter-spacing: pmc-rem(1.95);
10
+ }
11
+ }
@@ -0,0 +1,3 @@
1
+ .lrv-u-list-style-type-disclosure-closed {
2
+ list-style-type: disclosure-closed;
3
+ }
@@ -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),
@@ -0,0 +1,6 @@
1
+ @import '@penskemediacorp/larva-scss/dist/tools';
2
+
3
+ .lrv-u-text-decoration-underline\:hover:hover {
4
+ text-decoration: underline;
5
+ text-decoration-color: currentColor;
6
+ }
@@ -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
  }
@@ -0,0 +1,13 @@
1
+ .js-PopOver-target {
2
+ opacity: 0;
3
+ visibility: hidden;
4
+ position: absolute;
5
+ top: 100%;
6
+ left: 0;
7
+ transition: opacity 300ms cubic-bezier(0.19, 1, 0.22, 1);
8
+ }
9
+
10
+ .js-PopOver-is-opened {
11
+ opacity: 1;
12
+ visibility: visible;
13
+ }