@linzjs/lui 22.4.0 → 22.4.2

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.
@@ -34,6 +34,8 @@
34
34
  }
35
35
 
36
36
  .lui-select-menu.szh-menu {
37
+ @include fonts.font-light;
38
+ color: colors.$base-type-color;
37
39
  z-index: 900;
38
40
  width: 92vw;
39
41
  overflow-y: scroll;
@@ -43,9 +45,6 @@
43
45
  height: auto;
44
46
  width: 240px;
45
47
  }
46
-
47
- color: colors.$base-type-color;
48
- @include fonts.font-light;
49
48
  }
50
49
 
51
50
  li.lui-select-menuItem {
@@ -12,6 +12,8 @@
12
12
  }
13
13
 
14
14
  .lui-footer {
15
+ background-color: lui.$sherpa;
16
+
15
17
  padding-top: lui.$unit-lg;
16
18
  padding-bottom: lui.$unit-lg;
17
19
 
@@ -24,22 +26,20 @@
24
26
  }
25
27
 
26
28
  .lui-footer-app-title {
29
+ @include footer-column-md-breakpoint;
27
30
  @include breakpoint(md) {
28
31
  display: flex;
29
32
  justify-content: space-between;
30
33
  }
31
-
32
- @include footer-column-md-breakpoint;
33
34
  }
34
35
 
35
36
  .lui-footer-columns {
37
+ @include footer-column-md-breakpoint;
36
38
  @include breakpoint(md) {
37
39
  display: flex;
38
40
  justify-content: space-between;
39
41
  align-items: center;
40
42
  }
41
-
42
- @include footer-column-md-breakpoint;
43
43
  }
44
44
 
45
45
  .lui-footer-container-right {
@@ -58,8 +58,6 @@
58
58
  color: lui.$iceberg;
59
59
  }
60
60
 
61
- background-color: lui.$sherpa;
62
-
63
61
  h1,
64
62
  h2,
65
63
  h3,
@@ -109,11 +109,11 @@ $headerElementPadding: spacing.$unit-xs;
109
109
  }
110
110
 
111
111
  .LuiHeaderV2-linz-logo {
112
+ vertical-align: middle;
112
113
  width: 170px;
113
114
  @include breakpoint(sm) {
114
115
  width: 200px;
115
116
  }
116
- vertical-align: middle;
117
117
  }
118
118
 
