Skip to content

Commit 37f4cfe

Browse files
committed
Merge branch '4.0.0-dev' into bivas-v4
2 parents 33a8735 + b86da08 commit 37f4cfe

229 files changed

Lines changed: 5782 additions & 9926 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

assets/core/scss/components/_calendar.scss

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@
66
background-color: $tutor-surface-l1 !important;
77
border-radius: $tutor-radius-md !important;
88

9+
// Ensure hidden calendar doesn't block interaction with other elements
10+
&[data-vc-calendar-hidden] {
11+
pointer-events: none !important;
12+
}
13+
914
[data-vc='month'],
1015
[data-vc='year'] {
1116
@include tutor-typography('small', 'medium', 'primary');
@@ -169,6 +174,10 @@
169174
.vc-controls {
170175
grid-area: controls;
171176
padding: $tutor-spacing-2 $tutor-spacing-none $tutor-spacing-none $tutor-spacing-none;
177+
178+
[dir='rtl'] & .vc-arrow {
179+
transform: scaleX(-1);
180+
}
172181
}
173182

174183
.vc-grid {
@@ -177,7 +186,7 @@
177186
gap: $tutor-spacing-6;
178187

179188
@include tutor-breakpoint-down(md) {
180-
.vc-column:nth-child(n+2) {
189+
.vc-column:nth-child(n + 2) {
181190
display: none;
182191
}
183192
}

assets/core/scss/components/_modal.scss

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,15 @@
55

66
.tutor-modal {
77
position: fixed;
8-
top: 0;
9-
left: 0;
10-
right: 0;
11-
bottom: 0;
8+
inset: 0;
129
z-index: $tutor-z-highest;
1310
display: flex;
1411
align-items: center;
1512
justify-content: center;
1613

1714
&-backdrop {
1815
position: absolute;
19-
top: 0;
20-
left: 0;
21-
right: 0;
22-
bottom: 0;
16+
inset: 0;
2317
background-color: #00000099;
2418
backdrop-filter: blur(20px);
2519

@@ -96,7 +90,7 @@
9690
@include tutor-button-variant(ghost);
9791
position: absolute;
9892
top: $tutor-spacing-4;
99-
right: $tutor-spacing-4;
93+
inset-inline-end: $tutor-spacing-4;
10094

10195
svg {
10296
color: $tutor-icon-idle !important;

assets/core/scss/components/_popover.scss

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
.tutor-popover-close {
2626
position: absolute;
2727
top: $tutor-spacing-2;
28-
right: $tutor-spacing-2;
28+
inset-inline-end: $tutor-spacing-2;
2929
width: 24px;
3030
height: 24px;
3131
padding: 0;
@@ -38,11 +38,6 @@
3838

3939
@include tutor-flex-center();
4040

41-
[dir='rtl'] & {
42-
right: auto;
43-
left: $tutor-spacing-2;
44-
}
45-
4641
&:hover,
4742
&:focus {
4843
background-color: $tutor-surface-l2;
@@ -132,7 +127,7 @@
132127
&-body,
133128
&-footer {
134129
padding-left: $tutor-spacing-3;
135-
padding-right: $tutor-spacing-3;
130+
padding-inline-end: $tutor-spacing-3;
136131
}
137132
}
138133
}

assets/core/scss/components/_preview-trigger.scss

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,9 @@
55
@use '../mixins' as *;
66

77
.tutor-preview-trigger {
8-
display: inline-flex;
9-
vertical-align: middle;
10-
max-width: 100%;
8+
display: flex;
119
min-width: 0;
12-
width: 100%;
13-
position: relative;
10+
max-width: 100%;
1411

1512
&-text {
1613
font-style: italic;
@@ -21,6 +18,13 @@
2118
@include tutor-transition(color);
2219
padding-inline-end: $tutor-spacing-1;
2320

21+
display: inline-block;
22+
white-space: nowrap;
23+
overflow: hidden;
24+
text-overflow: ellipsis;
25+
max-width: 100%;
26+
vertical-align: bottom;
27+
2428
&:focus {
2529
outline: none;
2630
}
@@ -30,13 +34,6 @@
3034
outline-offset: 2px;
3135
border-radius: $tutor-radius-sm;
3236
}
33-
34-
display: inline-block;
35-
white-space: nowrap;
36-
overflow: hidden;
37-
text-overflow: ellipsis;
38-
max-width: 100%;
39-
vertical-align: bottom;
4037
}
4138
}
4239

assets/core/scss/components/_progress.scss

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
.tutor-progress-bar {
55
width: 100%;
66
height: $tutor-progress-height;
7-
background-color: $tutor-actions-gray-secondary;
7+
background-color: $tutor-actions-gray-quaternary;
88
box-shadow: inset 0 0 1.75px rgba(0, 0, 0, 0.16);
99
border-radius: $tutor-radius-full;
1010
overflow: hidden;
@@ -21,11 +21,15 @@
2121
position: relative;
2222
@include tutor-transition(transform, 0.3s);
2323

24+
[dir='rtl'] & {
25+
transform: translateX(calc(100% - var(--tutor-progress-width)));
26+
}
27+
2428
&::before {
2529
content: '';
2630
position: absolute;
2731
top: $tutor-progress-indicator-top;
28-
right: $tutor-spacing-2;
32+
inset-inline-end: $tutor-spacing-2;
2933
height: $tutor-progress-indicator-height;
3034
width: 8.16px;
3135
background-color: $tutor-actions-success-secondary;
@@ -38,8 +42,8 @@
3842
display: $tutor-progress-indicator-secondary-display;
3943
position: absolute;
4044
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);
4347
height: $tutor-progress-indicator-height;
4448
background-color: $tutor-actions-success-secondary;
4549
border-radius: inherit;
@@ -48,7 +52,7 @@
4852
}
4953

5054
&.tutor-progress-bar-brand {
51-
background-color: $tutor-actions-gray-secondary;
55+
background-color: $tutor-actions-gray-quaternary;
5256

5357
.tutor-progress-bar-fill {
5458
background-color: $tutor-actions-brand-primary;
@@ -81,6 +85,10 @@
8185

8286
&[data-tutor-animated] .tutor-progress-bar-fill {
8387
animation: tutor-progress-fill-animate 1s ease-out forwards;
88+
89+
[dir='rtl'] & {
90+
animation-name: tutor-progress-fill-animate-rtl;
91+
}
8492
}
8593
}
8694

@@ -92,3 +100,12 @@
92100
transform: translateX(calc(var(--tutor-progress-width) - 100%));
93101
}
94102
}
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+
}

assets/core/scss/components/_result-badge.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
svg {
2121
position: absolute;
22-
left: -$tutor-spacing-4;
22+
inset-inline-start: -$tutor-spacing-4;
2323
top: 50%;
2424
transform: translateY(-50%);
2525
}

assets/core/scss/components/_tabs.scss

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
@use '../mixins' as *;
22
@use '../tokens' as *;
3-
@use '../mixins/rtl' as rtl;
43

54
button.tutor-tabs-tab,
65
.tutor-tabs-tab {
@@ -23,6 +22,7 @@ button.tutor-tabs-tab,
2322

2423
@include tutor-breakpoint-down(sm) {
2524
@include tutor-text('tiny');
25+
justify-content: center;
2626
}
2727

2828
&-active {
@@ -96,10 +96,6 @@ button.tutor-tabs-tab,
9696
&::-webkit-scrollbar {
9797
display: none;
9898
}
99-
100-
[dir='rtl'] & {
101-
flex-direction: row-reverse;
102-
}
10399
}
104100

105101
&-content {
@@ -110,10 +106,6 @@ button.tutor-tabs-tab,
110106
&-vertical {
111107
@include tutor-flex(row, flex-start, flex-start);
112108

113-
[dir='rtl'] & {
114-
flex-direction: row-reverse;
115-
}
116-
117109
.tutor-tabs-nav {
118110
@include tutor-flex-column;
119111
align-items: stretch;
@@ -124,6 +116,13 @@ button.tutor-tabs-tab,
124116
flex: 1;
125117
min-width: 0;
126118
}
119+
120+
@include tutor-breakpoint-down(sm) {
121+
button.tutor-tabs-tab,
122+
.tutor-tabs-tab {
123+
justify-content: flex-start;
124+
}
125+
}
127126
}
128127
}
129128

assets/core/scss/main.scss

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,15 @@ form {
6868
}
6969
}
7070

71+
/**
72+
* Flips directional icons in RTL layouts.
73+
* Use only for icons whose meaning depends on reading direction,
74+
* such as arrows, chevrons, previous/next pagination controls, etc.
75+
*/
76+
[dir='rtl'] .tutor-icon-flip-rtl {
77+
transform: scaleX(-1);
78+
}
79+
7180
// Alpine.js cloak utility
7281
[x-cloak] {
7382
display: none !important;

assets/core/scss/mixins/_avatars.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ $tutor-avatar-sizes: (
113113
color: $tutor-actions-brand-primary;
114114
}
115115
} @else if $variant == border {
116-
border: 2px solid $tutor-border-brand-secondary;
116+
border: 1px solid $tutor-border-brand-secondary;
117117
svg,
118118
.tutor-avatar-image {
119119
border-radius: 0px;

assets/core/scss/themes/_dark.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
--tutor-surface-dark: #{$tutor-gray-600};
3030
--tutor-surface-warning: #{$tutor-gray-750};
3131
--tutor-surface-warning-hover: #{$tutor-warning-900};
32+
--tutor-surface-warning-hover-2: #{$tutor-exception-10};
3233
--tutor-surface-success: #{$tutor-success-950};
3334
--tutor-surface-critical: #{$tutor-error-950};
3435

@@ -165,6 +166,7 @@
165166
--tutor-actions-gray-empty: #{$tutor-gray-800};
166167
--tutor-actions-gray-secondary: #{$tutor-gray-750};
167168
--tutor-actions-gray-tertiary: #{$tutor-gray-800};
169+
--tutor-actions-gray-quaternary: #{$tutor-gray-900};
168170
--tutor-actions-critical-primary: #{$tutor-error-500};
169171
--tutor-actions-critical-secondary: #{$tutor-gray-700};
170172
--tutor-actions-exception3-highlight: #{$tutor-exception-3};

0 commit comments

Comments
 (0)