@transferwise/neptune-css 0.0.0-experimental-e1f6a4f → 0.0.0-experimental-11855a1

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.
@@ -890,53 +890,6 @@ html:not([dir="rtl"]) .nav-stacked > li.active > a:focus {
890
890
  border-top-right-radius: 0;
891
891
  border-top-left-radius: 0;
892
892
  }
893
- .close {
894
- float: right;
895
- color: #0097c7;
896
- color: var(--color-content-accent);
897
- -webkit-text-decoration: none;
898
- text-decoration: none;
899
- }
900
- [dir="rtl"] .close {
901
- float: left;
902
- }
903
- .np-theme-personal .close {
904
- color: var(--color-interactive-primary);
905
- }
906
- .close:hover {
907
- color: #0084b3;
908
- color: var(--color-content-accent-hover);
909
- -webkit-text-decoration: none;
910
- text-decoration: none;
911
- cursor: pointer;
912
- }
913
- .np-theme-personal .close:hover {
914
- color: var(--color-interactive-primary-hover);
915
- }
916
- .close:focus {
917
- outline: none;
918
- }
919
- .close:focus-visible {
920
- outline: var(--ring-outline-color) solid var(--ring-outline-width);
921
- outline-offset: var(--ring-outline-offset);
922
- }
923
- .close:active {
924
- color: #0077a5;
925
- color: var(--color-content-accent-active);
926
- }
927
- button.close {
928
- padding: 0;
929
- cursor: pointer;
930
- background: transparent;
931
- border: 0;
932
- -webkit-appearance: none;
933
- -moz-appearance: none;
934
- appearance: none;
935
- }
936
- .np-theme-personal button.close:hover {
937
- background: transparent none repeat 0 0 / auto auto padding-box border-box scroll;
938
- background: initial;
939
- }
940
893
  .navbar {
941
894
  position: relative;
942
895
  font-size: 0.875rem;
@@ -2303,6 +2256,53 @@ button.close {
2303
2256
  }
2304
2257
  }
2305
2258
  /* stylelint-enable */