119
119
  .LuiHeaderV2-small {
@@ -205,6 +205,7 @@ $headerElementPadding: spacing.$unit-xs;
205
205
  .menu-tooltip {
206
206
  display: none;
207
207
  background-color: black;
208
+ border-radius: misc.$borderRadius;
208
209
  text-align: center;
209
210
  border-radius: 4px;
210
211
  padding: 6px 6px;
@@ -217,7 +218,6 @@ $headerElementPadding: spacing.$unit-xs;
217
218
  z-index: 10;
218
219
 
219
220
  @include drop-shadow(sm);
220
- border-radius: misc.$borderRadius;
221
221
 
222
222
  &.dark {
223
223
  color: colors.$hint;
@@ -17,12 +17,12 @@ $MaxImgWidth: toRem(280px);
17
17
  .LuiErrorPage-wrapper {
18
18
  display: grid;
19
19
  grid-template-columns: 1fr;
20
+ margin: lui.$unit-xl auto;
21
+ max-width: $MaxContentWidth;
20
22
 
21
23
  @include lui.breakpoint(md) {
22
24
  grid-template-columns: 1fr $MaxImgWidth;
23
25
  }
24
- max-width: $MaxContentWidth;
25
- margin: lui.$unit-xl auto;
26
26
  .ErrorPageHeading {
27
27
  margin-top: 0;
28
28
  }
@@ -27,20 +27,23 @@
27
27
  breakpoints.$breakpoint-xl
28
28
  );
29
29
  @include forms.formPlaceholder;
30
- border: solid 1px colors.$silver;
31
- border-radius: misc.$borderRadius;
32
- background: colors.$white;
33
- padding: {
34
- top: spacing.$unit-sm;
35
- right: spacing.$unit-lg;
36
- bottom: spacing.$unit-sm;
37
- left: spacing.$unit-xs * 2;
30
+
31
+ & {
32
+ border: solid 1px colors.$silver;
33
+ border-radius: misc.$borderRadius;
34
+ background: colors.$white;
35
+ padding: {
36
+ top: spacing.$unit-sm;
37
+ right: spacing.$unit-lg;
38
+ bottom: spacing.$unit-sm;
39
+ left: spacing.$unit-xs * 2;
40
+ }
41
+ box-sizing: border-box;
42
+ width: 100%;
43
+ resize: vertical;
44
+ min-height: 100px;
45
+ position: relative;
38
46
  }
39
- box-sizing: border-box;
40
- width: 100%;
41
- resize: vertical;
42
- min-height: 100px;
43
- position: relative;
44
47
 
45
48
  &:focus {
46
49
  outline: none;
@@ -29,11 +29,14 @@
29
29
  colors.$primary-active-btn,
30
30
  colors.$primary-active-btn
31
31
  );
32
- align-items: center;
33
- border-radius: 0 misc.$borderRadius 0 0;
34
- display: flex;
35
- justify-content: center;
36
- padding: 0;
32
+
33
+ & {
34
+ align-items: center;
35
+ border-radius: 0 misc.$borderRadius 0 0;
36
+ display: flex;
37
+ justify-content: center;
38
+ padding: 0;
39
+ }
37
40
 
38
41
  .lui-expand-icon {
39
42
  color: colors.$white;
@@ -57,7 +60,10 @@
57
60
  .lui-expand-icon {
58
61
  color: colors.$sea;
59
62
  }
60
- border-left:0;
63
+
64
+ & {
65
+ border-left:0;
66
+ }
61
67
  }
62
68
  &-secondary:hover {
63
69
  border-left:0;
@@ -77,8 +83,10 @@
77
83
  height: auto;
78
84
  }
79
85
 
80
- color: colors.$base-type-color;
81
- @include fonts.font-light;
86
+ & {
87
+ @include fonts.font-light;
88
+ color: colors.$base-type-color;
89
+ }
82
90
  }
83
91
 
84
92
  li.lui-split-button-menuItem {
@@ -35,17 +35,17 @@ body.lui-menu-drawer-open {
35
35
 
36
36
  .lui-header & {
37
37
  top: header.$headerHeightMd;
38
- height: calc(100% - #{header.$headerHeightMd});
38
+ height: calc(100% - header.$headerHeightMd);
39
39
 
40
40
  @include breakpoint(md) {
41
41
  top: header.$headerHeightLg;
42
- height: calc(100% - #{header.$headerHeightLg});
42
+ height: calc(100% - header.$headerHeightLg);
43
43
  }
44
44
  }
45
45
 
46
46
  .lui-header-small & {
47
47
  top: header.$headerHeightSm;
48
- height: calc(100% - #{header.$headerHeightSm});
48
+ height: calc(100% - header.$headerHeightSm);
49
49
  }
50
50
 
51
51
  &-closed {
@@ -97,12 +97,11 @@ body.lui-menu-drawer-open {
97
97
  border-radius: misc.$borderRadius;
98
98
  right: 0;
99
99
  top: toRem(32px); // same as menu item font size
100
+ z-index: 900; // primary menu
100
101
 
101
102
  &-closed {
102
103
  display: none;
103
104
  }
104
-
105
- z-index: 900; // primary menu
106
105
  }
107
106
 
108
107
  .LuiDrawerMenuSection-header {
@@ -11,6 +11,7 @@
11
11
  rgba(0, 161, 161, 1) 0%,
12
12
  rgba(191, 237, 246, 1) 100%
13
13
  );
14
+ position: relative;
14
15
 
15
16
  @include breakpoint(sm) {
16
17
  max-width: 800px;
@@ -20,7 +21,6 @@
20
21
  @include breakpoint(md) {
21
22
  max-width: 900px;
22
23
  }
23
- position: relative;
24
24
  }
25
25
 
26
26
  .lui-feature-header {
@@ -215,10 +215,12 @@ a.lui-button {
215
215
  colors.$tertiary-active-btn,
216
216
  #fff
217
217
  );
218
- @include fonts.font-regular();
219
218
 
220
- border: none;
221
- margin: 2px; //account for the slightly smaller button size;
219
+ & {
220
+ @include fonts.font-regular();
221
+ border: none;
222
+ margin: 2px; //account for the slightly smaller button size;
223
+ }
222
224
 
223
225
  &:hover {
224
226
  border: none;
@@ -324,12 +326,14 @@ a.lui-button {
324
326
  );
325
327
  // border bottom mimics what we have for text link styling
326
328
  //border-bottom: 1px solid;
327
- text-decoration: underline;
328
- @include fonts.font-regular();
329
- // remove the padding and margin off the buttons - used for text only buttons
330
- padding: 0;
331
- margin: 0;
332
- border-radius: 0; // remove border radius so the text underline via border bottom doesn't turn up at the ends
329
+ & {
330
+ text-decoration: underline;
331
+ @include fonts.font-regular();
332
+ // remove the padding and margin off the buttons - used for text only buttons
333
+ padding: 0;
334
+ margin: 0;
335
+ border-radius: 0; // remove border radius so the text underline via border bottom doesn't turn up at the ends
336
+ }
333
337
  //&:hover {
334
338
  // border-bottom: 1px solid;
335
339
  //}
@@ -370,14 +374,17 @@ a.lui-button {
370
374
  &-plain-text {
371
375
  // var $btnTxtCol, $btnBgCol, $borderCol
372
376
  @include button-builder(inherit, transparent, #fff, 0);
373
- // remove the padding and margin off the buttons - used for text only buttons
374
- padding: 0;
375
- margin: 0;
376
- font-family: inherit;
377
- font-size: inherit;
378
- line-height: inherit;
379
- color: inherit;
380
- font-weight: inherit;
377
+
378
+ & {
379
+ // remove the padding and margin off the buttons - used for text only buttons
380
+ padding: 0;
381
+ margin: 0;
382
+ font-family: inherit;
383
+ font-size: inherit;
384
+ line-height: inherit;
385
+ color: inherit;
386
+ font-weight: inherit;
387
+ }
381
388
 
382
389
  i,
383
390
  svg * {
@@ -431,11 +438,14 @@ a.lui-button {
431
438
  transparent,
432
439
  transparent
433
440
  );
434
- // OK, for some reason setting the line height to 44px sets the icon in the centre of the 36 X 36 box. Tested fine on Chrome, FF & Safari
435
- line-height: 44px;
436
- padding: 0;
437
- width: 36px;
438
- height: 36px;
441
+
442
+ & {
443
+ // OK, for some reason setting the line height to 44px sets the icon in the centre of the 36 X 36 box. Tested fine on Chrome, FF & Safari
444
+ line-height: 44px;
445
+ padding: 0;
446
+ width: 36px;
447
+ height: 36px;
448
+ }
439
449
 
440
450
  &:disabled {
441
451
  background-color: transparent;
@@ -33,9 +33,9 @@
33
33
  dd {
34
34
  margin-left: 0;
35
35
  padding-left: $dl-gutter-width;
36
- width: calc(100% - #{$dt-width});
36
+ width: calc(100% - $dt-width);
37
37
  @media #{$desktop} {
38
- width: calc(100% - #{$dt-width-desktop});
38
+ width: calc(100% - $dt-width-desktop);
39
39
  }
40
40
  }
41
41
 
@@ -26,22 +26,17 @@
26
26
  $min-breakpoint: 1px,
27
27
  $max-breakpoint
28
28
  ) {
29
- $u1: unit($min-breakpoint);
30
- $u2: unit($max-breakpoint);
31
- $u3: unit($min-size);
32
- $u4: unit($max-size);
29
+ $u1: math.unit($min-breakpoint);
30
+ $u2: math.unit($max-breakpoint);
31
+ $u3: math.unit($min-size);
32
+ $u4: math.unit($max-size);
33
33
 
34
34
  @if $u1 == $u2 and $u1 == $u3 and $u1 == $u4 {
35
35
  & {
36
36
  font-size: $min-size;
37
37
  @media screen and (min-width: $min-breakpoint) {
38
38
  font-size: calc(
39
- #{$min-size} + #{strip-unit($max-size - $min-size)} *
40
- (
41
- (100vw - #{$min-breakpoint}) / #{strip-unit(
42
- $max-breakpoint - $min-breakpoint
43
- )}
44
- )
39
+ $min-size + (strip-unit($max-size - $min-size)) * ((100vw - $min-breakpoint) / (strip-unit($max-breakpoint - $min-breakpoint)))
45
40
  );
46
41
  }
47
42
 
@@ -58,22 +53,17 @@
58
53
  $min-breakpoint: 1px,
59
54
  $max-breakpoint
60
55
  ) {
61
- $u1: unit($min-size);
62
- $u2: unit($max-size);
63
- $u3: unit($min-breakpoint);
64
- $u4: unit($max-breakpoint);
56
+ $u1: math.unit($min-size);
57
+ $u2: math.unit($max-size);
58
+ $u3: math.unit($min-breakpoint);
59
+ $u4: math.unit($max-breakpoint);
65
60
 
66
61
  @if $u1 == $u2 and $u1 == $u3 and $u1 == $u4 {
67
62
  & {
68
63
  line-height: $min-size;
69
64
  @media screen and (min-width: $min-breakpoint) {
70
65
  line-height: calc(
71
- #{$min-size} + #{strip-unit($max-size - $min-size)} *
72
- (
73
- (100vw - #{$min-breakpoint}) / #{strip-unit(
74
- $max-breakpoint - $min-breakpoint
75
- )}
76
- )
66
+ $min-size + (strip-unit($max-size - $min-size)) * ((100vw - $min-breakpoint) / (strip-unit($max-breakpoint - $min-breakpoint)))
77
67
  );
78
68
  }
79
69
 
@@ -117,7 +117,7 @@ $brand-secondary: $surfie;
117
117
  // System colours
118
118
 
119
119
  $visited: $teal;
120
- $selection: lighten($spray, 20%);
120
+ $selection: color.adjust($spray, $lightness: 20%);
121
121
 
122
122
  // restricted colours for btn hover states
123
123
  $primary-hover-btn: #005678;
@@ -1,3 +1,4 @@
1
+ @use "sass:color";
1
2
  @use '../../Foundation/Variables/ColorVars.scss' as colors;
2
3
 
3
4
  // ============
@@ -26,7 +27,7 @@ $todo-throb-speed: 1.2s;
26
27
  // ============
27
28
  @keyframes border-throb {
28
29
  100% {
29
- box-shadow: 0 0 4px 3px transparentize($todo-color, 0.7);
30
+ box-shadow: 0 0 4px 3px color.adjust($todo-color, $alpha: -0.7);
30
31
  }
31
32
  }
32
33
  @keyframes throb-fade {
@@ -51,8 +51,8 @@ b {
51
51
 
52
52
  sub,
53
53
  sup {
54
- @extend %small !optional;
55
54
  line-height: 0;
55
+ @extend %small !optional;
56
56
  }
57
57
 
58
58
  hr {
@@ -208,7 +208,10 @@ p.lui-small {
208
208
  @include fonts.font-regular();
209
209
  @include fluidType--size(28px, 32px, $breakpoint-sm, $breakpoint-xl);
210
210
  @include fluidType--lineHeight(36px, 40px, $breakpoint-sm, $breakpoint-xl);
211
- margin-top: spacing.$unit-xl; // 96px
211
+
212
+ & {
213
+ margin-top: spacing.$unit-xl; // 96px
214
+ }
212
215
 
213
216
  & + p {
214
217
  margin-top: spacing.$unit-sm; // 32px
@@ -220,8 +223,11 @@ p.lui-small {
220
223
  @include fonts.font-regular();
221
224
  @include fluidType--size(24px, 24px, $breakpoint-sm, $breakpoint-xl);
222
225
  @include fluidType--lineHeight(32px, 32px, $breakpoint-sm, $breakpoint-xl);
223
- letter-spacing: 0.2px;
224
- margin-top: spacing.$unit-lg; // 64px
226
+
227
+ & {
228
+ letter-spacing: 0.2px;
229
+ margin-top: spacing.$unit-lg; // 64px
230
+ }
225
231
 
226
232
  & + p {
227
233
  margin-top: spacing.$unit-sm; // 32px
@@ -233,8 +239,11 @@ p.lui-small {
233
239
  @include fonts.font-regular();
234
240
  @include fluidType--size(20px, 20px, $breakpoint-sm, $breakpoint-xl);
235
241
  @include fluidType--lineHeight(24px, 24px, $breakpoint-sm, $breakpoint-xl);
236
- letter-spacing: 0.2px;
237
- margin-top: spacing.$unit-lg; // 64px
242
+
243
+ & {
244
+ letter-spacing: 0.2px;
245
+ margin-top: spacing.$unit-lg; // 64px
246
+ }
238
247
 
239
248
  & + p {
240
249
  margin-top: spacing.$unit-sm; // 32px
@@ -253,7 +262,10 @@ p.lui-small {
253
262
  @include fonts.font-semibold();
254
263
  @include fluidType--size(14px, 14px, $breakpoint-sm, $breakpoint-xl);
255
264
  @include fluidType--lineHeight(18px, 18px, $breakpoint-sm, $breakpoint-xl);
256
- letter-spacing: 0.2px;
265
+
266
+ & {
267
+ letter-spacing: 0.2px;
268
+ }
257
269
  }
258
270
 
259
271
  // =====================
@@ -38,18 +38,18 @@ $container-padding: 2.5%;
38
38
 
39
39
  %Container--padding {
40
40
  padding: 0 $container-padding;
41
- max-width: calc(#{breakpoints.$breakpoint1} + (#{$container-padding} * 2));
41
+ max-width: calc(breakpoints.$breakpoint1 + ($container-padding * 2));
42
42
 
43
43
  @include breakpoint(sm) {
44
- max-width: calc(#{breakpoints.$breakpoint2} + (#{$container-padding} * 2));
44
+ max-width: calc(breakpoints.$breakpoint2 + ($container-padding * 2));
45
45
  }
46
46
 
47
47
  @include breakpoint(md) {
48
- max-width: calc(#{breakpoints.$breakpoint3} + (#{$container-padding} * 2));
48
+ max-width: calc(breakpoints.$breakpoint3 + ($container-padding * 2));
49
49
  }
50
50
 
51
51
  @include breakpoint(lg) {
52
- max-width: calc(#{breakpoints.$breakpoint4} + (#{$container-padding} * 2));
52
+ max-width: calc(breakpoints.$breakpoint4 + ($container-padding * 2));
53
53
  }
54
54
  }
55
55
 
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "22.4.0",
2
+ "version": "22.4.2",
3
3
  "license": "MIT",
4
4
  "repository": {
5
5
  "type": "git",
@@ -129,7 +129,7 @@
129
129
  "rollup-plugin-postcss": "^4.0.2",
130
130
  "rollup-plugin-svg": "^2.0.0",
131
131
  "rollup-plugin-typescript2": "^0.31.2",
132
- "sass": "^1.67.0",
132
+ "sass": "^1.83.4",
133
133
  "sass-loader": "^8.0.2",
134
134
  "semantic-release": "^22.0.10",
135
135
  "size-limit": "^7.0.8",