@penskemediacorp/larva-css 1.5.0-alpha.0 → 1.5.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.
Files changed (108) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +193 -37
  3. package/__tests__/fixtures/expected.js +29 -0
  4. package/__tests__/lib/generators.test.js +11 -0
  5. package/browser-test-setup.js +26 -0
  6. package/build/css/algorithms.common.async.css +4 -0
  7. package/build/css/algorithms.common.inline.css +21 -0
  8. package/build/css/generic.common.inline.css +4 -0
  9. package/build/css/js.common.async.css +3 -0
  10. package/build/css/js.common.inline.css +6 -0
  11. package/build/css/utilities.common.async.css +8 -0
  12. package/build/css/utilities.common.inline.css +27 -0
  13. package/gulpfile.js +123 -0
  14. package/lib/generators.js +93 -0
  15. package/package.json +14 -15
  16. package/src/01-generic/elements.common.inline.scss +37 -1
  17. package/src/01-generic/forms.common.inline.scss +10 -0
  18. package/src/01-generic/side-skins.common.inline.scss +10 -0
  19. package/src/01-generic/typography.common.inline.scss +24 -13
  20. package/src/02-algorithms/README.md +65 -0
  21. package/src/02-algorithms/a-buy-now/a-buy-now.common.inline.scss +112 -0
  22. package/src/02-algorithms/a-carousel-grid/a-carousel-grid.common.inline.scss +66 -0
  23. package/src/02-algorithms/a-children-border/a-children-border.common.inline.scss +43 -0
  24. package/src/02-algorithms/a-children-link-color/a-children-link-color.common.inline.scss +15 -0
  25. package/src/02-algorithms/a-children-link-decoration/a-children-link-decoration.common.inline.scss +13 -0
  26. package/src/02-algorithms/a-counter/a-counter.common.inline.scss +26 -0
  27. package/src/02-algorithms/a-crop/README.md +17 -13
  28. package/src/02-algorithms/a-crop/a-crop.common.inline.scss +97 -12
  29. package/src/02-algorithms/a-crop/a-crop.html +2 -2
  30. package/src/02-algorithms/a-floated/a-floated.common.inline.scss +32 -0
  31. package/src/02-algorithms/a-font/a-font.common.inline.scss +3 -0
  32. package/src/02-algorithms/a-glue/a-glue.common.inline.scss +63 -6
  33. package/src/02-algorithms/a-glue/a-glue.html +3 -3
  34. package/src/02-algorithms/a-grid/README.md +141 -14
  35. package/src/02-algorithms/a-grid/a-grid.common.inline.scss +58 -6
  36. package/src/02-algorithms/a-grid/a-grid.html +4 -4
  37. package/src/02-algorithms/a-hidden/a-hidden.common.inline.scss +43 -0
  38. package/src/02-algorithms/a-hover-dropup/a-hover-dropup.common.async.scss +9 -8
  39. package/src/02-algorithms/a-hover-dropup/a-hover-dropup.html +3 -3
  40. package/src/02-algorithms/a-hover-effect/a-hover-effect.common.async.scss +25 -0
  41. package/src/02-algorithms/a-hover-effect/a-hover-effect.html +16 -0
  42. package/src/02-algorithms/a-icon/a-icon.common.async.scss +36 -0
  43. package/src/02-algorithms/a-icon/a-icon.common.inline.scss +56 -70
  44. package/src/02-algorithms/a-screen-reader-only/a-screen-reader-only.common.inline.scss +30 -0
  45. package/src/02-algorithms/a-scrollable-grid/a-scrollable-grid.common.inline.scss +52 -0
  46. package/src/02-algorithms/a-show-on-hover/a-show-on-hover.common.inline.scss +16 -0
  47. package/src/02-algorithms/a-space-children/a-space-children.common.inline.scss +88 -17
  48. package/src/02-algorithms/a-truncate-ellipsis/a-truncate-ellipsis.common.async.scss +71 -0
  49. package/src/02-algorithms/a-unstyle-button/a-unstyle-button.common.inline.scss +2 -3
  50. package/src/02-algorithms/a-unstyle-link/a-unstyle-link.common.inline.scss +7 -0
  51. package/src/02-algorithms/a-unstyle-list/a-unstyle-list.common.inline.scss +1 -1
  52. package/src/02-algorithms/a-wrapper/a-wrapper.common.inline.scss +14 -2
  53. package/src/03-utilities/u-background-color.common.async.scss +15 -0
  54. package/src/03-utilities/u-background-color.common.inline.scss +37 -0
  55. package/src/03-utilities/u-border-color.common.async.scss +38 -6
  56. package/src/03-utilities/u-border-radius.common.async.scss +27 -0
  57. package/src/03-utilities/u-border.common.inline.scss +216 -3
  58. package/src/03-utilities/u-box-alignment.common.inline.scss +64 -4
  59. package/src/03-utilities/u-box-shadow.common.async.scss +37 -3
  60. package/src/03-utilities/u-color.common.async.scss +20 -15
  61. package/src/03-utilities/u-color.common.inline.scss +39 -0
  62. package/src/03-utilities/u-cursor.common.async.scss +1 -1
  63. package/src/03-utilities/u-display.common.inline.scss +86 -3
  64. package/src/03-utilities/u-filter.common.async.scss +5 -0
  65. package/src/03-utilities/u-flex.common.inline.scss +128 -9
  66. package/src/03-utilities/u-font-family.common.inline.scss +41 -16
  67. package/src/03-utilities/u-font-size.common.inline.scss +58 -5
  68. package/src/03-utilities/u-font-style.common.inline.scss +9 -0
  69. package/src/03-utilities/u-font-weight.common.inline.scss +50 -12
  70. package/src/03-utilities/u-height.common.inline.scss +41 -5
  71. package/src/03-utilities/u-letter-spacing.common.inline.scss +11 -0
  72. package/src/03-utilities/u-line-height.common.inline.scss +49 -13
  73. package/src/03-utilities/u-list-style.common.async.scss +3 -0
  74. package/src/03-utilities/u-margin.common.inline.scss +186 -46
  75. package/src/03-utilities/u-max-width.common.inline.scss +25 -0
  76. package/src/03-utilities/u-opacity.common.inline.scss +3 -0
  77. package/src/03-utilities/u-order.common.inline.scss +23 -2
  78. package/src/03-utilities/u-overflow.common.inline.scss +15 -0
  79. package/src/03-utilities/u-padding.common.inline.scss +157 -52
  80. package/src/03-utilities/u-position.common.inline.scss +3 -0
  81. package/src/03-utilities/u-text-align.common.inline.scss +32 -3
  82. package/src/03-utilities/u-text-decoration.common.inline.scss +11 -0
  83. package/src/03-utilities/u-text-transform.common.inline.scss +14 -2
  84. package/src/03-utilities/u-transform.common.inline.scss +5 -0
  85. package/src/03-utilities/u-vertical-align.common.inline.scss +7 -0
  86. package/src/03-utilities/u-whitespace.common.inline.scss +1 -1
  87. package/src/03-utilities/u-width.common.inline.scss +191 -7
  88. package/src/04-js/README.md +5 -0
  89. package/src/04-js/js-Collapsible.common.inline.scss +15 -0
  90. package/src/04-js/js-ExpandableSearch.common.async.scss +33 -0
  91. package/src/04-js/js-Flickity.common.async.scss +91 -0
  92. package/src/04-js/js-Header.common.inline.scss +73 -0
  93. package/src/04-js/js-MegaMenu.common.inline.scss +50 -0
  94. package/src/04-js/js-MobileHeightToggle.common.inline.scss +7 -5
  95. package/src/04-js/js-PopOver.common.async.scss +13 -0
  96. package/src/04-js/js-Tooltip.common.inline.scss +17 -0
  97. package/src/04-js/js-VideoShowcase.common.inline.scss +33 -0
  98. package/src/04-js/partials/expandable-search.scss +202 -0
  99. package/src/04-js/partials/flickity.scss +149 -0
  100. package/src/_generated/_a-font.scss +1027 -0
  101. package/src/larva-ui/prism.scss +127 -0
  102. package/src/setup.scss +7 -0
  103. package/stylelint.config.js +45 -0
  104. package/src/01-generic/config.common.inline.scss +0 -20
  105. package/src/02-algorithms/a-glue/index.js +0 -1
  106. package/src/02-algorithms/a-icon/a-icon.html +0 -20
  107. package/src/02-algorithms/a-unstyle-link/a-unstyle-link.common.async.scss +0 -5
  108. package/src/03-utilities/u-background.common.async.scss +0 -14
