@transferwise/components 0.0.0-experimental-e8160fd → 0.0.0-experimental-0384cde

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 (310) hide show
  1. package/build/main.css +22700 -8
  2. package/build/neptune-css/fonts/TW-Averta-Bold.woff +0 -0
  3. package/build/neptune-css/fonts/TW-Averta-Bold.woff2 +0 -0
  4. package/build/neptune-css/fonts/TW-Averta-Regular.woff +0 -0
  5. package/build/neptune-css/fonts/TW-Averta-Regular.woff2 +0 -0
  6. package/build/neptune-css/fonts/TW-Averta-Semibold.woff +0 -0
  7. package/build/neptune-css/fonts/TW-Averta-Semibold.woff2 +0 -0
  8. package/build/neptune-css/fonts/TransferWise-IconFont.svg +81 -0
  9. package/build/neptune-css/fonts/TransferWise-IconFont.woff +0 -0
  10. package/build/neptune-css/fonts/WiseSans-Heavy.woff2 +0 -0
  11. package/build/neptune-css/fonts/inter-cyrillic-ext-variable-wghtOnly-normal.woff2 +0 -0
  12. package/build/neptune-css/fonts/inter-cyrillic-variable-wghtOnly-normal.woff2 +0 -0
  13. package/build/neptune-css/fonts/inter-greek-ext-variable-wghtOnly-normal.woff2 +0 -0
  14. package/build/neptune-css/fonts/inter-greek-variable-wghtOnly-normal.woff2 +0 -0
  15. package/build/neptune-css/fonts/inter-latin-ext-variable-wghtOnly-normal.woff2 +0 -0
  16. package/build/neptune-css/fonts/inter-latin-variable-wghtOnly-normal.woff2 +0 -0
  17. package/build/neptune-css/fonts/inter-vietnamese-variable-wghtOnly-normal.woff2 +0 -0
  18. package/build/neptune-css/img/bg-dark.svg +31 -0
  19. package/build/neptune-css/img/bg-light.svg +26 -0
  20. package/build/styles/main.css +22700 -8
  21. package/build/styles/neptune-css/less/accordion.css +231 -0
  22. package/build/styles/neptune-css/less/alerts.css +748 -0
  23. package/build/styles/neptune-css/less/background.css +18 -0
  24. package/build/styles/neptune-css/less/badge.css +90 -0
  25. package/build/styles/neptune-css/less/border-radius.css +3 -0
  26. package/build/styles/neptune-css/less/breadcrumbs.css +20 -0
  27. package/build/styles/neptune-css/less/button-groups.css +408 -0
  28. package/build/styles/neptune-css/less/buttons.css +1387 -0
  29. package/build/styles/neptune-css/less/chevron.css +35 -0
  30. package/build/styles/neptune-css/less/circles.css +248 -0
  31. package/build/styles/neptune-css/less/close.css +47 -0
  32. package/build/styles/neptune-css/less/column-layout.css +164 -0
  33. package/build/styles/neptune-css/less/core/viewport-themes.css +59 -0
  34. package/build/styles/neptune-css/less/currency-flags.css +46 -0
  35. package/build/styles/neptune-css/less/decision.css +91 -0
  36. package/build/styles/neptune-css/less/dropdowns.css +400 -0
  37. package/build/styles/neptune-css/less/droppable.css +177 -0
  38. package/build/styles/neptune-css/less/flex.css +598 -0
  39. package/build/styles/neptune-css/less/footer.css +110 -0
  40. package/build/styles/neptune-css/less/forms/bootstrap-forms.css +1975 -0
  41. package/build/styles/neptune-css/less/forms/checkbox-radio.css +367 -0
  42. package/build/styles/neptune-css/less/grid.css +2369 -0
  43. package/build/styles/neptune-css/less/input-groups.css +2706 -0
  44. package/build/styles/neptune-css/less/link-callout.css +20 -0
  45. package/build/styles/neptune-css/less/list-group.css +267 -0
  46. package/build/styles/neptune-css/less/loaders.css +76 -0
  47. package/build/styles/neptune-css/less/media.css +74 -0
  48. package/build/styles/neptune-css/less/modals.css +185 -0
  49. package/build/styles/neptune-css/less/navbar.css +2382 -0
  50. package/build/styles/neptune-css/less/navs.css +296 -0
  51. package/build/styles/neptune-css/less/neptune-addons.css +1829 -0
  52. package/build/styles/neptune-css/less/neptune-core.css +1971 -0
  53. package/build/styles/neptune-css/less/neptune-social-media.css +144 -0
  54. package/build/styles/neptune-css/less/neptune.css +24468 -0
  55. package/build/styles/neptune-css/less/panels.css +528 -0
  56. package/build/styles/neptune-css/less/popovers.css +530 -0
  57. package/build/styles/neptune-css/less/process.css +483 -0
  58. package/build/styles/neptune-css/less/progress-bars.css +64 -0
  59. package/build/styles/neptune-css/less/ring.css +55 -0
  60. package/build/styles/neptune-css/less/select.css +99 -0
  61. package/build/styles/neptune-css/less/sequences.css +855 -0
  62. package/build/styles/neptune-css/less/table.css +446 -0
  63. package/build/styles/neptune-css/less/tick.css +32 -0
  64. package/build/styles/neptune-css/less/tooltip.css +138 -0
  65. package/build/styles/neptune-css/less/utilities.css +145 -0
  66. package/build/styles/neptune-css/less/wells.css +74 -0
  67. package/build/styles/neptune-css/props/custom-media.css +11 -0
  68. package/build/styles/neptune-css/props/legacy-custom-props.css +69 -0
  69. package/build/styles/neptune-css/props/neptune-tokens.css +11 -0
  70. package/build/styles/neptune-css/variables/legacy-variables.css +0 -0
  71. package/build/styles/neptune-css/variables/neptune-tokens.css +0 -0
  72. package/build/styles/neptune-css/variables/zindex.css +0 -0
  73. package/package.json +6 -6
  74. package/src/accordion/Accordion.less +3 -3
  75. package/src/actionButton/ActionButton.less +1 -1
  76. package/src/avatar/Avatar.less +3 -3
  77. package/src/badge/Badge.less +1 -1
  78. package/src/button/LegacyButton.less +1 -1
  79. package/src/card/Card.less +3 -3
  80. package/src/checkboxButton/CheckboxButton.less +2 -2
  81. package/src/chips/Chip.less +3 -3
  82. package/src/common/Option/Option.less +2 -2
  83. package/src/common/bottomSheet/BottomSheet.less +1 -1
  84. package/src/common/closeButton/CloseButton.less +1 -1
  85. package/src/common/panel/Panel.less +1 -1
  86. package/src/dateLookup/DateLookup.less +1 -1
  87. package/src/dateLookup/dateTrigger/DateTrigger.less +2 -2
  88. package/src/decision/Decision.less +1 -1
  89. package/src/definitionList/DefinitionList.less +1 -1
  90. package/src/dimmer/Dimmer.less +2 -2
  91. package/src/drawer/Drawer.less +2 -2
  92. package/src/flowNavigation/FlowNavigation.less +1 -1
  93. package/src/flowNavigation/animatedLabel/AnimatedLabel.less +2 -2
  94. package/src/info/Info.less +1 -1
  95. package/src/inputs/SelectInput.less +1 -1
  96. package/src/inputs/_common.less +1 -1
  97. package/src/link/Link.less +2 -2
  98. package/src/main.less +2 -0
  99. package/src/moneyInput/MoneyInput.less +2 -2
  100. package/src/navigationOption/NavigationOption.less +3 -3
  101. package/src/navigationOptionsList/NavigationOptionsList.less +1 -1
  102. package/src/neptune-css/fonts/TW-Averta-Bold.woff +0 -0
  103. package/src/neptune-css/fonts/TW-Averta-Bold.woff2 +0 -0
  104. package/src/neptune-css/fonts/TW-Averta-Regular.woff +0 -0
  105. package/src/neptune-css/fonts/TW-Averta-Regular.woff2 +0 -0
  106. package/src/neptune-css/fonts/TW-Averta-Semibold.woff +0 -0
  107. package/src/neptune-css/fonts/TW-Averta-Semibold.woff2 +0 -0
  108. package/src/neptune-css/fonts/TransferWise-IconFont.svg +81 -0
  109. package/src/neptune-css/fonts/TransferWise-IconFont.woff +0 -0
  110. package/src/neptune-css/fonts/WiseSans-Heavy.woff2 +0 -0
  111. package/src/neptune-css/fonts/inter-cyrillic-ext-variable-wghtOnly-normal.woff2 +0 -0
  112. package/src/neptune-css/fonts/inter-cyrillic-variable-wghtOnly-normal.woff2 +0 -0
  113. package/src/neptune-css/fonts/inter-greek-ext-variable-wghtOnly-normal.woff2 +0 -0
  114. package/src/neptune-css/fonts/inter-greek-variable-wghtOnly-normal.woff2 +0 -0
  115. package/src/neptune-css/fonts/inter-latin-ext-variable-wghtOnly-normal.woff2 +0 -0
  116. package/src/neptune-css/fonts/inter-latin-variable-wghtOnly-normal.woff2 +0 -0
  117. package/src/neptune-css/fonts/inter-vietnamese-variable-wghtOnly-normal.woff2 +0 -0
  118. package/src/neptune-css/img/bg-dark.svg +31 -0
  119. package/src/neptune-css/img/bg-light.svg +26 -0
  120. package/src/neptune-css/less/accordion.less +15 -0
  121. package/src/neptune-css/less/addons/_background-utilities.less +82 -0
  122. package/src/neptune-css/less/addons/_border.less +3 -0
  123. package/src/neptune-css/less/addons/_display-utilities.less +159 -0
  124. package/src/neptune-css/less/addons/_spacing-utilities.less +48 -0
  125. package/src/neptune-css/less/addons/_utilities.less +147 -0
  126. package/src/neptune-css/less/alerts.less +248 -0
  127. package/src/neptune-css/less/background.less +24 -0
  128. package/src/neptune-css/less/badge.less +85 -0
  129. package/src/neptune-css/less/border-radius.less +3 -0
  130. package/src/neptune-css/less/breadcrumbs.less +27 -0
  131. package/src/neptune-css/less/button-groups.less +424 -0
  132. package/src/neptune-css/less/buttons.less +731 -0
  133. package/src/neptune-css/less/chevron.less +39 -0
  134. package/src/neptune-css/less/circles.less +233 -0
  135. package/src/neptune-css/less/close.less +48 -0
  136. package/src/neptune-css/less/column-layout.less +167 -0
  137. package/src/neptune-css/less/components/_component-animations.less +43 -0
  138. package/src/neptune-css/less/core/_fonts.less +97 -0
  139. package/src/neptune-css/less/core/_scaffolding.less +373 -0
  140. package/src/neptune-css/less/core/_typography-utilities.less +251 -0
  141. package/src/neptune-css/less/core/_typography.less +597 -0
  142. package/src/neptune-css/less/core/viewport-themes.less +65 -0
  143. package/src/neptune-css/less/currency-flags.less +42 -0
  144. package/src/neptune-css/less/decision.less +98 -0
  145. package/src/neptune-css/less/dropdowns.less +365 -0
  146. package/src/neptune-css/less/droppable.less +213 -0
  147. package/src/neptune-css/less/flex.less +113 -0
  148. package/src/neptune-css/less/footer.less +113 -0
  149. package/src/neptune-css/less/forms/bootstrap-forms.less +1218 -0
  150. package/src/neptune-css/less/forms/checkbox-radio.less +330 -0
  151. package/src/neptune-css/less/grid.less +187 -0
  152. package/src/neptune-css/less/input-groups.less +298 -0
  153. package/src/neptune-css/less/link-callout.less +17 -0
  154. package/src/neptune-css/less/list-group.less +260 -0
  155. package/src/neptune-css/less/loaders.less +91 -0
  156. package/src/neptune-css/less/media.less +68 -0
  157. package/src/neptune-css/less/mixins/_alerts.less +35 -0
  158. package/src/neptune-css/less/mixins/_arrows.less +52 -0
  159. package/src/neptune-css/less/mixins/_border-radius.less +11 -0
  160. package/src/neptune-css/less/mixins/_buttons.less +82 -0
  161. package/src/neptune-css/less/mixins/_center-block.less +7 -0
  162. package/src/neptune-css/less/mixins/_clearfix.less +23 -0
  163. package/src/neptune-css/less/mixins/_flex.less +105 -0
  164. package/src/neptune-css/less/mixins/_forms.less +130 -0
  165. package/src/neptune-css/less/mixins/_grid-framework.less +104 -0
  166. package/src/neptune-css/less/mixins/_grid.less +158 -0
  167. package/src/neptune-css/less/mixins/_hide-text.less +20 -0
  168. package/src/neptune-css/less/mixins/_links.less +7 -0
  169. package/src/neptune-css/less/mixins/_list-group.less +23 -0
  170. package/src/neptune-css/less/mixins/_logical-properties-IE-friendly.less +381 -0
  171. package/src/neptune-css/less/mixins/_logical-properties-modern-browsers.less +226 -0
  172. package/src/neptune-css/less/mixins/_logical-properties.less +5 -0
  173. package/src/neptune-css/less/mixins/_nav-divider.less +10 -0
  174. package/src/neptune-css/less/mixins/_nav-vertical-align.less +10 -0
  175. package/src/neptune-css/less/mixins/_panels.less +23 -0
  176. package/src/neptune-css/less/mixins/_physical-properties.less +110 -0
  177. package/src/neptune-css/less/mixins/_reset-text.less +22 -0
  178. package/src/neptune-css/less/mixins/_sequence.less +203 -0
  179. package/src/neptune-css/less/mixins/_spacing.less +122 -0
  180. package/src/neptune-css/less/mixins/_tab-focus.less +5 -0
  181. package/src/neptune-css/less/mixins/_table-row.less +47 -0
  182. package/src/neptune-css/less/mixins/_text-emphasis.less +39 -0
  183. package/src/neptune-css/less/mixins/_text-overflow.less +8 -0
  184. package/src/neptune-css/less/mixins/_theming.less +7 -0
  185. package/src/neptune-css/less/modals.less +239 -0
  186. package/src/neptune-css/less/navbar.less +1442 -0
  187. package/src/neptune-css/less/navs.less +339 -0
  188. package/src/neptune-css/less/neptune-addons.less +4 -0
  189. package/src/neptune-css/less/neptune-core.less +4 -0
  190. package/src/neptune-css/less/neptune-social-media.less +84 -0
  191. package/src/neptune-css/less/neptune.bundle.less +51 -0
  192. package/src/neptune-css/less/panels.less +410 -0
  193. package/src/neptune-css/less/popovers.less +379 -0
  194. package/src/neptune-css/less/process.less +426 -0
  195. package/src/neptune-css/less/progress-bars.less +55 -0
  196. package/src/neptune-css/less/ring.less +51 -0
  197. package/src/neptune-css/less/select.less +88 -0
  198. package/src/neptune-css/less/sequences.less +511 -0
  199. package/src/neptune-css/less/table.less +385 -0
  200. package/src/neptune-css/less/tick.less +37 -0
  201. package/src/neptune-css/less/tooltip.less +130 -0
  202. package/src/neptune-css/less/utilities.less +153 -0
  203. package/src/neptune-css/less/wells.less +37 -0
  204. package/src/neptune-css/props/custom-media.css +11 -0
  205. package/src/neptune-css/props/legacy-custom-props.css +69 -0
  206. package/src/neptune-css/props/neptune-tokens.css +11 -0
  207. package/src/neptune-css/variables/legacy-variables.less +1299 -0
  208. package/src/neptune-css/variables/neptune-tokens.less +12 -0
  209. package/src/neptune-css/variables/zindex.less +17 -0
  210. package/src/overlayHeader/OverlayHeader.less +1 -1
  211. package/src/phoneNumberInput/PhoneNumberInput.less +1 -1
  212. package/src/popover/Popover.less +1 -1
  213. package/src/select/Select.less +5 -5
  214. package/src/selectOption/SelectOption.less +1 -1
  215. package/src/slidingPanel/SlidingPanel.less +2 -2
  216. package/src/snackbar/Snackbar.less +3 -3
  217. package/src/stepper/Stepper.less +3 -3
  218. package/src/summary/Summary.less +1 -1
  219. package/src/switch/Switch.less +3 -3
  220. package/src/table/Table.less +1 -1
  221. package/src/tabs/Tabs.less +4 -4
  222. package/src/tile/Tile.less +1 -1
  223. package/src/tooltip/Tooltip.less +1 -1
  224. package/src/typeahead/Typeahead.less +2 -2
  225. package/src/typeahead/typeaheadOption/TypeaheadOption.less +1 -1
  226. package/src/upload/Upload.less +1 -1
  227. package/src/uploadInput/UploadInput.less +2 -2
  228. package/src/uploadInput/uploadItem/UploadItem.less +1 -1
  229. package/src/accordion/Accordion.css +0 -60
  230. package/src/actionButton/ActionButton.css +0 -64
  231. package/src/actionOption/ActionOption.css +0 -4
  232. package/src/alert/Alert.css +0 -7
  233. package/src/avatar/Avatar.css +0 -205
  234. package/src/avatarLayout/AvatarLayout.css +0 -42
  235. package/src/avatarView/AvatarView.css +0 -36
  236. package/src/avatarView/NotificationDot.css +0 -20
  237. package/src/badge/Badge.css +0 -65
  238. package/src/button/Button.css +0 -246
  239. package/src/button/Button.vars.css +0 -46
  240. package/src/button/LegacyButton.css +0 -23
  241. package/src/card/Card.css +0 -100
  242. package/src/carousel/Carousel.css +0 -134
  243. package/src/checkboxButton/CheckboxButton.css +0 -43
  244. package/src/chips/Chip.css +0 -190
  245. package/src/circularButton/CircularButton.css +0 -33
  246. package/src/common/Option/Option.css +0 -122
  247. package/src/common/RadioButton/RadioButton.css +0 -4
  248. package/src/common/bottomSheet/BottomSheet.css +0 -53
  249. package/src/common/card/Card.css +0 -49
  250. package/src/common/circle/Circle.css +0 -43
  251. package/src/common/closeButton/CloseButton.css +0 -94
  252. package/src/common/panel/Panel.css +0 -73
  253. package/src/criticalBanner/CriticalCommsBanner.css +0 -36
  254. package/src/dateInput/DateInput.css +0 -3
  255. package/src/dateLookup/DateLookup.css +0 -98
  256. package/src/dateLookup/dateTrigger/DateTrigger.css +0 -29
  257. package/src/decision/Decision.css +0 -17
  258. package/src/definitionList/DefinitionList.css +0 -53
  259. package/src/dimmer/Dimmer.css +0 -70
  260. package/src/drawer/Drawer.css +0 -103
  261. package/src/dropFade/DropFade.css +0 -19
  262. package/src/emphasis/Emphasis.css +0 -31
  263. package/src/field/Field.css +0 -4
  264. package/src/flowNavigation/FlowNavigation.css +0 -76
  265. package/src/flowNavigation/animatedLabel/AnimatedLabel.css +0 -30
  266. package/src/header/Header.css +0 -26
  267. package/src/iconButton/IconButton.css +0 -82
  268. package/src/image/Image.css +0 -13
  269. package/src/info/Info.css +0 -32
  270. package/src/inputs/Input.css +0 -101
  271. package/src/inputs/InputGroup.css +0 -63
  272. package/src/inputs/SelectInput.css +0 -372
  273. package/src/inputs/TextArea.css +0 -105
  274. package/src/instructionsList/InstructionsList.css +0 -26
  275. package/src/link/Link.css +0 -15
  276. package/src/listItem/ListItem.css +0 -6
  277. package/src/loader/Loader.css +0 -313
  278. package/src/logo/Logo.css +0 -26
  279. package/src/main.css +0 -6248
  280. package/src/modal/Modal.css +0 -158
  281. package/src/moneyInput/MoneyInput.css +0 -66
  282. package/src/navigationOption/NavigationOption.css +0 -69
  283. package/src/navigationOptionsList/NavigationOptionsList.css +0 -13
  284. package/src/nudge/Nudge.css +0 -191
  285. package/src/overlayHeader/OverlayHeader.css +0 -15
  286. package/src/phoneNumberInput/PhoneNumberInput.css +0 -23
  287. package/src/popover/Popover.css +0 -43
  288. package/src/progress/Progress.css +0 -43
  289. package/src/progressBar/ProgressBar.css +0 -14
  290. package/src/promoCard/PromoCard.css +0 -186
  291. package/src/section/Section.css +0 -10
  292. package/src/segmentedControl/SegmentedControl.css +0 -101
  293. package/src/select/Select.css +0 -305
  294. package/src/selectOption/SelectOption.css +0 -44
  295. package/src/slidingPanel/SlidingPanel.css +0 -105
  296. package/src/snackbar/Snackbar.css +0 -93
  297. package/src/statusIcon/StatusIcon.css +0 -27
  298. package/src/stepper/Stepper.css +0 -84
  299. package/src/summary/Summary.css +0 -85
  300. package/src/switch/Switch.css +0 -68
  301. package/src/table/Table.css +0 -274
  302. package/src/tabs/Tabs.css +0 -121
  303. package/src/tile/Tile.css +0 -55
  304. package/src/tooltip/Tooltip.css +0 -50
  305. package/src/typeahead/Typeahead.css +0 -183
  306. package/src/typeahead/typeaheadOption/TypeaheadOption.css +0 -9
  307. package/src/upload/Upload.css +0 -31
  308. package/src/uploadInput/UploadInput.css +0 -18
  309. package/src/uploadInput/uploadButton/UploadButton.css +0 -90
  310. package/src/uploadInput/uploadItem/UploadItem.css +0 -165
