@transferwise/neptune-css 14.9.2 → 14.9.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.
Files changed (49) hide show
  1. package/dist/css/border-radius.css +0 -8
  2. package/dist/css/flex.css +253 -417
  3. package/dist/css/navbar-base.css +339 -168
  4. package/dist/css/navbar.css +107 -41
  5. package/dist/css/neptune-addons.css +893 -421
  6. package/dist/css/neptune-core.css +200 -163
  7. package/dist/css/neptune.css +15471 -14675
  8. package/dist/css/utilities.css +72 -1202
  9. package/package.json +1 -1
  10. package/src/less/addons/_display-utilities.less +159 -0
  11. package/src/less/addons/_spacing-utilities.less +26 -3
  12. package/src/less/addons/_utilities.less +147 -0
  13. package/src/less/border-radius.less +3 -1
  14. package/src/less/core/_scaffolding.less +27 -7
  15. package/src/less/core/_typography-utilities.less +237 -17
  16. package/src/less/flex.less +18 -9
  17. package/src/less/{addons → mixins}/_center-block.less +4 -2
  18. package/src/less/mixins/_flex.less +105 -0
  19. package/src/less/navbar.less +2 -10
  20. package/src/less/neptune-addons.less +1 -4
  21. package/src/less/utilities.less +141 -29
  22. package/src/less/utilities/align-items.less +0 -107
  23. package/src/less/utilities/align-self.less +0 -107
  24. package/src/less/utilities/border-radius.less +0 -11
  25. package/src/less/utilities/color.less +0 -70
  26. package/src/less/utilities/cursor.less +0 -3
  27. package/src/less/utilities/display.less +0 -178
  28. package/src/less/utilities/flex-direction.less +0 -47
  29. package/src/less/utilities/flex-grow.less +0 -27
  30. package/src/less/utilities/flex-wrap.less +0 -47
  31. package/src/less/utilities/float.less +0 -77
  32. package/src/less/utilities/font-weight.less +0 -11
  33. package/src/less/utilities/gap.less +0 -3
  34. package/src/less/utilities/justify-content.less +0 -107
  35. package/src/less/utilities/margin.less +0 -192
  36. package/src/less/utilities/max-width.less +0 -3
  37. package/src/less/utilities/order.less +0 -87
  38. package/src/less/utilities/outline-style.less +0 -8
  39. package/src/less/utilities/overflow-wrap.less +0 -3
  40. package/src/less/utilities/padding.less +0 -179
  41. package/src/less/utilities/position.less +0 -3
  42. package/src/less/utilities/rotate.less +0 -12
  43. package/src/less/utilities/screen-reader.less +0 -24
  44. package/src/less/utilities/text-align.less +0 -87
  45. package/src/less/utilities/text-decoration-line.less +0 -8
  46. package/src/less/utilities/text-overflow.less +0 -7
  47. package/src/less/utilities/text-transform.less +0 -11
  48. package/src/less/utilities/visibility.less +0 -3
  49. package/src/less/utilities/white-space.less +0 -27
