@linzjs/lui 16.5.0 → 17.0.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.
@@ -53,6 +53,7 @@ button {
53
53
  border: $myStrokeWeight solid $borderCol;
54
54
  color: $btnTxtCol;
55
55
  line-height: $myBtnLineHeight;
56
+ font-weight: 600;
56
57
 
57
58
  i,
58
59
  svg * {
@@ -109,9 +110,9 @@ button {
109
110
  cursor: pointer;
110
111
  color: rgba($btnTxtColActive, 0.9);
111
112
  border: $strokeWeight solid $borderColActive;
112
- -moz-box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.2);
113
- -webkit-box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.2);
114
- box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.2);
113
+ //-moz-box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.2);
114
+ //-webkit-box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.2);
115
+ //box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.2);
115
116
 
116
117
  i,
117
118
  svg * {
@@ -146,10 +147,11 @@ a.lui-button {
146
147
  }
147
148
 
148
149
  &.lui-button-icon {
149
- padding: spacing.$unit-xxs spacing.$unit-xs*2 spacing.$unit-xs spacing.$unit-xs; // magic numbers to account for border
150
+ //padding: spacing.$unit-xxs spacing.$unit-xs*2 spacing.$unit-xs spacing.$unit-xs; // magic numbers to account for border
151
+ padding: rem(7px) rem(16px) rem(7px) rem(7px);
150
152
 
151
153
  .LuiIcon {
152
- margin: 3px 12px -7px 0; // magic numbers to allow the resize to work but to be fixed by future LUI buttons
154
+ margin: 0 8px -7px 0; // magic numbers to allow the resize to work but to be fixed by future LUI buttons
153
155
  }
154
156
 
155
157
  i {
@@ -197,16 +199,58 @@ a.lui-button {
197
199
  }
198
200
 
199
201
  &-tertiary {
202
+ @include button-builder(colors.$sea, transparent, transparent, 0px, $btnLine-height - 2px);
203
+ @include button-states-builder(
204
+ colors.$sea,
205
+ colors.$tertiary-hover-btn,
206
+ #fff,
207
+ $reversed-btn-active-txt,
208
+ colors.$tertiary-active-btn,
209
+ #fff
210
+ );
211
+ @include fonts.font-regular();
212
+
213
+ border: none;
214
+ margin: 2px; //account for the slightly smaller button size;
215
+
216
+ &:hover {
217
+ border: none;
218
+ }
219
+
220
+ &:active:enabled {
221
+ border: none;
222
+ }
223
+
224
+ &:disabled {
225
+ color: colors.$disabled-color;
226
+ background: none;
227
+ text-decoration: none;
228
+ border: none;
229
+
230
+ &:hover {
231
+ cursor: not-allowed;
232
+ border: none;
233
+ }
234
+
235
+ i,
236
+ svg * {
237
+ color: colors.$gray;
238
+ fill: colors.$gray;
239
+ }
240
+ }
241
+ }
242
+
243
+ &-success{
200
244
  // var $btnTxtCol, $btnBgCol, $borderCol, $myStrokeWeight : 2px, $myBtnLineHeight : 40px
201
245
  @include button-builder(#fff, colors.$green-btn, colors.$green-btn);
202
246
  // var $btnTxtColHover, $btnBgColHover, $borderColHover, $btnTxtColActive, $btnBgColActive, $borderColActive
203
247
  @include button-states-builder(
204
- #fff,
205
- colors.$green-hover,
206
- colors.$green-hover,
207
- $reversed-btn-active-txt,
208
- colors.$green-active,
209
- colors.$green-active
248
+ #fff,
249
+ colors.$green-hover,
250
+ colors.$green-hover,
251
+ $reversed-btn-active-txt,
252
+ colors.$green-active,
253
+ colors.$green-active
210
254
  );
211
255
  }
212
256
 
@@ -272,21 +316,38 @@ a.lui-button {
272
316
  none
273
317
  );
274
318
  // border bottom mimics what we have for text link styling
275
- border-bottom: 1px solid;
319
+ //border-bottom: 1px solid;
320
+ text-decoration: underline;
276
321
  @include fonts.font-regular();
277
322
  // remove the padding and margin off the buttons - used for text only buttons
278
323
  padding: 0;
279
324
  margin: 0;
280
325
  border-radius: 0; // remove border radius so the text underline via border bottom doesn't turn up at the ends
281
- &:hover {
282
- border-bottom: 1px solid;
326
+ //&:hover {
327
+ // border-bottom: 1px solid;
328
+ //}
329
+ &:active:enabled {
330
+ background-color: #fff;
331
+ cursor: pointer;
332
+ //color: rgba($btnTxtColActive, 0.9);
333
+ //border: $strokeWeight solid $borderColActive;
334
+ -moz-box-shadow: none;
335
+ -webkit-box-shadow: none;
336
+ box-shadow: none;
337
+
338
+ i,
339
+ svg * {
340
+ color: #fff;
341
+ fill: #fff;
342
+ }
283
343
  }
284
344
 
285
345
  &:disabled {
286
346
  color: colors.$disabled-color;
287
347
  background: none;
288
- border: 0;
289
- text-decoration: none;
348
+ //border: 0;
349
+ text-decoration: underline;
350
+
290
351
 
291
352
  &:hover {
292
353
  cursor: not-allowed;
@@ -302,7 +363,7 @@ a.lui-button {
302
363
 
303
364
  &-plain-text {
304
365
  // var $btnTxtCol, $btnBgCol, $borderCol
305
- @include button-builder(inherit, transparent, #fff);
366
+ @include button-builder(inherit, transparent, #fff, 0);
306
367
  // remove the padding and margin off the buttons - used for text only buttons
307
368
  padding: 0;
308
369
  margin: 0;
@@ -312,11 +373,20 @@ a.lui-button {
312
373
  color: inherit;
313
374
  font-weight: inherit;
314
375
 
376
+ i,
377
+ svg * {
378
+ color: colors.$gray;
379
+ fill: colors.$gray;
380
+ }
381
+
315
382
  &:disabled {
316
383
  color: colors.$disabled-color;
317
384
  background: none;
318
385
  border: 0;
319
386
  text-decoration: none;
387
+ &:hover {
388
+ cursor: not-allowed;
389
+ }
320
390
 
321
391
  i,
322
392
  svg * {
@@ -326,7 +396,22 @@ a.lui-button {
326
396
  }
327
397
  }
328
398
 
329
- &-icon-only,
399
+ &-icon-only {
400
+ width: 40px;
401
+ height: 40px;
402
+ padding: 0;
403
+
404
+ .LuiIcon {
405
+ vertical-align: top; //not sure why top makes the icon align in the center
406
+ }
407
+
408
+ i {
409
+ position: relative;
410
+ top: 6px;
411
+ margin: 0 12px 0 0;
412
+ }
413
+ }
414
+
330
415
  &-icon-only-rev,
331
416
  &-icon-only-link {
332
417
  // var $btnTxtCol, $btnBgCol, $borderCol, $myStrokeWeight : 2px, $myBtnLineHeight : 40px
@@ -382,14 +467,37 @@ a.lui-button {
382
467
  }
383
468
 
384
469
  &.lui-button-sm {
385
- line-height: 24px;
386
470
  padding: rem(3px) spacing.$unit-xs;
387
471
 
472
+ &.lui-button-text {
473
+ padding: 0;
474
+ }
475
+
476
+ &.lui-button-plain-text {
477
+ padding: 0;
478
+ }
479
+
388
480
  &.lui-button-icon {
389
481
  padding: rem(2px) rem(8px) rem(2px) spacing.$unit-xxs;
390
-
482
+
483
+ .LuiIcon {
484
+ margin: 1px 4px -5px 0; // magic numbers to allow the resize to work but to be fixed by future LUI buttons
485
+ }
486
+
487
+ i {
488
+ position: relative;
489
+ top: 6px;
490
+ margin: 0 12px 0 0;
491
+ }
492
+ }
493
+
494
+ &.lui-button-icon-only {
495
+ width: 32px;
496
+ height: 32px;
497
+ padding: 0;
498
+
391
499
  .LuiIcon {
392
- margin: 1px rem(4px) -5px 0; // magic numbers to allow the resize to work but to be fixed by future LUI buttons
500
+ vertical-align: top;
393
501
  }
394
502
 
395
503
  i {
@@ -426,8 +534,32 @@ a.lui-button {
426
534
  &.lui-button-lg {
427
535
  padding: rem(11px) rem(18px); // magic numbers to account for border
428
536
 
537
+ &.lui-button-text {
538
+ padding: 0;
539
+ }
540
+
541
+ &.lui-button-plain-text {
542
+ padding: 0;
543
+ }
544
+
429
545
  &.lui-button-icon {
430
- padding: rem(11px) spacing.$px rem(11px) spacing.$unit-sm; // magic numbers to account for border
546
+ padding: rem(11px) 16px rem(11px) spacing.$unit-sm; // magic numbers to account for border
547
+
548
+ i {
549
+ position: relative;
550
+ top: 6px;
551
+ margin: 0 rem(8px) 0 0;
552
+ }
553
+ }
554
+
555
+ &.lui-button-icon-only {
556
+ width: 48px;
557
+ height: 48px;
558
+ padding: 0; // magic numbers to account for border
559
+
560
+ .LuiIcon {
561
+ vertical-align: top;
562
+ }
431
563
 
432
564
  i {
433
565
  position: relative;
@@ -14,7 +14,7 @@
14
14
  0px 0px 3px 0px #00000026;
15
15
  }
16
16
 
17
- @if ($size == lg) {
17
+ @else if ($size == lg) {
18
18
  box-shadow: 0px 3px 12px 0px #00000026,
19
19
  0px 12px 18px 4px #00000040;
20
20
 
@@ -116,6 +116,10 @@ $primary-active-btn: $teal;
116
116
  $secondary-hover-btn: $polar;
117
117
  $secondary-active-btn: $sea;
118
118
 
119
+ $tertiary-hover-btn: $polar;
120
+ $tertiary-active-btn: $sea;
121
+ $tertiary-btn: #f0f;
122
+
119
123
  $green-hover: #107c3a;
120
124
  $green-active: #094A22;
121
125
  $green-btn: $success;
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "16.5.0",
2
+ "version": "17.0.0",
3
3
  "license": "MIT",
4
4
  "repository": {
5
5
  "type": "git",