@transferwise/neptune-css 10.0.6-beta.36 → 10.0.6-beta.38

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 (114) hide show
  1. package/README.md +1 -1
  2. package/dist/css/accordion.css +1 -1
  3. package/dist/css/alerts.css +1 -1
  4. package/dist/css/background.css +1 -1
  5. package/dist/css/badge.css +1 -1
  6. package/dist/css/breadcrumbs.css +1 -1
  7. package/dist/css/button-groups.css +1 -1
  8. package/dist/css/buttons.css +1 -1
  9. package/dist/css/chevron.css +1 -1
  10. package/dist/css/circles.css +1 -1
  11. package/dist/css/close.css +1 -1
  12. package/dist/css/column-layout.css +1 -1
  13. package/dist/css/currency-flags.css +1 -1
  14. package/dist/css/decision.css +1 -1
  15. package/dist/css/dropdowns.css +1 -0
  16. package/dist/css/droppable.css +1 -1
  17. package/dist/css/flex.css +1 -1
  18. package/dist/css/footer.css +1 -1
  19. package/dist/css/forms.css +1 -1
  20. package/dist/css/grid.css +1 -1
  21. package/dist/css/input-groups.css +1 -1
  22. package/dist/css/link-callout.css +1 -1
  23. package/dist/css/list-group.css +1 -1
  24. package/dist/css/media.css +1 -1
  25. package/dist/css/modals.css +1 -1
  26. package/dist/css/navbar-base.css +1 -0
  27. package/dist/css/navbar.css +1 -1
  28. package/dist/css/navs.css +1 -1
  29. package/dist/css/neptune-addons.css +1 -1
  30. package/dist/css/neptune-core.css +1 -1
  31. package/dist/css/neptune-social-media.css +1 -1
  32. package/dist/css/neptune.css +1 -1
  33. package/dist/css/panels.css +1 -1
  34. package/dist/css/popovers.css +1 -1
  35. package/dist/css/process.css +1 -1
  36. package/dist/css/progress-bars.css +1 -1
  37. package/dist/css/select.css +1 -1
  38. package/dist/css/sequences.css +1 -1
  39. package/dist/css/table.css +1 -1
  40. package/dist/css/tick.css +1 -1
  41. package/dist/css/tooltip.css +1 -1
  42. package/dist/css/utilities.css +1 -1
  43. package/dist/css/wells.css +1 -1
  44. package/dist/less/neptune-tokens.less +85 -78
  45. package/dist/props/neptune-tokens.css +89 -41
  46. package/package.json +4 -7
  47. package/src/less/addons/_background-utilities.less +31 -6
  48. package/src/less/addons/_spacing-utilities.less +4 -4
  49. package/src/less/addons/_utilities.less +141 -0
  50. package/src/less/alerts.less +14 -14
  51. package/src/less/badge.less +65 -4
  52. package/src/less/breadcrumbs.less +25 -4
  53. package/src/less/button-groups.less +45 -38
  54. package/src/less/buttons.less +90 -107
  55. package/src/less/chevron.less +1 -1
  56. package/src/less/circles.less +206 -19
  57. package/src/less/close.less +38 -6
  58. package/src/less/column-layout.less +160 -3
  59. package/src/less/core/_scaffolding.less +36 -27
  60. package/src/less/core/_typography-utilities.less +59 -45
  61. package/src/less/core/_typography.less +126 -111
  62. package/src/less/currency-flags.less +4 -4
  63. package/src/less/decision.less +4 -9
  64. package/src/less/dropdowns.less +362 -0
  65. package/src/less/droppable.less +202 -3
  66. package/src/less/flex.less +17 -16
  67. package/src/less/footer.less +18 -19
  68. package/src/less/forms/bootstrap-forms.less +105 -95
  69. package/src/less/forms/checkbox-radio.less +51 -52
  70. package/src/less/grid.less +23 -22
  71. package/src/less/input-groups.less +47 -48
  72. package/src/less/link-callout.less +4 -1
  73. package/src/less/list-group.less +281 -4
  74. package/src/less/media.less +8 -5
  75. package/src/less/mixins/_alerts.less +15 -7
  76. package/src/less/mixins/_arrows.less +13 -7
  77. package/src/less/mixins/_border-radius.less +1 -8
  78. package/src/less/mixins/_buttons.less +5 -5
  79. package/src/less/mixins/_center-block.less +7 -0
  80. package/src/less/mixins/_circle.less +11 -0
  81. package/src/less/mixins/_forms.less +16 -12
  82. package/src/less/mixins/_grid-framework.less +11 -8
  83. package/src/less/mixins/_grid.less +52 -36
  84. package/src/less/mixins/_hide-text.less +20 -0
  85. package/src/less/mixins/_list-group.less +23 -0
  86. package/src/less/mixins/_logical-properties-IE-friendly.less +329 -0
  87. package/src/less/mixins/_logical-properties-modern-browsers.less +226 -0
  88. package/src/less/mixins/_logical-properties.less +5 -0
  89. package/src/less/mixins/_panels.less +23 -0
  90. package/src/less/mixins/_physical-properties.less +111 -0
  91. package/src/less/mixins/_reset-text.less +22 -0
  92. package/src/less/mixins/_sequence.less +197 -0
  93. package/src/less/mixins/_spacing.less +20 -10
  94. package/src/less/mixins/_table-row.less +1 -1
  95. package/src/less/mixins/_text-emphasis.less +7 -1
  96. package/src/less/modals.less +53 -23
  97. package/src/less/navbar-base.less +1382 -0
  98. package/src/less/navbar.less +16 -20
  99. package/src/less/navs.less +348 -3
  100. package/src/less/neptune-social-media.less +11 -6
  101. package/src/less/neptune.bundle.less +2 -1
  102. package/src/less/panels.less +409 -4
  103. package/src/less/popovers.less +368 -5
  104. package/src/less/process.less +358 -3
  105. package/src/less/progress-bars.less +14 -9
  106. package/src/less/select.less +8 -6
  107. package/src/less/sequences.less +504 -8
  108. package/src/less/table.less +40 -54
  109. package/src/less/tick.less +14 -1
  110. package/src/less/tooltip.less +123 -4
  111. package/src/less/utilities.less +134 -4
  112. package/src/less/variables/_typography.less +2 -0
  113. package/src/props/neptune-tokens.css +2 -1
  114. package/src/variables/neptune-tokens.less +1 -3
