Skip to content

Commit 6ac5aa2

Browse files
committed
Merge with dev
2 parents 7569ab9 + d949783 commit 6ac5aa2

8 files changed

Lines changed: 264 additions & 90 deletions

File tree

assets/core/scss/mixins/_badges.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
align-items: center;
1111
gap: $tutor-spacing-3;
1212
background-color: $tutor-actions-gray-secondary;
13+
width: fit-content;
1314

1415
img,
1516
svg {

assets/src/scss/frontend/dashboard/layout/_account.scss

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,6 @@
22
@use '@Core/scss/tokens' as *;
33

44
.tutor-account-page-wrapper {
5-
.tutor-account-header {
6-
@include tutor-breakpoint-down(sm) {
7-
display: none;
8-
}
9-
}
10-
115
.tutor-account-header {
126
background-color: $tutor-surface-base;
137
border-bottom: 1px solid $tutor-border-idle;

assets/src/scss/frontend/dashboard/layout/_header.scss

Lines changed: 108 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,10 @@
6868
@include tutor-flex(row, center);
6969
}
7070

71+
.tutor-avatar {
72+
margin: 0 auto;
73+
}
74+
7175
&-user-avatar {
7276
@include tutor-button-reset();
7377
width: 32px;
@@ -90,16 +94,21 @@
9094
}
9195

9296
&-user-popover {
93-
width: 220px;
97+
width: 230px;
9498
padding: $tutor-spacing-4;
99+
z-index: calc($tutor-z-highest + 1) !important;
95100

96101
&-profile {
97102
@include tutor-flex(column, center, flex-start);
98103
gap: $tutor-spacing-5;
99104
background-color: $tutor-surface-brand-tertiary;
100105
padding: $tutor-spacing-6 $tutor-spacing-5;
101106
border-radius: $tutor-radius-md;
102-
margin-bottom: $tutor-spacing-4;
107+
margin-bottom: $tutor-spacing-5;
108+
109+
.tutor-edit-profile-link {
110+
color: $tutor-icon-idle;
111+
}
103112
}
104113

105114
&-menu {
@@ -146,4 +155,100 @@
146155
}
147156
}
148157
}
149-
}
158+
159+
@include tutor-breakpoint-down(sm) {
160+
height: 60px;
161+
162+
&-user-avatar {
163+
width: 22px;
164+
height: 22px;
165+
}
166+
167+
&-user-popover {
168+
top: 0px !important;
169+
left: 0px !important;
170+
width: 100% !important;
171+
max-width: 100% !important;
172+
height: 100% !important;
173+
max-height: 100% !important;
174+
overflow-y: auto;
175+
padding: $tutor-spacing-none;
176+
@include tutor-flex(column);
177+
178+
&-profile {
179+
padding: $tutor-spacing-none;
180+
gap: $tutor-spacing-none;
181+
margin-bottom: $tutor-spacing-6;
182+
183+
.tutor-profile-header-top {
184+
width: 100%;
185+
@include tutor-flex(row, center, space-between)
186+
}
187+
188+
.tutor-user-profile-info {
189+
width: 100%;
190+
flex-direction: row;
191+
gap: 10px;
192+
background: $tutor-surface-l1;
193+
}
194+
195+
.tutor-user-profile-meta {
196+
align-items: flex-start;
197+
}
198+
199+
.tutor-edit-profile-link {
200+
align-self: center;
201+
margin-inline-start: auto;
202+
}
203+
204+
.tutor-avatar {
205+
margin: unset;
206+
}
207+
}
208+
209+
&-menu-wrapper {
210+
@include tutor-flex(column, stretch, space-between);
211+
background: $tutor-surface-base;
212+
height: 100vh;
213+
}
214+
215+
&-menu {
216+
gap: 10px;
217+
padding: $tutor-spacing-6 $tutor-spacing-7;
218+
219+
li {
220+
&:last-of-type {
221+
display: none;
222+
border-top: 1px solid $tutor-border-idle;
223+
padding-top: $tutor-spacing-2;
224+
}
225+
226+
a {
227+
padding: $tutor-spacing-6 $tutor-spacing-5;
228+
border: 1px solid $tutor-border-idle;
229+
230+
&.active {
231+
background-color: unset;
232+
color: unset;
233+
}
234+
235+
&.focus {
236+
background-color: $tutor-tab-sidebar-l2-active;
237+
color: $tutor-text-brand;
238+
}
239+
}
240+
}
241+
}
242+
243+
.tutor-mobile-logout-wrapper {
244+
margin-top: auto;
245+
246+
a {
247+
width: 100%;
248+
padding: $tutor-spacing-6 $tutor-spacing-5;
249+
border: 1px solid $tutor-border-idle;
250+
}
251+
}
252+
}
253+
}
254+
}

assets/src/scss/frontend/dashboard/layout/_nav-mobile.scss

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,18 @@
3636
@include tutor-flex(column, center);
3737
gap: $tutor-spacing-2;
3838

39-
&.active,
39+
&.active,
4040
&.active span {
4141
color: $tutor-text-brand;
4242
}
4343
}
44+
45+
img {
46+
width: 16px;
47+
height: 16px;
48+
object-fit: cover;
49+
border-radius: $tutor-radius-full;
50+
}
4451
}
4552
}
4653

@@ -67,7 +74,7 @@
6774
outline: none;
6875
box-shadow: none;
6976

70-
&.active,
77+
&.active,
7178
&.active span {
7279
color: $tutor-text-brand;
7380
}

templates/dashboard/account/settings/header.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
use Tutor\Components\Constants\Size;
1818
use Tutor\Components\Constants\Variant;
1919

20-
$back_url = UrlHelper::back();
20+
$back_url = UrlHelper::back( tutor_utils()->tutor_dashboard_url() );
2121

2222
?>
2323
<div class="tutor-profile-header">

0 commit comments

Comments
 (0)