@transferwise/neptune-css 0.0.0-experimental-1181467

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 (180) hide show
  1. package/LICENSE.md +13 -0
  2. package/README.md +45 -0
  3. package/dist/css/accordion.css +1 -0
  4. package/dist/css/alerts.css +1 -0
  5. package/dist/css/background.css +1 -0
  6. package/dist/css/badge.css +1 -0
  7. package/dist/css/border-radius.css +1 -0
  8. package/dist/css/breadcrumbs.css +1 -0
  9. package/dist/css/button-groups.css +1 -0
  10. package/dist/css/buttons.css +1 -0
  11. package/dist/css/chevron.css +1 -0
  12. package/dist/css/circles.css +1 -0
  13. package/dist/css/close.css +1 -0
  14. package/dist/css/column-layout.css +1 -0
  15. package/dist/css/currency-flags.css +1 -0
  16. package/dist/css/decision.css +1 -0
  17. package/dist/css/dropdowns.css +1 -0
  18. package/dist/css/droppable.css +1 -0
  19. package/dist/css/flex.css +1 -0
  20. package/dist/css/footer.css +1 -0
  21. package/dist/css/grid.css +1 -0
  22. package/dist/css/input-groups.css +1 -0
  23. package/dist/css/link-callout.css +1 -0
  24. package/dist/css/list-group.css +1 -0
  25. package/dist/css/loaders.css +1 -0
  26. package/dist/css/media.css +1 -0
  27. package/dist/css/modals.css +1 -0
  28. package/dist/css/navbar-base.css +1 -0
  29. package/dist/css/navbar.css +1 -0
  30. package/dist/css/navs.css +1 -0
  31. package/dist/css/neptune-addons.css +1 -0
  32. package/dist/css/neptune-core.css +1 -0
  33. package/dist/css/neptune-social-media.css +1 -0
  34. package/dist/css/neptune.css +1 -0
  35. package/dist/css/panels.css +1 -0
  36. package/dist/css/popovers.css +1 -0
  37. package/dist/css/process.css +1 -0
  38. package/dist/css/progress-bars.css +1 -0
  39. package/dist/css/ring.css +1 -0
  40. package/dist/css/select.css +1 -0
  41. package/dist/css/sequences.css +1 -0
  42. package/dist/css/table.css +1 -0
  43. package/dist/css/tick.css +1 -0
  44. package/dist/css/tooltip.css +1 -0
  45. package/dist/css/utilities.css +1 -0
  46. package/dist/css/wells.css +1 -0
  47. package/dist/fonts/TW-Averta-Bold.woff +0 -0
  48. package/dist/fonts/TW-Averta-Bold.woff2 +0 -0
  49. package/dist/fonts/TW-Averta-Regular.woff +0 -0
  50. package/dist/fonts/TW-Averta-Regular.woff2 +0 -0
  51. package/dist/fonts/TW-Averta-Semibold.woff +0 -0
  52. package/dist/fonts/TW-Averta-Semibold.woff2 +0 -0
  53. package/dist/fonts/TransferWise-IconFont.svg +81 -0
  54. package/dist/fonts/TransferWise-IconFont.woff +0 -0
  55. package/dist/fonts/WorldwiseSans-Heavy.woff2 +0 -0
  56. package/dist/fonts/inter-cyrillic-ext-variable-wghtOnly-normal.woff2 +0 -0
  57. package/dist/fonts/inter-cyrillic-variable-wghtOnly-normal.woff2 +0 -0
  58. package/dist/fonts/inter-greek-ext-variable-wghtOnly-normal.woff2 +0 -0
  59. package/dist/fonts/inter-greek-variable-wghtOnly-normal.woff2 +0 -0
  60. package/dist/fonts/inter-latin-ext-variable-wghtOnly-normal.woff2 +0 -0
  61. package/dist/fonts/inter-latin-variable-wghtOnly-normal.woff2 +0 -0
  62. package/dist/fonts/inter-vietnamese-variable-wghtOnly-normal.woff2 +0 -0
  63. package/dist/img/bg-dark.svg +31 -0
  64. package/dist/img/bg-light.svg +26 -0
  65. package/dist/less/legacy-variables.less +1299 -0
  66. package/dist/less/neptune-tokens.less +272 -0
  67. package/dist/less/zindex.less +17 -0
  68. package/dist/props/custom-media.css +9 -0
  69. package/dist/props/legacy-custom-props.css +69 -0
  70. package/dist/props/neptune-tokens.css +150 -0
  71. package/package.json +59 -0
  72. package/scripts/neptune-css-upgrader.js +106 -0
  73. package/src/fonts/TW-Averta-Bold.woff +0 -0
  74. package/src/fonts/TW-Averta-Bold.woff2 +0 -0
  75. package/src/fonts/TW-Averta-Regular.woff +0 -0
  76. package/src/fonts/TW-Averta-Regular.woff2 +0 -0
  77. package/src/fonts/TW-Averta-Semibold.woff +0 -0
  78. package/src/fonts/TW-Averta-Semibold.woff2 +0 -0
  79. package/src/fonts/TransferWise-IconFont.svg +81 -0
  80. package/src/fonts/TransferWise-IconFont.woff +0 -0
  81. package/src/fonts/WorldwiseSans-Heavy.woff2 +0 -0
  82. package/src/fonts/inter-cyrillic-ext-variable-wghtOnly-normal.woff2 +0 -0
  83. package/src/fonts/inter-cyrillic-variable-wghtOnly-normal.woff2 +0 -0
  84. package/src/fonts/inter-greek-ext-variable-wghtOnly-normal.woff2 +0 -0
  85. package/src/fonts/inter-greek-variable-wghtOnly-normal.woff2 +0 -0
  86. package/src/fonts/inter-latin-ext-variable-wghtOnly-normal.woff2 +0 -0
  87. package/src/fonts/inter-latin-variable-wghtOnly-normal.woff2 +0 -0
  88. package/src/fonts/inter-vietnamese-variable-wghtOnly-normal.woff2 +0 -0
  89. package/src/img/bg-dark.svg +31 -0
  90. package/src/img/bg-light.svg +26 -0
  91. package/src/less/accordion.less +15 -0
  92. package/src/less/addons/_background-utilities.less +82 -0
  93. package/src/less/addons/_border.less +3 -0
  94. package/src/less/addons/_display-utilities.less +159 -0
  95. package/src/less/addons/_spacing-utilities.less +49 -0
  96. package/src/less/addons/_utilities.less +147 -0
  97. package/src/less/alerts.less +253 -0
  98. package/src/less/background.less +24 -0
  99. package/src/less/badge.less +85 -0
  100. package/src/less/border-radius.less +3 -0
  101. package/src/less/breadcrumbs.less +27 -0
  102. package/src/less/button-groups.less +424 -0
  103. package/src/less/buttons.less +714 -0
  104. package/src/less/chevron.less +39 -0
  105. package/src/less/circles.less +223 -0
  106. package/src/less/close.less +48 -0
  107. package/src/less/column-layout.less +167 -0
  108. package/src/less/components/_component-animations.less +43 -0
  109. package/src/less/core/_fonts.less +97 -0
  110. package/src/less/core/_scaffolding.less +473 -0
  111. package/src/less/core/_typography-utilities.less +269 -0
  112. package/src/less/core/_typography.less +794 -0
  113. package/src/less/currency-flags.less +41 -0
  114. package/src/less/decision.less +98 -0
  115. package/src/less/dropdowns.less +374 -0
  116. package/src/less/droppable.less +280 -0
  117. package/src/less/flex.less +113 -0
  118. package/src/less/footer.less +113 -0
  119. package/src/less/forms/bootstrap-forms.less +1227 -0
  120. package/src/less/forms/checkbox-radio.less +303 -0
  121. package/src/less/grid.less +187 -0
  122. package/src/less/input-groups.less +299 -0
  123. package/src/less/link-callout.less +17 -0
  124. package/src/less/list-group.less +260 -0
  125. package/src/less/loaders.less +91 -0
  126. package/src/less/media.less +61 -0
  127. package/src/less/mixins/_alerts.less +35 -0
  128. package/src/less/mixins/_arrows.less +52 -0
  129. package/src/less/mixins/_border-radius.less +11 -0
  130. package/src/less/mixins/_buttons.less +82 -0
  131. package/src/less/mixins/_center-block.less +7 -0
  132. package/src/less/mixins/_circle.less +11 -0
  133. package/src/less/mixins/_clearfix.less +23 -0
  134. package/src/less/mixins/_flex.less +105 -0
  135. package/src/less/mixins/_forms.less +128 -0
  136. package/src/less/mixins/_grid-framework.less +104 -0
  137. package/src/less/mixins/_grid.less +158 -0
  138. package/src/less/mixins/_hide-text.less +20 -0
  139. package/src/less/mixins/_links.less +7 -0
  140. package/src/less/mixins/_list-group.less +23 -0
  141. package/src/less/mixins/_logical-properties-IE-friendly.less +381 -0
  142. package/src/less/mixins/_logical-properties-modern-browsers.less +226 -0
  143. package/src/less/mixins/_logical-properties.less +5 -0
  144. package/src/less/mixins/_nav-vertical-align.less +10 -0
  145. package/src/less/mixins/_panels.less +23 -0
  146. package/src/less/mixins/_physical-properties.less +110 -0
  147. package/src/less/mixins/_reset-text.less +22 -0
  148. package/src/less/mixins/_sequence.less +203 -0
  149. package/src/less/mixins/_spacing.less +122 -0
  150. package/src/less/mixins/_tab-focus.less +5 -0
  151. package/src/less/mixins/_table-row.less +47 -0
  152. package/src/less/mixins/_text-emphasis.less +39 -0
  153. package/src/less/mixins/_theming.less +7 -0
  154. package/src/less/modals.less +239 -0
  155. package/src/less/navbar-base.less +1333 -0
  156. package/src/less/navbar.less +106 -0
  157. package/src/less/navs.less +341 -0
  158. package/src/less/neptune-addons.less +4 -0
  159. package/src/less/neptune-core.less +4 -0
  160. package/src/less/neptune-social-media.less +57 -0
  161. package/src/less/neptune.bundle.less +44 -0
  162. package/src/less/panels.less +410 -0
  163. package/src/less/popovers.less +381 -0
  164. package/src/less/process.less +395 -0
  165. package/src/less/progress-bars.less +70 -0
  166. package/src/less/ring.less +51 -0
  167. package/src/less/select.less +88 -0
  168. package/src/less/sequences.less +515 -0
  169. package/src/less/table.less +385 -0
  170. package/src/less/tick.less +37 -0
  171. package/src/less/tooltip.less +132 -0
  172. package/src/less/utilities.less +153 -0
  173. package/src/less/wells.less +37 -0
  174. package/src/props/custom-media.css +9 -0
  175. package/src/props/legacy-custom-props.css +69 -0
  176. package/src/props/neptune-tokens.css +11 -0
  177. package/src/variables/legacy-variables.less +1299 -0
  178. package/src/variables/neptune-tokens.less +12 -0
  179. package/src/variables/zindex.less +17 -0
  180. package/upgrades/scripts/2021-11-v11-v12.js +61 -0