@@ -1,6 +1,411 @@
1
- // TODO: remove bootstrap dependencies
2
1
 
3
2
  @import (reference) '../variables/legacy-variables.less';
4
- @import 'bootstrap/less/mixins/border-radius.less';
5
- @import 'bootstrap/less/mixins/panels.less';
6
- @import 'bootstrap/less/panels.less';
3
+ @import (reference) './mixins/_border-radius.less';
4
+ @import (reference) './mixins/_logical-properties.less';
5
+ @import (reference) './mixins/_panels.less';
6
+
7
+ //
8
+ // Panels
9
+ // --------------------------------------------------
10
+
11
+ // Base class
12
+
13
+ .panel {
14
+ margin-bottom: @spacing-1-mobile;
15
+ background-color: @panel-bg;
16
+ border: 0;
17
+ margin-left: (-@spacing-1-mobile);
18
+ margin-right: (-@spacing-1-mobile);
19
+ }
20
+
21
+ // Panel contents
22
+ .panel-body {
23
+ padding: @spacing-1-mobile;
24
+ background-color: var(--color-background-screen);
25
+ &:extend(.clearfix all);
26
+ }
27
+
28
+ // Optional heading
29
+ .panel-heading {
30
+ padding: (@spacing-1-desktop / 2) @spacing-1-mobile 8px @spacing-1-mobile;
31
+
32
+ > .dropdown .dropdown-toggle {
33
+ color: inherit;
34
+ }
35
+ }
36
+
37
+ // Within heading, strip any `h*` tag of its default margins for spacing.
38
+
39
+ .panel-title {
40
+ margin-top: 0;
41
+ margin-bottom: 0;
42
+ line-height: (@line-height-computed + 8px);
43
+
44
+ > a {
45
+ text-decoration: none;
46
+ }
47
+ }
48
+
49
+ // Optional footer (stays gray in every modifier class)
50
+
51
+ .panel-footer {
52
+ padding: @spacing-1-mobile;
53
+ }
54
+
55
+ @media (--screen-sm) {
56
+ .panel {
57
+ margin-bottom: @spacing-1-tablet;
58
+ margin-left: (-@spacing-1-tablet);
59
+ margin-right: (-@spacing-1-tablet);
60
+ }
61
+
62
+ .panel-heading {
63
+ padding: (@spacing-1-desktop / 2) @spacing-1-tablet 8px @spacing-1-tablet;
64
+ }
65
+
66
+ .panel-body {
67
+ padding: @spacing-1-tablet;
68
+ }
69
+
70
+ .panel-footer {
71
+ padding: @spacing-1-tablet;
72
+ }
73
+ }
74
+
75
+ @media (--screen-md) {
76
+ .panel {
77
+ margin-left: 0;
78
+ margin-right: 0;
79
+ }
80
+
81
+ .panel-heading {
82
+ padding: (@spacing-1-desktop / 2) 0 8px 0;
83
+ }
84
+ }
85
+
86
+ @media (--screen-lg) {
87
+ .panel {
88
+ margin-bottom: @spacing-1-desktop;
89
+ border-radius: @panel-border-radius;
90
+ }
91
+
92
+ .panel-body {
93
+ padding: @spacing-1-desktop;
94
+ }
95
+
96
+ .panel-footer {
97
+ padding: @spacing-1-desktop;
98
+ }
99
+ }
100
+
101
+ @media (--screen-md) {
102
+ .panel-title {
103
+ line-height: (@line-height-computed * 2);
104
+ }
105
+
106
+ .panel-heading {
107
+ > .btn-sm {
108
+ margin-top: 8px;
109
+ }
110
+ }
111
+ }
112
+
113
+ // List groups in panels
114
+ //
115
+ // By default, space out list group content from panel headings to account for
116
+ // any kind of custom content between the two.
117
+ // stylelint-disable-next-line no-duplicate-selectors
118
+ .panel {
119
+ > .list-group,
120
+ > .panel-collapse > .list-group {
121
+ margin-bottom: 0;
122
+ border-left: 0;
123
+ border-right: 0;
124
+
125
+ .list-group-item {
126
+ border-radius: 0;
127
+ }
128
+ }
129
+
130
+ > .panel-heading + .panel-collapse > .list-group {
131
+ .list-group-item:first-child {
132
+ .border-top-radius(0);
133
+ }
134
+ }
135
+ }
136
+
137
+ .panel-list-group {
138
+ margin-bottom: 0;
139
+ border-left: 0;
140
+ border-right: 0;
141
+ }
142
+
143
+ // Collapse space between when there's no additional content.
144
+
145
+ .list-group + .panel-footer {
146
+ border-top-width: 0;
147
+ }
148
+
149
+ // Tables in panels
150
+ //
151
+ // Place a non-bordered `.table` within a panel (not within a `.panel-body`) and
152
+ // watch it go full width.
153
+
154
+ .panel {
155
+ > .table,
156
+ > .table-responsive > .table,
157
+ > .panel-collapse > .table {
158
+ margin-bottom: 0;
159
+
160
+ caption {
161
+ padding-left: @spacing-1-desktop;
162
+ padding-right: @spacing-1-desktop;
163
+ }
164
+ }
165
+
166
+ // Add border top radius for first one
167
+
168
+ > .table:first-child,
169
+ > .table-responsive:first-child > .table:first-child {
170
+ .border-top-radius((@panel-border-radius - 1));
171
+
172
+ > thead:first-child,
173
+ > tbody:first-child {
174
+ > tr:first-child {
175
+ border-top-left-radius: (@panel-border-radius - 1);
176
+ border-top-right-radius: (@panel-border-radius - 1);
177
+
178
+ td:first-child,
179
+ th:first-child {
180
+ .border-top-dir-radius(left, (@panel-border-radius - 1));
181
+ }
182
+
183
+ td:last-child,
184
+ th:last-child {
185
+ .border-top-dir-radius(right, (@panel-border-radius - 1));
186
+ }
187
+ }
188
+ }
189
+ }
190
+ // Add border bottom radius for last one
191
+ > .table:last-child,
192
+ > .table-responsive:last-child > .table:last-child {
193
+ .border-bottom-radius((@panel-border-radius - 1));
194
+
195
+ > tbody:last-child,
196
+ > tfoot:last-child {
197
+ > tr:last-child {
198
+ border-bottom-left-radius: (@panel-border-radius - 1);
199
+ border-bottom-right-radius: (@panel-border-radius - 1);
200
+
201
+ td:first-child,
202
+ th:first-child {
203
+ .border-bottom-dir-radius(left, (@panel-border-radius - 1));
204
+ }
205
+
206
+ td:last-child,
207
+ th:last-child {
208
+ .border-bottom-dir-radius(right, (@panel-border-radius - 1));
209
+ }
210
+ }
211
+ }
212
+ }
213
+
214
+ > .panel-body + .table,
215
+ > .panel-body + .table-responsive,
216
+ > .table + .panel-body,
217
+ > .table-responsive + .panel-body {
218
+ border-top: 1px solid @table-border-color;
219
+ }
220
+
221
+ > .table > tbody:first-child > tr:first-child th,
222
+ > .table > tbody:first-child > tr:first-child td {
223
+ border-top: 0;
224
+ }
225
+
226
+ > .table-bordered,
227
+ > .table-responsive > .table-bordered {
228
+ border: 0;
229
+
230
+ > thead,
231
+ > tbody,
232
+ > tfoot {
233
+ > tr {
234
+ > th:first-child,
235
+ > td:first-child {
236
+ .border(left, 0);
237
+ }
238
+
239
+ > th:last-child,
240
+ > td:last-child {
241
+ .border(right, 0);
242
+ }
243
+ }
244
+ }
245
+
246
+ > thead,
247
+ > tbody {
248
+ > tr:first-child {
249
+ > td,
250
+ > th {
251
+ border-bottom: 0;
252
+ }
253
+ }
254
+ }
255
+
256
+ > tbody,
257
+ > tfoot {
258
+ > tr:last-child {
259
+ > td,
260
+ > th {
261
+ border-bottom: 0;
262
+ }
263
+ }
264
+ }
265
+ }
266
+
267
+ > .table-responsive {
268
+ border: 0;
269
+ margin-bottom: 0;
270
+ }
271
+
272
+ > .table tr > :first-child,
273
+ > .table-responsive tr > :first-child {
274
+ .padding(left, @spacing-1-mobile);
275
+ }
276
+
277
+ > .table tr > :last-child,
278
+ > .table-responsive tr > :last-child {
279
+ .padding(right, @spacing-1-mobile);
280
+ }
281
+
282
+ @media (--screen-md) {
283
+ > .table tr > :first-child,
284
+ > .table-responsive tr > :first-child {
285
+ .padding(left, @spacing-1-tablet);
286
+ }
287
+
288
+ > .table tr > :last-child,
289
+ > .table-responsive tr > :last-child {
290
+ .padding(right, @spacing-1-tablet);
291
+ }
292
+ }
293
+
294
+ @media (--screen-lg) {
295
+ > .table tr > :first-child,
296
+ > .table-responsive tr > :first-child {
297
+ .padding(left, @spacing-1-desktop);
298
+ }
299
+
300
+ > .table tr > :last-child,
301
+ > .table-responsive tr > :last-child {
302
+ .padding(right, @spacing-1-desktop);
303
+ }
304
+ }
305
+ }
306
+
307
+ // Collapsable panels (aka, accordion)
308
+ //
309
+ // Wrap a series of panels in `.panel-group` to turn them into an accordion with
310
+ // the help of our collapse JavaScript plugin.
311
+
312
+ .panel-group {
313
+ margin-bottom: @line-height-computed;
314
+
315
+ // Tighten up margin so it's only between panels
316
+ .panel {
317
+ margin-bottom: 0;
318
+ border-radius: @panel-border-radius;
319
+
320
+ + .panel {
321
+ margin-top: 8px;
322
+ }
323
+ }
324
+
325
+ .panel-heading {
326
+ border-bottom: 0;
327
+
328
+ + .panel-collapse > .panel-body,
329
+ + .panel-collapse > .list-group {
330
+ border-top: 1px solid @panel-inner-border;
331
+ }
332
+ }
333
+
334
+ .panel-footer {
335
+ border-top: 0;
336
+
337
+ + .panel-collapse .panel-body {
338
+ border-bottom: 1px solid @panel-inner-border;
339
+ }
340
+ }
341
+ }
342
+
343
+ // Contextual variations
344
+
345
+ .panel-default {
346
+ .panel-variant(@panel-default-border; @panel-default-text; @panel-default-heading-bg; @panel-default-border);
347
+ }
348
+
349
+ .panel-primary {
350
+ .panel-variant(@panel-primary-border; @panel-primary-text; @panel-primary-heading-bg; @panel-primary-border);
351
+ }
352
+
353
+ .panel-success {
354
+ .panel-variant(@panel-success-border; @panel-success-text; @panel-success-heading-bg; @panel-success-border);
355
+ }
356
+
357
+ .panel-info {
358
+ .panel-variant(@panel-info-border; @panel-info-text; @panel-info-heading-bg; @panel-info-border);
359
+ }
360
+
361
+ .panel-warning {
362
+ .panel-variant(@panel-warning-border; @panel-warning-text; @panel-warning-heading-bg; @panel-warning-border);
363
+ }
364
+
365
+ .panel-danger {
366
+ .panel-variant(@panel-danger-border; @panel-danger-text; @panel-danger-heading-bg; @panel-danger-border);
367
+ }
368
+
369
+ .panel ul:last-child {
370
+ margin-bottom: 0;
371
+ }
372
+
373
+ // stylelint-disable-next-line no-duplicate-selectors
374
+ .panel-group {
375
+ // stylelint-disable-next-line no-duplicate-selectors
376
+ .panel {
377
+ margin-left: 0;
378
+ margin-right: 0;
379
+ border: 1px solid @brand-smoke-plus-10;
380
+ }
381
+
382
+ .panel-heading,
383
+ .panel-footer {
384
+ padding: @spacing-1-mobile;
385
+ }
386
+ }
387
+
388
+ @media (--screen-sm) {
389
+ .panel-group .panel {
390
+ .panel-heading,
391
+ .panel-footer {
392
+ padding: @spacing-1-tablet !important;
393
+ }
394
+ }
395
+ }
396
+
397
+ @media (--screen-lg) {
398
+ .panel-group .panel {
399
+ .panel-heading,
400
+ .panel-footer {
401
+ padding: @spacing-1-tablet @spacing-1-desktop;
402
+ }
403
+ }
404
+ }
405
+
406
+ @media (--screen-md) {
407
+ .panel {
408
+ margin-left: 0;
409
+ margin-right: 0;
410
+ }
411
+ }