@@ -1,5 +1,7 @@
1
- .center-block {
1
+ // Center-align a block level element
2
+
3
+ .center-block() {
4
+ display: block;
2
5
  margin-left: auto;
3
6
  margin-right: auto;
4
- display: block;
5
7
  }
@@ -0,0 +1,105 @@
1
+ .flex-properties(@break-point) {
2
+ .d-flex@{break-point} {
3
+ display: flex;
4
+ }
5
+
6
+ .d-inline-flex@{break-point} {
7
+ display: inline-flex;
8
+ }
9
+
10
+ .flex-column@{break-point} {
11
+ flex-direction: column;
12
+ }
13
+
14
+ .flex-row@{break-point} {
15
+ flex-direction: row;
16
+ }
17
+
18
+ .justify-content-start@{break-point} {
19
+ justify-content: flex-start;
20
+ }
21
+
22
+ .justify-content-end@{break-point} {
23
+ justify-content: flex-end;
24
+ }
25
+
26
+ .justify-content-center@{break-point} {
27
+ justify-content: center;
28
+ }
29
+
30
+ .justify-content-between@{break-point} {
31
+ justify-content: space-between;
32
+ }
33
+
34
+ .justify-content-around@{break-point} {
35
+ justify-content: space-around;
36
+ }
37
+
38
+ .align-items-start@{break-point} {
39
+ align-items: flex-start;
40
+ }
41
+
42
+ .align-items-end@{break-point} {
43
+ align-items: flex-end;
44
+ }
45
+
46
+ .align-items-center@{break-point} {
47
+ align-items: center;
48
+ }
49
+
50
+ .align-items-baseline@{break-point} {
51
+ align-items: baseline;
52
+ }
53
+
54
+ .align-items-stretch@{break-point} {
55
+ align-items: stretch;
56
+ }
57
+
58
+ .align-self-start@{break-point} {
59
+ align-self: flex-start;
60
+ }
61
+
62
+ .align-self-end@{break-point} {
63
+ align-self: flex-end;
64
+ }
65
+
66
+ .align-self-center@{break-point} {
67
+ align-self: center;
68
+ }
69
+
70
+ .align-self-baseline@{break-point} {
71
+ align-self: baseline;
72
+ }
73
+
74
+ .align-self-stretch@{break-point} {
75
+ align-self: stretch;
76
+ }
77
+
78
+ .flex-nowrap@{break-point} {
79
+ flex-wrap: nowrap;
80
+ }
81
+
82
+ .flex-wrap@{break-point} {
83
+ flex-wrap: wrap;
84
+ }
85
+
86
+ .order-0@{break-point} {
87
+ order: 0;
88
+ }
89
+
90
+ .order-1@{break-point} {
91
+ order: 1;
92
+ }
93
+
94
+ .order-2@{break-point} {
95
+ order: 2;
96
+ }
97
+
98
+ .order-3@{break-point} {
99
+ order: 3;
100
+ }
101
+
102
+ .flex-grow-1@{break-point} {
103
+ flex-grow: 1;
104
+ }
105
+ }
@@ -4,15 +4,12 @@
4
4
  @import (reference) "./mixins/_arrows.less";
5
5
  @import (reference) "./mixins/_border-radius.less";
6
6
  @import (reference) "./mixins/_clearfix.less";
7
+ @import (reference) "./mixins/_center-block.less";
7
8
  @import (reference) "./mixins/_hide-text.less";
8
9
  @import (reference) "./mixins/_grid.less";
9
10
  @import (reference) "./mixins/_tab-focus.less";
10
11
  @import (reference) "./mixins/_logical-properties.less";
11
-
12
- /* TODO: Remove utility imports to prevent duplicates */
13
- @import "./addons/_center-block.less";
14
- @import "./utilities/float.less";
15
-
12
+ @import "./addons/_utilities.less";
16
13
  @import "dropdowns.less";
17
14
  @import "navs.less";
18
15
  @import "navbar-base.less";
@@ -107,8 +104,3 @@
107
104
  .navbar-background--inverse {
108
105
  background-color: @color-navy-background-elevated;
109
106
  }
110
-
111
- /* TODO: Remove to prefer direct utility imports */
112
- .clearfix {
113
- .clearfix();
114
- }
@@ -1,7 +1,4 @@
1
1
  @import "./addons/_background-utilities.less";
2
+ @import "./addons/_display-utilities.less";
2
3
  @import "./addons/_spacing-utilities.less";
3
4
  @import "./addons/_border.less";
4
-
5
- /* TODO: Remove utility imports to prevent duplicates */
6
- @import "./utilities/display.less";
7
- @import "./utilities/outline-style.less";
@@ -1,41 +1,153 @@
1
1
  @import (reference) "../variables/legacy-variables.less";
2
2
  @import (reference) "./mixins/_clearfix.less";
3
+ @import (reference) "./mixins/_center-block.less";
3
4
  @import (reference) "./mixins/_hide-text.less";
5
+ @import (reference) "./mixins/_logical-properties.less";
4
6
 
5
- @import "./addons/_center-block.less";
6
- @import "./utilities/align-items.less";
7
- @import "./utilities/align-self.less";
8
- @import "./utilities/border-radius.less";
9
- @import "./utilities/color.less";
10
- @import "./utilities/cursor.less";
11
- @import "./utilities/display.less";
12
- @import "./utilities/flex-direction.less";
13
- @import "./utilities/flex-grow.less";
14
- @import "./utilities/flex-wrap.less";
15
- @import "./utilities/float.less";
16
- @import "./utilities/font-weight.less";
17
- @import "./utilities/gap.less";
18
- @import "./utilities/justify-content.less";
19
- @import "./utilities/margin.less";
20
- @import "./utilities/max-width.less";
21
- @import "./utilities/order.less";
22
- @import "./utilities/outline-style.less";
23
- @import "./utilities/overflow-wrap.less";
24
- @import "./utilities/padding.less";
25
- @import "./utilities/position.less";
26
- @import "./utilities/rotate.less";
27
- @import "./utilities/screen-reader.less";
28
- @import "./utilities/text-align.less";
29
- @import "./utilities/text-decoration-line.less";
30
- @import "./utilities/text-overflow.less";
31
- @import "./utilities/text-transform.less";
32
- @import "./utilities/visibility.less";
33
- @import "./utilities/white-space.less";
7
+ .d-inline-block {
8
+ display: inline-block;
9
+ }
10
+
11
+ .d-inline {
12
+ display: inline;
13
+ }
34
14
 
35
15
  .clearfix {
36
16
  .clearfix();
37
17
  }
38
18
 
19
+ .center-block {
20
+ .center-block();
21
+ }
22
+
23
+ .pull-right,
24
+ .pull-xs-right {
25
+ .float(right) !important;
26
+ }
27
+
28
+ .pull-left,
29
+ .pull-xs-left {
30
+ .float(left) !important;
31
+ }
32
+
33
+ .pull-xs-none {
34
+ float: none !important;
35
+ }
36
+
37
+ @media (--screen-sm) {
38
+ .pull-sm-left {
39
+ .float(left) !important;
40
+ }
41
+
42
+ .pull-sm-right {
43
+ .float(right) !important;
44
+ }
45
+
46
+ .pull-sm-none {
47
+ float: none !important;
48
+ }
49
+ }
50
+
51
+ @media (--screen-md) {
52
+ .pull-md-left {
53
+ .float(left) !important;
54
+ }
55
+
56
+ .pull-md-right {
57
+ .float(right) !important;
58
+ }
59
+
60
+ .pull-md-none {
61
+ float: none !important;
62
+ }
63
+ }
64
+
65
+ @media (--screen-lg) {
66
+ .pull-lg-left {
67
+ .float(left) !important;
68
+ }
69
+
70
+ .pull-lg-right {
71
+ .float(right) !important;
72
+ }
73
+
74
+ .pull-lg-none {
75
+ float: none !important;
76
+ }
77
+ }
78
+
79
+ @media (--screen-xl) {
80
+ .pull-xl-left {
81
+ .float(left) !important;
82
+ }
83
+
84
+ .pull-xl-right {
85
+ .float(right) !important;
86
+ }
87
+
88
+ .pull-xl-none {
89
+ float: none !important;
90
+ }
91
+ }
92
+
93
+ // Floats not changing direction on RTL.
94
+
95
+ .pull-left-single-direction {
96
+ float: left !important;
97
+ }
98
+
99
+ .pull-right-single-direction {
100
+ float: right !important;
101
+ }
102
+
103
+ // Toggling content
104
+ // -------------------------
105
+
106
+ // Note: Deprecated .hide in favor of .hidden or .sr-only (as appropriate) in v3.0.1
107
+
108
+ .hide {
109
+ display: none !important;
110
+ }
111
+
112
+ .show {
113
+ display: block !important;
114
+ }
115
+
116
+ .invisible {
117
+ visibility: hidden;
118
+ }
119
+
39
120
  .text-hide {
40
121
  .text-hide();
41
122
  }
123
+
124
+ // Hide from screenreaders and browsers
125
+ //
126
+ // Credit: HTML5 Boilerplate
127
+
128
+ .hidden {
129
+ display: none !important;
130
+ }
131
+
132
+ // For Affix plugin
133
+ // -------------------------
134
+
135
+ .affix {
136
+ position: fixed;
137
+ }
138
+
139
+ .rotate90 {
140
+ transform: rotate(90deg);
141
+ }
142
+
143
+ .rotate180 {
144
+ transform: rotate(180deg);
145
+ }
146
+
147
+ .rotate270 {
148
+ transform: rotate(270deg);
149
+ }
150
+
151
+ .rotate-90 {
152
+ transform: rotate(-90deg);
153
+ }
@@ -1,107 +0,0 @@
1
- .align-items-start {
2
- align-items: flex-start;
3
- }
4
-
5
- .align-items-end {
6
- align-items: flex-end;
7
- }
8
-
9
- .align-items-center {
10
- align-items: center;
11
- }
12
-
13
- .align-items-baseline {
14
- align-items: baseline;
15
- }
16
-
17
- .align-items-stretch {
18
- align-items: stretch;
19
- }
20
-
21
- @media (--screen-sm) {
22
- .align-items-start--sm {
23
- align-items: flex-start;
24
- }
25
-
26
- .align-items-end--sm {
27
- align-items: flex-end;
28
- }
29
-
30
- .align-items-center--sm {
31
- align-items: center;
32
- }
33
-
34
- .align-items-baseline--sm {
35
- align-items: baseline;
36
- }
37
-
38
- .align-items-stretch--sm {
39
- align-items: stretch;
40
- }
41
- }
42
-
43
- @media (--screen-md) {
44
- .align-items-start--md {
45
- align-items: flex-start;
46
- }
47
-
48
- .align-items-end--md {
49
- align-items: flex-end;
50
- }
51
-
52
- .align-items-center--md {
53
- align-items: center;
54
- }
55
-
56
- .align-items-baseline--md {
57
- align-items: baseline;
58
- }
59
-
60
- .align-items-stretch--md {
61
- align-items: stretch;
62
- }
63
- }
64
-
65
- @media (--screen-lg) {
66
- .align-items-start--lg {
67
- align-items: flex-start;
68
- }
69
-
70
- .align-items-end--lg {
71
- align-items: flex-end;
72
- }
73
-
74
- .align-items-center--lg {
75
- align-items: center;
76
- }
77
-
78
- .align-items-baseline--lg {
79
- align-items: baseline;
80
- }
81
-
82
- .align-items-stretch--lg {
83
- align-items: stretch;
84
- }
85
- }
86
-
87
- @media (--screen-xl) {
88
- .align-items-start--xl {
89
- align-items: flex-start;
90
- }
91
-
92
- .align-items-end--xl {
93
- align-items: flex-end;
94
- }
95
-
96
- .align-items-center--xl {
97
- align-items: center;
98
- }
99
-
100
- .align-items-baseline--xl {
101
- align-items: baseline;
102
- }
103
-
104
- .align-items-stretch--xl {
105
- align-items: stretch;
106
- }
107
- }
@@ -1,107 +0,0 @@
1
- .align-self-start {
2
- align-self: flex-start;
3
- }
4
-
5
- .align-self-end {
6
- align-self: flex-end;
7
- }
8
-
9
- .align-self-center {
10
- align-self: center;
11
- }
12
-
13
- .align-self-stretch {
14
- align-self: stretch;
15
- }
16
-
17
- .align-self-baseline {
18
- align-self: baseline;
19
- }
20
-
21
- @media (--screen-sm) {
22
- .align-self-start--sm {
23
- align-self: flex-start;
24
- }
25
-
26
- .align-self-end--sm {
27
- align-self: flex-end;
28
- }
29
-
30
- .align-self-center--sm {
31
- align-self: center;
32
- }
33
-
34
- .align-self-stretch--sm {
35
- align-self: stretch;
36
- }
37
-
38
- .align-self-baseline--sm {
39
- align-self: baseline;
40
- }
41
- }
42
-
43
- @media (--screen-md) {
44
- .align-self-start--md {
45
- align-self: flex-start;
46
- }
47
-
48
- .align-self-end--md {
49
- align-self: flex-end;
50
- }
51
-
52
- .align-self-center--md {
53
- align-self: center;
54
- }
55
-
56
- .align-self-stretch--md {
57
- align-self: stretch;
58
- }
59
-
60
- .align-self-baseline--md {
61
- align-self: baseline;
62
- }
63
- }
64
-
65
- @media (--screen-lg) {
66
- .align-self-start--lg {
67
- align-self: flex-start;
68
- }
69
-
70
- .align-self-end--lg {
71
- align-self: flex-end;
72
- }
73
-
74
- .align-self-center--lg {
75
- align-self: center;
76
- }
77
-
78
- .align-self-stretch--lg {
79
- align-self: stretch;
80
- }
81
-
82
- .align-self-baseline--lg {
83
- align-self: baseline;
84
- }
85
- }
86
-
87
- @media (--screen-xl) {
88
- .align-self-start--xl {
89
- align-self: flex-start;
90
- }
91
-
92
- .align-self-end--xl {
93
- align-self: flex-end;
94
- }
95
-
96
- .align-self-center--xl {
97
- align-self: center;
98
- }
99
-
100
- .align-self-stretch--xl {
101
- align-self: stretch;
102
- }
103
-
104
- .align-self-baseline--xl {
105
- align-self: baseline;
106
- }
107
- }
@@ -1,11 +0,0 @@
1
- .rounded-sm {
2
- border-radius: 2px;
3
- }
4
-
5
- .rounded {
6
- border-radius: var(--radius-small);
7
- }
8
-
9
- .rounded-full {
10
- border-radius: var(--radius-full);
11
- }
@@ -1,70 +0,0 @@
1
- @import (reference) "../../variables/neptune-tokens.less";
2
- @import (reference) "../mixins/_text-emphasis.less";
3
-
4
- .text-primary {
5
- color: var(--color-content-primary) !important;
6
-
7
- /* @DEPRECATED: .bg-primary use .bg-elevated or ThemeProvider with theme="forest-green" instead */
8
- .bg-primary & {
9
- color: @color-navy-content-primary !important;
10
- }
11
- }
12
-
13
- .text-secondary {
14
- color: var(--color-content-secondary) !important;
15
- }
16
-
17
- .text-muted {
18
- color: var(--color-content-tertiary) !important;
19
- }
20
-
21
- .text-accent,
22
- .text-info {
23
- color: var(--color-interactive-primary) !important;
24
-
25
- /* @DEPRECATED: .bg-primary use .bg-elevated or ThemeProvider with theme="forest-green" instead */
26
- .bg-primary & {
27
- color: @color-navy-content-accent !important;
28
- }
29
- }
30
-
31
- .text-negative,
32
- /* TODO: Deprecate in favor of `.text-negative` */
33
- .text-danger {
34
- color: var(--color-sentiment-negative) !important;
35
-
36
- /* @DEPRECATED: .bg-primary use .bg-elevated or ThemeProvider with theme="forest-green" instead */
37
- .bg-primary & {
38
- color: @color-navy-content-negative !important;
39
- }
40
- }
41
-
42
- .text-positive,
43
- /* TODO: Deprecate in favor of `.text-positive` */
44
- .text-success {
45
- color: var(--color-sentiment-positive) !important;
46
-
47
- /* @DEPRECATED: .bg-primary use .bg-elevated or ThemeProvider with theme="forest-green" instead */
48
- .bg-primary & {
49
- color: @color-navy-content-positive !important;
50
- }
51
- }
52
-
53
- /**
54
- * @deprecated This makes text inaccessible. Use background color in combination with `.text-primary` instead.
55
- */
56
- .text-warning {
57
- color: var(--color-sentiment-warning) !important;
58
-
59
- /* @DEPRECATED: .bg-primary use .bg-elevated or ThemeProvider with theme="forest-green" instead */
60
- .bg-primary & {
61
- color: @color-navy-content-warning !important;
62
- }
63
- }
64
-
65
- /**
66
- * @deprecated Navy colors are obsolete.
67
- */
68
- .text-inverse {
69
- .text-emphasis-variant(@color-navy-content-primary, @color-navy-content-primary, @color-navy-content-secondary);
70
- }
@@ -1,3 +0,0 @@
1
- .clickable {
2
- cursor: pointer;
3
- }