@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.
- package/dist/css/border-radius.css +0 -8
- package/dist/css/flex.css +253 -417
- package/dist/css/navbar-base.css +339 -168
- package/dist/css/navbar.css +107 -41
- package/dist/css/neptune-addons.css +893 -421
- package/dist/css/neptune-core.css +200 -163
- package/dist/css/neptune.css +15471 -14675
- package/dist/css/utilities.css +72 -1202
- package/package.json +1 -1
- package/src/less/addons/_display-utilities.less +159 -0
- package/src/less/addons/_spacing-utilities.less +26 -3
- package/src/less/addons/_utilities.less +147 -0
- package/src/less/border-radius.less +3 -1
- package/src/less/core/_scaffolding.less +27 -7
- package/src/less/core/_typography-utilities.less +237 -17
- package/src/less/flex.less +18 -9
- package/src/less/{addons → mixins}/_center-block.less +4 -2
- package/src/less/mixins/_flex.less +105 -0
- package/src/less/navbar.less +2 -10
- package/src/less/neptune-addons.less +1 -4
- package/src/less/utilities.less +141 -29
- package/src/less/utilities/align-items.less +0 -107
- package/src/less/utilities/align-self.less +0 -107
- package/src/less/utilities/border-radius.less +0 -11
- package/src/less/utilities/color.less +0 -70
- package/src/less/utilities/cursor.less +0 -3
- package/src/less/utilities/display.less +0 -178
- package/src/less/utilities/flex-direction.less +0 -47
- package/src/less/utilities/flex-grow.less +0 -27
- package/src/less/utilities/flex-wrap.less +0 -47
- package/src/less/utilities/float.less +0 -77
- package/src/less/utilities/font-weight.less +0 -11
- package/src/less/utilities/gap.less +0 -3
- package/src/less/utilities/justify-content.less +0 -107
- package/src/less/utilities/margin.less +0 -192
- package/src/less/utilities/max-width.less +0 -3
- package/src/less/utilities/order.less +0 -87
- package/src/less/utilities/outline-style.less +0 -8
- package/src/less/utilities/overflow-wrap.less +0 -3
- package/src/less/utilities/padding.less +0 -179
- package/src/less/utilities/position.less +0 -3
- package/src/less/utilities/rotate.less +0 -12
- package/src/less/utilities/screen-reader.less +0 -24
- package/src/less/utilities/text-align.less +0 -87
- package/src/less/utilities/text-decoration-line.less +0 -8
- package/src/less/utilities/text-overflow.less +0 -7
- package/src/less/utilities/text-transform.less +0 -11
- package/src/less/utilities/visibility.less +0 -3
- package/src/less/utilities/white-space.less +0 -27
package/package.json
CHANGED
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
.d-block {
|
|
2
|
+
display: block !important;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.d-inline-block {
|
|
6
|
+
display: inline-block !important;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.visible-xs,
|
|
10
|
+
.visible-xs-block,
|
|
11
|
+
.visible-xs-inline,
|
|
12
|
+
.visible-xs-inline-block,
|
|
13
|
+
.visible-sm,
|
|
14
|
+
.visible-sm-block,
|
|
15
|
+
.visible-sm-inline,
|
|
16
|
+
.visible-sm-inline-block,
|
|
17
|
+
.visible-md,
|
|
18
|
+
.visible-md-block,
|
|
19
|
+
.visible-md-inline,
|
|
20
|
+
.visible-md-inline-block,
|
|
21
|
+
.visible-lg,
|
|
22
|
+
.visible-lg-block,
|
|
23
|
+
.visible-lg-inline,
|
|
24
|
+
.visible-lg-inline-block,
|
|
25
|
+
.visible-xl,
|
|
26
|
+
.visible-xl-block,
|
|
27
|
+
.visible-xl-inline,
|
|
28
|
+
.visible-xl-inline-block {
|
|
29
|
+
display: none !important;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.visible-xs,
|
|
33
|
+
.visible-xs-block {
|
|
34
|
+
@media (--screen-xs-max) {
|
|
35
|
+
display: block !important;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.visible-xs-inline {
|
|
40
|
+
@media (--screen-xs-max) {
|
|
41
|
+
display: inline !important;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.visible-xs-inline-block {
|
|
46
|
+
@media (--screen-xs-max) {
|
|
47
|
+
display: inline-block !important;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.visible-sm,
|
|
52
|
+
.visible-sm-block {
|
|
53
|
+
@media (--screen-sm) and (--screen-sm-max) {
|
|
54
|
+
display: block !important;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.visible-sm-inline {
|
|
59
|
+
@media (--screen-sm) and (--screen-sm-max) {
|
|
60
|
+
display: inline !important;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.visible-sm-inline-block {
|
|
65
|
+
@media (--screen-sm) and (--screen-sm-max) {
|
|
66
|
+
display: inline-block !important;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.visible-md,
|
|
71
|
+
.visible-md-block {
|
|
72
|
+
@media (--screen-md) and (--screen-md-max) {
|
|
73
|
+
display: block !important;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.visible-md-inline {
|
|
78
|
+
@media (--screen-md) and (--screen-md-max) {
|
|
79
|
+
display: inline !important;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.visible-md-inline-block {
|
|
84
|
+
@media (--screen-md) and (--screen-md-max) {
|
|
85
|
+
display: inline-block !important;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.visible-lg,
|
|
90
|
+
.visible-lg-block {
|
|
91
|
+
@media (--screen-lg) and (--screen-lg-max) {
|
|
92
|
+
display: block !important;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.visible-lg-inline {
|
|
97
|
+
@media (--screen-lg) and (--screen-lg-max) {
|
|
98
|
+
display: inline !important;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.visible-lg-inline-block {
|
|
103
|
+
@media (--screen-lg) and (--screen-lg-max) {
|
|
104
|
+
display: inline-block !important;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.visible-xl,
|
|
109
|
+
.visible-xl-block {
|
|
110
|
+
@media (--screen-xl) {
|
|
111
|
+
display: block !important;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.visible-xl-inline {
|
|
116
|
+
@media (--screen-xl) {
|
|
117
|
+
display: inline !important;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.visible-xl-inline-block {
|
|
122
|
+
@media (--screen-xl) {
|
|
123
|
+
display: inline-block !important;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.hidden-xs {
|
|
128
|
+
@media (--screen-xs-max) {
|
|
129
|
+
display: none !important;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.hidden-sm {
|
|
134
|
+
@media (--screen-sm) and (--screen-sm-max) {
|
|
135
|
+
display: none !important;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.hidden-md {
|
|
140
|
+
@media (--screen-md) and (--screen-md-max) {
|
|
141
|
+
display: none !important;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.hidden-lg {
|
|
146
|
+
@media (--screen-lg) and (--screen-lg-max) {
|
|
147
|
+
display: none !important;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.hidden-xl {
|
|
152
|
+
@media (--screen-xl) {
|
|
153
|
+
display: none !important;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.outline-none {
|
|
158
|
+
outline: none;
|
|
159
|
+
}
|
|
@@ -1,14 +1,37 @@
|
|
|
1
1
|
@import "../mixins/_spacing.less";
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
.spacing(0, 0);
|
|
4
|
+
.spacing(1, var(--size-8));
|
|
5
|
+
.spacing(2, var(--size-16));
|
|
6
|
+
.spacing(3, var(--size-24));
|
|
7
|
+
.spacing(4, var(--size-32));
|
|
8
|
+
.spacing(5, var(--size-40));
|
|
9
|
+
|
|
10
|
+
.spacing-vertical(4, var(--size-32));
|
|
11
|
+
.spacing-vertical(5, var(--size-40));
|
|
12
|
+
|
|
13
|
+
.gap-y-1 {
|
|
14
|
+
row-gap: var(--size-8);
|
|
15
|
+
}
|
|
6
16
|
|
|
7
17
|
.responsive-spacing(panel, var(--size-16), var(--size-24), var(--size-32));
|
|
8
18
|
.responsive-spacing-vertical(section-1, var(--size-16), var(--size-24), var(--size-32));
|
|
9
19
|
.responsive-spacing-vertical(section-2, var(--size-32), var(--size-48), var(--size-64));
|
|
10
20
|
.responsive-spacing-vertical(section-3, var(--size-48), var(--size-72), var(--size-96));
|
|
11
21
|
|
|
22
|
+
.m-x-auto {
|
|
23
|
+
.margin(right,auto) !important;
|
|
24
|
+
.margin(left, auto) !important;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.m-r-auto {
|
|
28
|
+
.margin(right,auto) !important;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.m-l-auto {
|
|
32
|
+
.margin(left, auto) !important;
|
|
33
|
+
}
|
|
34
|
+
|
|
12
35
|
.section {
|
|
13
36
|
padding-top: var(--size-48);
|
|
14
37
|
padding-bottom: var(--size-48);
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
@import (reference)
|
|
2
|
+
"../../variables/legacy-variables.less";
|
|
3
|
+
@import (reference) "../mixins/_clearfix.less";
|
|
4
|
+
@import (reference) "../mixins/_center-block.less";
|
|
5
|
+
@import (reference) "../mixins/_hide-text.less";
|
|
6
|
+
|
|
7
|
+
//
|
|
8
|
+
// Utility classes
|
|
9
|
+
// --------------------------------------------------
|
|
10
|
+
|
|
11
|
+
// Floats
|
|
12
|
+
// -------------------------
|
|
13
|
+
|
|
14
|
+
.clearfix {
|
|
15
|
+
.clearfix();
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.center-block {
|
|
19
|
+
.center-block();
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.pull-right,
|
|
23
|
+
.pull-xs-right {
|
|
24
|
+
.float(right) !important;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.pull-left,
|
|
28
|
+
.pull-xs-left {
|
|
29
|
+
.float(left) !important;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.pull-xs-none {
|
|
33
|
+
float: none !important;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
@media (min-width: @screen-sm-min) {
|
|
37
|
+
.pull-sm-left {
|
|
38
|
+
.float(left) !important;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.pull-sm-right {
|
|
42
|
+
.float(right) !important;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.pull-sm-none {
|
|
46
|
+
float: none !important;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
@media (min-width: @screen-md-min) {
|
|
51
|
+
.pull-md-left {
|
|
52
|
+
.float(left) !important;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.pull-md-right {
|
|
56
|
+
.float(right) !important;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.pull-md-none {
|
|
60
|
+
float: none !important;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
@media (min-width: @screen-lg-min) {
|
|
65
|
+
.pull-lg-left {
|
|
66
|
+
.float(left) !important;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.pull-lg-right {
|
|
70
|
+
.float(right) !important;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.pull-lg-none {
|
|
74
|
+
float: none !important;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
@media (min-width: @screen-xl-min) {
|
|
79
|
+
.pull-xl-left {
|
|
80
|
+
.float(left) !important;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.pull-xl-right {
|
|
84
|
+
.float(right) !important;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.pull-xl-none {
|
|
88
|
+
float: none !important;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
// Toggling content
|
|
93
|
+
// -------------------------
|
|
94
|
+
|
|
95
|
+
// Note: Deprecated .hide in favor of .hidden or .sr-only (as appropriate) in v3.0.1
|
|
96
|
+
.hide {
|
|
97
|
+
display: none !important;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.show {
|
|
101
|
+
display: block !important;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.invisible {
|
|
105
|
+
visibility: hidden;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.text-hide {
|
|
109
|
+
.text-hide();
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
// Hide from screenreaders and browsers
|
|
113
|
+
//
|
|
114
|
+
// Credit: HTML5 Boilerplate
|
|
115
|
+
|
|
116
|
+
.hidden {
|
|
117
|
+
display: none !important;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
// For Affix plugin
|
|
121
|
+
// -------------------------
|
|
122
|
+
|
|
123
|
+
.affix {
|
|
124
|
+
position: fixed;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.rotate90 {
|
|
128
|
+
transform: rotate(90deg);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.rotate180 {
|
|
132
|
+
transform: rotate(180deg);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.rotate270 {
|
|
136
|
+
transform: rotate(270deg);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.rotate-90 {
|
|
140
|
+
transform: rotate(-90deg);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
// Cursor
|
|
144
|
+
|
|
145
|
+
.clickable {
|
|
146
|
+
cursor: pointer !important;
|
|
147
|
+
}
|
|
@@ -5,13 +5,8 @@
|
|
|
5
5
|
@import (reference) "../mixins/_logical-properties.less";
|
|
6
6
|
@import (reference) "../mixins/_links.less";
|
|
7
7
|
@import (reference) "../core/_typography.less";
|
|
8
|
-
@import (reference) "../utilities/border-radius.less";
|
|
9
8
|
@import "../../variables/legacy-variables.less";
|
|
10
9
|
|
|
11
|
-
/* TODO: Remove utility imports to prevent duplicates */
|
|
12
|
-
@import "../utilities/border-radius.less";
|
|
13
|
-
@import "../utilities/screen-reader.less";
|
|
14
|
-
|
|
15
10
|
:root {
|
|
16
11
|
// page default font size should be set in absolute units (pixels)
|
|
17
12
|
--base-font-size: 16px;
|
|
@@ -338,11 +333,11 @@ video {
|
|
|
338
333
|
}
|
|
339
334
|
|
|
340
335
|
.img-rounded {
|
|
341
|
-
|
|
336
|
+
border-radius: var(--radius-small);
|
|
342
337
|
}
|
|
343
338
|
|
|
344
339
|
.img-circle {
|
|
345
|
-
|
|
340
|
+
border-radius: 50%;
|
|
346
341
|
}
|
|
347
342
|
|
|
348
343
|
.disabled,
|
|
@@ -351,3 +346,28 @@ video {
|
|
|
351
346
|
opacity: 0.45;
|
|
352
347
|
cursor: not-allowed !important;
|
|
353
348
|
}
|
|
349
|
+
|
|
350
|
+
// Only display content to screen readers
|
|
351
|
+
.sr-only {
|
|
352
|
+
position: absolute;
|
|
353
|
+
width: 1px;
|
|
354
|
+
height: 1px;
|
|
355
|
+
margin: -1px;
|
|
356
|
+
padding: 0;
|
|
357
|
+
overflow: hidden;
|
|
358
|
+
border: 0;
|
|
359
|
+
clip: rect(0, 0, 0, 0);
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
// Use in conjunction with `.sr-only` to only display content when it's focused.
|
|
363
|
+
.sr-only-focusable {
|
|
364
|
+
&:active,
|
|
365
|
+
&:focus {
|
|
366
|
+
position: static;
|
|
367
|
+
width: auto;
|
|
368
|
+
height: auto;
|
|
369
|
+
margin: 0;
|
|
370
|
+
overflow: visible;
|
|
371
|
+
clip: auto;
|
|
372
|
+
}
|
|
373
|
+
}
|
|
@@ -3,27 +3,247 @@
|
|
|
3
3
|
@import (reference) "../mixins/_links.less";
|
|
4
4
|
@import "../mixins/_text-emphasis.less";
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
6
|
+
// Deprecated classes in next iterations.
|
|
7
|
+
|
|
8
|
+
//.text-danger (Replaced by .text-negative)
|
|
9
|
+
//.text-success( Replaced by .text-positive)
|
|
10
|
+
|
|
11
|
+
.text-xs-left {
|
|
12
|
+
.text-align(left);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.text-xs-right {
|
|
16
|
+
.text-align(right);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.text-xs-center {
|
|
20
|
+
text-align: center;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.text-xs-justify {
|
|
24
|
+
text-align: justify;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.text-xs-nowrap {
|
|
28
|
+
white-space: nowrap;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@media (--screen-sm) {
|
|
32
|
+
.text-sm-left {
|
|
33
|
+
.text-align(left);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.text-sm-right {
|
|
37
|
+
.text-align(right);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.text-sm-center {
|
|
41
|
+
text-align: center;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.text-sm-justify {
|
|
45
|
+
text-align: justify;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.text-sm-nowrap {
|
|
49
|
+
white-space: nowrap;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
@media (--screen-md) {
|
|
54
|
+
.text-md-left {
|
|
55
|
+
.text-align(left);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.text-md-right {
|
|
59
|
+
.text-align(right);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.text-md-center {
|
|
63
|
+
text-align: center;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.text-md-justify {
|
|
67
|
+
text-align: justify;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.text-md-nowrap {
|
|
71
|
+
white-space: nowrap;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
@media (--screen-lg) {
|
|
76
|
+
.text-lg-left {
|
|
77
|
+
.text-align(left);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.text-lg-right {
|
|
81
|
+
.text-align(right);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.text-lg-center {
|
|
85
|
+
text-align: center;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.text-lg-justify {
|
|
89
|
+
text-align: justify;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.text-lg-nowrap {
|
|
93
|
+
white-space: nowrap;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
@media (--screen-xl) {
|
|
98
|
+
.text-xl-left {
|
|
99
|
+
.text-align(left);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.text-xl-right {
|
|
103
|
+
.text-align(right);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.text-xl-center {
|
|
107
|
+
text-align: center;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.text-xl-justify {
|
|
111
|
+
text-align: justify;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.text-xl-nowrap {
|
|
115
|
+
white-space: nowrap;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.text-lowercase {
|
|
120
|
+
text-transform: lowercase;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.text-uppercase {
|
|
124
|
+
text-transform: uppercase;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.text-capitalize {
|
|
128
|
+
text-transform: capitalize;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.text-underline {
|
|
132
|
+
.link-underline(true);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.text-no-decoration {
|
|
136
|
+
text-decoration: none !important;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.text-ellipsis,
|
|
140
|
+
.text-ellipses {
|
|
141
|
+
display: block;
|
|
142
|
+
text-overflow: ellipsis;
|
|
143
|
+
white-space: nowrap;
|
|
144
|
+
overflow: hidden;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.text-max-width {
|
|
148
|
+
max-width: 600px;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.text-word-break {
|
|
152
|
+
word-break: break-all;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.font-weight-bold {
|
|
156
|
+
font-weight: var(--font-weight-bold) !important;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.font-weight-semi-bold {
|
|
160
|
+
font-weight: var(--font-weight-semi-bold) !important;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.font-weight-normal {
|
|
164
|
+
font-weight: var(--font-weight-regular) !important;
|
|
165
|
+
}
|
|
166
|
+
|
|
20
167
|
.font-italic {
|
|
21
168
|
font-style: italic !important;
|
|
22
169
|
}
|
|
23
170
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
171
|
+
// Contextual colors `.text-*`
|
|
172
|
+
|
|
173
|
+
.text-primary {
|
|
174
|
+
.text-emphasis-variant(var(--color-content-primary), var(--color-content-primary), var(--color-content-primary));
|
|
175
|
+
|
|
176
|
+
// @DEPRECATED: .bg-primary use .bg-elevated or ThemeProvider with theme="forest-green" instead
|
|
177
|
+
.bg-primary & {
|
|
178
|
+
color: @color-navy-content-primary !important;
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.text-secondary {
|
|
183
|
+
color: var(--color-content-secondary) !important;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.text-positive,
|
|
187
|
+
.text-success {
|
|
188
|
+
.text-emphasis-variant(
|
|
189
|
+
var(--color-content-positive),
|
|
190
|
+
var(--color-content-positive),
|
|
191
|
+
var(--color-content-positive-hover)
|
|
192
|
+
);
|
|
193
|
+
|
|
194
|
+
// @DEPRECATED: .bg-primary use .bg-elevated or ThemeProvider with theme="forest-green" instead
|
|
195
|
+
.bg-primary & {
|
|
196
|
+
color: @color-navy-content-positive !important;
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.text-accent,
|
|
201
|
+
.text-info {
|
|
202
|
+
.text-emphasis-variant(var(--color-content-accent), var(--color-content-accent), var(--color-content-accent-hover));
|
|
203
|
+
color: var(--color-interactive-primary) !important;
|
|
204
|
+
|
|
205
|
+
// @DEPRECATED: .bg-primary use .bg-elevated or ThemeProvider with theme="forest-green" instead
|
|
206
|
+
.bg-primary & {
|
|
207
|
+
color: @color-navy-content-accent !important;
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.text-warning {
|
|
212
|
+
.text-emphasis-variant(
|
|
213
|
+
var(--color-content-warning),
|
|
214
|
+
var(--color-content-warning),
|
|
215
|
+
var(--color-content-warning-hover),
|
|
216
|
+
);
|
|
217
|
+
|
|
218
|
+
// @DEPRECATED: .bg-primary use .bg-elevated or ThemeProvider with theme="forest-green" instead
|
|
219
|
+
.bg-primary & {
|
|
220
|
+
color: @color-navy-content-warning !important;
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.text-negative,
|
|
225
|
+
.text-danger {
|
|
226
|
+
.text-emphasis-variant(
|
|
227
|
+
var(--color-sentiment-negative),
|
|
228
|
+
var(--color-sentiment-negative),
|
|
229
|
+
var(--color-sentiment-negative-hover)
|
|
230
|
+
);
|
|
231
|
+
|
|
232
|
+
// @DEPRECATED: .bg-primary use .bg-elevated or ThemeProvider with theme="forest-green" instead
|
|
233
|
+
.bg-primary & {
|
|
234
|
+
color: @color-navy-content-negative !important;
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
.text-inverse {
|
|
239
|
+
.text-emphasis-variant(@color-navy-content-primary, @color-navy-content-primary, @color-navy-content-secondary);
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
.text-muted {
|
|
243
|
+
color: var(--color-content-tertiary) !important;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
// @deprecated: we no longer have "colored dot" design feature in new brand
|
|
27
247
|
.colored-dot {
|
|
28
248
|
&::after {
|
|
29
249
|
content: none;
|
package/src/less/flex.less
CHANGED
|
@@ -1,15 +1,24 @@
|
|
|
1
1
|
// mixins
|
|
2
|
+
@import (reference) "./mixins/_flex.less";
|
|
2
3
|
@import (reference) "./mixins/_logical-properties.less";
|
|
3
4
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
@
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
@
|
|
11
|
-
|
|
12
|
-
|
|
5
|
+
.flex-properties(~"");
|
|
6
|
+
|
|
7
|
+
@media (--screen-sm) {
|
|
8
|
+
.flex-properties(--sm);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@media (--screen-md) {
|
|
12
|
+
.flex-properties(--md);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@media (--screen-lg) {
|
|
16
|
+
.flex-properties(--lg);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@media (--screen-xl) {
|
|
20
|
+
.flex-properties(--xl);
|
|
21
|
+
}
|
|
13
22
|
|
|
14
23
|
/* Items */
|
|
15
24
|
.flex__inner {
|