@transferwise/neptune-css 12.3.0 → 12.3.3

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@transferwise/neptune-css",
3
3
  "description": "Neptune CSS library",
4
- "version": "12.3.0",
4
+ "version": "12.3.3",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",
@@ -60,5 +60,5 @@
60
60
  "bin": {
61
61
  "neptune-css-upgrade-util": "scripts/neptune-css-upgrader.js"
62
62
  },
63
- "gitHead": "cd0d97bff3aea623a53f67f5d707cfe2b7744edb"
63
+ "gitHead": "51a0f19986d12e6ac8c7d2f00916b2dc165f31ad"
64
64
  }
@@ -32,7 +32,7 @@
32
32
  }
33
33
 
34
34
  .arrow {
35
- .arrow(@alert-arrow-width);
35
+ .alert-arrow(@alert-arrow-width);
36
36
  }
37
37
 
38
38
  .alert-detach.arrow {
@@ -53,7 +53,7 @@
53
53
  margin-bottom: 0;
54
54
  transition: border-color 0.15s ease-in-out;
55
55
 
56
- .arrow(@alert-arrow-width);
56
+ .alert-arrow(@alert-arrow-width);
57
57
  }
58
58
 
59
59
  .radio ~ .alert,
@@ -456,7 +456,7 @@ input[type="button"] {
456
456
  position: absolute;
457
457
  .right(var(--size-16));
458
458
 
459
- &:not(.tw-chevron) {
459
+ &:not(.tw-chevron, .tw-icon-chevron-down) {
460
460
  position: initial;
461
461
  }
462
462
 
@@ -561,24 +561,24 @@ input[type='checkbox'] {
561
561
  .has-success {
562
562
  .form-control-validation(
563
563
  var(--color-content-positive);
564
- var(--color-interactive-secondary);
565
- var(--color-interactive-secondary-hover);
564
+ var(--color-interactive-positive);
565
+ var(--color-interactive-positive-hover);
566
566
  );
567
567
  }
568
568
 
569
569
  .has-info {
570
570
  .form-control-validation(
571
571
  var(--color-content-accent);
572
- var(--color-interactive-secondary);
573
- var(--color-interactive-secondary-hover);
572
+ var(--color-interactive-accent);
573
+ var(--color-interactive-accent-hover);
574
574
  );
575
575
  }
576
576
 
577
577
  .has-warning {
578
578
  .form-control-validation(
579
579
  var(--color-content-warning);
580
- var(--color-interactive-secondary);
581
- var(--color-interactive-secondary-hover);
580
+ var(--color-interactive-warning);
581
+ var(--color-interactive-warning-hover);
582
582
  );
583
583
  }
584
584
 
@@ -1,4 +1,5 @@
1
1
  @import (reference) '../mixins/_logical-properties.less';
2
+ @import (reference) '../mixins/_arrows.less';
2
3
 
3
4
  .alert-variant(@background; @text-color; @text-hover) {
4
5
  background-color: @background;
@@ -23,55 +24,10 @@
23
24
  }
24
25
  }
25
26
 
26
- .arrow(@size: 10px) {
27
+ .alert-arrow(@size: 10px) {
27
28
  position: relative;
28
29
  .arrow-pointer(@size);
29
- .arrow-positions(@size);
30
- }
31
-
32
- .arrow-pointer(@size: 10px) {
33
- &::before {
34
- content: ' ';
35
- position: absolute;
36
- display: block;
37
- width: @size;
38
- height: @size;
39
- .left((2 * @size));
40
-
41
- top: (@size / -2);
42
- transform: rotate(45deg);
43
- clip-path: polygon(0% 0%, 0 100%, 100% 0);
44
- background-color: inherit;
45
- }
46
- }
47
-
48
- .arrow-positions(@size: 10px) {
49
- &.arrow-center::before {
50
- .left(50%);
51
30
 
52
- .margin(left, (@size / -2));
53
- }
54
-
55
- &.arrow-top::before {
56
- top: (@size / -2);
57
- bottom: auto;
58
- }
59
-
60
- &.arrow-left::before {
61
- .left((2 * @size));
62
-
63
- .right(auto);
64
- }
65
-
66
- &.arrow-right::before {
67
- .left(auto);
68
-
69
- .right((2 * @size));
70
- }
71
-
72
- &.arrow-bottom::before {
73
- top: auto;
74
- bottom: (@size / -2);
75
- transform: rotate(225deg);
76
- }
31
+ clip-path: polygon(0% 0%, 0 100%, 100% 0);
32
+ .arrow-positions(@size);
77
33
  }
@@ -32,7 +32,7 @@
32
32
  .btn-input:not(.disabled, :disabled):hover,
33
33
  .input-group-addon,
34
34
  .alert {
35
- border-color: @border-color;
35
+ border-color: @border-color !important;
36
36
  }
37
37
 
38
38
  &:active,