@transferwise/neptune-css 12.3.1 → 12.3.4

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.1",
4
+ "version": "12.3.4",
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": "f4b4b648465418fd693f8836b8de67af3022ea2b"
63
+ "gitHead": "de312422af46ffd9603ddca2c2f17afff0ff4f3f"
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
 
@@ -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
  }
@@ -14,7 +14,6 @@
14
14
  background-color: @background;
15
15
  border-color: @border;
16
16
  transition: all 0.15s ease-in-out;
17
- transition-property: color, border-color, background-color;
18
17
 
19
18
  &:not(.disabled, :disabled):focus,
20
19
  &:not(.disabled, :disabled).focus {