@@ -0,0 +1,52 @@
1
+ // Scrollable Grid
2
+ //
3
+ // The scrollable grid. Parent should be overflow hidden and a width of 100%.
4
+
5
+ @import 'setup';
6
+
7
+ :root {
8
+ --scrollable-grid-column-size: calc( 5vw + #{pmc-rem( 220 )} );
9
+ }
10
+
11
+ @mixin _a-scrollable-grid {
12
+ -webkit-overflow-scrolling: touch;
13
+
14
+ display: flex;
15
+ flex-wrap: nowrap;
16
+
17
+ > * {
18
+ width: 100%;
19
+ min-width: calc( 1vw + #{pmc-rem( 260 )} );
20
+ margin-right: $spacer-150;
21
+ }
22
+
23
+ @supports ( display: grid ) {
24
+ > * {
25
+ width: unset;
26
+ min-width: unset;
27
+ margin-right: unset;
28
+ }
29
+
30
+ display: grid;
31
+ grid-auto-flow: column;
32
+ grid-template-columns: unset; // Override what is coming from pmc-a-grid.
33
+ grid-auto-columns: var( --scrollable-grid-column-size ); // Set in constants.scss.
34
+ }
35
+ }
36
+
37
+ .lrv-a-scrollable-grid\@desktop-max {
38
+
39
+ @include pmc-breakpoint( desktop-max ) {
40
+ overflow-x: scroll;
41
+ }
42
+
43
+ }
44
+
45
+ .lrv-a-scrollable-grid\@desktop-max,
46
+ .lrv-a-scrollable-grid__nested\@desktop-max {
47
+
48
+ @include pmc-breakpoint( desktop-max ) {
49
+ @include _a-scrollable-grid;
50
+ }
51
+
52
+ }
@@ -0,0 +1,16 @@
1
+ @import 'setup';
2
+
3
+ .lrv-a-show-on-hover {
4
+ opacity: 0;
5
+ visibility: hidden;
6
+ position: absolute;
7
+ top: 100%;
8
+ left: 0;
9
+ transition: opacity $transition-hover;
10
+ }
11
+
12
+ .lrv-a-show-on-hover-parent:hover .lrv-a-show-on-hover,
13
+ .lrv-a-show-on-hover-parent:focus-within .lrv-a-show-on-hover {
14
+ opacity: 1;
15
+ visibility: visible;
16
+ }
@@ -1,56 +1,127 @@
1
1
  @import '@penskemediacorp/larva-scss/dist/tokens';
2
2
  @import '@penskemediacorp/larva-scss/dist/tools';
3
3
 
4
- // Tokens Stub
5
- $spacer-050: 0.5;
6
- $spacer-1: 1;
7
- $spacer-2: 2;
8
-
9
4
  :root {
10
5
  --a-space-children-spacer: 0;
11
6
  }
12
7
 
13
8
  @mixin _a-space-children-horizontal {
14
- margin-left: $spacer-050 + rem;
9
+ margin-left: 0.50rem;
15
10
  margin-left: calc( var( --a-space-children-spacer ) * 1rem );
16
11
  }
17
12
 
18
13
  @mixin _a-space-children-vertical {
19
- margin-top: $spacer-050 + rem;
14
+ margin-top: 0.50rem;
20
15
  margin-top: calc( var( --a-space-children-spacer ) * 1rem );
21
16
  }
22
17
 
23
18
  // stylelint-disable selector-max-compound-selectors
24
- .pmc-a-space-children-horizontal > * + * {
19
+ .lrv-a-space-children-horizontal > * + * {
25
20
  @include _a-space-children-horizontal();
26
21
  }
27
22
 
28
- .pmc-a-space-children-horizontal\@tablet > * + * {
23
+ .lrv-a-space-children-horizontal\@mobile-max > * + * {
24
+ @include pmc-breakpoint( mobile-max ) {
25
+ @include _a-space-children-horizontal();
26
+ }
27
+ }
28
+
29
+ .lrv-a-space-children-horizontal\@tablet > * + * {
29
30
  @include pmc-breakpoint( tablet ) {
30
31
  @include _a-space-children-horizontal();
31
32
  }
32
33
  }
33
34
 
34
- .pmc-a-space-children-vertical > * + * {
35
+ .lrv-a-space-children-horizontal\@desktop-max > * + * {
36
+ @include pmc-breakpoint( desktop-max ) {
37
+ @include _a-space-children-horizontal();
38
+ }
39
+ }
40
+
41
+ .lrv-a-space-children-horizontal\@desktop-xl > * + * {
42
+ @include pmc-breakpoint( desktop-xl ) {
43
+ @include _a-space-children-horizontal();
44
+ }
45
+ }
46
+
47
+ .lrv-a-space-children-vertical > * + * {
35
48
  @include _a-space-children-vertical();
36
49
  }
37
50
 
38
- .pmc-a-space-children-vertical\@mobile-max > * + * {
51
+ .lrv-a-space-children-vertical\@mobile-max > * + * {
39
52
  @include pmc-breakpoint( mobile-max ) {
40
53
  @include _a-space-children-vertical();
41
54
  }
42
55
  }
43
56
 
57
+ .lrv-a-space-children-vertical\@tablet > * + * {
58
+ @include pmc-breakpoint( tablet ) {
59
+ @include _a-space-children-vertical();
60
+ }
61
+ }
62
+
63
+ .lrv-a-space-children-vertical\@desktop > * + * {
64
+ @include pmc-breakpoint( desktop ) {
65
+ @include _a-space-children-vertical();
66
+ }
67
+ }
68
+
44
69
  // stylelint-enable selector-max-compound-selectors
45
70
 
46
- .pmc-a-space-children--050 {
47
- --a-space-children-spacer: #{$spacer-050};
71
+ .lrv-a-space-children--050 {
72
+ --a-space-children-spacer: 0.50;
73
+ }
74
+
75
+ .lrv-a-space-children--1 {
76
+ --a-space-children-spacer: 1;
77
+ }
78
+
79
+ .lrv-a-space-children--150 {
80
+ --a-space-children-spacer: 1.5;
81
+ }
82
+
83
+ .lrv-a-space-children--2 {
84
+ --a-space-children-spacer: 2;
85
+ }
86
+
87
+ .lrv-a-space-children--3 {
88
+ --a-space-children-spacer: 3;
89
+ }
90
+
91
+ .lrv-a-space-children--2\@desktop-xl {
92
+ @include pmc-breakpoint( desktop-xl ) {
93
+ --a-space-children-spacer: 2;
94
+ }
48
95
  }
49
96
 
50
- .pmc-a-space-children--1 {
51
- --a-space-children-spacer: #{$spacer-1};
97
+ .lrv-a-space-children--1\@desktop-xl-max {
98
+ @include pmc-breakpoint( desktop-xl-max ) {
99
+ --a-space-children-spacer: 1;
100
+ }
101
+ }
102
+
103
+ .lrv-a-space-children--3\@desktop-xl {
104
+ @include pmc-breakpoint( desktop-xl ) {
105
+ --a-space-children-spacer: 3;
106
+ }
107
+ }
108
+
109
+ .lrv-a-space-children--4\@desktop {
110
+
111
+ @include pmc-breakpoint( desktop ) {
112
+ --a-space-children-spacer: 4;
113
+ }
114
+ }
115
+
116
+ .lrv-a-space-children--5\@desktop {
117
+
118
+ @include pmc-breakpoint( desktop ) {
119
+ --a-space-children-spacer: 5;
120
+ }
52
121
  }
53
122
 
54
- .pmc-a-space-children--2 {
55
- --a-space-children-spacer: #{$spacer-2};
123
+ .lrv-a-space-children--0\@desktop-xl {
124
+ @include pmc-breakpoint( desktop-xl ) {
125
+ --a-space-children-spacer: 0;
126
+ }
56
127
  }
@@ -0,0 +1,71 @@
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(5);
31
+ }
32
+
33
+ .lrv-a-truncate-ellipsis-6line {
34
+ @include _a-truncate-ellipsis(6);
35
+ }
36
+
37
+ .lrv-a-truncate-ellipsis-3line\@desktop-xl {
38
+ @include pmc-breakpoint( desktop-xl ) {
39
+ @include _a-truncate-ellipsis(3);
40
+ }
41
+ }
42
+
43
+ .lrv-a-truncate-ellipsis-4line\@mobile-max {
44
+ @include pmc-breakpoint(desktop-xl-max) {
45
+ @include _a-truncate-ellipsis(4);
46
+ }
47
+ }
48
+
49
+ .lrv-a-truncate-ellipsis-5line\@tablet-desktop-only {
50
+ @media only screen and (max-width: $screen-desktop-xl) and (min-width: $screen-tablet) {
51
+ @include _a-truncate-ellipsis(5);
52
+ }
53
+ }
54
+
55
+ .lrv-a-truncate-ellipsis-5line\@desktop-xl-max {
56
+ @include pmc-breakpoint(desktop-xl-max) {
57
+ @include _a-truncate-ellipsis(5);
58
+ }
59
+ }
60
+
61
+ .lrv-a-truncate-ellipsis-1line\@tablet-desktop-only {
62
+ @media only screen and (max-width: $screen-desktop-xl) and (min-width: $screen-tablet) {
63
+ @include _a-truncate-ellipsis(1);
64
+ }
65
+ }
66
+
67
+ .lrv-a-truncate-ellipsis-2line\@mobile-max {
68
+ @include pmc-breakpoint(mobile-max) {
69
+ @include _a-truncate-ellipsis(2);
70
+ }
71
+ }
@@ -1,7 +1,6 @@
1
- .pmc-a-unstyle-button {
2
- border: 0;
1
+ .lrv-a-unstyle-button {
2
+ border-width: 0;
3
3
  background-color: transparent;
4
- display: block;
5
4
  font-family: inherit;
6
5
  font-size: inherit;
7
6
  line-height: inherit;
@@ -0,0 +1,7 @@
1
+ .lrv-a-unstyle-link,
2
+ .lrv-a-unstyle-link:hover,
3
+ .lrv-a-unstyle-inner-links > a {
4
+ color: currentColor;
5
+ text-decoration: none;
6
+ }
7
+
@@ -1,4 +1,4 @@
1
- .pmc-a-unstyle-list {
1
+ .lrv-a-unstyle-list {
2
2
  list-style-type: none;
3
3
  padding-left: 0;
4
4
  margin-top: 0;
@@ -1,5 +1,17 @@
1
- .pmc-a-wrapper {
2
- max-width: var( --site-max-width );
1
+ @import 'setup';
2
+
3
+ .lrv-a-wrapper {
4
+ max-width: $screen-desktop-xl;
5
+ max-width: var( --site-max-width, #{$screen-desktop-xl} );
3
6
  margin-left: auto;
4
7
  margin-right: auto;
8
+ padding-left: $spacer-050;
9
+ padding-right: $spacer-050;
10
+ }
11
+
12
+ .lrv-a-wrapper-100vw\@mobile-max {
13
+ @include pmc-breakpoint( mobile-max ) {
14
+ width: 100vw;
15
+ margin-left: calc(50% - 50vw);
16
+ }
5
17
  }
@@ -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,7 +1,39 @@
1
- @import '@penskemediacorp/larva-scss/dist/tokens';
2
- @import '@penskemediacorp/larva-scss/dist/tools';
1
+ @import 'setup';
3
2
 
4
- .pmc-u-border-color-grey-medium-light {
5
- border-color: #{map-get( $semantic-color-list, grey-medium-light )};
6
- border-color: var( --color-grey-medium-light );
7
- }
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;
21
+ }
22
+
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
+ }
@@ -0,0 +1,27 @@
1
+ .lrv-u-border-radius-50p {
2
+ border-radius: 50%;
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,3 +1,216 @@
1
- .pmc-u-border-a-1 {
2
- border: 1px solid;
3
- }
1
+ @import '@penskemediacorp/larva-scss/dist/tools';
2
+
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);
60
+ }
61
+
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 {
89
+ @include pmc-breakpoint( mobile-max ) {
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
+ }