Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 25 additions & 3 deletions assets/core/scss/components/_progress.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

.tutor-progress-bar {
width: 100%;
height: $tutor-spacing-4;
height: $tutor-progress-height;
background-color: $tutor-actions-gray-secondary;
box-shadow: inset 0 0 1.75px rgba(0, 0, 0, 0.16);
border-radius: $tutor-radius-full;
Expand All @@ -22,12 +22,26 @@
&::before {
content: '';
position: absolute;
top: $tutor-spacing-1;
top: $tutor-progress-indicator-top;
right: $tutor-spacing-2;
height: 1.5px;
height: $tutor-progress-indicator-height;
width: 8.16px;
background-color: $tutor-actions-success-secondary;
border-radius: inherit;
opacity: 0.7;
}

&::after {
content: '';
display: $tutor-progress-indicator-secondary-display;
position: absolute;
top: $tutor-progress-indicator-top;
left: $tutor-spacing-2;
right: calc(#{$tutor-spacing-2} + 8.16px + 1px);
height: $tutor-progress-indicator-height;
background-color: $tutor-actions-success-secondary;
border-radius: inherit;
opacity: 0.7;
}
}

Expand All @@ -40,6 +54,10 @@
&::before {
background-color: $tutor-surface-brand-secondary;
}

&::after {
background-color: $tutor-surface-brand-secondary;
}
}
}

Expand All @@ -52,6 +70,10 @@
&::before {
background-color: $tutor-actions-warning-tertiary;
}

&::after {
background-color: $tutor-actions-warning-tertiary;
}
}
}

Expand Down
1 change: 1 addition & 0 deletions assets/core/scss/tokens/_index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@
@forward "zIndex";
@forward "popover";
@forward "modal";
@forward "progress";
9 changes: 9 additions & 0 deletions assets/core/scss/tokens/_progress.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
@use './spacing';

// Design Tokens - Progress
// CSS variables for theme-aware progress geometry

$tutor-progress-height: var(--tutor-progress-height, 8px);
$tutor-progress-indicator-top: var(--tutor-progress-indicator-top, 2px);
$tutor-progress-indicator-height: var(--tutor-progress-indicator-height, 1.5px);
$tutor-progress-indicator-secondary-display: var(--tutor-progress-indicator-secondary-display, none);
1 change: 1 addition & 0 deletions assets/icons/kids/call-end.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/icons/kids/clock-2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/icons/kids/instructor.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/icons/kids/key.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/icons/kids/level.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/icons/kids/material.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions assets/icons/kids/ratings.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 9 additions & 1 deletion assets/icons/kids/star-line.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions assets/src/scss/frontend/dashboard/_reviews.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@
opacity: 1;
}
}

@include tutor-breakpoint-down(sm) {
.tutor-review-actions {
opacity: 1;
}
}
}