@@ -0,0 +1,473 @@
1
+ /* stylelint-disable selector-max-empty-lines */
2
+ @import (reference) "../../variables/neptune-tokens.less";
3
+ @import (reference) "../mixins/_logical-properties.less";
4
+ @import (reference) "../mixins/_links.less";
5
+ @import (reference) "../core/_typography.less";
6
+ @import "../../variables/legacy-variables.less";
7
+
8
+ *,
9
+ ::before,
10
+ ::after {
11
+ box-sizing: border-box;
12
+ }
13
+
14
+ :root {
15
+ --radius-small: 3px;
16
+ --radius-medium: 10px;
17
+ // page default font size should be set in absolute units (pixels)
18
+ --base-font-size: 16px;
19
+ --font-family-regular: averta, avenir w02, avenir, helvetica, arial, sans-serif;
20
+ --input-group-addon-padding: @padding-large-vertical @padding-base-horizontal calc(@padding-large-vertical - 2px);
21
+ --btn-padding: @btn-padding-vertical @btn-padding-horizontal calc(@btn-padding-vertical - 2px);
22
+ --btn-xs-padding: @btn-xs-padding-vertical @btn-xs-padding-horizontal calc(@btn-xs-padding-vertical - 2px);
23
+ --btn-sm-padding: @btn-sm-padding-vertical @btn-sm-padding-horizontal calc(@btn-sm-padding-vertical - 2px);
24
+ --btn-lg-padding: @btn-lg-padding-vertical @btn-lg-padding-horizontal calc(@btn-lg-padding-vertical - 2px);
25
+ --input-padding: @padding-large-vertical @padding-base-horizontal calc(@padding-large-vertical - 2px);
26
+ --input-padding-small: @padding-small-vertical @padding-small-horizontal calc(@padding-small-vertical - 2px);
27
+ --input-padding-large: @padding-large-vertical @padding-large-horizontal calc(@padding-large-vertical - 2px);
28
+ --input-group-addon-sm-padding: calc(@padding-small-vertical - 1px) @padding-small-horizontal;
29
+ --input-group-addon-lg-padding: @padding-large-vertical @padding-large-horizontal calc(@padding-large-vertical - 2px);
30
+ --dropdown-link-padding: calc(@padding-large-vertical + 1px) @padding-large-horizontal calc(@padding-large-vertical - 1px);
31
+ --btn-radius-base: @border-radius-base;
32
+ --btn-sm-radius-base: @border-radius-small;
33
+ --btn-lg-radius-base: @border-radius-large;
34
+ }
35
+
36
+ .np-theme-light,
37
+ .np-theme-dark,
38
+ .np-theme-navy {
39
+ --font-family-regular: averta, avenir w02, avenir, helvetica, arial, sans-serif !important;
40
+
41
+ font-family: var(--font-family-regular);
42
+ line-height: var(--line-height-body);
43
+
44
+ --radius-small: 3px !important;
45
+ --radius-medium: 10px !important;
46
+ }
47
+
48
+ .np-theme-personal,
49
+ .np-personal--forest-green,
50
+ .np-personal--bright-green {
51
+ --font-family-regular: "Inter", sans-serif, helvetica, arial, sans-serif !important;
52
+
53
+ font-family: var(--font-family-regular);
54
+
55
+ --input-group-addon-padding: @padding-large-vertical @padding-base-horizontal;
56
+ --btn-padding: calc(@btn-padding-vertical - @btn-border-width) @btn-padding-horizontal;
57
+ --btn-xs-padding: calc(@btn-xs-padding-vertical - @btn-border-width) @btn-xs-padding-horizontal;
58
+ --btn-sm-padding: calc(@btn-sm-padding-vertical - @btn-border-width) @btn-sm-padding-horizontal;
59
+ --btn-lg-padding: calc(@btn-lg-padding-vertical - @btn-border-width) @btn-lg-padding-horizontal;
60
+ --input-padding: @padding-large-vertical @padding-base-horizontal;
61
+ --input-padding-small: @padding-small-vertical @padding-small-horizontal;
62
+ --input-padding-large: @padding-large-vertical @padding-large-horizontal;
63
+ --input-group-addon-sm-padding: @padding-small-vertical @padding-small-horizontal;
64
+ --input-group-addon-lg-padding: @padding-large-vertical @padding-large-horizontal;
65
+ --dropdown-link-padding: @padding-large-vertical @padding-large-horizontal;
66
+ --btn-radius-base: 9999px;
67
+ --btn-sm-radius-base: var(--btn-radius-base);
68
+ --btn-lg-radius-base: var(--btn-radius-base);
69
+
70
+ color: var(--color-content-secondary);
71
+ background-color: var(--color-background-screen);
72
+ }
73
+
74
+ html {
75
+ font-size: var(--base-font-size);
76
+ font-family: var(--font-family-regular);
77
+ color: var(--color-content-secondary);
78
+ letter-spacing: 0.016em;
79
+ background-color: var(--color-background-screen);
80
+ -webkit-font-smoothing: antialiased;
81
+ -moz-osx-font-smoothing: grayscale;
82
+ text-size-adjust: 100%; // Normalize 8.0.1
83
+ }
84
+
85
+ body {
86
+ margin: 0; // Normalize 8.0.1
87
+ }
88
+
89
+ main,
90
+ details {
91
+ display: block; // Normalize 8.0.1
92
+ }
93
+
94
+ summary {
95
+ display: list-item; // Normalize 8.0.1
96
+ }
97
+
98
+ template {
99
+ display: none; // Normalize 8.0.1
100
+ }
101
+
102
+ blockquote,
103
+ dl,
104
+ dd,
105
+ hr,
106
+ figure,
107
+ p,
108
+ pre {
109
+ margin: 0;
110
+ }
111
+
112
+ .np-theme-personal::selection {
113
+ background-color: var(--color-background-neutral-active);
114
+ color: var(--color-content-primary);
115
+ }
116
+
117
+ /* DEPRECATED: use `a` tag or .np-text-link-* instead */
118
+ /* stylelint-disable-next-line selector-list-comma-newline-after */
119
+ .anchor,
120
+ a,
121
+ .np-text-link-default,
122
+ .np-text-link-large {
123
+ color: var(--color-content-accent);
124
+ background-color: transparent; // Normalize 8.0.1
125
+ font-weight: var(--font-weight-semi-bold);
126
+ letter-spacing: normal;
127
+ text-decoration: underline;
128
+
129
+ .np-theme-personal & {
130
+ color: var(--color-content-link);
131
+ .link-underline();
132
+ }
133
+
134
+ // @DEPRECATED: .bg-primary use .bg-elevated or ThemeProvider with theme="forest-green" instead
135
+ .bg-primary & {
136
+ color: @color-navy-content-accent;
137
+
138
+ &:hover,
139
+ &:focus {
140
+ color: @color-navy-content-accent-hover;
141
+ }
142
+
143
+ &:active {
144
+ color: @color-navy-content-accent-active;
145
+ }
146
+ }
147
+
148
+ &:hover,
149
+ &:focus {
150
+ color: var(--color-content-accent-hover);
151
+ text-decoration: underline;
152
+
153
+ .np-theme-personal & {
154
+ color: var(--color-content-link-hover);
155
+ }
156
+ }
157
+
158
+ &:active {
159
+ color: var(--color-content-accent-active);
160
+
161
+ .np-theme-personal & {
162
+ color: var(--color-content-link-active);
163
+ }
164
+ }
165
+
166
+ &.secondary {
167
+ color: var(--color-content-secondary);
168
+
169
+ &:hover,
170
+ &:focus {
171
+ color: var(--color-content-accent-hover);
172
+ }
173
+
174
+ &:active {
175
+ color: var(--color-content-accent-active);
176
+ }
177
+ }
178
+ }
179
+
180
+ html.ios-click {
181
+ cursor: pointer;
182
+ }
183
+
184
+ fieldset {
185
+ margin: 0;
186
+ padding: 0;
187
+ }
188
+
189
+ legend {
190
+ display: table; // Normalize 8.0.1
191
+ box-sizing: border-box; // Normalize 8.0.1
192
+ max-width: 100%; // Normalize 8.0.1
193
+ padding: 0; // Normalize 8.0.1
194
+ color: inherit; // Normalize 8.0.1
195
+ white-space: normal; // Normalize 8.0.1
196
+ }
197
+
198
+ button,
199
+ input,
200
+ optgroup,
201
+ select,
202
+ textarea {
203
+ margin: 0; // Normalize 8.0.1
204
+ padding: 0;
205
+ color: inherit;
206
+ font-size: inherit;
207
+ font-family: inherit; // Normalize 8.0.1
208
+ line-height: inherit;
209
+ }
210
+
211
+ button,
212
+ input {
213
+ overflow: visible; // Normalize 8.0.1
214
+ }
215
+
216
+ button,
217
+ select {
218
+ text-transform: none; // Normalize 8.0.1
219
+ }
220
+
221
+ button,
222
+ [type="button"],
223
+ [type="reset"],
224
+ [type="submit"] {
225
+ cursor: pointer;
226
+ appearance: button; // Normalize 8.0.1
227
+ }
228
+
229
+ // iOS "clickable elements" fix for role="button"
230
+ // see https://developer.mozilla.org/en-US/docs/Web/Events/click#Safari_Mobile
231
+
232
+ [role="button"] {
233
+ cursor: pointer;
234
+ }
235
+
236
+ [type="checkbox"],
237
+ [type="radio"] {
238
+ box-sizing: border-box; // Normalize 8.0.1
239
+ padding: 0; // Normalize 8.0.1
240
+ }
241
+
242
+ [type="number"] {
243
+ &::-webkit-inner-spin-button,
244
+ &::-webkit-outer-spin-button {
245
+ height: auto; // Normalize 8.0.1
246
+ }
247
+ }
248
+
249
+ [type="search"] {
250
+ outline-offset: -2px; // Normalize 8.0.1
251
+ appearance: textfield; // Normalize 8.0.1
252
+
253
+ &::-webkit-search-decoration {
254
+ appearance: none; // Normalize 8.0.1
255
+ }
256
+ }
257
+
258
+ ::-webkit-file-upload-button {
259
+ font: inherit; // Normalize 8.0.1
260
+ appearance: button; // Normalize 8.0.1
261
+ }
262
+
263
+ textarea {
264
+ overflow: auto; // Normalize 8.0.1
265
+ resize: vertical;
266
+ }
267
+
268
+ input,
269
+ textarea {
270
+ // stylelint-disable-next-line selector-pseudo-class-no-unknown
271
+ &:input-placeholder,
272
+ &::placeholder {
273
+ color: var(--color-content-tertiary);
274
+ }
275
+ }
276
+
277
+ progress {
278
+ vertical-align: baseline; // Normalize 8.0.1
279
+ }
280
+
281
+ ol,
282
+ ul {
283
+ margin: 0 0 var(--size-24);
284
+ .padding-shorthand(0, 0, 0, 38px);
285
+
286
+ ol,
287
+ ul {
288
+ margin-bottom: 0;
289
+ }
290
+ }
291
+
292
+ .list-unstyled {
293
+ .padding(left, 0);
294
+
295
+ list-style: none;
296
+ }
297
+
298
+ .list-inline {
299
+ .margin(left, calc(var(--size-4) * -1));
300
+
301
+ .padding(left, 0);
302
+
303
+ list-style: none;
304
+
305
+ > li {
306
+ display: inline-block;
307
+ .padding(right, var(--size-8));
308
+
309
+ .padding(left, var(--size-4));
310
+
311
+ .border(right, 1px, solid, var(--color-border-neutral));
312
+
313
+ &:last-child {
314
+ .border(right, 0);
315
+ }
316
+ }
317
+ }
318
+
319
+ dt,
320
+ dd {
321
+ line-height: var(--line-height-body);
322
+ }
323
+
324
+ dt {
325
+ font-size: var(--font-size-14);
326
+ }
327
+
328
+ dd {
329
+ margin-bottom: var(--size-16);
330
+ color: var(--color-content-primary);
331
+
332
+ @media (--screen-sm) {
333
+ margin-bottom: var(--size-24);
334
+ }
335
+ }
336
+
337
+ /* Deprecated - use the Neptune Web DefinitionList component */
338
+ .dl-horizontal {
339
+ dd {
340
+ &::before,
341
+ &::after {
342
+ display: table;
343
+ content: " ";
344
+ }
345
+
346
+ &::after {
347
+ clear: both;
348
+ }
349
+ }
350
+
351
+ @media (--screen-sm) {
352
+ dt {
353
+ .float(left);
354
+ .clear(left);
355
+
356
+ width: 156px;
357
+ overflow: hidden;
358
+ white-space: nowrap;
359
+ .text-align(left);
360
+
361
+ text-overflow: ellipsis;
362
+ }
363
+
364
+ dd {
365
+ margin-bottom: var(--size-8);
366
+ .margin(left, 180px);
367
+ }
368
+ }
369
+ }
370
+
371
+ /* Deprecated - use the Neptune Web DefinitionList component */
372
+ .dl-horizontal-item {
373
+ display: flex;
374
+ flex-wrap: nowrap;
375
+
376
+ dt {
377
+ flex: 1 2 auto;
378
+ }
379
+
380
+ dd {
381
+ flex: 1 1 auto;
382
+ .text-align(right);
383
+
384
+ word-break: break-all;
385
+ }
386
+ }
387
+
388
+ hr {
389
+ box-sizing: content-box; // Normalize 8.0.1
390
+ height: 0; // Normalize 8.0.1
391
+ margin: var(--size-16) auto;
392
+ overflow: visible; // Normalize 8.0.1
393
+ border: 0;
394
+ border-top: 1px solid var(--color-border-neutral);
395
+
396
+ // @DEPRECATED: .bg-primary use .bg-elevated or ThemeProvider with theme="forest-green" instead
397
+ .bg-primary & {
398
+ border-top: 1px solid @color-navy-border-neutral;
399
+ }
400
+
401
+ @media (--screen-sm) {
402
+ margin: var(--size-24) auto;
403
+ }
404
+
405
+ @media (--screen-lg) {
406
+ margin: var(--size-32) auto;
407
+ }
408
+ }
409
+
410
+ table {
411
+ border-collapse: collapse;
412
+ border-spacing: 0;
413
+ }
414
+
415
+ video,
416
+ canvas,
417
+ audio,
418
+ iframe,
419
+ embed,
420
+ object {
421
+ display: block;
422
+ }
423
+
424
+ img,
425
+ video {
426
+ max-width: 100%;
427
+ height: auto;
428
+ vertical-align: middle;
429
+ }
430
+
431
+ .img-rounded {
432
+ border-radius: var(--radius-small);
433
+ }
434
+
435
+ .img-circle {
436
+ border-radius: 50%;
437
+ }
438
+
439
+ [hidden] {
440
+ display: none; // Normalize 8.0.1
441
+ }
442
+
443
+ .disabled,
444
+ :disabled {
445
+ filter: grayscale(1);
446
+ opacity: 0.45;
447
+ cursor: not-allowed !important;
448
+ }
449
+
450
+ // Only display content to screen readers
451
+ .sr-only {
452
+ position: absolute;
453
+ width: 1px;
454
+ height: 1px;
455
+ margin: -1px;
456
+ padding: 0;
457
+ overflow: hidden;
458
+ border: 0;
459
+ clip: rect(0, 0, 0, 0);
460
+ }
461
+
462
+ // Use in conjunction with `.sr-only` to only display content when it's focused.
463
+ .sr-only-focusable {
464
+ &:active,
465
+ &:focus {
466
+ position: static;
467
+ width: auto;
468
+ height: auto;
469
+ margin: 0;
470
+ overflow: visible;
471
+ clip: auto;
472
+ }
473
+ }
@@ -0,0 +1,269 @@
1
+ @import (reference) "../../variables/neptune-tokens.less";
2
+ @import (reference) "../mixins/_logical-properties.less";
3
+ @import (reference) "../mixins/_links.less";
4
+ @import "../mixins/_text-emphasis.less";
5
+
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
+ text-decoration: underline !important;
133
+ }
134
+
135
+ .np-theme-personal .text-underline {
136
+ .link-underline(true);
137
+ }
138
+
139
+ .text-no-decoration {
140
+ text-decoration: none !important;
141
+ }
142
+
143
+ .text-ellipsis,
144
+ .text-ellipses {
145
+ display: block;
146
+ text-overflow: ellipsis;
147
+ white-space: nowrap;
148
+ overflow: hidden;
149
+ }
150
+
151
+ .text-max-width {
152
+ max-width: 600px;
153
+ }
154
+
155
+ .text-word-break {
156
+ word-break: break-all;
157
+ }
158
+
159
+ .font-weight-bold {
160
+ font-weight: var(--font-weight-bold) !important;
161
+ }
162
+
163
+ .font-weight-semi-bold {
164
+ font-weight: var(--font-weight-semi-bold) !important;
165
+ }
166
+
167
+ .font-weight-normal {
168
+ font-weight: var(--font-weight-regular) !important;
169
+ }
170
+
171
+ .font-italic {
172
+ font-style: italic !important;
173
+ }
174
+
175
+ // Contextual colors `.text-*`
176
+
177
+ .text-primary {
178
+ .text-emphasis-variant(var(--color-content-primary), var(--color-content-primary), var(--color-content-primary));
179
+
180
+ // @DEPRECATED: .bg-primary use .bg-elevated or ThemeProvider with theme="forest-green" instead
181
+ .bg-primary & {
182
+ color: @color-navy-content-primary !important;
183
+ }
184
+ }
185
+
186
+ .text-secondary {
187
+ color: var(--color-content-secondary) !important;
188
+ }
189
+
190
+ .text-positive,
191
+ .text-success {
192
+ .text-emphasis-variant(
193
+ var(--color-content-positive),
194
+ var(--color-content-positive),
195
+ var(--color-content-positive-hover)
196
+ );
197
+
198
+ // @DEPRECATED: .bg-primary use .bg-elevated or ThemeProvider with theme="forest-green" instead
199
+ .bg-primary & {
200
+ color: @color-navy-content-positive !important;
201
+ }
202
+ }
203
+
204
+ .text-accent,
205
+ .text-info {
206
+ .text-emphasis-variant(var(--color-content-accent), var(--color-content-accent), var(--color-content-accent-hover));
207
+
208
+ .np-theme-personal & {
209
+ color: var(--color-interactive-primary) !important;
210
+ }
211
+
212
+ // @DEPRECATED: .bg-primary use .bg-elevated or ThemeProvider with theme="forest-green" instead
213
+ .bg-primary & {
214
+ color: @color-navy-content-accent !important;
215
+ }
216
+ }
217
+
218
+ .text-warning {
219
+ .text-emphasis-variant(
220
+ var(--color-content-warning),
221
+ var(--color-content-warning),
222
+ var(--color-content-warning-hover),
223
+ );
224
+
225
+ // @DEPRECATED: .bg-primary use .bg-elevated or ThemeProvider with theme="forest-green" instead
226
+ .bg-primary & {
227
+ color: @color-navy-content-warning !important;
228
+ }
229
+ }
230
+
231
+ .text-negative,
232
+ .text-danger {
233
+ .text-emphasis-variant(
234
+ var(--color-content-negative),
235
+ var(--color-content-negative),
236
+ var(--color-content-negative-hover)
237
+ );
238
+
239
+ // @DEPRECATED: .bg-primary use .bg-elevated or ThemeProvider with theme="forest-green" instead
240
+ .bg-primary & {
241
+ color: @color-navy-content-negative !important;
242
+ }
243
+ }
244
+
245
+ .text-inverse {
246
+ .text-emphasis-variant(@color-navy-content-primary, @color-navy-content-primary, @color-navy-content-secondary);
247
+ }
248
+
249
+ .text-muted {
250
+ color: var(--color-content-tertiary) !important;
251
+ }
252
+
253
+ // @deprecated: we no longer have "colored dot" design feature in new brand
254
+ .colored-dot {
255
+ &::after {
256
+ content: ".";
257
+ color: var(--color-content-accent);
258
+
259
+ .np-theme-personal & {
260
+ content: none;
261
+ }
262
+ }
263
+
264
+ &--green {
265
+ &::after {
266
+ color: var(--color-content-positive);
267
+ }
268
+ }
269
+ }