@transferwise/neptune-css 0.0.0-experimental-e1f6a4f → 0.0.0-experimental-31243ae

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,51 +1,36 @@
1
1
  @import (reference) "../variables/neptune-tokens.less";
2
2
  @import (reference) "./mixins/_logical-properties.less";
3
3
 
4
- @progress-height: 2px;
5
- @progress-pip-size: 8px;
6
-
7
4
  .progress {
8
- height: @progress-height;
9
- margin-top: calc((var(--size-24) - @progress-height) / 2);
10
- margin-bottom: calc((var(--size-24) - @progress-height) / 2);
11
- background-color: var(--color-background-neutral);
12
- border-radius: calc(@progress-height / 2);
5
+ --progress-bar-height: 8px;
6
+ --progress-bar-border-width: 4px;
7
+ // Progress bar starts with left/right (depends on rtl) shift `--progress-bar-start-shift` for hiding Progress bar's left and right borders which are used for progress vertical delimiter.
8
+ --progress-bar-start-shift: calc(var(--progress-bar-border-width) * 2);
9
+ height: var(--progress-bar-height);
10
+ overflow: hidden;
11
+ margin-top: calc((var(--size-24) - var(--progress-bar-height)) / 2);
12
+ margin-bottom: calc((var(--size-24) - var(--progress-bar-height)) / 2);
13
+ background-color: var(--color-interactive-secondary);
14
+ border-radius: var(--progress-bar-height);
13
15
  }
14
16
 
15
17
  .progress-bar {
16
18
  .float(left);
17
-
18
- width: 0%;
19
- 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);
20
23
  font-size: var(--font-size-16);
21
24
  font-weight: var(--font-weight-bold);
22
25
  color: #fff;
23
26
  .text-align(right);
24
-
25
27
  background-color: var(--color-content-accent);
26
- transition: width 0.6s ease;
27
-
28
- &::after {
29
- content: "";
30
- .float(right);
31
-
32
- margin-top: @progress-pip-size / 2 + 1;
33
- .margin(right, @progress-pip-size / 2);
34
-
35
- width: @progress-pip-size;
36
- height: @progress-pip-size;
37
- background-color: inherit;
38
- border-radius: @progress-pip-size / 2;
39
- }
40
-
41
- &:first-child {
42
- border-top-left-radius: @progress-height / 2;
43
- border-bottom-left-radius: @progress-height / 2;
44
- }
28
+ border: var(--progress-bar-border-width) solid var(--color-background-screen);
29
+ border-radius: inherit;
45
30
 
46
- &:last-child {
47
- border-top-right-radius: @progress-height / 2;
48
- border-bottom-right-radius: @progress-height / 2;
31
+ [dir="rtl"] & {
32
+ right: calc(-1 * var(--progress-bar-start-shift));
33
+ left: 0;
49
34
  }
50
35
  }
51
36