@@ -0,0 +1,373 @@
1
+ /* stylelint-disable selector-max-empty-lines */
2
+
3
+ @import "modern-normalize";
4
+ @import (reference) "../../variables/neptune-tokens.less";
5
+ @import (reference) "../mixins/_logical-properties.less";
6
+ @import (reference) "../mixins/_links.less";
7
+ @import (reference) "../core/_typography.less";
8
+ @import "../../variables/legacy-variables.less";
9
+
10
+ :root {
11
+ // page default font size should be set in absolute units (pixels)
12
+ --base-font-size: 16px;
13
+ --font-family-regular: "Inter", Helvetica, Arial, sans-serif;
14
+ --input-group-addon-padding: @padding-large-vertical @padding-base-horizontal calc(@padding-large-vertical - 2px);
15
+ --btn-padding: @btn-padding-vertical @btn-padding-horizontal calc(@btn-padding-vertical - 2px);
16
+ --btn-xs-padding: @btn-xs-padding-vertical @btn-xs-padding-horizontal calc(@btn-xs-padding-vertical - 2px);
17
+ --btn-sm-padding: @btn-sm-padding-vertical @btn-sm-padding-horizontal calc(@btn-sm-padding-vertical - 2px);
18
+ --btn-lg-padding: @btn-lg-padding-vertical @btn-lg-padding-horizontal calc(@btn-lg-padding-vertical - 2px);
19
+ --input-padding: @padding-large-vertical @padding-base-horizontal calc(@padding-large-vertical - 2px);
20
+ --input-padding-small: @padding-small-vertical @padding-small-horizontal calc(@padding-small-vertical - 2px);
21
+ --input-padding-large: @padding-large-vertical @padding-large-horizontal calc(@padding-large-vertical - 2px);
22
+ --input-group-addon-sm-padding: calc(@padding-small-vertical - 1px) @padding-small-horizontal;
23
+ --input-group-addon-lg-padding: @padding-large-vertical @padding-large-horizontal calc(@padding-large-vertical - 2px);
24
+ --dropdown-link-padding: calc(@padding-large-vertical + 1px) @padding-large-horizontal calc(@padding-large-vertical - 1px);
25
+ --btn-radius-base: @border-radius-base;
26
+ --btn-sm-radius-base: @border-radius-small;
27
+ --btn-lg-radius-base: @border-radius-large;
28
+ }
29
+
30
+ .np-theme-light,
31
+ .np-theme-dark,
32
+ .np-theme-navy {
33
+ --font-family-regular: averta, avenir w02, avenir, helvetica, arial, sans-serif !important;
34
+
35
+ font-family: var(--font-family-regular);
36
+ line-height: var(--line-height-body);
37
+ }
38
+
39
+ .np-theme-personal {
40
+ --font-family-regular: "Inter", Helvetica, Arial, sans-serif !important;
41
+
42
+ font-family: var(--font-family-regular);
43
+ font-feature-settings: "calt";
44
+
45
+ --input-group-addon-padding: @padding-large-vertical @padding-base-horizontal;
46
+ --btn-padding: calc(@btn-padding-vertical - @btn-border-width) @btn-padding-horizontal;
47
+ --btn-xs-padding: calc(@btn-xs-padding-vertical - @btn-border-width) @btn-xs-padding-horizontal;
48
+ --btn-sm-padding: calc(@btn-sm-padding-vertical - @btn-border-width) @btn-sm-padding-horizontal;
49
+ --btn-lg-padding: calc(@btn-lg-padding-vertical - @btn-border-width) @btn-lg-padding-horizontal;
50
+ --btn-height: @btn-height;
51
+ --btn-xs-height: @btn-xs-height;
52
+ --btn-sm-height: @btn-sm-height;
53
+ --btn-lg-height: @btn-lg-height;
54
+ --input-height-base: @input-height-base;
55
+ --input-height-large: @input-height-large;
56
+ --input-height-small: @input-height-small;
57
+ --input-padding: @padding-large-vertical @padding-base-horizontal;
58
+ --input-padding-small: @padding-small-vertical @padding-small-horizontal;
59
+ --input-padding-large: @padding-large-vertical @padding-large-horizontal;
60
+ --input-group-addon-sm-padding: @padding-small-vertical @padding-small-horizontal;
61
+ --input-group-addon-lg-padding: @padding-large-vertical @padding-large-horizontal;
62
+ --dropdown-link-padding: @padding-large-vertical @padding-large-horizontal;
63
+ --btn-radius-base: 9999px;
64
+ --btn-sm-radius-base: var(--btn-radius-base);
65
+ --btn-lg-radius-base: var(--btn-radius-base);
66
+
67
+ color: var(--color-content-secondary);
68
+ background-color: var(--color-background-screen);
69
+ }
70
+
71
+ html {
72
+ font-size: var(--base-font-size);
73
+ font-family: var(--font-family-regular);
74
+ color: var(--color-content-secondary);
75
+ background-color: var(--color-background-screen);
76
+ -webkit-font-smoothing: antialiased;
77
+ -moz-osx-font-smoothing: grayscale;
78
+ }
79
+
80
+ blockquote,
81
+ dl,
82
+ dd,
83
+ hr,
84
+ figure,
85
+ p,
86
+ pre {
87
+ margin: 0;
88
+ }
89
+
90
+ .np-theme-personal::selection {
91
+ background-color: var(--color-background-neutral-active);
92
+ color: var(--color-content-primary);
93
+ }
94
+
95
+ /* DEPRECATED: use `a` tag or .np-text-link-* instead */
96
+ /* stylelint-disable-next-line selector-list-comma-newline-after */
97
+ .anchor,
98
+ a,
99
+ .np-text-link-default,
100
+ .np-text-link-large {
101
+ color: var(--color-content-link);
102
+
103
+ // @DEPRECATED: .bg-primary use .bg-elevated or ThemeProvider with theme="forest-green" instead
104
+ .bg-primary & {
105
+ color: @color-navy-content-accent;
106
+
107
+ &:hover,
108
+ &:focus {
109
+ color: @color-navy-content-accent-hover;
110
+ }
111
+
112
+ &:active {
113
+ color: @color-navy-content-accent-active;
114
+ }
115
+ }
116
+
117
+ &:hover,
118
+ &:focus {
119
+ color: var(--color-content-link-hover);
120
+ text-decoration: underline;
121
+ }
122
+
123
+ &:active {
124
+ color: var(--color-content-link-active);
125
+ }
126
+
127
+ &.secondary {
128
+ color: var(--color-content-secondary);
129
+
130
+ &:hover,
131
+ &:focus {
132
+ color: var(--color-content-accent-hover);
133
+ }
134
+
135
+ &:active {
136
+ color: var(--color-content-accent-active);
137
+ }
138
+ }
139
+ }
140
+
141
+ html.ios-click {
142
+ cursor: pointer;
143
+ }
144
+
145
+ fieldset {
146
+ margin: 0;
147
+ padding: 0;
148
+ }
149
+
150
+ button,
151
+ input,
152
+ optgroup,
153
+ select,
154
+ textarea {
155
+ padding: 0;
156
+ color: inherit;
157
+ font-size: inherit;
158
+ line-height: inherit;
159
+ }
160
+
161
+ button,
162
+ [type="button"],
163
+ [type="reset"],
164
+ [type="submit"] {
165
+ cursor: pointer;
166
+ }
167
+
168
+ // iOS "clickable elements" fix for role="button"
169
+ // see https://developer.mozilla.org/en-US/docs/Web/Events/click#Safari_Mobile
170
+
171
+ [role="button"] {
172
+ cursor: pointer;
173
+ }
174
+
175
+ textarea {
176
+ resize: vertical;
177
+ }
178
+
179
+ input,
180
+ textarea {
181
+ // stylelint-disable-next-line selector-pseudo-class-no-unknown
182
+ &:input-placeholder,
183
+ &::placeholder {
184
+ color: var(--color-content-tertiary);
185
+ }
186
+ }
187
+
188
+ ol,
189
+ ul {
190
+ margin: 0 0 var(--size-24);
191
+ .padding-shorthand(0, 0, 0, calc(var(--size-48) - var(--size-10)));
192
+
193
+ ol,
194
+ ul {
195
+ margin-bottom: 0;
196
+ }
197
+ }
198
+
199
+ .list-unstyled {
200
+ .padding(left, 0);
201
+
202
+ list-style: none;
203
+ }
204
+
205
+ .list-inline {
206
+ .margin(left, calc(var(--size-4) * -1));
207
+
208
+ .padding(left, 0);
209
+
210
+ list-style: none;
211
+
212
+ > li {
213
+ display: inline-block;
214
+ .padding(right, var(--size-8));
215
+
216
+ .padding(left, var(--size-4));
217
+
218
+ .border(right, 1px, solid, var(--color-border-neutral));
219
+
220
+ &:last-child {
221
+ .border(right, 0);
222
+ }
223
+ }
224
+ }
225
+
226
+ dt,
227
+ dd {
228
+ line-height: var(--line-height-body);
229
+ }
230
+
231
+ dt {
232
+ font-size: var(--font-size-14);
233
+ }
234
+
235
+ dd {
236
+ margin-bottom: var(--size-16);
237
+ color: var(--color-content-primary);
238
+
239
+ @media (--screen-sm) {
240
+ margin-bottom: var(--size-24);
241
+ }
242
+ }
243
+
244
+ /* Deprecated - use the Neptune Web DefinitionList component */
245
+ .dl-horizontal {
246
+ dd {
247
+ &::before,
248
+ &::after {
249
+ display: table;
250
+ content: " ";
251
+ }
252
+
253
+ &::after {
254
+ clear: both;
255
+ }
256
+ }
257
+
258
+ @media (--screen-sm) {
259
+ dt {
260
+ .float(left);
261
+ .clear(left);
262
+
263
+ width: 156px;
264
+ overflow: hidden;
265
+ white-space: nowrap;
266
+ .text-align(left);
267
+
268
+ text-overflow: ellipsis;
269
+ }
270
+
271
+ dd {
272
+ margin-bottom: var(--size-8);
273
+ .margin(left, 180px);
274
+ }
275
+ }
276
+ }
277
+
278
+ /* Deprecated - use the Neptune Web DefinitionList component */
279
+ .dl-horizontal-item {
280
+ display: flex;
281
+ flex-wrap: nowrap;
282
+
283
+ dt {
284
+ flex: 1 2 auto;
285
+ }
286
+
287
+ dd {
288
+ flex: 1 1 auto;
289
+ .text-align(right);
290
+
291
+ word-break: break-all;
292
+ }
293
+ }
294
+
295
+ hr {
296
+ margin: var(--size-16) auto;
297
+ border: 0;
298
+ border-top: 1px solid var(--color-border-neutral);
299
+
300
+ // @DEPRECATED: .bg-primary use .bg-elevated or ThemeProvider with theme="forest-green" instead
301
+ .bg-primary & {
302
+ border-top: 1px solid @color-navy-border-neutral;
303
+ }
304
+
305
+ @media (--screen-sm) {
306
+ margin: var(--size-24) auto;
307
+ }
308
+
309
+ @media (--screen-lg) {
310
+ margin: var(--size-32) auto;
311
+ }
312
+ }
313
+
314
+ table {
315
+ border-collapse: collapse;
316
+ border-spacing: 0;
317
+ }
318
+
319
+ video,
320
+ canvas,
321
+ audio,
322
+ iframe,
323
+ embed,
324
+ object {
325
+ display: block;
326
+ }
327
+
328
+ img,
329
+ video {
330
+ max-width: 100%;
331
+ height: auto;
332
+ vertical-align: middle;
333
+ }
334
+
335
+ .img-rounded {
336
+ border-radius: var(--radius-small);
337
+ }
338
+
339
+ .img-circle {
340
+ border-radius: 50%;
341
+ }
342
+
343
+ .disabled,
344
+ :disabled {
345
+ filter: grayscale(1);
346
+ opacity: 0.45;
347
+ cursor: not-allowed !important;
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
+ }
@@ -0,0 +1,251 @@
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
+ .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
+
167
+ .font-italic {
168
+ font-style: italic !important;
169
+ }
170
+
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
247
+ .colored-dot {
248
+ &::after {
249
+ content: none;
250
+ }
251
+ }