Skip to content

Commit fef9000

Browse files
authored
Merge pull request #2694 from themeum/fix/v4-responsive
💅 Responsive desing fixes
2 parents 0502a19 + 98f7957 commit fef9000

32 files changed

Lines changed: 216 additions & 84 deletions

File tree

assets/core/scss/mixins/_inputs.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,13 @@
5555
@if $size == lg {
5656
padding: $tutor-spacing-5;
5757
}
58+
59+
// Prevent iOS Safari from auto-zooming focused fields and exposing
60+
// horizontal overflow on mobile layouts.
61+
@media (hover: none) and (pointer: coarse) {
62+
font-size: $tutor-font-size-medium;
63+
line-height: $tutor-line-height-medium;
64+
}
5865
}
5966

6067
@mixin tutor-textarea($min-height: 92px) {

assets/core/scss/tokens/_zIndex.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Design Tokens - z-index
1+
// Design Tokens - z-index
22
// CSS variables for z-index
33

44
// =============================================================================
@@ -9,7 +9,7 @@ $tutor-z-negative: -1;
99
$tutor-z-positive: 1;
1010
$tutor-z-dropdown: 2;
1111
$tutor-z-level: 0;
12-
$tutor-z-sidebar: 9;
12+
$tutor-z-sidebar: 20;
1313
$tutor-z-header: 10;
1414
$tutor-z-footer: 10;
1515
$tutor-z-modal: 25;
@@ -29,4 +29,4 @@ $tutor-z: (
2929
footer: $tutor-z-footer,
3030
modal: $tutor-z-modal,
3131
highest: $tutor-z-highest,
32-
);
32+
);

assets/icons/cross-colorize.svg

Lines changed: 1 addition & 0 deletions
Loading

assets/icons/info-colorize.svg

Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading

assets/icons/kids/history.svg

Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading

assets/src/js/frontend/learning-area/sidebar.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ export const sidebarComponent = ({
3939
pagesHeight: 0,
4040
resizing: false,
4141
collapsed: isCollapsed,
42+
sidebarOpen: false,
4243
courseId: courseId,
4344
resetModalId: resetModalId,
4445
resetProgressMutation: null as MutationState<ResetProgressResponse, ResetProgressPayload> | null,
@@ -71,6 +72,14 @@ export const sidebarComponent = ({
7172
);
7273
},
7374

75+
toggleSidebar() {
76+
this.sidebarOpen = !this.sidebarOpen;
77+
},
78+
79+
closeSidebar() {
80+
this.sidebarOpen = false;
81+
},
82+
7483
startResizing(e: MouseEvent) {
7584
this.resizing = true;
7685
const startY = e.clientY;

assets/src/js/v3/shared/icons/types.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ export const icons = [
115115
'cross2',
116116
'crossCircle',
117117
'crossCircleLine',
118+
'crossColorize',
118119
'crown',
119120
'crownOutlined',
120121
'crownRounded',
@@ -212,6 +213,7 @@ export const icons = [
212213
'inactive',
213214
'info',
214215
'info2',
216+
'infoColorize',
215217
'infoFill',
216218
'infoOctagon',
217219
'instructor',

assets/src/scss/frontend/components/_quiz-attempts.scss

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,16 @@
44
@use '@Core/scss/tokens' as *;
55
@use '@Core/scss/mixins' as *;
66

7+
.tutor-my-quiz-attempts-wrapper .tutor-quiz-attempts {
8+
border-radius: $tutor-radius-2xl;
9+
10+
@include tutor-breakpoint-down(sm) {
11+
border: 1px solid $tutor-border-idle;
12+
overflow: hidden;
13+
margin-top: $tutor-spacing-4;
14+
}
15+
}
16+
717
.tutor-quiz-attempts-mobile-heading {
818
@include tutor-breakpoint-up(sm) {
919
display: none;
@@ -277,7 +287,7 @@
277287
}
278288

279289
&:hover {
280-
.tutor-quiz-item-info-title{
290+
.tutor-quiz-item-info-title {
281291
color: $tutor-brand-700;
282292
}
283293
}

0 commit comments

Comments
 (0)