|
4 | 4 | .tutor-progress-bar { |
5 | 5 | width: 100%; |
6 | 6 | height: $tutor-progress-height; |
7 | | - background-color: $tutor-actions-gray-secondary; |
| 7 | + background-color: $tutor-actions-gray-quaternary; |
8 | 8 | box-shadow: inset 0 0 1.75px rgba(0, 0, 0, 0.16); |
9 | 9 | border-radius: $tutor-radius-full; |
10 | 10 | overflow: hidden; |
|
21 | 21 | position: relative; |
22 | 22 | @include tutor-transition(transform, 0.3s); |
23 | 23 |
|
| 24 | + [dir='rtl'] & { |
| 25 | + transform: translateX(calc(100% - var(--tutor-progress-width))); |
| 26 | + } |
| 27 | + |
24 | 28 | &::before { |
25 | 29 | content: ''; |
26 | 30 | position: absolute; |
27 | 31 | top: $tutor-progress-indicator-top; |
28 | | - right: $tutor-spacing-2; |
| 32 | + inset-inline-end: $tutor-spacing-2; |
29 | 33 | height: $tutor-progress-indicator-height; |
30 | 34 | width: 8.16px; |
31 | 35 | background-color: $tutor-actions-success-secondary; |
|
38 | 42 | display: $tutor-progress-indicator-secondary-display; |
39 | 43 | position: absolute; |
40 | 44 | top: $tutor-progress-indicator-top; |
41 | | - left: $tutor-spacing-2; |
42 | | - right: calc(#{$tutor-spacing-2} + 8.16px + 1px); |
| 45 | + inset-inline-start: $tutor-spacing-2; |
| 46 | + inset-inline-end: calc(#{$tutor-spacing-2} + 8.16px + 1px); |
43 | 47 | height: $tutor-progress-indicator-height; |
44 | 48 | background-color: $tutor-actions-success-secondary; |
45 | 49 | border-radius: inherit; |
|
48 | 52 | } |
49 | 53 |
|
50 | 54 | &.tutor-progress-bar-brand { |
51 | | - background-color: $tutor-actions-gray-secondary; |
| 55 | + background-color: $tutor-actions-gray-quaternary; |
52 | 56 |
|
53 | 57 | .tutor-progress-bar-fill { |
54 | 58 | background-color: $tutor-actions-brand-primary; |
|
81 | 85 |
|
82 | 86 | &[data-tutor-animated] .tutor-progress-bar-fill { |
83 | 87 | animation: tutor-progress-fill-animate 1s ease-out forwards; |
| 88 | + |
| 89 | + [dir='rtl'] & { |
| 90 | + animation-name: tutor-progress-fill-animate-rtl; |
| 91 | + } |
84 | 92 | } |
85 | 93 | } |
86 | 94 |
|
|
92 | 100 | transform: translateX(calc(var(--tutor-progress-width) - 100%)); |
93 | 101 | } |
94 | 102 | } |
| 103 | + |
| 104 | +@keyframes tutor-progress-fill-animate-rtl { |
| 105 | + from { |
| 106 | + transform: translateX(calc(100% - var(--tutor-progress-start, 0%))); |
| 107 | + } |
| 108 | + to { |
| 109 | + transform: translateX(calc(100% - var(--tutor-progress-width))); |
| 110 | + } |
| 111 | +} |
0 commit comments