2259
+ .close {
2260
+ float: right;
2261
+ color: #0097c7;
2262
+ color: var(--color-content-accent);
2263
+ -webkit-text-decoration: none;
2264
+ text-decoration: none;
2265
+ }
2266
+ [dir="rtl"] .close {
2267
+ float: left;
2268
+ }
2269
+ .np-theme-personal .close {
2270
+ color: var(--color-interactive-primary);
2271
+ }
2272
+ .close:hover {
2273
+ color: #0084b3;
2274
+ color: var(--color-content-accent-hover);
2275
+ -webkit-text-decoration: none;
2276
+ text-decoration: none;
2277
+ cursor: pointer;
2278
+ }
2279
+ .np-theme-personal .close:hover {
2280
+ color: var(--color-interactive-primary-hover);
2281
+ }
2282
+ .close:focus {
2283
+ outline: none;
2284
+ }
2285
+ .close:focus-visible {
2286
+ outline: var(--ring-outline-color) solid var(--ring-outline-width);
2287
+ outline-offset: var(--ring-outline-offset);
2288
+ }
2289
+ .close:active {
2290
+ color: #0077a5;
2291
+ color: var(--color-content-accent-active);
2292
+ }
2293
+ button.close {
2294
+ padding: 0;
2295
+ cursor: pointer;
2296
+ background: transparent;
2297
+ border: 0;
2298
+ -webkit-appearance: none;
2299
+ -moz-appearance: none;
2300
+ appearance: none;
2301
+ }
2302
+ .np-theme-personal button.close:hover {
2303
+ background: transparent none repeat 0 0 / auto auto padding-box border-box scroll;
2304
+ background: initial;
2305
+ }
2306
2306
  @media (min-width: 576px) {
2307
2307
  .form-inline .form-group {
2308
2308
  display: inline-block;
@@ -22340,20 +22340,28 @@ button.popover-close {
22340
22340
  }
22341
22341
 
22342
22342
  .progress {
22343
- height: 2px;
22344
- margin-top: calc((24px - 2px) / 2);
22345
- margin-top: calc((var(--size-24) - 2px) / 2);
22346
- margin-bottom: calc((24px - 2px) / 2);
22347
- margin-bottom: calc((var(--size-24) - 2px) / 2);
22348
- background-color: rgba(134,167,189,0.10196);
22349
- background-color: var(--color-background-neutral);
22350
- border-radius: calc(2px / 2);
22343
+ --progress-bar-height: 8px;
22344
+ --progress-bar-border-width: 4px;
22345
+ --progress-bar-start-shift: calc(var(--progress-bar-border-width) * 2);
22346
+ height: 8px;
22347
+ height: var(--progress-bar-height);
22348
+ overflow: hidden;
22349
+ margin-top: calc((24px - 8px) / 2);
22350
+ margin-top: calc((var(--size-24) - var(--progress-bar-height)) / 2);
22351
+ margin-bottom: calc((24px - 8px) / 2);
22352
+ margin-bottom: calc((var(--size-24) - var(--progress-bar-height)) / 2);
22353
+ background-color: #c9cbce;
22354
+ background-color: var(--color-interactive-secondary);
22355
+ border-radius: 8px;
22356
+ border-radius: var(--progress-bar-height);
22351
22357
  }
22352
22358
 
22353
22359
  .progress-bar {
22354
22360
  float: left;
22355
- width: 0%;
22356
- height: 100%;
22361
+ position: relative;
22362
+ top: calc(-1 * var(--progress-bar-border-width));
22363
+ left: calc(-1 * var(--progress-bar-start-shift));
22364
+ height: calc(var(--progress-bar-height) + var(--progress-bar-border-width) * 2);
22357
22365
  font-size: 1rem;
22358
22366
  font-size: var(--font-size-16);
22359
22367
  font-weight: 700;
@@ -22362,7 +22370,9 @@ button.popover-close {
22362
22370
  text-align: right;
22363
22371
  background-color: #0097c7;
22364
22372
  background-color: var(--color-content-accent);
22365
- transition: width 0.6s ease;
22373
+ border: var(--progress-bar-border-width) solid #ffffff;
22374
+ border: var(--progress-bar-border-width) solid var(--color-background-screen);
22375
+ border-radius: inherit;
22366
22376
  }
22367
22377
 
22368
22378
  [dir="rtl"] .progress-bar {
@@ -22373,35 +22383,9 @@ button.popover-close {
22373
22383
  text-align: left;
22374
22384
  }
22375
22385
 
22376
- .progress-bar::after {
22377
- content: "";
22378
- float: right;
22379
- margin-top: 8px / 2 + 1;
22380
- margin-right: 8px / 2;
22381
- width: 8px;
22382
- height: 8px;
22383
- background-color: inherit;
22384
- border-radius: 8px / 2;
22385
- }
22386
-
22387
- [dir="rtl"] .progress-bar::after {
22388
- float: left;
22389
- }
22390
-
22391
- [dir="rtl"] .progress-bar::after {
22392
- margin-left: 8px / 2;
22393
- margin-right: 0;
22394
- margin-right: initial;
22395
- }
22396
-
22397
- .progress-bar:first-child {
22398
- border-top-left-radius: 2px / 2;
22399
- border-bottom-left-radius: 2px / 2;
22400
- }
22401
-
22402
- .progress-bar:last-child {
22403
- border-top-right-radius: 2px / 2;
22404
- border-bottom-right-radius: 2px / 2;
22386
+ [dir="rtl"] .progress-bar {
22387
+ right: calc(-1 * var(--progress-bar-start-shift));
22388
+ left: 0;
22405
22389
  }
22406
22390
 
22407
22391
  .progress-bar-primary {
@@ -1,17 +1,25 @@
1
1
  .progress {
2
- height: 2px;
3
- margin-top: calc((24px - 2px) / 2);
4
- margin-top: calc((var(--size-24) - 2px) / 2);
5
- margin-bottom: calc((24px - 2px) / 2);
6
- margin-bottom: calc((var(--size-24) - 2px) / 2);
7
- background-color: rgba(134,167,189,0.10196);
8
- background-color: var(--color-background-neutral);
9
- border-radius: calc(2px / 2);
2
+ --progress-bar-height: 8px;
3
+ --progress-bar-border-width: 4px;
4
+ --progress-bar-start-shift: calc(var(--progress-bar-border-width) * 2);
5
+ height: 8px;
6
+ height: var(--progress-bar-height);
7
+ overflow: hidden;
8
+ margin-top: calc((24px - 8px) / 2);
9
+ margin-top: calc((var(--size-24) - var(--progress-bar-height)) / 2);
10
+ margin-bottom: calc((24px - 8px) / 2);
11
+ margin-bottom: calc((var(--size-24) - var(--progress-bar-height)) / 2);
12
+ background-color: #c9cbce;
13
+ background-color: var(--color-interactive-secondary);
14
+ border-radius: 8px;
15
+ border-radius: var(--progress-bar-height);
10
16
  }
11
17
  .progress-bar {
12
18
  float: left;
13
- width: 0%;
14
- height: 100%;
19
+ position: relative;
20
+ top: calc(-1 * var(--progress-bar-border-width));
21
+ left: calc(-1 * var(--progress-bar-start-shift));
22
+ height: calc(var(--progress-bar-height) + var(--progress-bar-border-width) * 2);
15
23
  font-size: 1rem;
16
24
  font-size: var(--font-size-16);
17
25
  font-weight: 700;
@@ -20,7 +28,9 @@
20
28
  text-align: right;
21
29
  background-color: #0097c7;
22
30
  background-color: var(--color-content-accent);
23
- transition: width 0.6s ease;
31
+ border: var(--progress-bar-border-width) solid #ffffff;
32
+ border: var(--progress-bar-border-width) solid var(--color-background-screen);
33
+ border-radius: inherit;
24
34
  }
25
35
  [dir="rtl"] .progress-bar {
26
36
  float: right;
@@ -28,31 +38,9 @@
28
38
  [dir="rtl"] .progress-bar {
29
39
  text-align: left;
30
40
  }
31
- .progress-bar::after {
32
- content: "";
33
- float: right;
34
- margin-top: 8px / 2 + 1;
35
- margin-right: 8px / 2;
36
- width: 8px;
37
- height: 8px;
38
- background-color: inherit;
39
- border-radius: 8px / 2;
40
- }
41
- [dir="rtl"] .progress-bar::after {
42
- float: left;
43
- }
44
- [dir="rtl"] .progress-bar::after {
45
- margin-left: 8px / 2;
46
- margin-right: 0;
47
- margin-right: initial;
48
- }
49
- .progress-bar:first-child {
50
- border-top-left-radius: 2px / 2;
51
- border-bottom-left-radius: 2px / 2;
52
- }
53
- .progress-bar:last-child {
54
- border-top-right-radius: 2px / 2;
55
- border-bottom-right-radius: 2px / 2;
41
+ [dir="rtl"] .progress-bar {
42
+ right: calc(-1 * var(--progress-bar-start-shift));
43
+ left: 0;
56
44
  }
57
45
  .progress-bar-primary {
58
46
  background-color: #37517e;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@transferwise/neptune-css",
3
3
  "description": "Neptune CSS library",
4
- "version": "0.0.0-experimental-e1f6a4f",
4
+ "version": "0.0.0-experimental-11855a1",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",