@transferwise/neptune-css 14.19.0 → 14.19.1

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.
@@ -1,3 +1,6 @@
1
+ /**
2
+ * DEPRECATED: use <Circle /> component instead
3
+ */
1
4
  .circle {
2
5
  display: flex;
3
6
  align-items: center;
@@ -58,41 +61,24 @@ a.circle[style]:hover {
58
61
  height: 48px;
59
62
  line-height: 48px;
60
63
  }
61
- .circle .icon,
62
- .circle-sm .icon {
63
- font-size: 24px;
64
- line-height: 46px;
65
- }
66
64
  .circle-xs {
67
65
  font-size: 10px;
68
66
  width: 24px;
69
67
  height: 24px;
70
68
  line-height: 24px;
71
69
  }
72
- .circle-xs .icon {
73
- font-size: 14px;
74
- line-height: 22px;
75
- }
76
70
  .circle-md {
77
71
  font-size: 24px;
78
72
  width: 72px;
79
73
  height: 72px;
80
74
  line-height: 72px;
81
75
  }
82
- .circle-md .icon {
83
- font-size: 32px;
84
- line-height: 70px;
85
- }
86
76
  .circle-lg {
87
77
  font-size: 32px;
88
78
  width: 96px;
89
79
  height: 96px;
90
80
  line-height: 96px;
91
81
  }
92
- .circle-lg .icon {
93
- font-size: 40px;
94
- line-height: 94px;
95
- }
96
82
  a.circle,
97
83
  a.circle .icon {
98
84
  -webkit-text-decoration: none;
@@ -159,10 +145,6 @@ a.circle.active:hover {
159
145
  background-color: rgba(134,167,189,0.10196);
160
146
  background-color: var(--color-background-neutral);
161
147
  }
162
- .circle-responsive.circle-lg .icon {
163
- font-size: 24px;
164
- line-height: 46px;
165
- }
166
148
  @media (min-width: 576px) {
167
149
  .circle-responsive {
168
150
  border-radius: 50%;
@@ -176,22 +158,12 @@ a.circle.active:hover {
176
158
  height: 48px;
177
159
  line-height: 48px;
178
160
  }
179
- .circle-responsive.circle .icon,
180
- .circle-responsive.circle-sm .icon,
181
- .circle-responsive.circle-md .icon {
182
- font-size: 24px;
183
- line-height: 46px;
184
- }
185
161
  .circle-responsive.circle-lg {
186
162
  font-size: 24px;
187
163
  width: 72px;
188
164
  height: 72px;
189
165
  line-height: 72px;
190
166
  }
191
- .circle-responsive.circle-lg .icon {
192
- font-size: 32px;
193
- line-height: 70px;
194
- }
195
167
  .circle-responsive.circle-inverse {
196
168
  background-color: rgba(134,167,189,0.10196);
197
169
  background-color: var(--color-background-neutral);
@@ -204,20 +176,12 @@ a.circle.active:hover {
204
176
  height: 72px;
205
177
  line-height: 72px;
206
178
  }
207
- .circle-responsive.circle-md .icon {
208
- font-size: 32px;
209
- line-height: 70px;
210
- }
211
179
  .circle-responsive.circle-lg {
212
180
  font-size: 32px;
213
181
  width: 96px;
214
182
  height: 96px;
215
183
  line-height: 96px;
216
184
  }
217
- .circle-responsive.circle-lg .icon {
218
- font-size: 40px;
219
- line-height: 94px;
220
- }
221
185
  }
222
186
  .dropdown-menu li > .circle:first-child,
223
187
  .dropdown-menu li > a > .circle:first-child {
@@ -12311,6 +12311,10 @@ html:not([dir="rtl"]) .np-theme-personal .input-group > :last-child .btn-group {
12311
12311
  border: 0;
12312
12312
  }
12313
12313
 
12314
+ /**
12315
+ * DEPRECATED: use <Circle /> component instead
12316
+ */
12317
+
12314
12318
  .circle {
12315
12319
  display: flex;
12316
12320
  align-items: center;
@@ -12380,12 +12384,6 @@ a.circle[style]:hover {
12380
12384
  line-height: 48px;
12381
12385
  }
12382
12386
 
12383
- .circle .icon,
12384
- .circle-sm .icon {
12385
- font-size: 24px;
12386
- line-height: 46px;
12387
- }
12388
-
12389
12387
  .circle-xs {
12390
12388
  font-size: 10px;
12391
12389
  width: 24px;
@@ -12393,11 +12391,6 @@ a.circle[style]:hover {
12393
12391
  line-height: 24px;
12394
12392
  }
12395
12393
 
12396
- .circle-xs .icon {
12397
- font-size: 14px;
12398
- line-height: 22px;
12399
- }
12400
-
12401
12394
  .circle-md {
12402
12395
  font-size: 24px;
12403
12396
  width: 72px;
@@ -12405,11 +12398,6 @@ a.circle[style]:hover {
12405
12398
  line-height: 72px;
12406
12399
  }
12407
12400
 
12408
- .circle-md .icon {
12409
- font-size: 32px;
12410
- line-height: 70px;
12411
- }
12412
-
12413
12401
  .circle-lg {
12414
12402
  font-size: 32px;
12415
12403
  width: 96px;
@@ -12417,11 +12405,6 @@ a.circle[style]:hover {
12417
12405
  line-height: 96px;
12418
12406
  }
12419
12407
 
12420
- .circle-lg .icon {
12421
- font-size: 40px;
12422
- line-height: 94px;
12423
- }
12424
-
12425
12408
  a.circle,
12426
12409
  a.circle .icon {
12427
12410
  -webkit-text-decoration: none;
@@ -12499,11 +12482,6 @@ a.circle.active:hover {
12499
12482
  background-color: var(--color-background-neutral);
12500
12483
  }
12501
12484
 
12502
- .circle-responsive.circle-lg .icon {
12503
- font-size: 24px;
12504
- line-height: 46px;
12505
- }
12506
-
12507
12485
  @media (min-width: 576px) {
12508
12486
  .circle-responsive {
12509
12487
  border-radius: 50%;
@@ -12517,22 +12495,12 @@ a.circle.active:hover {
12517
12495
  height: 48px;
12518
12496
  line-height: 48px;
12519
12497
  }
12520
- .circle-responsive.circle .icon,
12521
- .circle-responsive.circle-sm .icon,
12522
- .circle-responsive.circle-md .icon {
12523
- font-size: 24px;
12524
- line-height: 46px;
12525
- }
12526
12498
  .circle-responsive.circle-lg {
12527
12499
  font-size: 24px;
12528
12500
  width: 72px;
12529
12501
  height: 72px;
12530
12502
  line-height: 72px;
12531
12503
  }
12532
- .circle-responsive.circle-lg .icon {
12533
- font-size: 32px;
12534
- line-height: 70px;
12535
- }
12536
12504
  .circle-responsive.circle-inverse {
12537
12505
  background-color: rgba(134,167,189,0.10196);
12538
12506
  background-color: var(--color-background-neutral);
@@ -12546,20 +12514,12 @@ a.circle.active:hover {
12546
12514
  height: 72px;
12547
12515
  line-height: 72px;
12548
12516
  }
12549
- .circle-responsive.circle-md .icon {
12550
- font-size: 32px;
12551
- line-height: 70px;
12552
- }
12553
12517
  .circle-responsive.circle-lg {
12554
12518
  font-size: 32px;
12555
12519
  width: 96px;
12556
12520
  height: 96px;
12557
12521
  line-height: 96px;
12558
12522
  }
12559
- .circle-responsive.circle-lg .icon {
12560
- font-size: 40px;
12561
- line-height: 94px;
12562
- }
12563
12523
  }
12564
12524
 
12565
12525
  .dropdown-menu li > .circle:first-child,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@transferwise/neptune-css",
3
3
  "description": "Neptune CSS library",
4
- "version": "14.19.0",
4
+ "version": "14.19.1",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",
@@ -1,7 +1,10 @@
1
1
  @import (reference) "../variables/legacy-variables.less";
2
- @import (reference) "./mixins/_circle.less";
3
2
  @import (reference) "./mixins/_logical-properties.less";
4
3
 
4
+ /**
5
+ * DEPRECATED: use <Circle /> component instead
6
+ */
7
+
5
8
  @circle-xs-diameter: 24px;
6
9
  @circle-sm-diameter: 48px;
7
10
  @circle-md-diameter: 72px;
@@ -19,6 +22,13 @@
19
22
 
20
23
  @circle-inverse-bg: var(--color-background-neutral);
21
24
 
25
+ .circle-variant(@diameter; @font-size; @icon-size) {
26
+ font-size: @font-size;
27
+ width: @diameter;
28
+ height: @diameter;
29
+ line-height: @diameter;
30
+ }
31
+
22
32
  .circle {
23
33
  display: flex;
24
34
  align-items: center;
@@ -1,11 +0,0 @@
1
- .circle-variant(@diameter; @font-size; @icon-size) {
2
- font-size: @font-size;
3
- width: @diameter;
4
- height: @diameter;
5
- line-height: @diameter;
6
-
7
- .icon {
8
- font-size: @icon-size;
9
- line-height: (@diameter - 2px);
10
- }
11
- }