&-header {
Expand Down
55 changes: 51 additions & 4 deletions assets/src/scss/frontend/kids/_learning-area.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,60 @@
.tutor-assignment-info,
.tutor-assignment-description,
.tutor-assignment-attachments,
.tutor-assignment-form {
.tutor-assignment-form,
.tutor-meeting,
.tutor-certificate-wrapper .tutor-certificate-header,
.tutor-pro-certificate-preview-container,
.tutor-certificate-wrapper .tutor-certificate-info,
.tutor-course-info-table,
.tutor-webinar-card,
.tutor-course-announcements,
.tutor-learning-area-resources .tutor-resources-wrapper {
@include tutor-kids-shadow(false, $tutor-border-idle, $tutor-radius-6xl, sm);
}

.tutor-assignment-feedback {
.tutor-course-info .tutor-course-thumb {
border-radius: $tutor-radius-6xl;
}

.tutor-assignment-feedback,
.tutor-pro-certificate-preview-wrapper,
.tutor-learning-sidebar .tutor-learning-sidebar-pages,
.tutor-learning-sidebar .tutor-learning-sidebar-curriculum {
border-radius: $tutor-radius-5xl;
}

.tutor-quiz-summary .tutor-quiz-result,
.tutor-quiz-question,
.tutor-quiz-summary-page .tutor-quiz-review-dnd {
.tutor-quiz-summary-page .tutor-quiz-review-dnd,
.tutor-course-info .tutor-course-info-certificate {
@include tutor-kids-shadow(false, $tutor-border-idle, $tutor-radius-4xl, sm);
}

.tutor-learning-sidebar .tutor-learning-sidebar-curriculum .tutor-learning-nav .tutor-learning-nav-item {
&:hover,
&.active {
@include tutor-kids-shadow(false, $tutor-border-idle, $tutor-radius-2xl, sm);
}
}

.tutor-course-info .tutor-course-description-item {
border-radius: $tutor-radius-4xl;

&:has([style*='height: auto']) {
@include tutor-kids-shadow(false, $tutor-border-idle, $tutor-radius-4xl, sm);
}

&:not(:first-of-type) {
margin-top: $tutor-spacing-2;
}
}

.tutor-learning-sidebar .tutor-learning-sidebar-pages .tutor-sidebar-restore-dropdown button {
border-top-left-radius: $tutor-radius-md;
border-bottom-right-radius: $tutor-radius-md;
}

.tutor-quiz-submission[data-question-layout-view='single_question'],
.tutor-quiz-submission[data-question-layout-view='question_pagination'] {
.tutor-quiz-question {
Expand Down Expand Up @@ -115,14 +155,21 @@
}
}

.tutor-meeting-hero,
.tutor-meeting-countdown,
.tutor-quiz-intro-icon,
.tutor-table-wrapper,
.tutor-quiz-attempts,
.tutor-quiz-summary-feedback,
.tutor-quiz-summary-page .tutor-quiz-summary-sidebar .tutor-quiz-sidebar-questions .tutor-quiz-sidebar-question-item {
.tutor-quiz-summary-page .tutor-quiz-summary-sidebar .tutor-quiz-sidebar-questions .tutor-quiz-sidebar-question-item,
.tutor-learning-header-inner {
border-radius: $tutor-radius-4xl;
}

.tutor-average-rating {
border-radius: $tutor-radius-2xl;
}

.tutor-quiz-intro .tutor-card,
.tutor-assignment-info,
.tutor-assignment-description,
Expand Down
15 changes: 15 additions & 0 deletions assets/src/scss/frontend/kids/_progress.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
@use '@Core/scss/tokens' as *;

:root {
--tutor-progress-height: #{$tutor-spacing-4};
--tutor-progress-indicator-top: 2px;
--tutor-progress-indicator-height: 1.5px;
--tutor-progress-indicator-secondary-display: none;
}

[data-tutor-ui='kids'] {
--tutor-progress-height: 12px;
--tutor-progress-indicator-top: 3px;
--tutor-progress-indicator-height: 2px;
--tutor-progress-indicator-secondary-display: block;
}
1 change: 1 addition & 0 deletions assets/src/scss/frontend/kids/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
@forward './input';
@forward './nav';
@forward './tabs';
@forward './progress';
@forward './sidebar';
@forward './popover';
@forward './modal';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@
gap: $tutor-spacing-4;
padding: $tutor-spacing-4 $tutor-spacing-5;
border-radius: $tutor-radius-md;
@include tutor-transition((color, background-color));
@include tutor-transition((color, background-color, box-shadow));
position: relative;
min-height: 40px;
opacity: 1;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

&-item {
background-color: $tutor-surface-l1;
border: 1px solid $tutor-border-idle;
outline: 1px solid $tutor-border-idle;
border-radius: $tutor-radius-lg;
padding: $tutor-spacing-5 $tutor-spacing-6;

Expand Down
5 changes: 3 additions & 2 deletions templates/learning-area/subpages/reviews.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
use Tutor\Components\Pagination;
use Tutor\Components\Progress;
use Tutor\Components\StarRating;
use Tutor\Components\SvgIcon;
use Tutor\Helpers\UrlHelper;

// Get course ID from global variable set in learning-area/index.php .
Expand All @@ -43,7 +44,7 @@
<div class="tutor-py-8 tutor-learning-area-reviews">
<div class="tutor-flex tutor-items-center tutor-justify-between tutor-mb-5">
<h4 class="tutor-h4 tutor-flex tutor-items-center tutor-gap-4">
<?php tutor_utils()->render_svg_icon( Icon::RATINGS, 24, 24 ); ?>
<?php SvgIcon::make()->name( Icon::RATINGS )->size( 24 )->render(); ?>
<?php esc_html_e( 'Reviews', 'tutor' ); ?>
</h4>
<?php
Expand Down Expand Up @@ -81,7 +82,7 @@
<div class="tutor-medium tutor-font-medium" style="max-width: 172px;">
<?php esc_html_e( 'Student Ratings & Reviews', 'tutor' ); ?>
</div>
<div class="tutor-surface-base tutor-rounded-sm tutor-py-3 tutor-px-5 tutor-flex tutor-flex-column tutor-gap-1 tutor-w-fit">
<div class="tutor-average-rating tutor-surface-base tutor-rounded-sm tutor-py-3 tutor-px-5 tutor-flex tutor-flex-column tutor-gap-1 tutor-w-fit">
<div class="tutor-flex tutor-items-center tutor-gap-5">
<div class="tutor-h4 tutor-font-bold">
<?php echo esc_html( number_format_i18n( (float) $course_rating->rating_avg, 1 ) ); ?>
Expand Down
Loading