Skip to content

Commit 0e243e8

Browse files
committed
Learning area responsive design improved
1 parent bfb38a2 commit 0e243e8

File tree

11 files changed

+235
-178
lines changed

11 files changed

+235
-178
lines changed

assets/core/scss/utilities/_borders.scss

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,6 @@ $radius-directions: (
6060
// =============================================================================
6161
// SMART BORDER UTILITIES
6262
// =============================================================================
63-
64-
// Base borders
65-
.tutor-border {
66-
border: 1px solid $tutor-border-idle;
67-
}
68-
.tutor-border-0 {
69-
border: none;
70-
}
71-
7263
// Generate border-width utilities
7364
@each $width-key, $width-value in $border-widths {
7465
.tutor-border-#{$width-key} {
Lines changed: 42 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,45 @@
11
// Lesson Content Styles
2-
// Individual lesson content display and formatting
2+
@use '@Core/scss/tokens' as *;
3+
@use '@Core/scss/mixins' as *;
34

45
.tutor-lesson-content {
5-
// Lesson content styles will go here
6-
// Text content, images, embedded media, formatting
7-
}
6+
@include tutor-breakpoint-up(sm) {
7+
margin-top: $tutor-spacing-4;
8+
9+
.tutor-lesson-content-tab {
10+
background-color: $tutor-surface-l1;
11+
border: 1px solid $tutor-border-idle;
12+
border-radius: $tutor-radius-lg;
13+
overflow: hidden;
14+
}
15+
}
16+
17+
@include tutor-breakpoint-down(sm) {
18+
.tutor-lesson-content-tab {
19+
padding-inline: $tutor-spacing-6;
20+
21+
.tutor-lesson-video-wrapper {
22+
margin-inline: -$tutor-spacing-6;
23+
margin-bottom: $tutor-spacing-6;
24+
}
25+
26+
.tutor-tabs-nav {
27+
background-color: $tutor-surface-l1;
28+
padding: $tutor-spacing-2;
29+
border: 1px solid $tutor-border-idle;
30+
border-radius: $tutor-radius-2xl;
31+
margin-bottom: $tutor-spacing-5;
32+
}
33+
34+
.tutor-tabs-tab {
35+
flex: 1;
36+
}
37+
38+
.tutor-tabs-content {
39+
background-color: $tutor-surface-l1;
40+
border: 1px solid $tutor-border-idle;
41+
border-radius: $tutor-radius-2xl;
42+
}
43+
}
44+
}
45+
}

assets/src/scss/frontend/learning-area/layout/_footer.scss

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,19 @@
99
padding-block: $tutor-spacing-6;
1010
position: sticky;
1111
bottom: 0;
12+
13+
@include tutor-breakpoint-down(sm) {
14+
position: fixed;
15+
padding-block: $tutor-spacing-5;
16+
width: 100%;
17+
18+
a.tutor-btn {
19+
@include tutor-button-size(x-small);
20+
}
21+
22+
button.tutor-btn {
23+
@include tutor-button-size(medium);
24+
gap: $tutor-spacing-4;
25+
}
26+
}
1227
}

assets/src/scss/frontend/learning-area/layout/_header.scss

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,14 @@
1010
top: 0;
1111
z-index: $tutor-z-header;
1212

13-
.tutor-has-admin-bar & {
14-
top: 32px;
13+
@include tutor-breakpoint-up(sm) {
14+
.tutor-has-admin-bar & {
15+
top: 32px;
16+
}
1517
}
1618

1719
@include tutor-breakpoint-down(sm) {
18-
padding: 0px $tutor-spacing-6 0px $tutor-spacing-6;
20+
padding: $tutor-spacing-2 $tutor-spacing-6;
1921
}
2022

2123
&-inner {
@@ -53,13 +55,10 @@
5355
}
5456
}
5557

56-
&-mobile {
57-
margin-inline-start: auto;
58-
}
59-
6058
&-toggle-mobile {
6159
@include tutor-button-reset();
6260
@include tutor-flex-center();
61+
margin-inline-start: auto;
6362
height: 44px;
6463
width: 44px;
6564

assets/src/scss/frontend/learning-area/layout/_layout.scss

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
@use '@Core/scss/tokens' as *;
55

66
.tutor-learning-area {
7-
&-body {
7+
.tutor-learning-area-body {
88
padding-inline-start: 320px;
99
position: relative;
1010
@include tutor-transition(padding);
@@ -14,7 +14,7 @@
1414
}
1515
}
1616

17-
&.is-fullscreen &-body {
17+
&.is-fullscreen .tutor-learning-area-body {
1818
padding-inline-start: 0;
1919
}
2020

@@ -31,7 +31,14 @@
3131

3232
.tutor-learning-area-container {
3333
max-width: 780px;
34-
padding: 0 $tutor-spacing-6;
3534
margin: 0 auto;
35+
36+
@include tutor-breakpoint-up(sm) {
37+
padding-inline: $tutor-spacing-6;
38+
}
39+
40+
@include tutor-breakpoint-down(sm) {
41+
padding-bottom: 62px;
42+
}
3643
}
3744
}

0 commit comments

Comments
 (0)