diff --git a/.lintstagedrc b/.lintstagedrc index a8f7385af8..4f66c5f6ae 100644 --- a/.lintstagedrc +++ b/.lintstagedrc @@ -1,7 +1,14 @@ { - "*.{ts,tsx}": ["pnpm exec eslint --fix", "bash -c 'pnpm exec tsc --noEmit'"], - "*.{ts,tsx,jsonc,md}": ["pnpm exec prettier --write"], - "assets/{core/scss,src/scss/frontend}/**/*.scss": ["stylelint --fix"], + "*.{ts,tsx}": [ + "pnpm exec eslint --fix", + "bash -c 'pnpm exec tsc --noEmit'" + ], + "*.{ts,tsx,jsonc,md}": [ + "pnpm exec prettier --write" + ], + "*.scss": [ + "stylelint --fix" + ], "*.php": [ "bash -c 'if [ ! -x ./vendor/bin/phpstan ]; then printf \"\\nError: PHPStan is not installed.\\n\\nInstall it with:\\n composer install\\n\\nThen retry your commit.\\n\\n\" >&2; exit 1; fi; exec ./vendor/bin/phpstan analyze --memory-limit=-1 \"$@\"' --" ] diff --git a/assets/core/scss/components/_accordion.scss b/assets/core/scss/components/_accordion.scss index 060505de8a..bf13c78f7f 100644 --- a/assets/core/scss/components/_accordion.scss +++ b/assets/core/scss/components/_accordion.scss @@ -4,7 +4,9 @@ .tutor-accordion { overflow: visible; background-color: transparent; + @include tutor-flex(column, stretch, start); + gap: $tutor-spacing-6; &-item { @@ -16,12 +18,14 @@ &-header { @include tutor-flex(row, start, space-between); + width: 100%; padding: $tutor-spacing-5 $tutor-spacing-6; background: none; border: none; text-align: start; cursor: pointer; + @include tutor-transition(background-color); &:hover, @@ -33,13 +37,16 @@ &-title { margin: 0; + @include tutor-typography('medium', 'medium', 'primary', 'heading'); } &-icon { @include tutor-flex-center(); + flex-shrink: 0; color: $tutor-icon-idle; + @include tutor-transition(transform); .tutor-accordion-header[aria-expanded='true'] & { diff --git a/assets/core/scss/components/_alert.scss b/assets/core/scss/components/_alert.scss index 3665780cb0..4aee8db916 100644 --- a/assets/core/scss/components/_alert.scss +++ b/assets/core/scss/components/_alert.scss @@ -3,6 +3,7 @@ .tutor-alert { @include tutor-flex(row, center, space-between); + gap: $tutor-spacing-5; padding: $tutor-spacing-4; border-radius: $tutor-radius-sm; @@ -10,6 +11,7 @@ .tutor-alert-content { @include tutor-flex(row, start); + gap: $tutor-spacing-3; } diff --git a/assets/core/scss/components/_attachment-card.scss b/assets/core/scss/components/_attachment-card.scss index ee551fb95d..ea7f8cd4b2 100644 --- a/assets/core/scss/components/_attachment-card.scss +++ b/assets/core/scss/components/_attachment-card.scss @@ -4,10 +4,13 @@ .tutor-attachment-card { @include tutor-flex(row, center, flex-start); + width: 100%; gap: $tutor-spacing-5; padding: $tutor-spacing-4 $tutor-spacing-5; + @include tutor-transition(background-color); + position: relative; &:hover, @@ -17,6 +20,7 @@ &-icon { @include tutor-flex(row, center, center); + width: 48px; height: 48px; border-radius: $tutor-radius-sm; @@ -36,6 +40,7 @@ &-body { @include tutor-flex(column); + gap: $tutor-spacing-1; flex: 1 1 auto; min-width: 0; @@ -53,6 +58,7 @@ @include tutor-breakpoint-up(md) { &-actions { opacity: 0; + @include tutor-transition((opacity, visibility)); } diff --git a/assets/core/scss/components/_button.scss b/assets/core/scss/components/_button.scss index 5b852b49ad..06a3522e5d 100644 --- a/assets/core/scss/components/_button.scss +++ b/assets/core/scss/components/_button.scss @@ -62,6 +62,7 @@ button.tutor-btn-link, a.tutor-btn-link, .tutor-btn-link { @include tutor-button-variant(link); + box-shadow: none } @@ -144,6 +145,7 @@ button.tutor-btn-icon, a.tutor-btn-icon, .tutor-btn-icon { flex-shrink: 0; + @include tutor-button-icon-size(medium); &.tutor-btn-x-small { diff --git a/assets/core/scss/components/_calendar.scss b/assets/core/scss/components/_calendar.scss index 6cae5aea2b..882d239d7a 100644 --- a/assets/core/scss/components/_calendar.scss +++ b/assets/core/scss/components/_calendar.scss @@ -22,6 +22,7 @@ [data-vc-week-day] { @include tutor-typography('tiny', 'regular', 'secondary'); + color: $tutor-text-secondary !important; } @@ -29,6 +30,7 @@ .vc-years__year.vc-years__year { @include tutor-button-base(); @include tutor-button-variant('ghost'); + color: $tutor-text-primary; } @@ -41,6 +43,7 @@ button { box-shadow: none; transition: none; + @include tutor-transition((background-color, color)); } @@ -129,12 +132,14 @@ .vc-presets { grid-area: presets; + @include tutor-flex(column); button { @include tutor-button-reset(); @include tutor-typography(tiny, medium); @include tutor-flex(row, center, space-between); + border-radius: $tutor-radius-sm; padding: $tutor-spacing-3 $tutor-spacing-5; text-align: start; @@ -159,8 +164,7 @@ } @include tutor-breakpoint-down(md) { - flex-direction: row; - flex-wrap: wrap; + flex-flow: row wrap; border-bottom: 1px solid $tutor-border-idle; padding-bottom: $tutor-spacing-4; margin-bottom: $tutor-spacing-4; diff --git a/assets/core/scss/components/_feature-disabled.scss b/assets/core/scss/components/_feature-disabled.scss index 228a28a41e..40cf4fe067 100644 --- a/assets/core/scss/components/_feature-disabled.scss +++ b/assets/core/scss/components/_feature-disabled.scss @@ -1,5 +1,4 @@ // Feature Disabled / Access Denied Component -// // Ported from legacy assets/src/scss/front/_denied.scss into the v4 design system. // Used by templates/feature_disabled.php to render access-denied and feature-disabled // states (e.g. when user registration is disabled) with proper v4 tokens and typography. @@ -11,11 +10,14 @@ max-width: 444px; padding: $tutor-spacing-12 $tutor-spacing-none $tutor-spacing-8; margin: auto; + @include tutor-flex(column, center, center); + text-align: center; .tutor-disabled-content-wrapper { @include tutor-flex(column, center, center); + text-align: center; img { @@ -24,12 +26,14 @@ h3 { @include tutor-typography('h4', 'medium', 'primary'); + margin-top: $tutor-spacing-none; margin-bottom: $tutor-spacing-3; } p { @include tutor-typography('p2', 'regular', 'subdued'); + margin-top: $tutor-spacing-none; margin-bottom: $tutor-spacing-8; } diff --git a/assets/core/scss/components/_file-uploader.scss b/assets/core/scss/components/_file-uploader.scss index 764a8feb25..ec5502a1f2 100644 --- a/assets/core/scss/components/_file-uploader.scss +++ b/assets/core/scss/components/_file-uploader.scss @@ -3,6 +3,7 @@ .tutor-file-uploader { @include tutor-flex(column, center, center); + min-height: 228px; background-color: $tutor-surface-brand-tertiary; background-image: $tutor-file-uploader-background-image; @@ -10,6 +11,7 @@ padding: $tutor-spacing-6; cursor: pointer; position: relative; + @include tutor-transition(); &.tutor-file-uploader-drag-over { @@ -23,12 +25,14 @@ &-icon { @include tutor-flex(row, center, center); + color: $tutor-icon-hover; margin-bottom: $tutor-spacing-6; } &-content { @include tutor-flex(column, center, center); + gap: $tutor-spacing-2; text-align: center; margin-bottom: $tutor-spacing-8; @@ -36,11 +40,13 @@ &-title { @include tutor-typography(small, medium, primary); + margin: 0; } &-subtitle { @include tutor-typography(tiny, regular, subdued); + margin: 0; } @@ -49,7 +55,7 @@ width: 0; height: 0; overflow: hidden; - clip: rect(0, 0, 0, 0); + clip-path: inset(50%); white-space: nowrap; border: 0; } @@ -57,6 +63,7 @@ .tutor-file-preview { @include tutor-flex(row, center, center); + position: relative; width: 100%; min-height: 228px; @@ -72,12 +79,14 @@ &-overlay { @include tutor-flex(row, center, center); + position: absolute; inset: 0; - background-color: rgba($color: $tutor-surface-dark, $alpha: 0.8); + background-color: rgba($color: $tutor-surface-dark, $alpha: 80%); opacity: 0; pointer-events: none; backdrop-filter: blur(4px); + @include tutor-transition(opacity); } @@ -90,6 +99,7 @@ &-actions { @include tutor-flex(row, center, center); + gap: $tutor-spacing-3; } } diff --git a/assets/core/scss/components/_input.scss b/assets/core/scss/components/_input.scss index 6911d5c785..2cc87285d5 100644 --- a/assets/core/scss/components/_input.scss +++ b/assets/core/scss/components/_input.scss @@ -7,7 +7,9 @@ .tutor-input-wrapper { position: relative; + @include tutor-flex(row, center, flex-start); + gap: $tutor-spacing-3; .tutor-label { @@ -52,7 +54,6 @@ } .tutor-wp-editor-container { - .wp-editor-container, .mce-tinymce { border-radius: $tutor-input-radius; @@ -165,6 +166,7 @@ .tutor-label { @include tutor-typography('small', 'medium'); @include tutor-flex(row, center); + gap: $tutor-spacing-3; margin-bottom: $tutor-spacing-3; @@ -180,6 +182,7 @@ .tutor-input-help-icon { @include tutor-button-reset; @include tutor-flex(row, center, center); + color: $tutor-icon-subdued; cursor: help; } @@ -188,11 +191,14 @@ @include tutor-flex(row, center, center); @include tutor-button-base; @include tutor-button-variant('ghost'); + padding: $tutor-spacing-1; border-radius: $tutor-radius-sm; flex-shrink: 0; position: absolute; + @include right($tutor-spacing-5); + top: 50%; transform: translateY(-50%); color: $tutor-icon-idle; @@ -202,7 +208,9 @@ position: absolute; top: 50%; transform: translateY(-50%); + @include tutor-flex(row, center, center); + color: $tutor-icon-secondary; pointer-events: none; @@ -216,6 +224,7 @@ .tutor-input-password-toggle { @include tutor-button-reset; + pointer-events: auto; cursor: pointer; color: inherit; @@ -262,11 +271,14 @@ &-error { .tutor-input { border: 1px solid $tutor-border-error; + --tutor-input-border-shadow-current: none; + box-shadow: $tutor-shadow-xs; &:focus { @include tutor-focus-ring('error'); + border-color: $tutor-border-error; } } @@ -278,6 +290,7 @@ &:focus { @include tutor-focus-ring('error'); + border-color: $tutor-border-error; } } diff --git a/assets/core/scss/components/_loading-spinner.scss b/assets/core/scss/components/_loading-spinner.scss index cee12773bf..551438afd0 100644 --- a/assets/core/scss/components/_loading-spinner.scss +++ b/assets/core/scss/components/_loading-spinner.scss @@ -4,6 +4,7 @@ .tutor-loading-spinner { @include tutor-flex(); @include tutor-loading-spinner(); + padding: $tutor-spacing-8; position: relative; } diff --git a/assets/core/scss/components/_modal.scss b/assets/core/scss/components/_modal.scss index cd1d63969e..39e7760be3 100644 --- a/assets/core/scss/components/_modal.scss +++ b/assets/core/scss/components/_modal.scss @@ -14,7 +14,7 @@ &-backdrop { position: absolute; inset: 0; - background-color: #00000099; + background-color: #0009; backdrop-filter: blur(20px); // Transitions @@ -67,12 +67,14 @@ &-header { @include tutor-flex(column); + gap: $tutor-spacing-2; padding: $tutor-spacing-7 $tutor-spacing-7 $tutor-spacing-none $tutor-spacing-7; } &-title { @include tutor-typography('h5', 'semibold', 'secondary', 'heading'); + margin: 0; } @@ -88,6 +90,7 @@ @include tutor-button-base; @include tutor-button-icon-size(x-small); @include tutor-button-variant(ghost); + position: absolute; top: $tutor-spacing-4; inset-inline-end: $tutor-spacing-4; @@ -99,6 +102,7 @@ &-footer { @include tutor-flex(row, center, flex-end); + gap: $tutor-spacing-4; padding: $tutor-spacing-5 $tutor-spacing-7; border-top: 1px solid $tutor-border-idle; diff --git a/assets/core/scss/components/_nav.scss b/assets/core/scss/components/_nav.scss index aee2cf12ca..6b664ab572 100644 --- a/assets/core/scss/components/_nav.scss +++ b/assets/core/scss/components/_nav.scss @@ -5,6 +5,7 @@ .tutor-nav { @include tutor-flex(row, center); + gap: $tutor-spacing-2; overflow-x: auto; @@ -13,6 +14,7 @@ @include tutor-button-reset(); @include tutor-typography(small, medium, secondary); @include tutor-flex(row, center); + border-radius: $tutor-tab-radius; font-weight: $tutor-tab-font-weight; box-shadow: none; @@ -20,12 +22,14 @@ padding: 10px $tutor-spacing-6; height: $tutor-tab-height; white-space: nowrap; + @include tutor-transition((background-color, color, box-shadow)); &:hover { color: $tutor-text-brand; background-color: $tutor-tab-l3-active; box-shadow: $tutor-tab-active-shadow; + svg { color: $tutor-icon-brand; } @@ -36,6 +40,7 @@ background-color: $tutor-tab-l3-active; box-shadow: none; outline: none; + svg { color: $tutor-icon-brand; } @@ -43,6 +48,7 @@ &:focus-visible { @include tutor-focus-ring('brand', true); + outline-offset: -2px; } @@ -50,6 +56,7 @@ background-color: $tutor-tab-l3-active; color: $tutor-text-brand; box-shadow: $tutor-tab-active-shadow; + svg { color: $tutor-icon-brand; } @@ -62,16 +69,19 @@ &-dropdown { @include tutor-flex(column); + gap: $tutor-spacing-2; min-width: 170px; - padding: $tutor-spacing-2 0px; + padding: $tutor-spacing-2 0; &-item { @include tutor-button-reset(); @include tutor-typography(small); @include tutor-flex(row, center); + gap: $tutor-spacing-5; padding: $tutor-spacing-4 $tutor-spacing-5; + @include tutor-transition((background-color, color)); &:hover { @@ -105,6 +115,7 @@ &.tutor-nav-secondary { .tutor-nav-item { border-bottom: 2px solid transparent; + @include tutor-transition((border-color, background-color)); &.active { diff --git a/assets/core/scss/components/_popover.scss b/assets/core/scss/components/_popover.scss index 176d2fb48f..360a935680 100644 --- a/assets/core/scss/components/_popover.scss +++ b/assets/core/scss/components/_popover.scss @@ -19,6 +19,7 @@ .tutor-popover-title { @include tutor-typography(p1, semibold, primary); + margin: 0; } @@ -34,8 +35,8 @@ border-radius: $tutor-radius-5xl; color: $tutor-icon-idle; cursor: pointer; - @include tutor-transition(); + @include tutor-transition(); @include tutor-flex-center(); &:hover, @@ -49,6 +50,7 @@ &-body { @include tutor-typography(p2, regular, primary); + padding: $tutor-spacing-4; } @@ -58,6 +60,7 @@ margin-top: $tutor-spacing-4; @include tutor-flex(row, center, flex-end); + gap: $tutor-spacing-2; [dir='rtl'] & { @@ -72,12 +75,15 @@ .tutor-popover-menu-item { width: 100%; + @include tutor-button-reset(); @include tutor-flex(row, center, flex-start); @include tutor-typography(small); @include tutor-text-truncate(); + gap: $tutor-spacing-5; padding: $tutor-spacing-4 $tutor-spacing-5; + @include tutor-transition((color, background-color)); svg { @@ -126,8 +132,7 @@ &-header, &-body, &-footer { - padding-inline-start: $tutor-spacing-3; - padding-inline-end: $tutor-spacing-3; + padding-inline: $tutor-spacing-3 $tutor-spacing-3; } } } \ No newline at end of file diff --git a/assets/core/scss/components/_preview-trigger.scss b/assets/core/scss/components/_preview-trigger.scss index 1de302c18f..7e2491d3f4 100644 --- a/assets/core/scss/components/_preview-trigger.scss +++ b/assets/core/scss/components/_preview-trigger.scss @@ -15,9 +15,10 @@ text-underline-offset: 4px; color: $tutor-text-secondary; cursor: pointer; + @include tutor-transition(color); - padding-inline-end: $tutor-spacing-1; + padding-inline-end: $tutor-spacing-1; display: inline-block; white-space: nowrap; overflow: hidden; @@ -31,6 +32,7 @@ &:focus-visible { @include tutor-focus-ring('brand', true); + outline-offset: 2px; border-radius: $tutor-radius-sm; } @@ -71,6 +73,7 @@ .tutor-preview-card-title { @include tutor-typography(p2, medium, primary, heading); + margin: 0; display: -webkit-box; line-clamp: 2; @@ -81,6 +84,7 @@ a { text-decoration: none; color: inherit; + @include tutor-transition(color); &:hover { @@ -89,6 +93,7 @@ &:focus-visible { @include tutor-focus-ring('brand', true); + outline-offset: 2px; border-radius: $tutor-radius-sm; } @@ -101,6 +106,7 @@ a { color: $tutor-text-secondary; text-decoration: none; + @include tutor-transition(color); &:hover { @@ -109,6 +115,7 @@ &:focus-visible { @include tutor-focus-ring('brand', true); + outline-offset: 2px; border-radius: $tutor-radius-sm; } @@ -120,6 +127,7 @@ opacity: 0; transform: translateY(-8px); } + to { opacity: 1; transform: translateY(0); diff --git a/assets/core/scss/components/_progress.scss b/assets/core/scss/components/_progress.scss index 5b08810c55..22357de72f 100644 --- a/assets/core/scss/components/_progress.scss +++ b/assets/core/scss/components/_progress.scss @@ -5,7 +5,7 @@ width: 100%; height: $tutor-progress-height; background-color: $tutor-actions-gray-quaternary; - box-shadow: inset 0 0 1.75px rgba(0, 0, 0, 0.16); + box-shadow: inset 0 0 1.75px rgb(0 0 0 / 16%); border-radius: $tutor-radius-full; overflow: hidden; position: relative; @@ -13,12 +13,14 @@ &-fill { --tutor-progress-width: 0%; --tutor-progress-start: 0%; + height: 100%; width: 100%; transform: translateX(calc(var(--tutor-progress-width) - 100%)); background-color: $tutor-actions-success-primary; border-radius: inherit; position: relative; + @include tutor-transition(transform, 0.3s); [dir='rtl'] & { @@ -42,8 +44,7 @@ display: $tutor-progress-indicator-secondary-display; position: absolute; top: $tutor-progress-indicator-top; - inset-inline-start: $tutor-spacing-2; - inset-inline-end: calc(#{$tutor-spacing-2} + 8.16px + 1px); + inset-inline: $tutor-spacing-2 calc(#{$tutor-spacing-2} + 8.16px + 1px); height: $tutor-progress-indicator-height; background-color: $tutor-actions-success-secondary; border-radius: inherit; @@ -96,6 +97,7 @@ from { transform: translateX(calc(var(--tutor-progress-start, 0%) - 100%)); } + to { transform: translateX(calc(var(--tutor-progress-width) - 100%)); } @@ -105,6 +107,7 @@ from { transform: translateX(calc(100% - var(--tutor-progress-start, 0%))); } + to { transform: translateX(calc(100% - var(--tutor-progress-width))); } diff --git a/assets/core/scss/components/_result-badge.scss b/assets/core/scss/components/_result-badge.scss index f2e55a3c1c..d500c4bbdd 100644 --- a/assets/core/scss/components/_result-badge.scss +++ b/assets/core/scss/components/_result-badge.scss @@ -5,11 +5,11 @@ .tutor-result-badge { @include tutor-typography(medium, medium); + width: fit-content; border: 1px solid; border-radius: $tutor-radius-full; - padding-inline-start: $tutor-spacing-8; - padding-inline-end: $tutor-spacing-4; + padding-inline: $tutor-spacing-8 $tutor-spacing-4; margin-inline-start: $tutor-spacing-4; position: relative; diff --git a/assets/core/scss/components/_select.scss b/assets/core/scss/components/_select.scss index 123e4a6c0a..181dcc41e4 100644 --- a/assets/core/scss/components/_select.scss +++ b/assets/core/scss/components/_select.scss @@ -4,11 +4,13 @@ .tutor-select { position: relative; width: 100%; + @include tutor-typography(small); // Trigger button .tutor-select-trigger { @include tutor-flex(row, center, space-between); + width: 100%; min-height: 40px; gap: $tutor-spacing-3; @@ -17,17 +19,22 @@ border: 1px solid $tutor-border-idle; border-color: $tutor-input-border-color; border-radius: $tutor-input-radius; + --tutor-input-border-shadow-current: #{$tutor-input-border-shadow}; + box-shadow: var(--tutor-input-border-shadow-current); cursor: pointer; text-align: start; + @include tutor-transition(); &:hover, &:focus { @include tutor-focus-ring(); + border-color: $tutor-border-brand-tertiary; background-color: $tutor-surface-l1; + --tutor-input-border-shadow-current: none; } @@ -38,6 +45,7 @@ &[disabled] { background-color: $tutor-surface-l1-hover; cursor: not-allowed; + --tutor-input-border-shadow-current: none; } @@ -47,6 +55,7 @@ &:focus { @include tutor-focus-ring('error'); + border-color: $tutor-border-error; } } @@ -55,6 +64,7 @@ // Trigger content &-value { @include tutor-flex(row, center); + gap: $tutor-spacing-2; flex: 1; min-width: 0; @@ -62,6 +72,7 @@ &-text { @include tutor-typography(small); + flex: 1; overflow: hidden; text-overflow: ellipsis; @@ -74,7 +85,9 @@ &-icon { flex-shrink: 0; + @include tutor-flex(row, center, center); + color: $tutor-icon-secondary; width: 16px; height: 16px; @@ -84,6 +97,7 @@ // Multiple selected items &-tags { @include tutor-flex(row, center); + gap: $tutor-spacing-2; flex-wrap: wrap; flex: 1; @@ -92,6 +106,7 @@ &-tag { @include tutor-flex(row, center); + gap: $tutor-spacing-2; padding: $tutor-spacing-1 $tutor-spacing-2; background: $tutor-surface-l2; @@ -109,9 +124,11 @@ &-remove { @include tutor-button-reset; @include tutor-flex(row, center, center); + padding: 0; color: $tutor-icon-secondary; cursor: pointer; + @include tutor-transition(color); &:hover { @@ -123,6 +140,7 @@ // Actions (clear, arrow) &-actions { @include tutor-flex(row, center); + gap: $tutor-spacing-2; flex-shrink: 0; } @@ -132,16 +150,20 @@ @include tutor-button-variant('ghost'); @include tutor-flex(row, center, center); @include margin-end($tutor-spacing-2); + padding: $tutor-spacing-1; border-radius: $tutor-radius-sm; color: $tutor-icon-secondary; cursor: pointer; + @include tutor-transition(color); } &-arrow { @include tutor-flex(row, center, center); + color: $tutor-icon-secondary; + @include tutor-transition(transform); &[data-open='true'] { @@ -161,8 +183,10 @@ // Dropdown menu &-menu { position: absolute; + @include left(0); @include right(0); + z-index: $tutor-z-dropdown; background: $tutor-surface-l1; border: $tutor-popover-border; @@ -191,15 +215,19 @@ &-icon { position: absolute; top: 50%; + @include left($tutor-spacing-7); + transform: translateY(-50%); color: $tutor-icon-secondary; pointer-events: none; + @include tutor-flex(row, center, center); } .tutor-select-search-input { @include tutor-input-base(); + padding-block: $tutor-spacing-3; padding-inline-start: $tutor-spacing-9; } @@ -233,7 +261,9 @@ &-group { &-label { padding: $tutor-spacing-3 $tutor-spacing-5; + @include tutor-typography(tiny, semibold, subdued); + text-transform: uppercase; letter-spacing: 0.05em; } @@ -246,15 +276,19 @@ // Single option &-option { @include tutor-flex(row, center); + gap: $tutor-spacing-3; padding: $tutor-spacing-4 $tutor-spacing-5; cursor: pointer; position: relative; + @include tutor-transition(background-color); &-icon { flex-shrink: 0; + @include tutor-flex(row, center, center); + color: $tutor-icon-secondary; width: 16px; height: 16px; @@ -267,6 +301,7 @@ &-label { @include tutor-typography(small); + overflow: hidden; text-overflow: ellipsis; white-space: nowrap; @@ -274,6 +309,7 @@ &-description { @include tutor-typography(tiny, regular, subdued); + margin-top: $tutor-spacing-1; overflow: hidden; text-overflow: ellipsis; @@ -307,6 +343,7 @@ // Empty state &-empty { @include tutor-typography(small, regular, subdued); + padding: $tutor-spacing-6 $tutor-spacing-5; text-align: center; } @@ -315,6 +352,7 @@ &-loading { @include tutor-typography(small, regular, subdued); @include tutor-flex(row, center, center); + gap: $tutor-spacing-3; padding: $tutor-spacing-6 $tutor-spacing-5; @@ -341,11 +379,13 @@ .tutor-select-trigger { min-height: 32px; padding: $tutor-spacing-2 $tutor-spacing-3; + @include tutor-typography(tiny); } .tutor-select-option { padding: $tutor-spacing-2 $tutor-spacing-4; + @include tutor-typography(tiny); } } @@ -354,11 +394,13 @@ .tutor-select-trigger { min-height: 48px; padding: $tutor-spacing-5 $tutor-spacing-6; + @include tutor-typography(medium); } .tutor-select-option { padding: $tutor-spacing-4 $tutor-spacing-6; + @include tutor-typography(medium); } } \ No newline at end of file diff --git a/assets/core/scss/components/_skeleton.scss b/assets/core/scss/components/_skeleton.scss index 51d27fbcff..ab1a10014a 100644 --- a/assets/core/scss/components/_skeleton.scss +++ b/assets/core/scss/components/_skeleton.scss @@ -5,16 +5,15 @@ width: 100%; height: $tutor-spacing-6; border-radius: $tutor-radius-md; - background-color: rgba(0, 0, 0, 0.11); + background-color: rgb(0 0 0 / 11%); position: relative; mask-image: radial-gradient(white, black); - -webkit-mask-image: -webkit-radial-gradient(center, white, black); overflow: hidden; flex-shrink: 0; &::after { content: ''; - background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.05), transparent); + background: linear-gradient(90deg, transparent, rgb(0 0 0 / 5%), transparent); position: absolute; transform: translateX(-100%); inset: 0; diff --git a/assets/core/scss/components/_star-rating.scss b/assets/core/scss/components/_star-rating.scss index a2e7615e78..6ff84f3d58 100644 --- a/assets/core/scss/components/_star-rating.scss +++ b/assets/core/scss/components/_star-rating.scss @@ -6,24 +6,30 @@ button.tutor-star-rating-icon-btn { @include tutor-button-reset(); + min-height: unset; } &.is-emoji-view { @include tutor-flex-column; + gap: $tutor-spacing-7; .tutor-star-rating-emoji-btn { @include tutor-button-reset; + width: 74px; height: 74px; background-color: $tutor-surface-base; border: 1px solid $tutor-border-idle; border-radius: $tutor-radius-2xl; + @include tutor-flex-column; + align-items: center; justify-content: center; cursor: pointer; + @include tutor-transition(background-color); .tutor-rating-emoji-img { diff --git a/assets/core/scss/components/_statics.scss b/assets/core/scss/components/_statics.scss index fb4d927dc4..3cca7f47a8 100644 --- a/assets/core/scss/components/_statics.scss +++ b/assets/core/scss/components/_statics.scss @@ -3,6 +3,7 @@ .tutor-statics { @include tutor-flex(row, center, center); + position: relative; width: fit-content; @@ -15,6 +16,7 @@ /* stylelint-disable-next-line property-layout-mappings -- translate(-50%) is physical, so left keeps the box centered in RTL */ left: 50%; transform: translate(-50%, -50%); + @include tutor-typography('tiny', 'bold', 'primary', 'body'); &-large { @@ -25,6 +27,7 @@ &-complete { @include tutor-flex(row, center, center); + border-radius: $tutor-radius-full; background: $tutor-actions-brand-primary; @@ -35,6 +38,7 @@ &-locked { @include tutor-flex(row, center, center); + border-radius: $tutor-radius-full; background: transparent; diff --git a/assets/core/scss/components/_status-select.scss b/assets/core/scss/components/_status-select.scss index 3b9026ae8d..aa9054269d 100644 --- a/assets/core/scss/components/_status-select.scss +++ b/assets/core/scss/components/_status-select.scss @@ -3,6 +3,7 @@ .tutor-status-select { @include tutor-typography(tiny, medium); + display: inline-flex; align-items: center; justify-content: space-between; @@ -40,6 +41,7 @@ &-icon, &-arrow { @include tutor-flex(row, center, center); + pointer-events: none; z-index: $tutor-z-positive; } diff --git a/assets/core/scss/components/_table.scss b/assets/core/scss/components/_table.scss index 6b7d3fe472..cae3ab310a 100644 --- a/assets/core/scss/components/_table.scss +++ b/assets/core/scss/components/_table.scss @@ -19,6 +19,7 @@ thead th, tbody td { @include border-end(1px solid $tutor-border-idle); + &:last-of-type, &:last-child { @include border-end(none); @@ -36,8 +37,9 @@ table.tutor-table, .tutor-table { @include tutor-typography('small', 'regular', 'secondary'); + width: 100%; - margin: 0px; + margin: 0; border: none; border-collapse: collapse; border-spacing: 0; @@ -48,6 +50,7 @@ table.tutor-table, th { @include tutor-typography(tiny, regular, secondary); + text-align: start; padding: $tutor-spacing-5; border: none; diff --git a/assets/core/scss/components/_tabs.scss b/assets/core/scss/components/_tabs.scss index a26b238a6e..ceebe8bdb8 100644 --- a/assets/core/scss/components/_tabs.scss +++ b/assets/core/scss/components/_tabs.scss @@ -5,6 +5,7 @@ button.tutor-tabs-tab, .tutor-tabs-tab { @include tutor-flex(row, center, flex-start); @include tutor-typography('small'); + border-radius: $tutor-tab-radius; font-weight: $tutor-tab-font-weight; background: transparent; @@ -17,11 +18,14 @@ button.tutor-tabs-tab, color: $tutor-text-primary; height: $tutor-tab-height; box-shadow: none; + @include tutor-transition((background-color, color, box-shadow)); + margin: $tutor-spacing-none; @include tutor-breakpoint-down(sm) { @include tutor-text('tiny'); + justify-content: center; } @@ -36,7 +40,6 @@ button.tutor-tabs-tab, &:focus, &:hover { - box-shadow: none; color: $tutor-text-brand; background-color: $tutor-tab-l3-active; box-shadow: $tutor-tab-active-shadow; @@ -46,13 +49,16 @@ button.tutor-tabs-tab, &-md { height: 34px; + @include tutor-text('tiny'); + padding: 7px $tutor-spacing-5; gap: $tutor-spacing-2; } &-sm { @include tutor-text('tiny'); + padding: 6px $tutor-spacing-5; gap: $tutor-spacing-2; height: $tutor-tab-height-sm; @@ -86,9 +92,9 @@ button.tutor-tabs-tab, .tutor-tabs { &-nav { @include tutor-flex(row, center, flex-start); + gap: $tutor-spacing-2; - overflow-x: auto; - overflow-y: hidden; + overflow: auto hidden; position: relative; scrollbar-width: none; -ms-overflow-style: none; @@ -108,6 +114,7 @@ button.tutor-tabs-tab, .tutor-tabs-nav { @include tutor-flex-column; + align-items: stretch; min-width: 200px; } @@ -131,8 +138,7 @@ button.tutor-tabs-tab, &-vertical { display: unset; flex-direction: column; - overflow-x: auto; - overflow-y: hidden; + overflow: auto hidden; .tutor-tabs-nav { flex-direction: row; diff --git a/assets/core/scss/components/_time-input.scss b/assets/core/scss/components/_time-input.scss index 81c039468a..76b0f7ba36 100644 --- a/assets/core/scss/components/_time-input.scss +++ b/assets/core/scss/components/_time-input.scss @@ -24,12 +24,14 @@ border: 1px solid $tutor-border-idle; border-radius: $tutor-radius-lg; box-shadow: $tutor-shadow-lg; + @include tutor-scrollbar; } &-option { @include tutor-button-reset; @include tutor-typography('small', 'regular', 'subdued'); + text-align: start; padding: $tutor-spacing-4; border-radius: $tutor-radius-md; diff --git a/assets/core/scss/components/_toast.scss b/assets/core/scss/components/_toast.scss index 324df21be4..a97831b0d0 100644 --- a/assets/core/scss/components/_toast.scss +++ b/assets/core/scss/components/_toast.scss @@ -8,7 +8,7 @@ padding: 0; margin: -1px; overflow: hidden; - clip: rect(0, 0, 0, 0); + clip-path: inset(50%); white-space: nowrap; border: 0; } @@ -64,7 +64,7 @@ transform 400ms cubic-bezier(0.4, 0, 0.2, 1), opacity 400ms ease, height 400ms cubic-bezier(0.4, 0, 0.2, 1); - transform: translateY(var(--tutor-toast-y, 0px)) scale(var(--tutor-toast-scale, 1)); + transform: translateY(var(--tutor-toast-y, 0)) scale(var(--tutor-toast-scale, 1)); opacity: var(--tutor-toast-opacity, 1); .tutor-toast-container[data-position-y='top'] & { @@ -314,11 +314,13 @@ .tutor-toast-title { @include tutor-typography('medium', 'medium'); - color: currentColor; + + color: currentcolor; } .tutor-toast-description { @include tutor-typography('tiny'); + color: $tutor-toast-text-muted; .tutor-toast-card[data-type='default'] & { @@ -328,6 +330,7 @@ button.tutor-toast-close { @include tutor-button-base(); + border: 0; background: transparent; color: $tutor-icon-idle; @@ -349,7 +352,7 @@ button.tutor-toast-close { inset-inline: 0; inset-block-end: 0; block-size: 3px; - background: color-mix(in srgb, currentColor 8%, transparent); + background: color-mix(in srgb, currentcolor 8%, transparent); overflow: hidden; } @@ -399,8 +402,8 @@ button.tutor-toast-close { .tutor-toast-spinner { inline-size: 18px; block-size: 18px; - border: 2px solid color-mix(in srgb, currentColor 20%, transparent); - border-top-color: currentColor; + border: 2px solid color-mix(in srgb, currentcolor 20%, transparent); + border-top-color: currentcolor; border-radius: 999px; animation: tutor-toast-spinner-rotate 800ms linear infinite; } diff --git a/assets/core/scss/components/_tooltip.scss b/assets/core/scss/components/_tooltip.scss index 5e1a6af2b6..c72052168e 100644 --- a/assets/core/scss/components/_tooltip.scss +++ b/assets/core/scss/components/_tooltip.scss @@ -13,6 +13,7 @@ .tutor-tooltip { @include tutor-typography('tiny', 'regular', 'primary-inverse'); + position: fixed; z-index: 1070; max-width: 180px; @@ -20,7 +21,7 @@ background-color: $tutor-surface-dark; border-radius: $tutor-radius-sm; box-shadow: $tutor-shadow-md; - word-wrap: break-word; + overflow-wrap: break-word; text-align: center; pointer-events: none; @@ -117,6 +118,7 @@ &-enter-active { opacity: 1; transform: scale(1); + @include tutor-transition((opacity, transform), 0.15s); } @@ -128,6 +130,7 @@ &-leave-active { opacity: 0; transform: scale(0.8); + @include tutor-transition((opacity, transform), 0.15s); } } diff --git a/assets/core/scss/main.scss b/assets/core/scss/main.scss index de9831e858..216b924189 100644 --- a/assets/core/scss/main.scss +++ b/assets/core/scss/main.scss @@ -43,6 +43,7 @@ body { line-height: inherit; background-color: $tutor-surface-base; color: $tutor-text-primary; + @include tutor-transition((background-color, color)); } @@ -95,6 +96,7 @@ form { from { opacity: 0; } + to { opacity: 1; } @@ -104,6 +106,7 @@ form { from { opacity: 1; } + to { opacity: 0; } diff --git a/assets/core/scss/mixins/_avatars.scss b/assets/core/scss/mixins/_avatars.scss index 3c3e08a4cc..c983fcb699 100644 --- a/assets/core/scss/mixins/_avatars.scss +++ b/assets/core/scss/mixins/_avatars.scss @@ -1,10 +1,13 @@ // Avatar Mixins +@use 'sass:map'; +@use 'sass:meta'; @use '../tokens' as *; @use 'typography' as *; @use 'layout' as *; @mixin tutor-avatar-base { @include tutor-flex-center; + position: relative; border-radius: $tutor-radius-full; overflow: hidden; @@ -25,6 +28,7 @@ @mixin tutor-avatar-initials { @include tutor-typography('small', 'medium'); + color: inherit; text-transform: uppercase; letter-spacing: 0.5px; @@ -71,16 +75,16 @@ $tutor-avatar-sizes: ( ); @mixin tutor-avatar-size($size) { - @if map-has-key($tutor-avatar-sizes, $size) { - $config: map-get($tutor-avatar-sizes, $size); - $font-size: map-get($config, font-size); - $icon-size: map-get($config, icon-size); + @if map.has-key($tutor-avatar-sizes, $size) { + $config: map.get($tutor-avatar-sizes, $size); + $font-size: map.get($config, font-size); + $icon-size: map.get($config, icon-size); width: #{$size}px; height: #{$size}px; .tutor-avatar-initials { - @if type-of($font-size) == 'string' { + @if meta.type-of($font-size) == 'string' { @include tutor-typography($font-size, 'medium'); } @else { font-size: $font-size; @@ -114,9 +118,10 @@ $tutor-avatar-sizes: ( } } @else if $variant == border { border: 1px solid $tutor-border-brand-secondary; + svg, .tutor-avatar-image { - border-radius: 0px; + border-radius: 0; } } } diff --git a/assets/core/scss/mixins/_badges.scss b/assets/core/scss/mixins/_badges.scss index 3f838097aa..81797cd3cf 100644 --- a/assets/core/scss/mixins/_badges.scss +++ b/assets/core/scss/mixins/_badges.scss @@ -4,6 +4,7 @@ @mixin tutor-badge-base() { @include tutor-typography('tiny', 'medium', 'secondary'); + border-radius: $tutor-radius-sm; padding-inline: $tutor-spacing-4; display: inline-flex; @@ -15,6 +16,7 @@ img, svg { @include tutor-flex-center; + width: 12px; height: 12px; object-fit: contain; @@ -31,56 +33,56 @@ } @mixin tutor-badge-variant($variant: primary) { - @if $variant ==primary { + @if $variant == primary { background-color: $tutor-actions-brand-primary; color: $tutor-text-primary-inverse; svg { color: $tutor-icon-idle-inverse; } - } @else if $variant ==info { + } @else if $variant == info { background-color: $tutor-actions-brand-tertiary; color: $tutor-text-brand; svg { color: $tutor-icon-brand; } - } @else if $variant ==warning { + } @else if $variant == warning { background-color: $tutor-actions-warning-secondary; color: $tutor-text-warning; svg { color: $tutor-icon-warning; } - } @else if $variant ==success { + } @else if $variant == success { background-color: $tutor-actions-success-tertiary; color: $tutor-text-success; svg { color: $tutor-icon-success-primary; } - } @else if $variant ==success-solid { + } @else if $variant == success-solid { background-color: $tutor-actions-success-primary; color: $tutor-text-primary-inverse; svg { color: $tutor-icon-idle-inverse; } - } @else if $variant ==error { + } @else if $variant == error { background-color: $tutor-actions-critical-secondary; color: $tutor-text-critical; svg { color: $tutor-icon-critical; } - } @else if $variant ==highlight { + } @else if $variant == highlight { background-color: $tutor-surface-exception2-secondary; color: $tutor-text-exception2; svg { color: $tutor-icon-exception2; } - } @else if $variant ==disabled { + } @else if $variant == disabled { background-color: $tutor-actions-gray-secondary; color: $tutor-text-subdued; diff --git a/assets/core/scss/mixins/_buttons.scss b/assets/core/scss/mixins/_buttons.scss index e8e30d6b16..7bf01db751 100644 --- a/assets/core/scss/mixins/_buttons.scss +++ b/assets/core/scss/mixins/_buttons.scss @@ -20,9 +20,12 @@ color: $tutor-text-primary; padding: $tutor-spacing-none; border: none; + // Inherited “kids mode” elevation + per-variant border shadow. --tutor-button-border-shadow: none; + box-shadow: $tutor-button-border-shadow; + @include tutor-transition((color, background-color)); &:hover:not(:disabled):not(.disabled), @@ -31,6 +34,7 @@ border: none; outline: none; color: $tutor-text-primary; + --tutor-button-border-shadow: #{$tutor-button-primary-border-shadow}; } @@ -39,7 +43,7 @@ } svg:not([class]) { - color: currentColor; + color: currentcolor; flex-shrink: 0; } @@ -59,6 +63,7 @@ @if $variant == primary { background-color: $tutor-button-primary; color: $tutor-text-primary-inverse; + --tutor-button-border-shadow: #{$tutor-button-primary-border-shadow}; svg:not([class]) { @@ -68,12 +73,14 @@ &:hover:not(:disabled):not(.disabled) { background-color: $tutor-button-primary-hover; color: $tutor-text-primary-inverse; + --tutor-button-border-shadow: #{$tutor-button-primary-border-shadow-hover}; } &:focus:not(:disabled):not(.disabled) { background-color: $tutor-button-primary-focused; color: $tutor-text-primary-inverse; + --tutor-button-border-shadow: #{$tutor-button-primary-border-shadow-focused}; } @@ -81,7 +88,9 @@ &.disabled { background-color: $tutor-button-primary-disabled; color: $tutor-text-primary-inverse; + --tutor-button-border-shadow: #{$tutor-button-primary-border-shadow-disabled}; + svg:not([class]) { color: $tutor-text-primary-inverse; } @@ -89,6 +98,7 @@ } @else if $variant == primary-soft { background-color: $tutor-button-primary-soft; color: $tutor-text-brand; + --tutor-button-border-shadow: #{$tutor-button-primary-soft-border-shadow}; svg:not([class]) { @@ -98,23 +108,27 @@ &:hover:not(:disabled):not(.disabled) { background-color: $tutor-button-primary-soft-hover; color: $tutor-text-brand; + --tutor-button-border-shadow: #{$tutor-button-primary-soft-border-shadow-hover}; } &:focus:not(:disabled):not(.disabled) { background-color: $tutor-button-primary-soft-focused; color: $tutor-text-brand; + --tutor-button-border-shadow: #{$tutor-button-primary-soft-border-shadow-focused}; } &:disabled, &.disabled { background-color: $tutor-button-disabled; + --tutor-button-border-shadow: #{$tutor-button-primary-soft-border-shadow-disabled}; } } @else if $variant == destructive { background-color: $tutor-button-destructive; color: $tutor-text-primary-inverse; + --tutor-button-border-shadow: #{$tutor-button-destructive-border-shadow}; svg:not([class]) { @@ -124,23 +138,27 @@ &:hover:not(:disabled):not(.disabled) { background-color: $tutor-button-destructive-hover; color: $tutor-text-primary-inverse; + --tutor-button-border-shadow: #{$tutor-button-destructive-border-shadow-hover}; } &:focus:not(:disabled):not(.disabled) { background-color: $tutor-button-destructive-focused; color: $tutor-text-primary-inverse; + --tutor-button-border-shadow: #{$tutor-button-destructive-border-shadow-focused}; } &:disabled, &.disabled { background-color: $tutor-button-disabled; + --tutor-button-border-shadow: #{$tutor-button-destructive-border-shadow-disabled}; } } @else if $variant == destructive-soft { background-color: $tutor-button-destructive-soft; color: $tutor-text-critical; + --tutor-button-border-shadow: #{$tutor-button-destructive-soft-border-shadow}; svg:not([class]) { @@ -150,18 +168,21 @@ &:hover:not(:disabled):not(.disabled) { background-color: $tutor-button-destructive-soft-hover; color: $tutor-text-critical; + --tutor-button-border-shadow: #{$tutor-button-destructive-soft-border-shadow-hover}; } &:focus:not(:disabled):not(.disabled) { background-color: $tutor-button-destructive-soft-focused; color: $tutor-text-critical; + --tutor-button-border-shadow: #{$tutor-button-destructive-soft-border-shadow-focused}; } &:disabled, &.disabled { background-color: $tutor-button-disabled; + --tutor-button-border-shadow: #{$tutor-button-destructive-soft-border-shadow-disabled}; } } @else if $variant == success { @@ -184,6 +205,7 @@ } @else if $variant == secondary { background-color: $tutor-button-secondary; color: $tutor-text-primary; + --tutor-button-border-shadow: #{$tutor-button-secondary-border-shadow}; svg:not([class]) { @@ -193,23 +215,27 @@ &:hover:not(:disabled):not(.disabled) { background-color: $tutor-button-secondary-hover; color: $tutor-text-primary; + --tutor-button-border-shadow: #{$tutor-button-secondary-border-shadow-hover}; } &:focus:not(:disabled):not(.disabled) { background-color: $tutor-button-secondary-focused; color: $tutor-text-primary; + --tutor-button-border-shadow: #{$tutor-button-secondary-border-shadow-focused}; } &:disabled, &.disabled { background-color: $tutor-button-disabled; + --tutor-button-border-shadow: #{$tutor-button-secondary-border-shadow-disabled}; } } @else if $variant == outline { background-color: $tutor-button-outline-inverse; color: $tutor-text-primary; + --tutor-button-border-shadow: #{$tutor-button-outline-border-shadow}; svg:not([class]) { @@ -219,23 +245,27 @@ &:hover:not(:disabled):not(.disabled) { background-color: $tutor-button-outline-hover; color: $tutor-text-primary; + --tutor-button-border-shadow: #{$tutor-button-outline-border-shadow-hover}; } &:focus:not(:disabled):not(.disabled) { background-color: $tutor-button-outline-focused-inverse; color: $tutor-text-primary; + --tutor-button-border-shadow: #{$tutor-button-outline-border-shadow-focused}; } &:disabled, &.disabled { background-color: $tutor-button-disabled; + --tutor-button-border-shadow: #{$tutor-button-outline-border-shadow-disabled}; } } @else if $variant == ghost { background-color: transparent; color: $tutor-text-primary; + --tutor-button-border-shadow: #{$tutor-button-ghost-border-shadow}; svg:not([class]) { @@ -245,17 +275,20 @@ &:hover:not(:disabled):not(.disabled) { background-color: $tutor-button-ghost-hover; color: $tutor-text-primary; + --tutor-button-border-shadow: #{$tutor-button-ghost-border-shadow-hover}; } &:disabled, &.disabled { background-color: transparent; + --tutor-button-border-shadow: #{$tutor-button-ghost-border-shadow-disabled}; } } @else if $variant == ghost-brand { background-color: transparent; color: $tutor-text-brand; + --tutor-button-border-shadow: #{$tutor-button-ghost-brand-border-shadow}; svg:not([class]) { @@ -265,12 +298,14 @@ &:hover:not(:disabled):not(.disabled) { background-color: $tutor-button-primary-soft; color: $tutor-text-brand; + --tutor-button-border-shadow: #{$tutor-button-ghost-brand-border-shadow-hover}; } &:disabled, &.disabled { background-color: transparent; + --tutor-button-border-shadow: #{$tutor-button-ghost-brand-border-shadow-disabled}; } } @else if $variant == link { @@ -326,6 +361,7 @@ @if $size == x-small { --tutor-button-border-shadow-base: 1px; --tutor-button-border-shadow-bottom: 2px; + font-size: $tutor-font-size-tiny; line-height: $tutor-line-height-tiny; @@ -336,6 +372,7 @@ } @else if $size == small { --tutor-button-border-shadow-base: 1px; --tutor-button-border-shadow-bottom: 2px; + font-size: $tutor-font-size-small; line-height: $tutor-line-height-small; @@ -346,6 +383,7 @@ } @else if $size == large { --tutor-button-border-shadow-base: 2px; --tutor-button-border-shadow-bottom: 5px; + font-size: $tutor-font-size-small; line-height: $tutor-line-height-small; @@ -356,6 +394,7 @@ } @else { --tutor-button-border-shadow-base: 1px; --tutor-button-border-shadow-bottom: 3px; + font-size: $tutor-font-size-small; line-height: $tutor-line-height-small; @@ -443,20 +482,20 @@ transform: translate(-50%, -50%); width: 16px; height: 16px; - border: 2px solid currentColor; + border: 2px solid currentcolor; border-radius: 50%; border-top-color: transparent; animation: tutor-button-spin 1s linear infinite; [data-tutor-motion='reduce'] & { animation: tutor-button-pulse 1.5s ease-in-out infinite !important; - border-top-color: currentColor; + border-top-color: currentcolor; } @media (prefers-reduced-motion: reduce) { [data-tutor-motion='auto'] & { animation: tutor-button-pulse 1.5s ease-in-out infinite !important; - border-top-color: currentColor; + border-top-color: currentcolor; } } } diff --git a/assets/core/scss/mixins/_inputs.scss b/assets/core/scss/mixins/_inputs.scss index 43bea71a1c..f418fee929 100644 --- a/assets/core/scss/mixins/_inputs.scss +++ b/assets/core/scss/mixins/_inputs.scss @@ -6,6 +6,7 @@ @mixin tutor-input-base($size: md) { @include tutor-typography('small', 'regular'); + width: 100%; padding: 7px $tutor-spacing-5; margin: 0; @@ -15,8 +16,11 @@ border-radius: $tutor-input-radius; background-color: $tutor-surface-l1; font-weight: $tutor-input-font-weight; + --tutor-input-border-shadow-current: #{$tutor-input-border-shadow}; + box-shadow: var(--tutor-input-border-shadow-current); + @include tutor-transition(all); -moz-appearance: textfield; @@ -47,15 +51,18 @@ &:focus { @include tutor-focus-ring(); + background-color: $tutor-surface-l1; border-color: $tutor-border-brand-tertiary; color: $tutor-text-primary; + --tutor-input-border-shadow-current: none; } &:disabled { background-color: $tutor-surface-l1-hover; cursor: not-allowed; + --tutor-input-border-shadow-current: none; } @@ -77,13 +84,14 @@ @mixin tutor-textarea($min-height: 92px) { @include tutor-input-base; + min-height: $min-height; resize: vertical; } @mixin tutor-checkbox($size: sm, $intermediate: false) { - $checkbox-size: if($size ==md, 20px, 16px); - $svg-size: if($size ==md, 12px, 10px); + $checkbox-size: if($size == md, 20px, 16px); + $svg-size: if($size == md, 12px, 10px); appearance: none; width: $checkbox-size; @@ -94,6 +102,7 @@ cursor: pointer; position: relative; flex-shrink: 0; + @include tutor-transition((background-color, border-color, box-shadow, color)); color: $tutor-icon-idle; @@ -112,9 +121,10 @@ height: $svg-size; transform: translate(-50%, -50%) scale(0.6); opacity: 0; + @include tutor-transition((opacity, transform)); - background-color: currentColor; + background-color: currentcolor; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='black' d='M10.3 3.3a1 1 0 0 1 0 1.4L5.5 9.5a1 1 0 0 1-1.4 0L1.7 7.1a1 1 0 0 1 1.4-1.4L5 7.6l4.3-4.3a1 1 0 0 1 1.4 0z'/%3E%3C/svg%3E") center / contain no-repeat; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='black' d='M10.3 3.3a1 1 0 0 1 0 1.4L5.5 9.5a1 1 0 0 1-1.4 0L1.7 7.1a1 1 0 0 1 1.4-1.4L5 7.6l4.3-4.3a1 1 0 0 1 1.4 0z'/%3E%3C/svg%3E") @@ -147,14 +157,14 @@ } } - @if $intermediate ==true { + @if $intermediate == true { &::after { mask: none; -webkit-mask: none; width: 7px; height: 2.5px; border-radius: $tutor-radius-full; - background-color: currentColor; + background-color: currentcolor; opacity: 1; transform: translate(-50%, -50%) scale(1); } @@ -166,8 +176,8 @@ } @mixin tutor-radio($size: sm) { - $radio-size: if($size ==md, 20px, 16px); - $inner-circle: if($size ==md, 8px, 6px); + $radio-size: if($size == md, 20px, 16px); + $inner-circle: if($size == md, 8px, 6px); appearance: none; width: $radio-size; @@ -178,6 +188,7 @@ cursor: pointer; position: relative; flex-shrink: 0; + @include tutor-transition((background-color, border-color, box-shadow)); &:checked { @@ -218,9 +229,9 @@ } @mixin tutor-switch($size: sm, $intermediate: false) { - $width: if($size ==sm, 36px, 44px); - $height: if($size ==sm, 20px, 24px); - $thumb: if($size ==sm, 16px, 20px); + $width: if($size == sm, 36px, 44px); + $height: if($size == sm, 20px, 24px); + $thumb: if($size == sm, 16px, 20px); $gap: $tutor-spacing-1; appearance: none; @@ -234,6 +245,7 @@ outline: none; border-radius: $height; cursor: pointer; + @include tutor-transition(background-color); &::before { @@ -250,11 +262,13 @@ border-radius: 50%; background-color: $tutor-actions-inverse; box-shadow: $tutor-shadow-sm; + @include tutor-transition((transform, background-color)); } &:focus { @include tutor-focus-ring(); + border-color: $tutor-border-brand-tertiary; } diff --git a/assets/core/scss/mixins/_layout.scss b/assets/core/scss/mixins/_layout.scss index 94a9a06768..caa24a1ac0 100644 --- a/assets/core/scss/mixins/_layout.scss +++ b/assets/core/scss/mixins/_layout.scss @@ -6,10 +6,9 @@ @mixin tutor-flex($direction: row, $align: stretch, $justify: flex-start, $wrap: nowrap) { display: flex; - flex-direction: $direction; + flex-flow: $direction $wrap; align-items: $align; justify-content: $justify; - flex-wrap: $wrap; } @mixin tutor-flex-center { @@ -57,7 +56,7 @@ padding: 0 !important; margin: -1px !important; overflow: hidden !important; - clip: rect(0, 0, 0, 0) !important; + clip-path: inset(50%) !important; white-space: nowrap !important; border: 0 !important; } @@ -75,7 +74,7 @@ @if map.has-key($tutor-breakpoints, $breakpoint) { $value: map.get($tutor-breakpoints, $breakpoint); - @if $value >0 { + @if $value > 0 { @media (min-width: $value) { @content; } @@ -91,7 +90,7 @@ @if map.has-key($tutor-breakpoints, $breakpoint) { $value: map.get($tutor-breakpoints, $breakpoint); - @if $value >0 { + @if $value > 0 { @media (max-width: $value) { @content; } @@ -127,7 +126,6 @@ @mixin tutor-grid-auto-columns($min, $max, $selector: '*') { display: grid; gap: $tutor-spacing-6; - grid-template-columns: repeat($min, 1fr); @for $i from ($min + 1) through $max { @@ -217,7 +215,7 @@ display: flex; gap: $gap; - @if $side ==start { + @if $side == start { flex-direction: row; [dir='rtl'] & { diff --git a/assets/core/scss/mixins/_paginations.scss b/assets/core/scss/mixins/_paginations.scss index cd6b645440..b96aa32fa0 100644 --- a/assets/core/scss/mixins/_paginations.scss +++ b/assets/core/scss/mixins/_paginations.scss @@ -24,6 +24,7 @@ list-style: none; margin: $tutor-spacing-none; padding: $tutor-spacing-none; + li { margin: $tutor-spacing-none; padding: $tutor-spacing-none; @@ -32,7 +33,9 @@ @mixin tutor-pagination-info { @include tutor-typography('small', 'regular'); + margin: 0; + .tutor-pagination-current, .tutor-pagination-total { font-weight: $tutor-font-weight-medium; @@ -42,13 +45,17 @@ @mixin tutor-pagination-item { @include tutor-flex-center; + padding: $tutor-spacing-3 $tutor-spacing-5; border-radius: $tutor-radius-md; text-decoration: none; + @include tutor-typography('tiny', 'medium'); + cursor: pointer; min-width: 32px; min-height: 32px; + @include tutor-transition((background-color, color)); // Default state @@ -89,8 +96,11 @@ @mixin tutor-pagination-ellipsis { @include tutor-flex-center; + min-width: 32px; min-height: 32px; + @include tutor-typography('tiny', 'medium'); + cursor: default; } \ No newline at end of file diff --git a/assets/core/scss/mixins/_rtl.scss b/assets/core/scss/mixins/_rtl.scss index ce54601f13..61095286b4 100644 --- a/assets/core/scss/mixins/_rtl.scss +++ b/assets/core/scss/mixins/_rtl.scss @@ -5,6 +5,7 @@ @mixin margin-start($value) { margin-inline-start: $value; } + @mixin margin-end($value) { margin-inline-end: $value; } @@ -13,6 +14,7 @@ @mixin padding-start($value) { padding-inline-start: $value; } + @mixin padding-end($value) { padding-inline-end: $value; } @@ -21,18 +23,23 @@ @mixin border-start($value) { border-inline-start: $value; } + @mixin border-end($value) { border-inline-end: $value; } + @mixin border-start-width($value) { border-inline-start-width: $value; } + @mixin border-end-width($value) { border-inline-end-width: $value; } + @mixin border-start-color($value) { border-inline-start-color: $value; } + @mixin border-end-color($value) { border-inline-end-color: $value; } @@ -42,19 +49,24 @@ border-start-start-radius: $value; border-end-start-radius: $value; } + @mixin border-radius-end($value) { border-start-end-radius: $value; border-end-end-radius: $value; } + @mixin border-top-start-radius($value) { border-start-start-radius: $value; } + @mixin border-top-end-radius($value) { border-start-end-radius: $value; } + @mixin border-bottom-start-radius($value) { border-end-start-radius: $value; } + @mixin border-bottom-end-radius($value) { border-end-end-radius: $value; } @@ -63,6 +75,7 @@ @mixin left($value) { inset-inline-start: $value; } + @mixin right($value) { inset-inline-end: $value; } @@ -71,6 +84,7 @@ @mixin text-align-start() { text-align: start; } + @mixin text-align-end() { text-align: end; } @@ -79,6 +93,7 @@ @mixin float-start() { float: inline-start; } + @mixin float-end() { float: inline-end; } @@ -87,6 +102,7 @@ @mixin transform-translate-x($value) { transform: translateX($value); } + @mixin transform-rotate-y($value) { transform: rotateY($value); } @@ -95,6 +111,7 @@ @mixin flex-direction-row() { flex-direction: row; } + @mixin flex-direction-row-reverse() { flex-direction: row-reverse; } @@ -106,30 +123,27 @@ // Component-specific RTL mixins @mixin dropdown-position-start() { - inset-inline-start: 0; - inset-inline-end: auto; + inset-inline: 0 auto; } + @mixin dropdown-position-end() { - inset-inline-end: 0; - inset-inline-start: auto; + inset-inline: auto 0; } // Icon positioning for buttons and inputs @mixin icon-start($spacing: 4px) { - margin-inline-end: $spacing; - margin-inline-start: 0; + margin-inline: 0 $spacing; } + @mixin icon-end($spacing: 4px) { - margin-inline-start: $spacing; - margin-inline-end: 0; + margin-inline: $spacing 0; } // Tooltip and popover arrow positioning @mixin arrow-start($size: 8px) { - inset-inline-start: $size; - inset-inline-end: auto; + inset-inline: $size auto; } + @mixin arrow-end($size: 8px) { - inset-inline-end: $size; - inset-inline-start: auto; + inset-inline: auto $size; } diff --git a/assets/core/scss/mixins/_utilities.scss b/assets/core/scss/mixins/_utilities.scss index 4dd291bc96..acf0e6c6e8 100644 --- a/assets/core/scss/mixins/_utilities.scss +++ b/assets/core/scss/mixins/_utilities.scss @@ -1,10 +1,11 @@ +@use 'sass:list'; +@use 'sass:math'; @use '../tokens' as *; @mixin tutor-reset { margin: 0; padding: 0; border: 0; - font-size: 100%; font: inherit; vertical-align: baseline; background-color: transparent; @@ -80,13 +81,13 @@ } @mixin tutor-transition($properties: all, $duration: 0.25s, $timing: ease-in-out, $delay: 0s) { - @if $properties ==all { + @if $properties == all { transition: all $duration $timing $delay; } @else { $transitions: (); @each $property in $properties { - $transitions: append($transitions, $property $duration $timing $delay, comma); + $transitions: list.append($transitions, $property $duration $timing $delay, comma); } transition: $transitions; @@ -117,7 +118,7 @@ } } -@mixin tutor-aspect-ratio($ratio: 16/9) { +@mixin tutor-aspect-ratio($ratio: 16 / 9) { aspect-ratio: $ratio; // Fallback for older browsers @@ -127,7 +128,7 @@ &::before { content: ''; display: block; - padding-top: percentage(1 / $ratio); + padding-top: math.percentage(1 / $ratio); } > * { diff --git a/assets/core/scss/tokens/_colors.scss b/assets/core/scss/tokens/_colors.scss index 12f63de38e..78a4660337 100644 --- a/assets/core/scss/tokens/_colors.scss +++ b/assets/core/scss/tokens/_colors.scss @@ -19,7 +19,7 @@ $tutor-brand-900: var(--tutor-brand-900, #263782); $tutor-brand-950: var(--tutor-brand-950, #1c234f); // Gray Colors -$tutor-gray-1: #ffffff; +$tutor-gray-1: #fff; $tutor-gray-10: #fcfcfc; $tutor-gray-25: #fafafa; $tutor-gray-50: #f5f5f6; @@ -147,7 +147,6 @@ $tutor-brand-colors: ( 900: $tutor-brand-900, 950: $tutor-brand-950, ); - $tutor-gray-colors: ( 1: $tutor-gray-1, 10: $tutor-gray-10, @@ -165,7 +164,6 @@ $tutor-gray-colors: ( 900: $tutor-gray-900, 950: $tutor-gray-950, ); - $tutor-success-colors: ( 25: $tutor-success-25, 50: $tutor-success-50, @@ -180,7 +178,6 @@ $tutor-success-colors: ( 900: $tutor-success-900, 950: $tutor-success-950, ); - $tutor-warning-colors: ( 25: $tutor-warning-25, 50: $tutor-warning-50, @@ -195,7 +192,6 @@ $tutor-warning-colors: ( 900: $tutor-warning-900, 950: $tutor-warning-950, ); - $tutor-error-colors: ( 25: $tutor-error-25, 50: $tutor-error-50, @@ -210,7 +206,6 @@ $tutor-error-colors: ( 900: $tutor-error-900, 950: $tutor-error-950, ); - $tutor-yellow-colors: ( 25: $tutor-yellow-25, 50: $tutor-yellow-50, @@ -225,7 +220,6 @@ $tutor-yellow-colors: ( 900: $tutor-yellow-900, 950: $tutor-yellow-950, ); - $tutor-exception-colors: ( 1: $tutor-exception-1, 2: $tutor-exception-2, @@ -239,7 +233,6 @@ $tutor-exception-colors: ( 9: $tutor-exception-9, 10: $tutor-exception-10, ); - $tutor-cyan-colors: ( 50: $tutor-cyan-50, 100: $tutor-cyan-100, @@ -253,7 +246,6 @@ $tutor-cyan-colors: ( 900: $tutor-cyan-900, 950: $tutor-cyan-950, ); - $tutor-orange-colors: ( 50: $tutor-orange-50, 100: $tutor-orange-100, diff --git a/assets/core/scss/tokens/_file-uploader.scss b/assets/core/scss/tokens/_file-uploader.scss index 8566f6044d..52963ef722 100644 --- a/assets/core/scss/tokens/_file-uploader.scss +++ b/assets/core/scss/tokens/_file-uploader.scss @@ -4,7 +4,6 @@ $tutor-file-uploader-background-image: var( --tutor-file-uploader-background-image, url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' rx='6' ry='6' stroke='%23A4BCF4FF' stroke-width='3' stroke-dasharray='6%2c8' stroke-dashoffset='0' stroke-linecap='square'/%3e%3c/svg%3e") ); - $tutor-file-uploader: ( background-image: $tutor-file-uploader-background-image, ); diff --git a/assets/core/scss/tokens/_modal.scss b/assets/core/scss/tokens/_modal.scss index bea56ee5da..c2bdccebac 100644 --- a/assets/core/scss/tokens/_modal.scss +++ b/assets/core/scss/tokens/_modal.scss @@ -3,7 +3,6 @@ $tutor-modal-shadow: var(--tutor-modal-shadow, #{$tutor-shadow-modal}); $tutor-modal-radius: var(--tutor-modal-radius, #{$tutor-radius-3xl}); - $tutor-modal: ( shadow: $tutor-modal-shadow, radius: $tutor-modal-radius, diff --git a/assets/core/scss/tokens/_popover.scss b/assets/core/scss/tokens/_popover.scss index db16201f26..947e333898 100644 --- a/assets/core/scss/tokens/_popover.scss +++ b/assets/core/scss/tokens/_popover.scss @@ -4,7 +4,6 @@ $tutor-popover-shadow: var(--tutor-popover-shadow, #{$tutor-shadow-lg}); $tutor-popover-border: var(--tutor-popover-border, 1px solid #{$tutor-border-idle}); $tutor-popover-radius: var(--tutor-popover-radius, #{$tutor-radius-2xl}); - $tutor-popover: ( shadow: $tutor-popover-shadow, border: $tutor-popover-border, diff --git a/assets/core/scss/tokens/_tabs.scss b/assets/core/scss/tokens/_tabs.scss index 889bbee25a..88de1cb98d 100644 --- a/assets/core/scss/tokens/_tabs.scss +++ b/assets/core/scss/tokens/_tabs.scss @@ -14,7 +14,6 @@ $tutor-tab-active-shadow: var(--tutor-tab-active-shadow, none); $tutor-tab-height: var(--tutor-tab-height, 40px); $tutor-tab-height-sm: var(--tutor-tab-height-sm, 34px); $tutor-tab-height-lg: var(--tutor-tab-height-lg, 44px); - $tutor-tab-sidebar-l2: var(--tutor-tab-sidebar-l2); $tutor-tab-sidebar-l2-hover: var(--tutor-tab-sidebar-l2-hover); $tutor-tab-sidebar-l2-active: var(--tutor-tab-sidebar-l2-active); diff --git a/assets/core/scss/tokens/_toast.scss b/assets/core/scss/tokens/_toast.scss index 6643ae411e..908ce90f02 100644 --- a/assets/core/scss/tokens/_toast.scss +++ b/assets/core/scss/tokens/_toast.scss @@ -19,38 +19,31 @@ $tutor-toast-animation-enter: var(--tutor-toast-animation-enter, 400ms); $tutor-toast-animation-exit: var(--tutor-toast-animation-exit, 300ms); $tutor-toast-offset-x: var(--tutor-toast-offset-x, #{$tutor-spacing-6}); $tutor-toast-offset-y: var(--tutor-toast-offset-y, #{$tutor-spacing-6}); - $tutor-toast-background: var(--tutor-toast-background, #{$tutor-surface-base}); $tutor-toast-border: var(--tutor-toast-border, #{$tutor-border-idle}); $tutor-toast-shadow: var(--tutor-toast-shadow, #{$tutor-shadow-xl}); $tutor-toast-text: var(--tutor-toast-text, #{$tutor-text-primary}); $tutor-toast-text-muted: var(--tutor-toast-text-muted, #{$tutor-text-secondary}); - $tutor-toast-success-background: var(--tutor-toast-success-background, #{$tutor-surface-success}); $tutor-toast-success-border: var(--tutor-toast-success-border, #{$tutor-border-success}); $tutor-toast-success-icon: var(--tutor-toast-success-icon, #{$tutor-icon-success-primary}); $tutor-toast-success-text: var(--tutor-toast-success-text, #{$tutor-text-success}); - $tutor-toast-error-background: var(--tutor-toast-error-background, #{$tutor-surface-critical}); $tutor-toast-error-border: var(--tutor-toast-error-border, #{$tutor-border-error}); $tutor-toast-error-icon: var(--tutor-toast-error-icon, #{$tutor-icon-critical}); $tutor-toast-error-text: var(--tutor-toast-error-text, #{$tutor-text-critical}); - $tutor-toast-warning-background: var(--tutor-toast-warning-background, #{$tutor-surface-warning-hover}); $tutor-toast-warning-border: var(--tutor-toast-warning-border, #{$tutor-border-warning-tertiary}); $tutor-toast-warning-icon: var(--tutor-toast-warning-icon, #{$tutor-icon-warning}); $tutor-toast-warning-text: var(--tutor-toast-warning-text, #{$tutor-text-caution}); - $tutor-toast-info-background: var(--tutor-toast-info-background, #{$tutor-surface-brand-secondary}); $tutor-toast-info-border: var(--tutor-toast-info-border, #{$tutor-border-brand-tertiary}); $tutor-toast-info-icon: var(--tutor-toast-info-icon, #{$tutor-icon-brand}); $tutor-toast-info-text: var(--tutor-toast-info-text, #{$tutor-text-brand}); - $tutor-toast-loading-background: var(--tutor-toast-loading-background, #{$tutor-surface-l2}); $tutor-toast-loading-border: var(--tutor-toast-loading-border, #{$tutor-border-hover}); $tutor-toast-loading-icon: var(--tutor-toast-loading-icon, #{$tutor-icon-idle}); $tutor-toast-loading-text: var(--tutor-toast-loading-text, #{$tutor-text-primary}); - $tutor-toast-default-background: var(--tutor-toast-default-background, #{$tutor-surface-base}); $tutor-toast-default-border: var(--tutor-toast-default-border, #{$tutor-border-idle}); $tutor-toast-default-icon: var(--tutor-toast-default-icon, #{$tutor-icon-idle}); diff --git a/assets/core/scss/tokens/_typography.scss b/assets/core/scss/tokens/_typography.scss index fbbd525019..dcc5437cc5 100644 --- a/assets/core/scss/tokens/_typography.scss +++ b/assets/core/scss/tokens/_typography.scss @@ -8,16 +8,16 @@ $tutor-font-family-heading: var(--tutor-font-family-heading, 'Inter'), -apple-system, - BlinkMacSystemFont, + blinkmacsystemfont, 'Segoe UI', - Roboto, + roboto, sans-serif; $tutor-font-family-body: var(--tutor-font-family-body, 'Inter'), -apple-system, - BlinkMacSystemFont, + blinkmacsystemfont, 'Segoe UI', - Roboto, + roboto, sans-serif; // ============================================================================= @@ -86,7 +86,6 @@ $tutor-font-sizes: ( tiny-2: $tutor-font-size-tiny-2, p3: $tutor-font-size-p3, ); - $tutor-line-heights: ( d1: $tutor-line-height-d1, h1: $tutor-line-height-h1, @@ -102,7 +101,6 @@ $tutor-line-heights: ( tiny-2: $tutor-line-height-tiny-2, p3: $tutor-line-height-p3, ); - $tutor-font-weights: ( regular: $tutor-font-weight-regular, medium: $tutor-font-weight-medium, diff --git a/assets/core/scss/utilities/_borders.scss b/assets/core/scss/utilities/_borders.scss index 2fb0e98a9c..93c24f4f6a 100644 --- a/assets/core/scss/utilities/_borders.scss +++ b/assets/core/scss/utilities/_borders.scss @@ -13,7 +13,6 @@ $border-widths: ( 4: 4px, 8: 8px, ); - $border-directions: ( border: border, border-t: border-top, @@ -21,9 +20,7 @@ $border-directions: ( border-b: border-bottom, border-l: border-inline-start, ); - $border-styles: (solid, dashed, dotted, double, none); - $radius-directions: ( '': ( border-radius, @@ -99,8 +96,9 @@ $radius-directions: ( .tutor-border-transparent { border-color: transparent; } + .tutor-border-current { - border-color: currentColor; + border-color: currentcolor; } @each $key, $value in $tutor-border-colors { @@ -153,7 +151,6 @@ $responsive-border-dirs: ( border-t: border-top, border-b: border-bottom, ); - $responsive-radius-dirs: ( '': ( border-radius, diff --git a/assets/core/scss/utilities/_colors.scss b/assets/core/scss/utilities/_colors.scss index e0cf3e4121..2f028c55cb 100644 --- a/assets/core/scss/utilities/_colors.scss +++ b/assets/core/scss/utilities/_colors.scss @@ -12,7 +12,7 @@ } .tutor-bg-current { - background-color: currentColor; + background-color: currentcolor; } // ------------------------------------------------------------ diff --git a/assets/core/scss/utilities/_layout.scss b/assets/core/scss/utilities/_layout.scss index 85ee0501f3..efaff469e9 100644 --- a/assets/core/scss/utilities/_layout.scss +++ b/assets/core/scss/utilities/_layout.scss @@ -18,23 +18,19 @@ $display-utils: ( inline-grid: inline-grid, hidden: none, ); - $flex-direction-utils: ( flex-row: row, flex-row-reverse: row-reverse, flex-column: column, flex-column-reverse: column-reverse, ); - $flex-wrap-utils: ( wrap: wrap, wrap-reverse: wrap-reverse, nowrap: nowrap, ); - $flex-grow-utils: (0, 1); $flex-shrink-utils: (0, 1); - $justify-utils: ( justify-start: flex-start, justify-end: flex-end, @@ -43,7 +39,6 @@ $justify-utils: ( justify-around: space-around, justify-evenly: space-evenly, ); - $align-items-utils: ( items-normal: normal, items-start: flex-start, @@ -52,7 +47,6 @@ $align-items-utils: ( items-baseline: baseline, items-stretch: stretch, ); - $align-content-utils: ( start: flex-start, end: flex-end, @@ -61,7 +55,6 @@ $align-content-utils: ( around: space-around, evenly: space-evenly, ); - $align-self-utils: ( auto: auto, start: flex-start, @@ -70,9 +63,7 @@ $align-self-utils: ( stretch: stretch, baseline: baseline, ); - $grid-cols: (1, 2, 3, 4, 5, 6, 12); - $grid-split-utils: ( '1-5-1': 1.5fr 1fr, '2-1': 2fr 1fr, @@ -125,18 +116,23 @@ $grid-split-utils: ( .tutor-flex-1 { flex: 1 1 0%; } + .tutor-flex-auto { flex: 1 1 auto; } + .tutor-flex-initial { flex: 0 1 auto; } + .tutor-flex-none { flex: none; } + .tutor-flex-center { @include tutor-flex(row, center, center); } + .tutor-flex-center-col { @include tutor-flex(column, center, center); } @@ -205,9 +201,11 @@ $grid-split-utils: ( grid-column: span #{$i} / span #{$i}; } } + .tutor-col-span-full { grid-column: 1 / -1; } + .tutor-col-auto { grid-column: auto; } @@ -217,6 +215,7 @@ $grid-split-utils: ( // ------------------------ $position-values: static, fixed, absolute, relative, sticky; + @each $pos in $position-values { .tutor-#{$pos} { position: $pos; @@ -225,6 +224,7 @@ $position-values: static, fixed, absolute, relative, sticky; // Insets $inset-sides: top, right, bottom, left; + @each $side in $inset-sides { .tutor-#{$side}-0 { @if $side == 'right' { @@ -245,6 +245,7 @@ $inset-sides: top, right, bottom, left; } } } + @each $key, $value in $tutor-spacing { @each $side in $inset-sides { .tutor-#{$side}-#{$key} { @@ -261,15 +262,14 @@ $inset-sides: top, right, bottom, left; .tutor-inset-0 { top: 0; - inset-inline-start: 0; + inset-inline: 0; bottom: 0; - inset-inline-end: 0; } + .tutor-inset-auto { top: auto; - inset-inline-start: auto; + inset-inline: auto; bottom: auto; - inset-inline-end: auto; } // ------------------------ @@ -277,6 +277,7 @@ $inset-sides: top, right, bottom, left; // ------------------------ $overflow-types: auto, hidden, visible, scroll; + @each $type in $overflow-types { .tutor-overflow-#{$type} { overflow: $type; @@ -296,17 +297,21 @@ $overflow-types: auto, hidden, visible, scroll; .tutor-float-start { float: inline-start; } + .tutor-float-end { float: inline-end; } + .tutor-float-left { /* stylelint-disable-next-line value-keyword-layout-mappings -- physical utility; the class name promises the physical side */ float: left; } + .tutor-float-right { /* stylelint-disable-next-line value-keyword-layout-mappings -- physical utility; the class name promises the physical side */ float: right; } + .tutor-float-none { float: none; } @@ -317,6 +322,7 @@ $overflow-types: auto, hidden, visible, scroll; .tutor-icon { @include tutor-flex(row, center, center); + flex-shrink: 0; } diff --git a/assets/core/scss/utilities/_sizing.scss b/assets/core/scss/utilities/_sizing.scss index d2e6846baa..894a15bf3c 100644 --- a/assets/core/scss/utilities/_sizing.scss +++ b/assets/core/scss/utilities/_sizing.scss @@ -1,6 +1,7 @@ // Sizing Utilities // Width, height, and sizing utilities +@use 'sass:map'; @use '../tokens' as *; @use '../mixins' as *; @@ -10,18 +11,17 @@ $fractional-widths: ( 1\/2: 50%, - 1\/3: 33.333333%, - 2\/3: 66.666667%, + 1\/3: 33.3333%, + 2\/3: 66.6667%, 1\/4: 25%, 3\/4: 75%, 1\/5: 20%, 2\/5: 40%, 3\/5: 60%, 4\/5: 80%, - 1\/6: 16.666667%, - 5\/6: 83.333333% + 1\/6: 16.6667%, + 5\/6: 83.3333% ); - $fixed-widths: ( 0: 0, auto: auto, @@ -90,7 +90,6 @@ $min-widths: ( max: max-content, fit: fit-content, ); - $max-widths: ( 0: 0, none: none, @@ -116,7 +115,6 @@ $max-widths: ( screen-xl: 1280px, screen-2xl: 1536px, ); - $min-heights: ( 0: 0, full: 100%, @@ -125,7 +123,6 @@ $min-heights: ( max: max-content, fit: fit-content, ); - $max-heights: ( 0: 0, full: 100%, @@ -167,7 +164,7 @@ $max-heights: ( // Responsive Sizing Utilities // ------------------------ -$responsive-widths: map-merge($fixed-widths, $fractional-widths); +$responsive-widths: map.merge($fixed-widths, $fractional-widths); $responsive-heights: $fixed-heights; @each $breakpoint, $min-width in $tutor-responsive-breakpoints { diff --git a/assets/core/scss/utilities/_spacing.scss b/assets/core/scss/utilities/_spacing.scss index ee986d7df1..8d7e8d0f94 100644 --- a/assets/core/scss/utilities/_spacing.scss +++ b/assets/core/scss/utilities/_spacing.scss @@ -71,7 +71,7 @@ // Negative margins @each $key, $value in $tutor-spacing { - @if $key !=0 { + @if $key != 0 { .-tutor-m-#{$key} { margin: -$value; } diff --git a/assets/core/scss/utilities/_transition.scss b/assets/core/scss/utilities/_transition.scss index 6f211e25fd..d565e58257 100644 --- a/assets/core/scss/utilities/_transition.scss +++ b/assets/core/scss/utilities/_transition.scss @@ -71,6 +71,7 @@ $tutor-transition-values: ( from { transform: rotate(0deg); } + to { transform: rotate(360deg); } diff --git a/assets/core/scss/utilities/_typography.scss b/assets/core/scss/utilities/_typography.scss index d47633fdd9..ac27e6824c 100644 --- a/assets/core/scss/utilities/_typography.scss +++ b/assets/core/scss/utilities/_typography.scss @@ -13,26 +13,31 @@ $text-align-utils: ( .tutor-h1 { @include tutor-typography('h1', 'bold', 'primary', 'heading'); + margin: $tutor-spacing-none; } .tutor-h2 { @include tutor-typography('h2', 'bold', 'primary', 'heading'); + margin: $tutor-spacing-none; } .tutor-h3 { @include tutor-typography('h3', 'semibold', 'primary', 'heading'); + margin: $tutor-spacing-none; } .tutor-h4 { @include tutor-typography('h4', 'semibold', 'primary', 'heading'); + margin: $tutor-spacing-none; } .tutor-h5 { @include tutor-typography('h5', 'medium', 'primary', 'heading'); + margin: $tutor-spacing-none; } diff --git a/assets/src/blocks/cart-button/style.scss b/assets/src/blocks/cart-button/style.scss index 9f2f35d67e..7ef1cfa147 100644 --- a/assets/src/blocks/cart-button/style.scss +++ b/assets/src/blocks/cart-button/style.scss @@ -27,7 +27,7 @@ min-width: 18px; height: 18px; line-height: 18px; - color: var(--tutor-cart-badge-color, #ffffff); + color: var(--tutor-cart-badge-color, #fff); background-color: var(--tutor-cart-badge-bg, #0c111d); z-index: 1; } diff --git a/assets/src/scss/admin-dashboard/_tutor-admin.scss b/assets/src/scss/admin-dashboard/_tutor-admin.scss index 8299286347..dad6e83ea2 100644 --- a/assets/src/scss/admin-dashboard/_tutor-admin.scss +++ b/assets/src/scss/admin-dashboard/_tutor-admin.scss @@ -4,19 +4,17 @@ */ .tutor-admin { &-wrap { - margin-left: -20px; + margin-inline-start: -20px; .rtl & { - margin-left: 0px; - margin-right: -20px; + margin-inline: 0 -20px; } @include breakpoint-max(782) { - margin-left: -10px; + margin-inline-start: -10px; .rtl & { - margin-left: 0px; - margin-right: -10px; + margin-inline: 0 -10px; } } @@ -48,16 +46,13 @@ } &-body { - padding-left: 20px; - padding-right: 20px; + padding-inline: 20px; } &-container { max-width: 1160px; - margin-left: auto; - margin-right: auto; - padding-left: 20px; - padding-right: 20px; + margin-inline: auto; + padding-inline: 20px; &-lg { max-width: 1380px; @@ -71,7 +66,7 @@ &-header { box-sizing: border-box; - background: #ffffff; + background: #fff; border-bottom: 1px solid #cdcfd5; padding: 12px 24px; @@ -118,20 +113,18 @@ // icon &-icon { &:not(.tutor-form-icon-reverse) ~ .tutor-form-control { - padding-left: 40px !important; + padding-inline-start: 40px !important; .rtl & { - padding-left: 16px !important; - padding-right: 40px !important; + padding-inline: 16px 40px !important; } } &-reverse ~ .tutor-form-control { - padding-right: 40px !important; + padding-inline-end: 40px !important; .rtl & { - padding-right: 16px !important; - padding-left: 40px !important; + padding-inline: 40px 16px !important; } } } @@ -140,8 +133,8 @@ // select select.tutor-form-control, .tutor-form-select { - padding-right: 36px !important; - margin: 0px; + padding-inline-end: 36px !important; + margin: 0; } } @@ -174,9 +167,9 @@ body.tutor-backend { background-color: #f5f5f5; } -/*---------------------------------- +/* ---------------------------------- Component containers -----------------------------------*/ +---------------------------------- */ body.tutor-backend-tutor_settings #wpbody-content { min-height: 100vh; @@ -184,8 +177,8 @@ body.tutor-backend-tutor_settings #wpbody-content { .ui-datepicker-buttonpane.ui-widget-content { padding-top: 6px; - background: #ffffff; - color: #222222; + background: #fff; + color: #222; display: flex; gap: 10px; @@ -197,20 +190,20 @@ body.tutor-backend-tutor_settings #wpbody-content { } .ui-widget-content a { - color: #222222; + color: #222; } .ui-widget-header { - color: #222222; + color: #222; font-weight: bold; a { - color: #222222; + color: #222; } } /* Interaction states - ----------------------------------*/ + ---------------------------------- */ .ui-state-default, .ui-widget-content .ui-state-default, @@ -218,11 +211,11 @@ body.tutor-backend-tutor_settings #wpbody-content { border: 1px solid #d3d3d3; background: #e6e6e6; font-weight: normal; - color: #555555; + color: #555; } /* Interaction Cues - ----------------------------------*/ + ---------------------------------- */ .ui-state-highlight, .ui-widget-content .ui-state-highlight, @@ -235,9 +228,9 @@ body.tutor-backend-tutor_settings #wpbody-content { .tutor-option-nav-tabs li { position: relative; display: inline-block; - margin-right: -1px; + margin-inline-end: -1px; - &:last-child:after { + &:last-child::after { content: ''; } @@ -247,7 +240,7 @@ body.tutor-backend-tutor_settings #wpbody-content { text-decoration: none; background: #fff; padding: 5px 10px; - border: 1px solid #dddddd; + border: 1px solid #ddd; &:focus { box-shadow: none; @@ -255,7 +248,7 @@ body.tutor-backend-tutor_settings #wpbody-content { } .current a { - color: #333333; + color: #333; } } @@ -360,7 +353,7 @@ body.tutor-backend-tutor_settings #wpbody-content { align-items: center; justify-content: center; gap: 8px; - background: rgba(34, 37, 43, 0.72); + background: rgb(34 37 43 / 72%); border-radius: 6px; .tutor-btn { @@ -471,12 +464,13 @@ body.tutor-backend-tutor_settings #wpbody-content { .tutor-toggle-matrix-head-icon { padding: 4px; - background-color: rgba(244, 246, 249, 1); + background-color: rgb(244 246 249 / 100%); border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; + svg { color: var(--tutor-color-primary); } @@ -511,6 +505,7 @@ body.tutor-backend-tutor_settings #wpbody-content { } } } + .tutor-form-control[type='number'] { -moz-appearance: textfield; @@ -527,7 +522,7 @@ body.tutor-backend-tutor_settings #wpbody-content { .tutor-option-field-row input[type='password'], .tutor-option-field-row textarea { &:last-child { - margin-right: 0; + margin-inline-end: 0; } background-color: #fff; @@ -570,12 +565,12 @@ body.tutor-backend-tutor_settings #wpbody-content { .tutor-option-field-label { display: block; - float: left; + float: inline-start; width: 200px; } .rtl .tutor-option-field-label { - float: right; + float: inline-end; } .tutor_lesson_modal_form .tutor-option-field-label { @@ -612,7 +607,7 @@ body.tutor-backend-tutor_settings #wpbody-content { max-height: 100px; width: auto; padding: 5px; - border: 1px solid #cccccc; + border: 1px solid #ccc; } /** @@ -631,7 +626,7 @@ body.tutor-backend-tutor_settings #wpbody-content { .tutor-option-group-field textarea, .tutor-option-group-field select { width: 100px; - margin-right: 5px; + margin-inline-end: 5px; } .option-type-radio-wrap { @@ -644,7 +639,7 @@ body.tutor-backend-tutor_settings #wpbody-content { */ p.course-empty-content { - padding-left: 20px; + padding-inline-start: 20px; } .ui-sortable-placeholder { @@ -672,22 +667,22 @@ p.course-empty-content { .tutor-status-pending-context, .attempt_started { - background-color: #eeeeee; + background-color: #eee; } .tutor-status-approved-context, .tutor-button.button-success, .tutor-status-completed { background-color: var(--tutor-color-success); - color: #ffffff; + color: #fff; border-radius: 2px; } .tutor-status-blocked-context, .attempt_timeout, .tutor-button.button-danger { - background-color: #ff0000; - color: #ffffff; + background-color: #f00; + color: #fff; border-radius: 2px; } @@ -723,20 +718,20 @@ table.tutor_status_table th mark.yes { text-align: center; display: block; line-height: 40px; - color: #ffffff; + color: #fff; font-size: 14px; } .tutor_original_question { display: -webkit-box; - display: -ms-flexbox; + display: flexbox; display: flex; margin-bottom: 5px; padding: 20px; } .tutor_original_question .question-left { - -webkit-box-flex: 0; + flex-grow: 0; -ms-flex: 0 0 60px; flex: 0 0 60px; } @@ -744,8 +739,8 @@ table.tutor_status_table th mark.yes { .tutor_original_question .question-left img { max-width: 60px; height: auto; - margin-right: 10px; - border: 1px solid #eeee88; + margin-inline-end: 10px; + border: 1px solid #ee8; padding: 3px; } @@ -754,7 +749,7 @@ table.tutor_status_table th mark.yes { } .tutor_admin_answers_list_wrap .tutor_original_question { - margin-left: 50px; + margin-inline-start: 50px; } // @todo: will be removed @@ -766,12 +761,12 @@ table.tutor_status_table th mark.yes { .tutor-label-success { background-color: var(--tutor-color-success); - color: #ffffff; + color: #fff; padding: 3px 7px; } .tutor-addons .addon-regular-price { - color: #cccccc; + color: #ccc; padding: 3px; } @@ -800,15 +795,15 @@ a.addon-buynow-link { .tutor-lms-pro_page_tutor-addons.rtl .plugin-card .desc, .tutor-lms-pro_page_tutor-addons.rtl .plugin-card .name { - margin-right: 148px !important; + margin-inline-end: 148px !important; } .tutor-lms-pro_page_tutor-addons.rtl .plugin-card .desc { - margin-left: 0 !important; + margin-inline-start: 0 !important; } .tutor-lms-pro_page_tutor-addons.rtl .plugin-card .name { - margin-left: 53px !important; + margin-inline-start: 53px !important; } .required-plugin-cards { @@ -840,11 +835,11 @@ a.addon-buynow-link { } .tutor-flex-col:first-child { - margin-left: 0; + margin-inline-start: 0; } .tutor-flex-col:last-child { - margin-right: 0; + margin-inline-end: 0; } .tutor-add-question-wrap { @@ -854,7 +849,7 @@ a.addon-buynow-link { } .question-actions-wrap { - padding-right: 0 !important; + padding-inline-end: 0 !important; } .question-actions-wrap a { @@ -875,7 +870,7 @@ a.addon-buynow-link { .tutor-error-msg { margin: 10px 0; padding: 10px; - border-radius: 3px 3px 3px 3px; + border-radius: 3px; } .tutor-info-msg { @@ -908,7 +903,7 @@ a.addon-buynow-link { border: 1px solid #d4dadb; } -/*end notice*/ +/* end notice */ /* .tutor-quiz-builder-group */ @@ -936,25 +931,21 @@ a.addon-buynow-link { .tutor-quiz-builder-row { display: -webkit-box; - display: -ms-flexbox; + display: flexbox; display: flex; - -webkit-box-align: center; -ms-flex-align: center; align-items: center; - margin-left: -10px; - margin-right: -10px; + margin-inline: -10px; } .tutor-quiz-builder-col { - padding-left: 10px; - padding-right: 10px; - -webkit-box-flex: 1; + padding-inline: 10px; -ms-flex-positive: 1; flex-grow: 1; } .tutor-quiz-builder-col.auto-width { - -webkit-box-flex: 0; + flex-grow: 0; -ms-flex: 0 0 auto; flex: 0 0 auto; } @@ -1013,7 +1004,7 @@ a.addon-buynow-link { .question-type-pro { color: #fff; font-size: 9px; - right: 11px; + inset-inline-end: 11px; position: absolute; top: 50%; -webkit-transform: translateY(-50%); @@ -1021,11 +1012,11 @@ a.addon-buynow-link { } .quiz-builder-question { - -webkit-box-flex: 1; + flex-grow: 1; -ms-flex: 1; flex: 1; display: -webkit-box; - display: -ms-flexbox; + display: flexbox; display: flex; background: #fff; padding: 10px; @@ -1035,7 +1026,7 @@ a.addon-buynow-link { } .quiz-builder-question .question-sorting { - margin-right: 10px; + margin-inline-end: 10px; line-height: 22px; } @@ -1049,18 +1040,18 @@ a.addon-buynow-link { } .quiz-builder-question .question-title { - -webkit-box-flex: 1; + flex-grow: 1; -ms-flex: 1; flex: 1; line-height: 22px; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; - margin-right: 10px; + margin-inline-end: 10px; } .quiz-builder-question .question-icon { - -webkit-box-flex: 0; + flex-grow: 0; -ms-flex: 0 0 155px; flex: 0 0 155px; } @@ -1069,13 +1060,13 @@ a.addon-buynow-link { display: block; padding: 0 0 0 10px; font-size: 20px; - color: rgba(57, 60, 64, 0.4); + color: rgb(57 60 64 / 40%); line-height: 44px; } .tutor-quiz-answer-wrap { display: -webkit-box; - display: -ms-flexbox; + display: flexbox; display: flex; } @@ -1086,7 +1077,7 @@ a.addon-buynow-link { } span.tutor-quiz-answer-title { - -webkit-box-flex: 1; + flex-grow: 1; -ms-flex: 1; flex: 1; } @@ -1101,7 +1092,7 @@ span.tutor-quiz-answer-title { } .tutor-question-answer-image { - margin-right: 10px; + margin-inline-end: 10px; } .tutor-question-answer-image img { @@ -1118,20 +1109,19 @@ span.tutor-quiz-answer-title { padding: 10px; margin-bottom: 2px; display: -webkit-box; - display: -ms-flexbox; + display: flexbox; display: flex; } .tutor-available-quizzes .added-quiz-item .quiz-name { -ms-flex-preferred-size: 0; flex-basis: 0; - -webkit-box-flex: 1; -ms-flex-positive: 1; flex-grow: 1; } .tutor-quiz-delete-btn { - color: #ff0000; + color: #f00; } p.quiz-search-suggest-text { @@ -1148,7 +1138,7 @@ span.result-pass { } span.result-fail { - color: #ff0000; + color: #f00; } span.result-review-required { @@ -1159,7 +1149,7 @@ span.result-review-required { } .tutor-emails-lists-wrap { - background-color: #ffffff; + background-color: #fff; padding: 20px; } @@ -1168,10 +1158,10 @@ span.result-review-required { } .image-matching-item { - -webkit-box-flex: 0; + flex-grow: 0; -ms-flex: 0 0 50px; flex: 0 0 50px; - margin-right: 10px; + margin-inline-end: 10px; } .image-matching-item p { @@ -1215,9 +1205,8 @@ span.filled_dash_unser { padding: 10px 20px; background-color: #fff; width: 100%; - position: sticky; bottom: 0; - position: -webkit-sticky; + position: sticky; } .tutor-option-field .tutor-lesson-edit-feature-img { @@ -1246,9 +1235,9 @@ a:has(> span.tutor-get-pro-text) { color: orange; } -.updating-icon:before { - font-family: 'tutor'; - margin-right: 5px; +.updating-icon::before { + font-family: tutor; + margin-inline-end: 5px; content: '\e91d'; -webkit-animation: spin 1s steps(8) infinite; animation: spin 1s steps(8) infinite; @@ -1267,7 +1256,7 @@ a:has(> span.tutor-get-pro-text) { */ .tnotice { - text-align: left; + text-align: start; padding: 10px 0; background-color: #fff; border-radius: 4px; @@ -1275,21 +1264,21 @@ a:has(> span.tutor-get-pro-text) { margin-bottom: 10px; } -.tnotice:before { +.tnotice::before { content: ''; position: absolute; top: 0; - left: 0; + inset-inline-start: 0; width: 4px; height: 100%; - border-top-left-radius: 4px; - border-bottom-left-radius: 4px; + border-start-start-radius: 4px; + border-end-start-radius: 4px; } .tnotice__icon { position: absolute; top: 50%; - left: 22px; + inset-inline-start: 22px; -webkit-transform: translateY(-50%); transform: translateY(-50%); width: 14px; @@ -1317,13 +1306,12 @@ a:has(> span.tutor-get-pro-text) { } .tnotice__content { - padding-left: 70px; - padding-right: 60px; + padding-inline: 70px 60px; } .tnotice__close { position: absolute; - right: 22px; + inset-inline-end: 22px; top: 50%; width: 14px; cursor: pointer; @@ -1337,7 +1325,7 @@ a:has(> span.tutor-get-pro-text) { background-color: #2bde3f; } -.tnotice--success:before { +.tnotice--success::before { background-color: #2bde3f; } @@ -1345,7 +1333,7 @@ a:has(> span.tutor-get-pro-text) { background-color: #1d72f3; } -.tnotice--blue:before { +.tnotice--blue::before { background-color: #1d72f3; } @@ -1353,7 +1341,7 @@ a:has(> span.tutor-get-pro-text) { background-color: #f31e1c; } -.tnotice--danger:before { +.tnotice--danger::before { background-color: #f31e1c; } @@ -1365,7 +1353,7 @@ a:has(> span.tutor-get-pro-text) { .attempt-view-bottom, .attempt-view-top { display: -webkit-box; - display: -ms-flexbox; + display: flexbox; display: flex; -webkit-box-pack: justify; -ms-flex-pack: justify; @@ -1375,7 +1363,6 @@ a:has(> span.tutor-get-pro-text) { display: -webkit-inline-box; display: -ms-inline-flexbox; display: inline-flex; - -webkit-box-align: center; -ms-flex-align: center; align-items: center; max-width: 30%; @@ -1392,7 +1379,6 @@ a:has(> span.tutor-get-pro-text) { margin-bottom: 60px; .attempt-info-col { - -webkit-box-align: start; -ms-flex-align: start; align-items: flex-start; } @@ -1400,14 +1386,13 @@ a:has(> span.tutor-get-pro-text) { .attempt-user-details { display: -webkit-box; - display: -ms-flexbox; + display: flexbox; display: flex; - -webkit-box-align: center; -ms-flex-align: center; align-items: center; .attempt-user-avatar { - padding-right: 20px; + padding-inline-end: 20px; img { display: block; @@ -1431,7 +1416,7 @@ a:has(> span.tutor-get-pro-text) { font-weight: 400; color: #fff; padding: 1px 4px; - margin-right: 13px; + margin-inline-end: 13px; border-radius: 2px; } @@ -1462,7 +1447,7 @@ a:has(> span.tutor-get-pro-text) { .attempt-review-notice-wrap { display: -webkit-box; - display: -ms-flexbox; + display: flexbox; display: flex; margin-bottom: 60px; -webkit-box-pack: justify; @@ -1475,7 +1460,6 @@ a:has(> span.tutor-get-pro-text) { display: -webkit-inline-box; display: -ms-inline-flexbox; display: inline-flex; - -webkit-box-align: center; -ms-flex-align: center; align-items: center; } @@ -1483,18 +1467,18 @@ a:has(> span.tutor-get-pro-text) { .attempt-review-notice-wrap p.attempt-review-notice i { font-size: 16px; color: #f5c813; - margin-right: 9px; + margin-inline-end: 9px; } .attempt-review-notice-wrap p.attempt-review-at > span { color: var(--tutor-color-primary); - margin-right: 7px; + margin-inline-end: 7px; font-size: 16px; } .attempt-review-notice-wrap p > strong { font-weight: 400; - margin-right: 5px; + margin-inline-end: 5px; } .quiz-attempt-answers-wrap { @@ -1515,7 +1499,7 @@ a:has(> span.tutor-get-pro-text) { border-top: 1px solid #eaeaea; border-bottom: 1px solid #eaeaea; vertical-align: middle; - text-align: left; + text-align: start; p { margin: 0; @@ -1551,7 +1535,7 @@ a:has(> span.tutor-get-pro-text) { } &:not(:last-child) { - margin-right: 17px; + margin-inline-end: 17px; } } @@ -1567,7 +1551,7 @@ a:has(> span.tutor-get-pro-text) { color: #fff; display: inline-block; border-radius: 2px; - margin-right: 6px; + margin-inline-end: 6px; } } @@ -1593,7 +1577,7 @@ a:has(> span.tutor-get-pro-text) { #tutor-update .tutor_plugin_update_notice { font-weight: 400; background: #fff8e5 !important; - border-left: 4px solid #ffb900; + border-inline-start: 4px solid #ffb900; border-top: 1px solid #ffb900; padding: 9px 0 9px 12px !important; margin: 0 -12px 0 -16px !important; @@ -1631,7 +1615,7 @@ a:has(> span.tutor-get-pro-text) { */ h2.tutor-page-heading { - background-color: #ffffff; + background-color: #fff; padding: 30px !important; margin: 0 !important; border-bottom: 1px solid #ecedef; @@ -1649,11 +1633,11 @@ h2.tutor-page-heading { .date-range-input { position: relative; - margin-right: 10px; + margin-inline-end: 10px; } .date-range-input:last-child { - margin-right: 0; + margin-inline-end: 0; } .date-range-input input { @@ -1662,18 +1646,18 @@ h2.tutor-page-heading { box-shadow: none; line-height: 32px; margin: 0; - padding-right: 30px; + padding-inline-end: 30px; } .date-range-input i.tutor-icon-calendar { position: absolute; - right: 10px; + inset-inline-end: 10px; top: 13px; } .date-range-input button { background-color: #3057d5; - color: #ffffff; + color: #fff; border: none; line-height: 39px; padding: 0 15px; @@ -1694,10 +1678,10 @@ h2.tutor-page-heading { } .nav-tab-item { - float: left; + float: inline-start; border: 1px solid #ccc; border-bottom: none; - margin-left: 0.5em; + margin-inline-start: 0.5em; padding: 10px 14px; font-size: 14px; line-height: 1.33; @@ -1709,7 +1693,7 @@ h2.tutor-page-heading { } .nav-tab-item:first-child { - margin-left: 0; + margin-inline-start: 0; } .nav-tab-item:focus, @@ -1773,7 +1757,7 @@ h2.tutor-page-heading { .instructor-layout-templates-fields { display: -webkit-box; - display: -ms-flexbox; + display: flexbox; display: flex; -ms-flex-wrap: wrap; flex-wrap: wrap; @@ -1799,11 +1783,11 @@ h2.tutor-page-heading { border: 6px solid #3057d6; } -/*override default modal on announcement*/ +/* override default modal on announcement */ .tutor-accouncement-update-modal .modal-header, .tutor-announcement-create-modal .modal-header { - padding-right: 15px !important; + padding-inline-end: 15px !important; } .tutor-accouncement-update-modal .tutor-modal-content, @@ -1825,7 +1809,7 @@ h2.tutor-page-heading { } .tutor-admin-search-box-container > div:nth-child(1) { - margin-right: 40px; + margin-inline-end: 40px; position: relative; } @@ -1840,7 +1824,7 @@ h2.tutor-page-heading { } .tutor-admin-search-box-container > div:not(:last-child) { - margin-right: 30px; + margin-inline-end: 30px; } .tutor-admin-search-box-container .tutor-report-search-btn { @@ -1848,7 +1832,7 @@ h2.tutor-page-heading { width: 40px; height: 40px; bottom: 0; - right: 0; + inset-inline-end: 0; border: 0; background: transparent; color: #3e64de; @@ -1859,7 +1843,7 @@ h2.tutor-page-heading { .tutor-admin-search-box-container > div:nth-child(1) input { /* height: 50px; */ - padding-right: 45px; + padding-inline-end: 45px; } .tutor-admin-search-box-container input[type='text'], @@ -1868,7 +1852,7 @@ h2.tutor-page-heading { height: 40px; border-radius: 3px; border: solid 1px #dcdce1; - background-color: #ffffff; + background-color: #fff; padding: 0 14px; transition: 0.2s; } @@ -1877,7 +1861,7 @@ h2.tutor-page-heading { position: absolute; width: 42px; height: 40px; - right: 0; + inset-inline-end: 0; top: 0; color: #3e64de; font-size: 18px; @@ -1892,12 +1876,12 @@ h2.tutor-page-heading { margin-bottom: 7px; } -.tutor-admin-search-box-container > div:nth-child(4) input::-webkit-input-placeholder { +.tutor-admin-search-box-container > div:nth-child(4) input::input-placeholder { color: #3f435b; font-size: 15px; } -.tutor-admin-search-box-container > div:nth-child(1) input::-webkit-input-placeholder { +.tutor-admin-search-box-container > div:nth-child(1) input::input-placeholder { font-size: 16px; font-weight: 400; color: #737787; @@ -1918,11 +1902,11 @@ h2.tutor-page-heading { .tutor-admin-search-box-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); - grid-gap: 15px; + gap: 15px; } .tutor-admin-search-box-container > div { - margin-right: 0 !important; + margin-inline-end: 0 !important; } } @@ -1941,7 +1925,7 @@ h2.tutor-page-heading { display: flex; justify-content: space-between; align-items: flex-end; - padding: 0px 0px 30px 0px; + padding: 0 0 30px; } .tutor-sorting-bulk-action-wrapper .tutor-admin-search-box-container { @@ -1957,8 +1941,8 @@ h2.tutor-page-heading { font-weight: 300; line-height: 1; color: #737787; - margin-left: 25px; - padding-left: 14px; + margin-inline-start: 25px; + padding-inline-start: 14px; position: relative; display: inline-flex; align-items: center; @@ -1971,12 +1955,12 @@ h2.tutor-page-heading { height: 8px; background: #b9bac3; border-radius: 50%; - left: 0; + inset-inline-start: 0; } .report-course-list-wrap .detail .status span { - margin-left: 0; - padding-left: 16px; + margin-inline-start: 0; + padding-inline-start: 16px; } .report-course-list-wrap .detail .status span::before { @@ -2001,7 +1985,7 @@ h2.tutor-page-heading { .report-course-list-wrap .detail { padding: unset !important; - text-align: left !important; + text-align: start !important; font-size: 14px !important; font-weight: 400 !important; } @@ -2010,17 +1994,17 @@ h2.tutor-page-heading { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; - grid-gap: 20px; + gap: 20px; grid-template-columns: repeat(3, 1fr); } .tutor-list-wrap .no-data-found { display: flex; align-items: center; - padding: 0 0 30px 0; + padding: 0 0 30px; } -//a-to-z-sorting icon +// a-to-z-sorting icon .tutor-table-rows-sorting { cursor: pointer; } @@ -2036,7 +2020,7 @@ h2.tutor-page-heading { p:not(:last-child) { padding-bottom: 20px; - word-wrap: break-word; + overflow-wrap: break-word; } } @@ -2081,7 +2065,7 @@ h2.tutor-page-heading { color: #fff; border: 1px solid #596369; border-radius: 11px; - padding: 0px 6px; + padding: 0 6px; } .wp-submenu li a[href='admin.php?page=create-course'] { @@ -2108,30 +2092,30 @@ h2.tutor-page-heading { border-bottom: 1px solid #f5f5f5; font-weight: 400; color: #636363; - background-color: #ffffff; + background-color: #fff; padding: 14px 12px; &:first-child { - border-left: 1px solid #e6e6e6; + border-inline-start: 1px solid #e6e6e6; padding: 16px; .rtl & { - border-left: none; - border-right: 1px solid #e6e6e6; + border-inline-start: none; + border-inline-end: 1px solid #e6e6e6; } } &:last-child { - border-right: 1px solid #e6e6e6; + border-inline-end: 1px solid #e6e6e6; .rtl & { - border-right: none; - border-left: 1px solid #e6e6e6; + border-inline-end: none; + border-inline-start: 1px solid #e6e6e6; } } &:nth-child(2) { - padding-left: 0px; + padding-inline-start: 0; } } @@ -2140,26 +2124,26 @@ h2.tutor-page-heading { padding: 16px 12px; &:first-child { - border-left: 1px solid #e6e6e6; + border-inline-start: 1px solid #e6e6e6; padding: 16px; .rtl & { - border-left: none; - border-right: 1px solid #e6e6e6; + border-inline-start: none; + border-inline-end: 1px solid #e6e6e6; } } &:last-child { - border-right: 1px solid #e6e6e6; + border-inline-end: 1px solid #e6e6e6; .rtl & { - border-right: none; - border-left: 1px solid #e6e6e6; + border-inline-end: none; + border-inline-start: 1px solid #e6e6e6; } } &:nth-child(2) { - padding-left: 0px; + padding-inline-start: 0; } } @@ -2178,14 +2162,12 @@ h2.tutor-page-heading { } .tutor-backend .notice { - margin-left: 0px; - margin-right: 20px; + margin-inline: 0 20px; } .tutor-offer-notice { height: 140px; background: #000001 url('../images/offer-notice-bg.svg') center/cover no-repeat; - overflow: hidden; margin-inline-start: -20px; position: relative; overflow: hidden; @@ -2201,7 +2183,7 @@ h2.tutor-page-heading { transform: translateY(-50%); background: transparent; border: none; - color: rgba(115, 118, 125, 1); + color: rgb(115 118 125 / 100%); width: 36px; height: 36px; display: flex; @@ -2212,7 +2194,7 @@ h2.tutor-page-heading { font-size: 16px; &:hover { - background: rgba(115, 118, 125, 0.6); + background: rgb(115 118 125 / 60%); } } @@ -2224,8 +2206,7 @@ h2.tutor-page-heading { max-width: 1200px; margin: 0 auto; padding-block: 24px; - padding-inline-start: 24px; - padding-inline-end: 56px; + padding-inline: 24px 56px; .tutor-offer-notice-left { display: flex; @@ -2239,7 +2220,7 @@ h2.tutor-page-heading { line-height: 24px; letter-spacing: 1%; font-weight: 500; - color: rgba(255, 255, 255, 0.8); + color: rgb(255 255 255 / 80%); } [data-header] { @@ -2248,12 +2229,12 @@ h2.tutor-page-heading { line-height: 38px; letter-spacing: 0%; font-weight: 700; - color: rgba(255, 245, 58, 1); + color: rgb(255 245 58 / 100%); margin-top: 10px; } [data-subtext] { - color: rgba(133, 198, 255, 1); + color: rgb(133 198 255 / 100%); margin-top: 2px; } } @@ -2267,7 +2248,7 @@ h2.tutor-page-heading { font-size: 16px; line-height: 32px; font-weight: 500; - color: rgba(160, 160, 160, 1); + color: rgb(160 160 160 / 100%); } .tutor-offer-notice-timer { @@ -2276,16 +2257,16 @@ h2.tutor-page-heading { line-height: 100%; letter-spacing: 8%; font-weight: 600; - color: rgba(255, 255, 255, 1); + color: rgb(255 255 255 / 100%); font-variant-numeric: tabular-nums; - margin-left: 12px; + margin-inline-start: 12px; } .tutor-offer-notice-cta { display: flex; align-items: center; justify-content: center; - background: rgba(62, 100, 222, 1); + background: rgb(62 100 222 / 100%); border-radius: 5px; padding: 8px 16px; font-family: 'SF Pro Display', sans-serif; @@ -2293,17 +2274,17 @@ h2.tutor-page-heading { line-height: 23px; letter-spacing: 0%; font-weight: 500; - color: rgba(255, 255, 255, 1); - box-shadow: 0px 0px 14px 0px rgba(59, 87, 255, 1); + color: rgb(255 255 255 / 100%); + box-shadow: 0 0 14px 0 rgb(59 87 255 / 100%); text-decoration: none; - margin-left: 36px; + margin-inline-start: 36px; position: relative; z-index: 1; &::before { position: absolute; top: -6px; - right: 98%; + inset-inline-end: 98%; bottom: -6px; border-radius: 6px; content: ''; @@ -2330,7 +2311,7 @@ h2.tutor-page-heading { } .tutor-offer-notice-right .tutor-offer-notice-cta { - margin-left: 24px; + margin-inline-start: 24px; &::before { width: 250px; @@ -2341,7 +2322,7 @@ h2.tutor-page-heading { @include breakpoint-max(782) { height: auto; min-height: 140px; - margin-left: 0; + margin-inline-start: 0; .auto-fold & { margin-inline-start: -10px; @@ -2367,11 +2348,11 @@ h2.tutor-page-heading { } .tutor-offer-notice-timer { - margin-left: 0; + margin-inline-start: 0; } .tutor-offer-notice-cta { - margin-left: 0; + margin-inline-start: 0; } } } @@ -2403,6 +2384,7 @@ h2.tutor-page-heading { .tutor-offer-notice-right { align-items: center; + .tutor-offer-notice-text { font-size: 14px; line-height: 24px; diff --git a/assets/src/scss/admin-dashboard/_whats-new.scss b/assets/src/scss/admin-dashboard/_whats-new.scss index ae9d8ab6bf..06c22cbbac 100644 --- a/assets/src/scss/admin-dashboard/_whats-new.scss +++ b/assets/src/scss/admin-dashboard/_whats-new.scss @@ -7,8 +7,8 @@ .tutor-update-available{ background: #FFF5E0; - border-top-left-radius: 16px; - border-top-right-radius: 16px; + border-start-start-radius: 16px; + border-start-end-radius: 16px; padding: 32px; .tutor-version-alert{ @@ -17,12 +17,13 @@ justify-content: center; align-items: center; margin-bottom: 12px; + p{ font-size: 14px; line-height: 20px; font-weight: 500; margin: 0; - color: #000000; + color: #000; } } @@ -41,16 +42,18 @@ font-size: 18px; line-height: 24px; font-weight: 500; - margin-top: 0px; + margin-top: 0; margin-bottom: 4px; color: #091E42; } + p{ font-size: 14px; line-height: 20px; font-weight: 400; - margin: 0px; + margin: 0; } + a{ color: #00F; text-decoration: none; @@ -67,7 +70,7 @@ border-radius: 6px; text-decoration: none; color: #fff; - margin-left: auto; + margin-inline-start: auto; &:focus { box-shadow: none; @@ -101,8 +104,7 @@ .tutor-logo-head{ position: absolute; - left: 0; - right: 0; + inset-inline: 0; width: 40px; bottom: -40px; margin: 0 auto; @@ -115,24 +117,27 @@ &.tutor-symbol-left-top { top: 75px; - left: 100px; + inset-inline-start: 100px; height: 20px; width: 20px; } + &.tutor-symbol-left-bottom { width: 60px; - left: 0; + inset-inline-start: 0; bottom: 20px; } + &.tutor-symbol-right-top { top: 30px; - right: 0; + inset-inline-end: 0; width: 60px; } + &.tutor-symbol-right-bottom { height: 30px; width: 30px; - right: 90px; + inset-inline-end: 90px; bottom: 60px; } @@ -154,7 +159,7 @@ .tutor-changelog-wrapper{ width: 75%; margin: 0 auto; - padding: 100px 0px 80px 0px; + padding: 100px 0 80px; h4{ font-size: 16px; @@ -162,16 +167,16 @@ .tutor-changelog-list{ list-style: disc; - padding-left: 16px; + padding-inline-start: 16px; } } .tutor-whats-new-pro-section{ - padding: 80px 0px; + padding: 80px 0; text-align: center; &.tutor-pro-section-top { - background-color: rgba(204, 219, 254, 0.1); + background-color: rgb(204 219 254 / 10%); } & > div { @@ -190,13 +195,14 @@ font-size: 18px; font-weight: 500; margin-top: 20px; - margin-bottom: 0px; + margin-bottom: 0; } .tutor-whats-new-pro-banner{ border-radius: 8px; overflow: hidden; display: flex; + img{ width: 100%; } @@ -211,13 +217,14 @@ text-decoration: none; color: #fff; margin-top: 30px; + &:hover{ background: #0849e1; } .tutor-icon-crown { color: #ED9700; - margin-right: 5px; + margin-inline-end: 5px; } } } diff --git a/assets/src/scss/admin-dashboard/index.scss b/assets/src/scss/admin-dashboard/index.scss index 5175ebd529..86ce69e346 100644 --- a/assets/src/scss/admin-dashboard/index.scss +++ b/assets/src/scss/admin-dashboard/index.scss @@ -1,13 +1,13 @@ -@import '../../../../v2-library/src/scss/reusables.scss'; -@import './tutor-admin.scss'; -@import './whats-new.scss'; -@import './v2/admin-v2-markup.scss'; -@import './segments/withdraw.scss'; -@import './segments/registration-notice.scss'; -@import '../modules/qna.scss'; -@import '../modules/quiz-attempts.scss'; +@import '../../../../v2-library/src/scss/reusables'; +@import './tutor-admin'; +@import './whats-new'; +@import './v2/admin-v2-markup'; +@import './segments/withdraw'; +@import './segments/registration-notice'; +@import '../modules/qna'; +@import '../modules/quiz-attempts'; @import '../front/select_dd_search'; -@import '../modules/certificate-list.scss'; -@import '../modules/quiz-icons.scss'; +@import '../modules/certificate-list'; +@import '../modules/quiz-icons'; @import './segments//legal-consents.scss'; -@import './segments/consent-logs.scss'; +@import './segments/consent-logs'; diff --git a/assets/src/scss/admin-dashboard/segments/consent-logs.scss b/assets/src/scss/admin-dashboard/segments/consent-logs.scss index 377f4ce4ec..11b7b9bf0d 100644 --- a/assets/src/scss/admin-dashboard/segments/consent-logs.scss +++ b/assets/src/scss/admin-dashboard/segments/consent-logs.scss @@ -2,16 +2,19 @@ display: flex; flex-direction: column; } + .tutor-consent-timeline-item { display: grid; grid-template-columns: 24px 1fr auto; gap: 0 16px; position: relative; + &:not(:last-child) { .tutor-consent-timeline-track::after { content: ''; position: absolute; top: 24px; + /* stylelint-disable-next-line property-layout-mappings -- translateX(-50%) is physical, so left keeps the line centered in RTL */ left: 50%; transform: translateX(-50%); width: 2px; @@ -19,10 +22,12 @@ background: var(--tutor-border-color); } } + & + & { margin-top: 0; // gap handled by the track height } } + .tutor-consent-timeline-track { position: relative; display: flex; @@ -30,6 +35,7 @@ align-items: center; padding-top: 4px; } + .tutor-consent-timeline-dot { width: 12px; height: 12px; @@ -39,10 +45,12 @@ position: relative; z-index: 1; } + .tutor-consent-timeline-content { padding-bottom: 28px; min-width: 0; } + .tutor-consent-timeline-title { font-size: 14px; font-weight: 600; @@ -50,11 +58,13 @@ margin: 0 0 2px; line-height: 1.4; } + .tutor-consent-timeline-date { font-size: 13px; color: var(--tutor-color-muted); margin: 0 0 8px; } + .tutor-consent-timeline-meta { display: flex; flex-direction: column; @@ -63,6 +73,7 @@ color: var(--tutor-color-muted); line-height: 1.5; } + .tutor-consent-timeline-ago { font-size: 12px; color: var(--tutor-color-muted); @@ -70,6 +81,7 @@ padding-top: 4px; align-self: start; } + .tutor-consent-user-card { display: flex; align-items: center; @@ -78,6 +90,7 @@ border-radius: 8px; padding: 12px 16px; margin-top: 4px; + img { width: 40px; height: 40px; @@ -86,12 +99,14 @@ flex-shrink: 0; } } + .tutor-consent-user-card-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; } + .tutor-consent-user-card-name { font-size: 14px; font-weight: 600; @@ -100,10 +115,12 @@ overflow: hidden; text-overflow: ellipsis; } + .tutor-consent-user-card-joined { font-size: 12px; color: var(--tutor-color-muted); } + .tutor-consent-logs-modal-footer { display: flex; align-items: center; diff --git a/assets/src/scss/admin-dashboard/segments/legal-consents.scss b/assets/src/scss/admin-dashboard/segments/legal-consents.scss index 64d156f7ea..2092e5e416 100644 --- a/assets/src/scss/admin-dashboard/segments/legal-consents.scss +++ b/assets/src/scss/admin-dashboard/segments/legal-consents.scss @@ -2,23 +2,28 @@ .tutor-option-main-title { margin-bottom: 40px; } + .tutor-option-main-title + .tutor-legal-consents { margin-top: 0; } + .tutor-legal-consents-list { display: flex; flex-direction: column; gap: 12px; } + .tutor-legal-consent-card { border-radius: 6px; background: var(--tutor-color-white); overflow: visible; border: 1px solid var(--tutor-border-color); + &.is-collapsed { overflow: hidden; } } + .tutor-legal-consent-card-header { display: flex; align-items: center; @@ -26,24 +31,29 @@ gap: 16px; padding: 16px; } + .tutor-legal-consent-card-title { display: flex; align-items: center; gap: 12px; + .tutor-icon-legal-consent { font-size: 36px; color: var(--tutor-color-muted); } } + .tutor-legal-consent-header-actions { display: flex; align-items: center; gap: 18px; + .tutor-form-toggle-input:disabled + .tutor-form-toggle-control { opacity: 0.45; cursor: not-allowed; } } + .tutor-legal-consent-settings-toggle { display: inline-flex; align-items: center; @@ -56,11 +66,13 @@ font-size: 20px; cursor: pointer; padding: 0; + &:disabled { opacity: 0.45; cursor: not-allowed; } } + .tutor-legal-consent-card-content { display: block; max-height: 800px; @@ -70,12 +82,14 @@ border-color 0.3s ease-out; opacity: 1; } + .tutor-legal-consent-card.is-collapsed { .tutor-legal-consent-card-content { max-height: 0; opacity: 0; } } + .tutor-legal-consent-card-body { margin: 0 16px; padding: 16px; @@ -85,6 +99,7 @@ flex-direction: column; gap: 20px; } + .tutor-legal-consent-card-body .tutor-option-field-row { border-bottom: 0 !important; padding: 0 !important; @@ -92,22 +107,26 @@ grid-auto-flow: initial; align-items: start; } + .tutor-legal-consent-card-body .tutor-option-field-input { width: 100%; - text-align: left; + text-align: start; justify-self: stretch; } + .tutor-legal-consent-card-body .tutor-form-control, .tutor-legal-consent-card-body .tutor-form-select { width: 100%; max-width: 100%; } + .tutor-legal-consent-page-link-control { position: absolute; - right: 8px; + inset-inline-end: 8px; bottom: 12px; z-index: 2; } + .tutor-legal-consent-page-link-trigger { width: 32px; height: 32px; @@ -115,14 +134,16 @@ box-shadow: 0 0 0 1px var(--tutor-border-color); background: var(--tutor-color-white); color: var(--tutor-color-muted); + &:hover { background: var(--tutor-color-gray-10); color: var(--tutor-body-color); } } + .tutor-legal-consent-page-dropdown { position: absolute; - right: 0; + inset-inline-end: 0; bottom: calc(100% + 8px); z-index: 5; width: 220px; @@ -132,11 +153,13 @@ border: 1px solid var(--tutor-border-color); border-radius: 12px; background: var(--tutor-color-white); - box-shadow: 0 18px 40px rgba(var(--tutor-color-primary-rgb), 0.12); + box-shadow: 0 18px 40px rgb(var(--tutor-color-primary-rgb), 0.12); } + .tutor-legal-consent-page-dropdown[hidden] { display: none; } + .tutor-legal-consent-page-dropdown-item { display: block; width: 100%; @@ -146,40 +169,47 @@ color: var(--tutor-body-color); cursor: pointer; padding: 10px 12px; - text-align: left; + text-align: start; transition: background-color 0.2s ease, color 0.2s ease; + &:hover { background: var(--tutor-color-gray-10); } + &.is-selected, &:disabled { - background: rgba(var(--tutor-color-primary-rgb), 0.1); + background: rgb(var(--tutor-color-primary-rgb), 0.1); color: var(--tutor-color-primary); cursor: not-allowed; + & + .is-selected, & + :disabled { - border-top-left-radius: 0; - border-top-right-radius: 0; + border-start-start-radius: 0; + border-start-end-radius: 0; } + &:has(+ .is-selected), &:has(+ :disabled) { - border-bottom-left-radius: 0; - border-bottom-right-radius: 0; + border-end-start-radius: 0; + border-end-end-radius: 0; } } } + .tutor-legal-consent-checkbox-grid { display: grid; grid-template-columns: repeat(3, minmax(140px, 1fr)); gap: 12px; } + .tutor-legal-consent-checkbox-grid .tutor-form-check { display: flex; align-items: center; margin: 0; } + .tutor-legal-consent-card-footer { display: flex; align-items: center; @@ -187,16 +217,19 @@ gap: 16px; padding: 12px 16px 16px; } + .tutor-legal-consent-card-footer-actions { display: flex; align-items: center; gap: 18px; - margin-left: auto; + margin-inline-start: auto; } + .tutor-legal-consent-delete-btn { - background: rgba(var(--tutor-color-danger-rgb), 0.12); + background: rgb(var(--tutor-color-danger-rgb), 0.12); color: var(--tutor-color-danger); } + .tutor-legal-consent-cancel-btn { border: 0; background: transparent; @@ -204,43 +237,50 @@ padding: 0; cursor: pointer; } + .tutor-legal-consents-footer { margin-top: 16px; } + .tutor-legal-consents-empty-state-action { margin-top: 20px; text-align: center; } + @media (max-width: 1199px) { .tutor-legal-consent-card-body .tutor-option-field-row { grid-template-columns: 1fr; gap: 16px; } } + @media (max-width: 991px) { .tutor-legal-consent-card-header, .tutor-legal-consent-card-footer { - padding-left: 24px; - padding-right: 24px; + padding-inline: 24px; } + .tutor-legal-consent-card-body { - margin-left: 24px; - margin-right: 24px; + margin-inline: 24px; padding: 24px; } + .tutor-legal-consent-checkbox-grid { grid-template-columns: repeat(2, minmax(140px, 1fr)); } } + @media (max-width: 767px) { .tutor-legal-consent-card-header, .tutor-legal-consent-card-footer { flex-direction: column; align-items: flex-start; } + .tutor-legal-consent-card-footer-actions { - margin-left: 0; + margin-inline-start: 0; } + .tutor-legal-consent-checkbox-grid { grid-template-columns: 1fr; } diff --git a/assets/src/scss/admin-dashboard/segments/registration-notice.scss b/assets/src/scss/admin-dashboard/segments/registration-notice.scss index 00a597176e..603999cf6c 100644 --- a/assets/src/scss/admin-dashboard/segments/registration-notice.scss +++ b/assets/src/scss/admin-dashboard/segments/registration-notice.scss @@ -28,21 +28,21 @@ font-weight: normal; font-size: 15px; line-height: 22px; + strong{ color: black; } } &:last-child { - border-left: 1px solid var(--tutor-border-color); - margin-left: 20px; + border-inline-start: 1px solid var(--tutor-border-color); + margin-inline-start: 20px; display: flex; flex-direction: column; align-self: stretch; justify-content: space-around; a{ - display: block; width: calc(100% - 40px); height: 100%; padding: 0 20px; diff --git a/assets/src/scss/admin-dashboard/segments/withdraw.scss b/assets/src/scss/admin-dashboard/segments/withdraw.scss index e0dde9c140..d6c944d92d 100644 --- a/assets/src/scss/admin-dashboard/segments/withdraw.scss +++ b/assets/src/scss/admin-dashboard/segments/withdraw.scss @@ -4,73 +4,88 @@ td { ul.tutor-table-inside-table { text-decoration: none; + li { display: flex; + span:first-child { width: 37%; } + span:last-child { width: 50%; } } } + .tooltip-wrap { .tooltip-txt { max-width: 400px; min-width: 230px; - padding: 0px 0px; + padding: 0; display: flex; + > div { height: 32px; - border-radius: 0px 10px 10px 0px; + border-radius: 0 10px 10px 0; } + .withdraw-tutor-tooltip-content { flex-basis: 100%; padding: 1px 11px; } + .withdraw-tutor-copy-to-clipboard { - padding: 0px 5px 0px 3px; + padding: 0 5px 0 3px; flex-basis: 100px; background: var(--tutor-color-secondary); + span { font-size: 18px; - padding: 0px 3px 0px 0px; + padding: 0 3px 0 0; } } } } } + td.tutor-withdraw-btns { @include breakpoint-min(1200px) { width: 16%; + button { max-width: 80px; } } } } + #tutor-admin-withdraw-approve, #tutor-admin-withdraw-reject { .tutor-modal-root { .tutor-modal-icon { margin-bottom: 25px; } + #tutor-admin-withdraw-approve-content, #tutor-admin-withdraw-reject-content { margin-bottom: 25px; } + .tutor-modal-btns.tutor-btn-group { @include breakpoint-max(600) { button:not(:last-child) { margin-bottom: 15px; } } + button { padding: 3px 30px; } } } } + #tutor-admin-withdraw-reject { input, button, diff --git a/assets/src/scss/admin-dashboard/tutor-setup.scss b/assets/src/scss/admin-dashboard/tutor-setup.scss index 9f6da40858..c08c335e36 100644 --- a/assets/src/scss/admin-dashboard/tutor-setup.scss +++ b/assets/src/scss/admin-dashboard/tutor-setup.scss @@ -1,11 +1,11 @@ // Tutor setup page body.tutor-setup { - padding: 0px; - margin: 0px; + padding: 0; + margin: 0; } #tutor-onboard-wrapper { - font-family: 'Inter', sans-serif; + font-family: Inter, sans-serif; min-height: calc(100dvh - 64px); padding: 32px 16px; background: #f5f3f1; @@ -17,9 +17,11 @@ body.tutor-setup { width: 100%; max-width: 444px; margin: 0 auto; + &.is-active { display: block; } + &.tutor-onboard-screen-loading { max-width: 600px; } @@ -49,6 +51,7 @@ body.tutor-setup { font-size: 16px; line-height: 24px; font-weight: 400; + span { color: #0c111d; } @@ -79,7 +82,7 @@ body.tutor-setup { line-height: 32px; font-weight: 600; letter-spacing: -1%; - margin: 0px 0px 20px; + margin: 0 0 20px; color: #2f3137; } @@ -110,6 +113,7 @@ body.tutor-setup { font-size: 14px; line-height: 22px; margin-bottom: 20px; + span { color: #0c111d; font-weight: 600; @@ -140,7 +144,7 @@ body.tutor-setup { input#tutor-onboard-load-sample-course { width: 18px; height: 18px; - margin-right: 0px; + margin-inline-end: 0; } } @@ -157,7 +161,7 @@ body.tutor-setup { flex-direction: column; gap: 2px; width: 90px; - padding: 8px 0px; + padding: 8px 0; box-shadow: 0 0 0 1px #ececed; border-radius: 10px; background: #fff; @@ -165,6 +169,7 @@ body.tutor-setup { transition: border-color 0.2s ease, box-shadow 0.2s ease; + .tutor-onboard-choice-text { color: #73767d; font-size: 12px; @@ -172,9 +177,11 @@ body.tutor-setup { font-weight: 500; text-align: center; } + &.is-selected { background-color: #f5f5f6; box-shadow: 0 0 0 2px #0049f8; + .tutor-onboard-choice-text { color: #0c111d; } @@ -200,7 +207,8 @@ body.tutor-setup { } .tutor-onboard-checkbox { - margin: 44px 0px 12px 0px; + margin: 44px 0 12px; + .tutor-onboard-checkbox-label { color: #5d5f66; font-size: 14px; @@ -214,9 +222,9 @@ body.tutor-setup { font-size: 13px; font-weight: 400; line-height: 18px; - letter-spacing: 0px; + letter-spacing: 0; text-align: center; - margin: 0px; + margin: 0; } .tutor-onboard-card-loading { diff --git a/assets/src/scss/admin-dashboard/v2/_general.scss b/assets/src/scss/admin-dashboard/v2/_general.scss index cbb84898cf..2eb6afaf2f 100644 --- a/assets/src/scss/admin-dashboard/v2/_general.scss +++ b/assets/src/scss/admin-dashboard/v2/_general.scss @@ -21,6 +21,7 @@ } @extend .text-body; + color: var(--tutor-color-secondary); // overflow-x: auto; @@ -28,34 +29,39 @@ .tutor-option-header, .tutor-option-form { display: grid; - grid-gap: 42px; + gap: 42px; grid-auto-flow: column; @include breakpoint-min(1400) { grid-template-columns: 245px 4fr 1fr; } + @include breakpoint-min(1600) { grid-template-columns: 1fr 825px 1fr; } } + .tutor-option-form { @include breakpoint-max(1400) { grid-template-columns: min-content auto; } } + @include breakpoint-max(1300) { .tutor-option-header { grid-template-columns: 175px auto auto; grid-template-columns: auto 1fr auto; - grid-gap: 15px; + gap: 15px; } } + .tutor-form-control { font-family: inherit; } .search-field { position: relative; + input[type='search' i]::-webkit-search-cancel-button { cursor: pointer; } @@ -68,34 +74,42 @@ .mce-path { display: none !important; } + .mce-top-part { border-bottom: 1px solid #c0c3cb; } + .mce-top-part::before { box-shadow: none; } + .wp-editor-container { border: 1px solid #c0c3cb; border-radius: 6px; overflow: hidden; } + div.mce-toolbar-grp { border-bottom: none; background: none; } + div.mce-statusbar { border-top: none; } + .image-previewer { // width: 100%; // overflow: hidden; } + .mce-container-body .mce-resizehandle i.mce-i-resize { display: none; } + .mce-container-body .mce-resizehandle { margin: auto; - left: 0; + inset-inline-start: 0; height: 4px; width: 40px; border-radius: 6px; @@ -105,6 +119,7 @@ opacity: 0; visibility: hidden; } + .wp-editor-container .mce-container-body .mce-resizehandle:active, .wp-editor-container:hover .mce-container-body .mce-resizehandle { visibility: visible; @@ -117,19 +132,22 @@ align-items: center; min-height: 60px; background: var(--tutor-color-white); + > div { &:nth-child(3) { justify-self: flex-end; min-width: 200px; - text-align: right; + text-align: end; } } + .title { font-weight: 500; font-size: 24px; line-height: 34px; color: var(--tutor-body-color); } + .tutor-input-group { .tutor-form-control { border: 1px solid #bababa; @@ -137,6 +155,7 @@ height: 40px; } } + .save-button { .tutor-btn { padding: 7px 24.3px; @@ -144,19 +163,19 @@ } position: fixed; - right: 0; + inset-inline: 36px 0; z-index: 99; width: auto; height: 60px; top: 32px; - left: 36px; border-bottom: 1px solid #f0f0f1; @include breakpoint-min(960) { - left: 160px; + inset-inline-start: 160px; } + @include breakpoint-max(782) { - left: 0; + inset-inline-start: 0; top: 47px; } } @@ -170,8 +189,10 @@ align-items: center; justify-content: space-between; margin-bottom: 32px; + h2 { @extend .text-medium-h5; + color: var(--tutor-body-color); } } @@ -197,9 +218,10 @@ &.email-settings { @include breakpoint-min(desktop-lg) { .tutor-option-field-label { - padding-right: 53px; + padding-inline-end: 53px; } } + [name='email-settings-textarea'] { min-height: 130px; } @@ -211,21 +233,24 @@ } .tutor-option-field-row { - padding-left: 4px; - padding-right: 4px; + padding-inline: 4px; + &:not(:first-child) { padding-top: 10px; } + &:not(:last-child) { padding-bottom: 10px; } + &:first-child { position: relative; z-index: 1; + &::before { content: ''; position: absolute; - inset: -13px -17px -1px -17px; + inset: -13px -17px -1px; z-index: -1; background: var(--tutor-color-gray-10); border-radius: 6px 6px 0 0; @@ -253,18 +278,22 @@ @include masonryGrid(2, 24px, 10px); } } + .item-wrapper { padding: 2px 15px; border-color: #e3e5eb; } + .tutor-option-field-row { padding-top: 8px; padding-bottom: 8px; border-color: var(--tutor-border-color); + > div:nth-child(2) { font-weight: 600; word-break: break-word; } + [class^='tutor-text'] { &.success { color: var(--tutor-color-success); @@ -280,8 +309,10 @@ padding: 28px; padding-bottom: 25px; } + .drag-drop-zone { @include getDashedBorder(2px, 18px, rgba(var(--tutor-color-primary-rgb), 0.3)); + background-color: var(--tutor-color-white); border-radius: 6px; text-align: center; @@ -292,7 +323,6 @@ &.dragover { box-shadow: inset 0 0 0 2px var(--tutor-border-color); transition: 100ms linear; - position: relative; z-index: 1; overflow: hidden; @@ -319,9 +349,11 @@ 0% { background-position: 0% 50%; } + 50% { background-position: 100% 50%; } + 100% { background-position: 0% 50%; } @@ -331,6 +363,7 @@ color: #1973aa; font-size: 77px; } + .title { font-weight: 500; font-size: 20px; @@ -342,11 +375,13 @@ font-size: 15px; line-height: 160%; margin-top: 8px; - padding-left: 0; + padding-inline-start: 0; + > span { color: var(--tutor-color-muted); } } + label.tutor-btn.tutor-is-sm { display: inline-flex; margin-top: 8px; @@ -391,7 +426,7 @@ align-items: center; justify-content: space-between; grid-auto-flow: column; - grid-gap: 30px; + gap: 30px; &.tutor-d-block { display: block !important; @@ -403,26 +438,30 @@ .tutor-option-field-input { &.tutor-d-flex { - margin-top: 0px; + margin-top: 0; } } + .type-check { .tutor-form-check { align-items: center; } } + &:not(.tutor-d-block) { .tutor-option-field-input { input[type='email'] + span { position: absolute; width: 100%; - right: 0; + inset-inline-end: 0; } + input[type='email'] + span.danger { color: red; } + position: relative; - text-align: right; + text-align: end; justify-self: flex-end; } } @@ -430,76 +469,93 @@ &:first-child { padding-top: 0; } + &:last-child { padding-bottom: 0; } + &.tutor-d-block { .tutor-option-field-input.tutor-d-flex { margin-top: 20px; + &.logo-upload { margin-top: 12px; } } + .tutor-option-field-input { margin-top: 25px; } } + &.has-bg { position: relative; z-index: 1; border: none; border-top: 1px solid #f9f9f9; - &:before { + + &::before { content: ''; + --width: 50px; + position: absolute; width: calc(100% + var(--width)); height: calc(100% + 2px); - background: rgba(243, 243, 243, 0.5); - left: calc(var(--width) / -2); + background: rgb(243 243 243 / 50%); + inset-inline-start: calc(var(--width) / -2); top: -2px; z-index: -1; border-top: 1px solid #f9f9f9; } } + &.double-input { align-items: flex-start; + .tutor-option-field-input { label { display: flex; align-items: center; justify-content: flex-end; + span { - margin-right: 10px; + margin-inline-end: 10px; } + &:not(:last-child) { margin-bottom: 14px; } } + .tutor-form-control { - margin-right: 0; + margin-inline-end: 0; } + .revenue-percentage { position: relative; - padding-right: 24px; + padding-inline-end: 24px; + .tutor-form-control { min-width: 70px; max-width: 70px; } - &:before { + + &::before { content: ''; position: absolute; width: 24px; height: 1px; - right: 0; + inset-inline-end: 0; background: #dcdbdc; } - &:first-child:after { + + &:first-child::after { content: ''; position: absolute; width: 1px; height: 54px; - right: 0; + inset-inline-end: 0; top: 20px; background: #dcdbdc; } @@ -511,6 +567,7 @@ .tutor-option-field-label { align-self: start; } + .tutor-option-field-input { justify-self: unset; } @@ -531,21 +588,26 @@ &.row-variation-code { grid-template-columns: repeat(2, auto); grid-auto-flow: unset; + .tutor-option-field-input.textarea-code { justify-self: unset; grid-column: 1/-1; position: relative; + textarea.tutor-form-control { min-height: 157px; color: #28408e; } + textarea.tutor-form-control { background-color: inherit; border-color: #bababa; + &:focus { border-color: var(--tutor-brand-wordpress); } } + .code-copy-btn { font-size: 13px; line-height: 1.23; @@ -558,19 +620,22 @@ align-items: center; position: absolute; top: 16px; - right: 16px; + inset-inline-end: 16px; cursor: pointer; + > i { - margin-right: 3px; + margin-inline-end: 3px; font-size: 16px; } + &:hover, &:focus { background: var(--tutor-brand-wordpress); color: var(--tutor-color-white); } + &:focus { - box-shadow: 0 0 0 3px rgba(var(--tutor-color-primary-rgb), 0.1); + box-shadow: 0 0 0 3px rgb(var(--tutor-color-primary-rgb), 0.1); } } } @@ -579,6 +644,7 @@ .tutor-option-checkbox-horizontal{ display: block; + .tutor-option-field-input{ margin-top: 15px!important; } @@ -588,21 +654,26 @@ label, .label { @extend .text-medium-body; + color: var(--tutor-body-color); display: block; } + em { background: #dcdbdc; mix-blend-mode: multiply; border-radius: 3px; color: #161616; - padding: 0px 3px; + padding: 0 3px; font-style: normal; } + .desc { @extend .text-regular-small; + margin-top: 5px; } + &.has-tooltip { display: flex; align-items: center; @@ -611,18 +682,22 @@ .tutor-option-field-input { &.tutor-d-flex { - text-align: left; + text-align: start; + .tutor-form-check:not(:last-child) { - margin-right: 20px; + margin-inline-end: 20px; } } + &.tutor-d-flex, &.tutor-d-block { margin-top: 20px; } + &.tutor-d-flex { input.tutor-form-control { min-width: 90px; + // margin-right: 15px; } } @@ -632,37 +707,44 @@ display: flex; align-items: center; justify-content: flex-end; + span { - margin-right: 10px; + margin-inline-end: 10px; } + &:not(:last-child) { margin-bottom: 14px; } } + .tutor-form-control { - margin-right: 0; + margin-inline-end: 0; } + .revenue-percentage { position: relative; - padding-right: 24px; + padding-inline-end: 24px; + .tutor-form-control { min-width: 70px; max-width: 70px; } - &:before { + + &::before { content: ''; position: absolute; width: 24px; height: 1px; - right: 0; + inset-inline-end: 0; background: #dcdbdc; } - &:first-child:after { + + &:first-child::after { content: ''; position: absolute; width: 1px; height: 54px; - right: 0; + inset-inline-end: 0; top: 20px; background: #dcdbdc; } @@ -683,19 +765,23 @@ border-radius: 6px; padding: 20px; align-items: center; + span.delete-btn { display: inline-block; position: absolute; width: 24px; height: 24px; border-radius: 50%; + @include svg-delete-icon; + background-color: var(--tutor-color-danger); background-repeat: no-repeat; background-position: 50%; cursor: pointer; top: -12px; - right: -12px; + inset-inline-end: -12px; + &:hover { background-color: darken($color-danger, 6); } @@ -706,12 +792,13 @@ border: 2px solid var(--tutor-color-gray-10); border-radius: 3px; position: relative; - margin-right: 38px; + margin-inline-end: 38px; width: 268px; height: 98px; display: flex; align-items: center; justify-content: center; + img { width: 100%; height: 100%; @@ -722,7 +809,9 @@ .logo-upload-wrap { color: #161616; + @include getTypography(400, 15px, 160%); + p { margin-bottom: 12px; } @@ -734,22 +823,26 @@ .horizontal { display: grid; grid-template-columns: 1fr 2fr; - grid-gap: 20px; + gap: 20px; + &:not(:first-child) { margin-top: 36px; } } + .fields-wrapper { display: grid; grid-auto-flow: column; - grid-gap: 30px; + gap: 30px; } } + .public-profile { --imgWidth: 138px; + display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--imgWidth), 1fr)); - grid-gap: 30px; + gap: 30px; justify-items: flex-start; } @@ -759,6 +852,7 @@ border-radius: 6px; } } + .public-profile { .icon-wrapper img { max-width: 100%; @@ -767,6 +861,7 @@ .layout-label { @include getTypography(400, 15px, 160%); + color: var(--tutor-body-color); } @@ -774,66 +869,74 @@ &.tutor-d-flex { .tutor-form-check { &:not(:last-child) { - margin-right: 20px; + margin-inline-end: 20px; } } } + &.tutor-d-block { .tutor-form-check { &:not(:last-child) { margin-bottom: 30px; } } + &.has-desc .tutor-form-check { align-items: flex-start; + .desc { margin-top: 5px; } } } } + .tutor-d-flex.input-select { > [class^='tutor-form-']:not(:last-child) { - margin-right: 15px; + margin-inline-end: 15px; } + > [class^='tutor-form-']:last-child { - margin-left: 15px; + margin-inline-start: 15px; } } + .type-toggle-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); - grid-gap: 25px; + gap: 25px; padding: 8px 0; + @include breakpoint-min(1400) { grid-template-columns: repeat(3, 1fr); } + > .toggle-item { &:hover { border: 1px solid #41454f; } + border: 1px solid #bababa; border-radius: 6px; padding: 16px 9px; - text-align: left; + text-align: start; display: flex; transition: all 0.3s; align-items: center; + .tutor-form-toggle-control { - margin-right: 8px; - margin-left: 0; + margin-inline: 0 8px; .rtl & { - margin-left: 8px; - margin-right: 0px; + margin-inline: 8px 0; } } + .tooltip-wrap.tooltip-icon { - margin-left: 5px; + margin-inline-start: 5px; .rtl & { - margin-right: 5px; - margin-left: 0px; + margin-inline: 0 5px; } } } @@ -844,14 +947,14 @@ input { margin: 0; - padding-right: 30px; + padding-inline-end: 30px; } button { position: absolute; top: 2px; - right: 2px; - background-color: #ffffff; + inset-inline-end: 2px; + background-color: #fff; border: none; outline: none; height: calc(100% - 4px); @@ -864,17 +967,18 @@ &.has-btn-after { align-items: center; + .tutor-btn { - margin-left: 17px; + margin-inline-start: 17px; } + .delete-btn { width: 18px; height: 20px; display: flex; align-items: center; justify-content: center; - - margin-left: 15px; + margin-inline-start: 15px; cursor: pointer; font-size: 26px; color: grey; @@ -891,15 +995,19 @@ // Tab -> #import-export .tutor-option-nav-page.import-export { .popup-opener { - margin-left: 14px; + margin-inline-start: 14px; + .popup-menu { $right: 16px; - text-align: left; - right: -$right; - &:before { - right: $right + 4; + + text-align: start; + inset-inline-end: -$right; + + &::before { + inset-inline-end: $right + 4; } } + li { @extend .text-medium-body; } @@ -911,10 +1019,12 @@ .all-pages { .tutor-option-field-row { --padding: 13px; + &:not(:last-child) { padding-bottom: var(--padding); border-color: var(--tutor-border-color); } + &:not(:first-child) { padding-top: var(--padding); @@ -927,23 +1037,25 @@ .tutor-option-field-label { color: var(--tutor-color-secondary); + > p { display: inline-flex; align-items: center; } + .icon-link { text-decoration: none; - font-size: 16px; color: var(--tutor-color-muted); font-size: 24px; - margin-left: 2px; + margin-inline-start: 2px; } + .icon-check { font-size: 16px; background: var(--tutor-design-success); color: var(--tutor-color-white); border-radius: 50%; - margin-right: 2px; + margin-inline-end: 2px; } } @@ -962,11 +1074,13 @@ @include spinner(#1973aa, #eee); } + .loading-spinner::before { width: 50px; height: 50px; top: 30%; } + .loading-spinner.hide { display: none; } @@ -983,6 +1097,7 @@ justify-content: center; cursor: pointer; transition: background 0.3s ease; + &:hover { background: var(--tutor-color-gray-10); } diff --git a/assets/src/scss/admin-dashboard/v2/admin-v2-markup.scss b/assets/src/scss/admin-dashboard/v2/admin-v2-markup.scss index 50e65e8bd6..267bde31d2 100644 --- a/assets/src/scss/admin-dashboard/v2/admin-v2-markup.scss +++ b/assets/src/scss/admin-dashboard/v2/admin-v2-markup.scss @@ -1,4 +1,4 @@ -//@import './reset'; +// @import './reset'; // Components @import './components/index'; @@ -10,7 +10,7 @@ @import './custom-pages/index'; // Conditional Style -@import './conditionals/conditionals.scss'; +@import './conditionals/conditionals'; // WP conflict override -@import './conflict-override/conflict-override.scss'; +@import './conflict-override/conflict-override'; diff --git a/assets/src/scss/admin-dashboard/v2/components/_color-preset.scss b/assets/src/scss/admin-dashboard/v2/components/_color-preset.scss index 873da8838a..18154d83f9 100644 --- a/assets/src/scss/admin-dashboard/v2/components/_color-preset.scss +++ b/assets/src/scss/admin-dashboard/v2/components/_color-preset.scss @@ -2,6 +2,7 @@ .tutor-option-field-row { border-bottom: none !important; } + .color-picker-wrapper { .tutor-option-field-row { &:not(:last-child) { @@ -9,19 +10,21 @@ } } } + position: relative; } .tutor-option-field-input.color-preset-grid { display: grid; grid-template-columns: repeat(4, 1fr); - grid-gap: 30px; + gap: 30px; padding-top: 10px; padding-bottom: 16px; } .color-preset-grid label.color-preset-input { $transition: 200ms linear; + cursor: pointer; display: inherit; @@ -29,38 +32,47 @@ &:hover { box-shadow: 0 0 0 1px var(--tutor-border-color); } + background: var(--tutor-color-white); border: 1px solid var(--tutor-border-color); border-radius: 6px; overflow: hidden; transition: $transition; } + .header { display: grid; grid-auto-flow: column; + span { height: 37px; text-indent: 1000%; - background: rgba(0, 0, 0, 0.8); + background: rgb(0 0 0 / 80%); } + span:nth-child(1) { - background: rgba(0, 0, 0, 0.8); + background: rgb(0 0 0 / 80%); } + span:nth-child(2) { - background: rgba(0, 0, 0, 0.6); + background: rgb(0 0 0 / 60%); } + span:nth-child(3) { - background: rgba(0, 0, 0, 0.4); + background: rgb(0 0 0 / 40%); } + span:nth-child(4) { - background: rgba(0, 0, 0, 0.2); + background: rgb(0 0 0 / 20%); } } + .footer { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px 8px 13px; + .check-icon { width: 20px; height: 20px; @@ -69,7 +81,8 @@ border-radius: 4px; transition: $transition; position: relative; - &:before { + + &::before { content: ''; position: absolute; inset: 0; @@ -86,16 +99,19 @@ input[type='radio'] { display: none; + @include appearNone; + &:checked { + .preset-item { border-color: var(--tutor-color-primary); box-shadow: 0 0 0 1px var(--tutor-color-primary); + .check-icon { background-color: var(--tutor-color-primary); border-color: var(--tutor-color-primary); - &:before { + &::before { transform: scale(1); opacity: 1; } @@ -106,6 +122,7 @@ &:disabled { + .preset-item { cursor: not-allowed; + .check-icon { opacity: 0.5; } @@ -116,14 +133,15 @@ &.is-checked { position: relative; transition: 200ms; - &:before { + + &::before { content: ''; position: absolute; top: calc(100% + 31px - 11px); width: 27px; height: 11px; - left: 50%; - margin-left: calc(-27px / 2); + inset-inline-start: 50%; + margin-inline-start: calc(-27px / 2); background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg width='27' height='11' viewBox='0 0 27 11' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath opacity='0.3' d='M11.605 1.54409C12.7084 0.64503 14.2916 0.645029 15.395 1.54409L27 11H0L11.605 1.54409Z' fill='%23EFF1F7'/%3e%3c/svg%3e "); } } @@ -163,17 +181,21 @@ height: 32px; border: none; box-shadow: none; - border-right: 1px solid #cecfd5; + border-inline-end: 1px solid #cecfd5; border-radius: 0; + &:checked { border-color: var(--tutor-color-primary); } + &::-webkit-color-swatch-wrapper { padding: 0; } + &::-webkit-color-swatch { border: none; } + &::-moz-color-swatch { border: none; } @@ -185,7 +207,7 @@ height: 32px; border: none; box-shadow: none; - text-align: left; + text-align: start; cursor: text; } } diff --git a/assets/src/scss/admin-dashboard/v2/components/_custom-input-field.scss b/assets/src/scss/admin-dashboard/v2/components/_custom-input-field.scss index e45d897dca..de2dfce303 100644 --- a/assets/src/scss/admin-dashboard/v2/components/_custom-input-field.scss +++ b/assets/src/scss/admin-dashboard/v2/components/_custom-input-field.scss @@ -9,10 +9,11 @@ display: inline-flex; border: 1px solid #c0c3cb; border-radius: 6px; - &:before { + + &::before { content: ""; position: absolute; - right: -14px; + inset-inline-end: -14px; top: -14px; height: 28px; width: 28px; @@ -23,6 +24,7 @@ background-position: 50%; transition: 0.3s; } + &.icon-col { &:hover { background: #e9edfb; @@ -43,17 +45,20 @@ ~ .title { color: var(--tutor-color-primary); } + ~ .icon-wrapper { img { box-shadow: 0 0 0 2px var(--tutor-color-primary); } - &:before { + &::before { span { background-color: var(--tutor-color-primary); border-color: var(--tutor-color-primary); } + background-color: var(--tutor-color-primary); + @include svg-check-icon; } } @@ -64,7 +69,9 @@ &.has-title { label { text-align: center; + @include getTypography(400, 15px, 160%); + .title { margin-top: 6px; display: block; @@ -94,10 +101,10 @@ max-width: 100%; } - &:before { + &::before { content: ""; position: absolute; - right: -8px; + inset-inline-end: -8px; top: -8px; height: 16px; width: 16px; @@ -112,8 +119,9 @@ &:has(input[type="radio"]:checked) { border-color: var(--tutor-color-primary); - &:before { + &::before { background-color: var(--tutor-color-primary); + @include svg-check-icon-2; } } @@ -129,20 +137,26 @@ .items-per-row-label { text-align: center; + @include getTypography(400, 15px, 160%); + input[type="radio"] { &:checked + .icon-col { background: #e9edfb; + span { background-color: var(--tutor-color-primary); border-color: var(--tutor-color-primary); } - &:before { + + &::before { background-color: var(--tutor-color-primary); + @include svg-check-icon; } } } + .icon-col { width: 95.4px; height: 46px; @@ -155,6 +169,7 @@ background: var(--tutor-color-white); transition: 0.2s linear; position: relative; + span { width: 100%; height: 100%; @@ -164,35 +179,37 @@ border-radius: 2px; transition: 0.2s ease-in-out; } - &:before { - right: -16px; + + &::before { + inset-inline-end: -16px; top: -16px; height: 16px; width: 16px; background-size: 8px; } - &:focus:before { - box-shadow: 0 0 0 6px rgba(var(--tutor-color-primary-rgb), 0.1); + + &:focus::before { + box-shadow: 0 0 0 6px rgb(var(--tutor-color-primary-rgb), 0.1); } } &:nth-child(2) .icon-col { grid-template-columns: repeat(2, 1fr); - grid-gap: 10.24px; + gap: 10.24px; } &:nth-child(3) .icon-col { grid-template-columns: repeat(3, 1fr); - grid-gap: 8.74px; + gap: 8.74px; } &:nth-child(4) .icon-col { grid-template-columns: repeat(4, 1fr); - grid-gap: 8.49px; + gap: 8.49px; } &:not(:last-child) { - margin-right: 30px; + margin-inline-end: 30px; } .title { diff --git a/assets/src/scss/admin-dashboard/v2/components/_form-elements.scss b/assets/src/scss/admin-dashboard/v2/components/_form-elements.scss index 31203ac444..b858afd58a 100644 --- a/assets/src/scss/admin-dashboard/v2/components/_form-elements.scss +++ b/assets/src/scss/admin-dashboard/v2/components/_form-elements.scss @@ -6,15 +6,17 @@ input[type='radio'] { background-size: 120%; } + input[type='checkbox'] { background-size: 70%; } input.tutor-form-control { padding: 0 15px; + &.tutor-w-90, &[type='number'] { - padding: 0px 5px; + padding: 0 5px; text-align: center; max-width: 90px; min-width: 90px; @@ -22,7 +24,7 @@ } &.tutor-w-160 { - padding: 0px 5px; + padding: 0 5px; text-align: center; max-width: 160px; min-width: 160px; @@ -45,6 +47,7 @@ label { font-size: 15px; } + .desc { margin-top: 5px; } @@ -60,6 +63,7 @@ textarea.tutor-form-control, textarea.tutor-form-control:read-only { @include getTypography(400, 16px, 162%); + border-color: #bababa; transition: all 200ms; @@ -89,6 +93,7 @@ &:hover { box-shadow: 0 0 10px -7px; } + &:focus { border-color: var(--tutor-color-primary); box-shadow: 0 0 10px -5px; diff --git a/assets/src/scss/admin-dashboard/v2/components/_nav-tab.scss b/assets/src/scss/admin-dashboard/v2/components/_nav-tab.scss index e481d866b7..44e5fb3f40 100644 --- a/assets/src/scss/admin-dashboard/v2/components/_nav-tab.scss +++ b/assets/src/scss/admin-dashboard/v2/components/_nav-tab.scss @@ -24,18 +24,17 @@ } &.is-active { - background-color: #FFFFFF; + background-color: #FFF; color: var(--tutor-color-primary); border-color: #e8e8e8; } } .tutor-option-submenu-nav { - margin-left: 36px; + margin-inline-start: 36px; .rtl & { - margin-right: 36px; - margin-left: 0; + margin-inline: 0 36px; } .tutor-nav-link { @@ -47,20 +46,19 @@ } @include breakpoint-max(desktop) { - margin-left: 0px; - margin-right: 0px; + margin-inline: 0; } @include breakpoint-max(mobile) { - margin-left: 20px; + margin-inline-start: 20px; .rtl & { - margin-right: 20px; - margin-left: 0; + margin-inline: 0 20px; } } } } + &.tutor-is-sticky { position: sticky; top: 120px; diff --git a/assets/src/scss/admin-dashboard/v2/components/_search-popup.scss b/assets/src/scss/admin-dashboard/v2/components/_search-popup.scss index bdf5f75fd1..3083998cde 100644 --- a/assets/src/scss/admin-dashboard/v2/components/_search-popup.scss +++ b/assets/src/scss/admin-dashboard/v2/components/_search-popup.scss @@ -1,8 +1,8 @@ .search-popup-opener, .search_result { - background: #ffffff; + background: #fff; border: 1px solid var(--tutor-border-color); - box-shadow: 0px 6px 20px rgba(28, 49, 104, 0.1); + box-shadow: 0 6px 20px rgb(28 49 104 / 10%); border-radius: 6px; position: absolute; width: 100%; @@ -10,10 +10,8 @@ margin-top: 6px; z-index: 4; font-size: 16px; - max-height: 554px; overflow-y: auto; - transition: 0.3s ease; opacity: 0; visibility: hidden; @@ -23,14 +21,15 @@ &.show { opacity: 1; visibility: visible; - transform: translateY(0px); + transform: translateY(0); } .search_result_title { display: flex; align-items: center; + > svg { - margin-right: 4px; + margin-inline-end: 4px; } } @@ -45,8 +44,9 @@ vertical-align: middle; justify-content: space-between; box-sizing: border-box; + &:hover { - background-color: rgba(0, 0, 0, 0.03); + background-color: rgb(0 0 0 / 3%); } } @@ -57,11 +57,11 @@ } .no_item svg { - margin-right: 7px; + margin-inline-end: 7px; } .search_result_title i { - padding-right: 10px; + padding-inline-end: 10px; font-size: 20px; } diff --git a/assets/src/scss/admin-dashboard/v2/components/_tooltip.scss b/assets/src/scss/admin-dashboard/v2/components/_tooltip.scss index 20d44aaeba..8610645d2b 100644 --- a/assets/src/scss/admin-dashboard/v2/components/_tooltip.scss +++ b/assets/src/scss/admin-dashboard/v2/components/_tooltip.scss @@ -8,17 +8,16 @@ $arrow: 5px; cursor: pointer; &.tooltip-icon { - margin-left: 12px; + margin-inline-start: 12px; color: var(--tutor-color-muted); .rtl & { - margin-left: 0; - margin-right: 12px; + margin-inline: 0 12px; } - &:after { + &::after { content: "\e99a"; - font-family: "tutor"; + font-family: tutor; } } @@ -29,11 +28,10 @@ $arrow: 5px; background: var(--tutor-body-color); color: $tooltip-txt; padding: 10px 15px; - text-align: left; + text-align: start; word-break: break-word; border-radius: 10px; z-index: 999999; - opacity: 0; visibility: hidden; transition: 200ms ease-in; @@ -50,13 +48,15 @@ $arrow: 5px; &:hover .tooltip-txt { opacity: 1; visibility: visible; - filter: blur(0px); + filter: blur(0); } .tooltip-top { bottom: calc(100% + 8px); + &::after { top: 100%; + /* stylelint-disable-next-line property-layout-mappings -- margin-left is physical, so left keeps the arrow centered in RTL */ left: 50%; margin-left: -$arrow; border-top-color: var(--tutor-body-color); @@ -65,8 +65,10 @@ $arrow: 5px; .tooltip-bottom { top: calc(100% + 8px); + &::after { bottom: 100%; + /* stylelint-disable-next-line property-layout-mappings -- margin-left is physical, so left keeps the arrow centered in RTL */ left: 50%; margin-left: -$arrow; border-bottom-color: var(--tutor-body-color); @@ -75,6 +77,7 @@ $arrow: 5px; .tooltip-top, .tooltip-bottom { + /* stylelint-disable-next-line property-layout-mappings -- translateX(-50%) is physical, so left keeps the tooltip centered in RTL */ left: 50%; transform: translateX(-50%); } @@ -84,6 +87,7 @@ $arrow: 5px; // -> arrow on top // top: -$arrow; top: -8px; + &::after { top: 18px; margin-top: -$arrow; @@ -93,6 +97,7 @@ $arrow: 5px; &.arrow-center { top: 50%; transform: translateY(-50%); + &::after { top: 50%; transform: translateY(-50%); @@ -102,18 +107,20 @@ $arrow: 5px; } .tooltip-right { - left: calc(100% + 8px); + inset-inline-start: calc(100% + 8px); + &::after { - right: 100%; - border-right-color: var(--tutor-body-color); + inset-inline-end: 100%; + border-inline-end-color: var(--tutor-body-color); } } .tooltip-left { - right: calc(100% + 8px); + inset-inline-end: calc(100% + 8px); + &::after { - left: 100%; - border-left-color: var(--tutor-body-color); + inset-inline-start: 100%; + border-inline-start-color: var(--tutor-body-color); } } } @@ -123,43 +130,54 @@ $arrow: 5px; .tooltip-top { transform: translateX(-50%) translateY(-2px); } + .tooltip-bottom { transform: translateX(-50%) translateY(2px); } + .tooltip-right { transform: translateX(2px); } + .tooltip-left { transform: translateX(-2px); } + &:hover { .tooltip-top { transform: translateX(-50%) translateY(0); } + .tooltip-bottom { transform: translateX(-50%) translateY(0); } + .tooltip-right { transform: translateX(0); } + .tooltip-left { transform: translateX(0); } + // -> arrow on center .arrow-center { &.tooltip-right { - transform: translateY(-50%) translateX(0px); + transform: translateY(-50%) translateX(0); } + &.tooltip-left { - transform: translateY(-50%) translateX(0px); + transform: translateY(-50%) translateX(0); } } } + // -> arrow on center .arrow-center { &.tooltip-right { transform: translateY(-50%) translateX(2px); } + &.tooltip-left { transform: translateY(-50%) translateX(-2px); } diff --git a/assets/src/scss/admin-dashboard/v2/conditionals/conditionals.scss b/assets/src/scss/admin-dashboard/v2/conditionals/conditionals.scss index 20096036ce..c5039f3b52 100644 --- a/assets/src/scss/admin-dashboard/v2/conditionals/conditionals.scss +++ b/assets/src/scss/admin-dashboard/v2/conditionals/conditionals.scss @@ -5,13 +5,15 @@ &:nth-child(3) { position: relative; cursor: not-allowed; - &:before { + + &::before { content: ''; position: absolute; inset: 0; z-index: 1; - background: rgba(255, 255, 255, 0.55); + background: rgb(255 255 255 / 55%); } + textarea, select, input { @@ -36,9 +38,10 @@ img { overflow: hidden; position: relative; - &:empty:before { + + &:empty::before { content: '\e93a'; - font-family: 'tutor' !important; + font-family: tutor !important; font-size: 2em; position: absolute; inset: 0; @@ -50,6 +53,7 @@ } } } + .tutor-option-field-input.image-previewer { img { &::before { @@ -61,7 +65,9 @@ display: flex; align-items: center; justify-content: center; + @include svg-image-uppoad; + background-repeat: no-repeat; background-position: center; } @@ -73,6 +79,7 @@ background: #f3f3f3; border-radius: 3px; display: none; + @include spinner(#1a73aa, #e8e8e8); &.is-loading { @@ -88,6 +95,7 @@ .delete-btn { visibility: visible; } + img { &::before { visibility: hidden; @@ -102,12 +110,13 @@ position: relative; display: inline-flex; z-index: 1; + &::before { content: ''; position: absolute; inset: 1px -6px; - background: rgba(var(--tutor-color-warning-rgb), 0.2); - border: 1px solid rgba(var(--tutor-color-warning-rgb), 0.3); + background: rgb(var(--tutor-color-warning-rgb), 0.2); + border: 1px solid rgb(var(--tutor-color-warning-rgb), 0.3); box-sizing: border-box; border-radius: 3px; z-index: -1; @@ -120,6 +129,7 @@ from { opacity: 0; } + to { opacity: 1; } diff --git a/assets/src/scss/admin-dashboard/v2/conflict-override/conflict-override.scss b/assets/src/scss/admin-dashboard/v2/conflict-override/conflict-override.scss index f98825cb5b..07c43ece1b 100644 --- a/assets/src/scss/admin-dashboard/v2/conflict-override/conflict-override.scss +++ b/assets/src/scss/admin-dashboard/v2/conflict-override/conflict-override.scss @@ -3,9 +3,10 @@ float: unset; width: unset; } + .tutor-option-field-input { - input[type='radio']:checked:before, - input[type='checkbox']:checked:before { + input[type='radio']:checked::before, + input[type='checkbox']:checked::before { display: none; } } diff --git a/assets/src/scss/admin-dashboard/v2/custom-pages/_course-tagcategory.scss b/assets/src/scss/admin-dashboard/v2/custom-pages/_course-tagcategory.scss index 6e4f382e43..cd1392f81f 100644 --- a/assets/src/scss/admin-dashboard/v2/custom-pages/_course-tagcategory.scss +++ b/assets/src/scss/admin-dashboard/v2/custom-pages/_course-tagcategory.scss @@ -2,14 +2,14 @@ &.taxonomy-course-category, &.taxonomy-course-tag { .button { - padding-left: 20px; - padding-right: 20px; + padding-inline: 20px; } + select { - padding-left: 20px; - padding-right: 40px; + padding-inline: 20px 40px; background-position: right 10px top 55%; } + .button, select { border-radius: 6px; @@ -54,23 +54,27 @@ td { background: #f4f6f9; } + tr { > * { &:first-child { - border-top-left-radius: 6px; + border-start-start-radius: 6px; } + &:last-child { - border-top-right-radius: 6px; + border-start-end-radius: 6px; } } } } + tbody { tr { &:nth-child(odd) th, &:nth-child(odd) td { background: #fff; } + &:nth-child(even) th, &:nth-child(even) td { background: #fcfcfd; diff --git a/assets/src/scss/front/__archive.scss b/assets/src/scss/front/__archive.scss index 065996e019..c5377b29d4 100644 --- a/assets/src/scss/front/__archive.scss +++ b/assets/src/scss/front/__archive.scss @@ -12,7 +12,7 @@ .tutor-error-msg { margin: 10px 0; padding: 10px; - border-radius: 3px 3px 3px 3px; + border-radius: 3px; } .tutor-info-msg { @@ -61,7 +61,7 @@ button.tutor-profile-photo-upload-btn { color: #fff; display: block; width: 100%; - text-align: CENTER; + text-align: center; padding: 9px 0; } @@ -74,7 +74,7 @@ button.tutor-profile-photo-upload-btn:hover { .tutor-profile-photo-delete-btn { position: absolute; color: #ff000c; - right: 10px; + inset-inline-end: 10px; top: 10px; } @@ -108,7 +108,7 @@ Instructor .single-instructor-wrap .tutor-instructor-left { flex: 0 0 auto; - padding-right: 30px; + padding-inline-end: 30px; } @media (max-width: 767px) { @@ -125,8 +125,8 @@ Instructor } .single-instructor-wrap .instructor-name { - float: left; - padding-left: 20px; + float: inline-start; + padding-inline-start: 20px; max-width: 180px; } @@ -148,10 +148,11 @@ Instructor .single-instructor-wrap .single-instructor-bottom { padding: 15px 20px; - text-align: right; + text-align: end; overflow: hidden; + @media (max-width: 767px) { - text-align: left; + text-align: start; } } @@ -160,24 +161,24 @@ Instructor } .single-instructor-wrap .single-instructor-bottom .ratings { - float: left; + float: inline-start; } .single-instructor-wrap .single-instructor-bottom .ratings i { - margin-right: 4px; + margin-inline-end: 4px; } .single-instructor-wrap .single-instructor-bottom .courses, .single-instructor-wrap .single-instructor-bottom .students { display: inline-block; - margin-left: 20px; + margin-inline-start: 20px; } .single-instructor-wrap .single-instructor-bottom .courses i, .single-instructor-wrap .single-instructor-bottom .students i { font-size: 18px; display: inline-block; - margin-right: 2px; + margin-inline-end: 2px; vertical-align: middle; } @@ -207,24 +208,26 @@ Instructor /* ********************* */ -/*start global login form*/ +/* start global login form */ /* ********************* */ .tutor-login-wrap, #tutor-registration-wrap { max-width: 520px; margin: 0 auto; - padding: 40px 0 32px 0; + padding: 40px 0 32px; border: 1px solid #ececed; - box-shadow: 0px 2px 4px -2px rgba(16, 24, 40, 0.0588235294), 0px 4px 8px -2px rgba(16, 24, 40, 0.1019607843); + box-shadow: 0 2px 4px -2px rgb(16 24 40 / 5.88%), 0 4px 8px -2px rgb(16 24 40 / 10.2%); border-radius: 8px; } .tutor-login-form-wrapper, #tutor-registration-form { - padding: 24px 24px; + padding: 24px; + .tutor-password-strength-checker { .show-hide-btn { top: 45%; + @media (max-width: 767px) { top: 42%; } @@ -239,7 +242,7 @@ Instructor .tutor-login-wrap, #tutor-login-form { input.tutor-form-control { - background-color: #ffffff; + background-color: #fff; border-color: #ececed !important; font-size: 14px; line-height: 22px; @@ -249,7 +252,7 @@ Instructor } &:focus { - box-shadow: 0px 0px 0px 2px #90A0F7; + box-shadow: 0 0 0 2px #90A0F7; border-color: #a4bcf4 !important; } } @@ -263,13 +266,13 @@ Instructor .tutor-login-rememeber-wrap { overflow: hidden; - text-align: right; + text-align: end; margin-bottom: 30px; } .tutor-login-rememeber-wrap p { display: inline-block; - float: left; + float: inline-start; } .tutor-login-rememeber-wrap p, @@ -297,7 +300,7 @@ Instructor margin-top: 15px; } -/*course login*/ +/* course login */ .tutor-course-login-wrap h4 { font-size: 42px; @@ -320,7 +323,7 @@ Instructor /* ********************* */ -/*start registration form*/ +/* start registration form */ /* ********************* */ @@ -347,7 +350,7 @@ Instructor box-shadow: none; margin-bottom: 20px; border-radius: 4px; - background: #ffffff; + background: #fff; line-height: 48px; padding: 0; text-indent: 15px; @@ -375,44 +378,20 @@ Instructor .tutor-option-field input:not([type='submit']):focus, .tutor-form-group textarea:focus, .tutor-form-group input:not([type='submit']):focus { - background: #ffffff; + background: #fff; border-color: var(--tutor-color-primary) !important; } -.tutor-option-field textarea::-webkit-input-placeholder, -.tutor-option-field input::-webkit-input-placeholder, -.tutor-form-group textarea::-webkit-input-placeholder, -.tutor-form-group input::-webkit-input-placeholder { - color: #b0b6c8; - opacity: 1; -} - -.tutor-option-field textarea::-moz-placeholder, -.tutor-option-field input::-moz-placeholder, -.tutor-form-group textarea::-moz-placeholder, -.tutor-form-group input::-moz-placeholder { - color: #b0b6c8; - opacity: 1; -} - -.tutor-option-field textarea:-ms-input-placeholder, -.tutor-option-field input:-ms-input-placeholder, -.tutor-form-group textarea:-ms-input-placeholder, -.tutor-form-group input:-ms-input-placeholder { - color: #b0b6c8; - opacity: 1; -} - -.tutor-option-field textarea:-moz-placeholder, -.tutor-option-field input:-moz-placeholder, -.tutor-form-group textarea:-moz-placeholder, -.tutor-form-group input:-moz-placeholder { +.tutor-option-field textarea::placeholder, +.tutor-option-field input::placeholder, +.tutor-form-group textarea::placeholder, +.tutor-form-group input::placeholder { color: #b0b6c8; opacity: 1; } .tutor-form-group.tutor-reg-form-btn-wrap { - text-align: right; + text-align: end; } .tutor-option-field p.desc { @@ -431,7 +410,7 @@ Instructor } .tutor-option-gorup-fields-wrap .tutor-lesson-video-runtime .tutor-option-group-field { - padding-right: 30px; + padding-inline-end: 30px; } /* ********************* */ @@ -462,6 +441,7 @@ Instructor margin: 0 0 20px; overflow: hidden; line-height: 1; + .subscription-details { font-size: var(--tutor-text-size); display: block; @@ -475,8 +455,8 @@ Instructor } .tutor-price-preview-box .price del + ins { - margin-left: 0; - float: left; + margin-inline-start: 0; + float: inline-start; } /* ************************ */ @@ -515,12 +495,12 @@ Instructor .tutor-review-individual-item .review-left { width: 200px; - float: left; + float: inline-start; overflow: hidden; } .tutor-review-individual-item .review-content { - padding-left: 200px; + padding-inline-start: 200px; } @media (max-width: 991px) { @@ -529,14 +509,15 @@ Instructor float: none; margin-bottom: 25px; } + .tutor-review-individual-item .review-content { - padding-left: 0; + padding-inline-start: 0; } } .tutor-review-individual-item .review-avatar { width: 50px; - float: left; + float: inline-start; } .tutor-review-individual-item .review-avatar img { @@ -548,8 +529,8 @@ Instructor } .tutor-review-individual-item .tutor-review-user-info { - float: left; - padding-left: 20px; + float: inline-start; + padding-inline-start: 20px; } .tutor-review-individual-item .tutor-review-user-info p { @@ -569,8 +550,8 @@ Instructor text-align: center; display: block; line-height: 50px; - color: #ffffff; - text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4); + color: #fff; + text-shadow: 0 1px 2px rgb(0 0 0 / 40%); } .course-avg-rating-wrap .course-avg-rating { @@ -598,7 +579,7 @@ Instructor .individual-review-rating-wrap i, .course-avg-rating-html i { - margin-right: 4px; + margin-inline-end: 4px; color: #f8c51c; } @@ -666,7 +647,7 @@ Instructor .prerequisites-course-lists li:first-child > span { position: absolute; - left: 20px; + inset-inline-start: 20px; top: 13px; } @@ -680,13 +661,12 @@ Instructor border-radius: 2px; height: auto; margin: 0 !important; - box-shadow: 0 0 1px rgba(0, 0, 0, 0.08); + box-shadow: 0 0 1px rgb(0 0 0 / 8%); } .prerequisites-course-lists li .prerequisites-course-title { - -webkit-box-flex: 1; flex-grow: 1; - padding-left: 15px; + padding-inline-start: 15px; -webkit-transition: 300ms; transition: 300ms; } @@ -712,7 +692,7 @@ Instructor display: inline-block; text-align: center; border-radius: 2px; - margin-right: 3px; + margin-inline-end: 3px; } .prerequisites-course-checkmark.is-complete i { @@ -720,81 +700,7 @@ Instructor color: #fff; } -.rtl .tutor-progress-bar .tutor-progress-filled:after { - left: auto; - right: var(--tutor-progress-left); - -webkit-transform: translateY(-50%) translateX(50%); - transform: translateY(-50%) translateX(50%); -} - -.rtl .tutor-progress-percent { - padding-left: 0; - padding-right: 20px; -} - -.rtl .tutor-course-lesson h5 i { - margin-right: 0; - margin-left: 10px; -} - -.rtl .tutor-course-lesson h5 .lesson-preview-icon i { - margin-right: 10px; - margin-left: 0; -} - -.rtl .tutor-course-lesson h5 .tutor-lesson-duration { - -webkit-box-flex: 1; - flex-grow: 1; - text-align: left; -} - -.rtl .tutor-custom-list-style li { - padding-right: 25px; - padding-left: 0px; -} - -.rtl .tutor-custom-list-style li:before { - left: auto; - right: 0; -} - -.rtl .single-instructor-wrap .instructor-name { - float: right; -} - -.rtl .single-instructor-wrap .instructor-name { - padding-left: 0; - padding-right: 20px; -} - -.rtl .single-instructor-wrap .instructor-bio { - padding-left: 0; - padding-right: 260px; -} - -.rtl .tutor-lessons-under-topic .tutor-lesson-right-icons { - right: auto; - left: 15px; -} - -.rtl .tutor-lessons-under-topic .tutor-lesson-right-icons .tutor-lesson-complete { - margin-left: 0; - margin-right: 8px; -} -.rtl .tutor-single-lesson-button-group .tutor-single-lesson-button a > i:first-child, -.rtl .tutor-topics-in-single-lesson .tutor-single-lesson-items a > i:first-child { - margin-right: 0; - margin-left: 10px; -} - -.rtl .tutor-topbar-home-btn { - margin-left: 0; - margin-right: 20px; - @media screen and (max-width: 546px) { - margin-right: 10px; - } -} /** * Tutor Front-End Modal @@ -807,17 +713,17 @@ Instructor .label-status-completed { background-color: #4bd863; - color: #ffffff; + color: #fff; } .label-status-cancelled { background-color: #fd6a03; - color: #ffffff; + color: #fff; } .label-status-on-hold { background-color: #db5382; - color: #ffffff; + color: #fff; } .tutor-lesson-content-area h2 { @@ -848,7 +754,7 @@ Instructor height: auto; } -/*Assignment Information*/ +/* Assignment Information */ .tutor-assignment-information { font-size: 16px; @@ -880,7 +786,7 @@ Instructor padding: 15px 17px; border: 1px solid #dcdfe5; overflow: hidden; - margin-right: 15px; + margin-inline-end: 15px; border-radius: 4px; cursor: pointer; } @@ -888,8 +794,8 @@ Instructor .tutor-assignment-attachment-upload-wrap .tutor-form-group label i { font-size: 30px; line-height: 30px; - float: left; - margin-right: 12px; + float: inline-start; + margin-inline-end: 12px; } .tutor-assignment-attachment-upload-wrap .tutor-form-group label span { @@ -915,7 +821,7 @@ Lesson Edit Modal */ .lesson-modal-close-wrap a { - background: #ffffff; + background: #fff; width: 50px; height: 59px; display: inline-block; @@ -924,7 +830,7 @@ Lesson Edit Modal color: #3a3d42; font-size: 15px; position: absolute; - right: 0; + inset-inline-end: 0; top: 0; } @@ -958,9 +864,8 @@ Lesson Edit Modal padding: 10px 20px; background-color: #fff; width: 100%; - position: sticky; bottom: 0; - position: -webkit-sticky; + position: sticky; } .tutor-option-field .tutor-lesson-edit-feature-img { @@ -977,9 +882,10 @@ Lesson Edit Modal color: #e02424; } -.updating-icon:before { - font-family: 'tutor'; - //margin-right: 5px; +.updating-icon::before { + font-family: tutor; + + // margin-right: 5px; content: '\e91d'; -webkit-animation: spin 1s linear infinite; animation: spin 1s linear infinite; @@ -992,6 +898,7 @@ Lesson Edit Modal padding: 20px; margin-bottom: 10px; } + .quiz-modal-btn-cancel, .quiz-modal-btn-back { color: #4b5981; @@ -1024,14 +931,11 @@ Lesson Edit Modal .tutor-quiz-builder-row { display: flex; align-items: center; - margin-left: -10px; - margin-right: -10px; + margin-inline: -10px; } .tutor-quiz-builder-col { - padding-left: 10px; - padding-right: 10px; - -webkit-box-flex: 1; + padding-inline: 10px; flex-grow: 1; } @@ -1090,7 +994,7 @@ Lesson Edit Modal .question-type-pro { color: #fff; font-size: 9px; - right: 11px; + inset-inline-end: 11px; position: absolute; top: 50%; -webkit-transform: translateY(-50%); @@ -1108,7 +1012,7 @@ Lesson Edit Modal } .quiz-builder-question .question-sorting { - margin-right: 10px; + margin-inline-end: 10px; line-height: 22px; } @@ -1127,7 +1031,7 @@ Lesson Edit Modal text-overflow: ellipsis; overflow: hidden; white-space: nowrap; - margin-right: 10px; + margin-inline-end: 10px; } .quiz-builder-question .question-icon { @@ -1138,7 +1042,7 @@ Lesson Edit Modal display: block; padding: 0 0 0 10px; font-size: 20px; - color: rgba(57, 60, 64, 0.4); + color: rgb(57 60 64 / 40%); line-height: 44px; } @@ -1166,7 +1070,7 @@ span.tutor-quiz-answer-title { } .tutor-question-answer-image { - margin-right: 10px; + margin-inline-end: 10px; } .tutor-question-answer-image img { @@ -1191,7 +1095,7 @@ span.tutor-quiz-answer-title { .tutor-video-embeded-wrap embed { position: absolute; top: 0; - left: 0; + inset-inline-start: 0; width: 100%; height: 100%; } @@ -1207,14 +1111,14 @@ Video MetaBox .select2-selection__rendered [class^='tutor-icon-'] { display: inline-block; vertical-align: top; - margin-right: 6px; + margin-inline-end: 6px; } .select2-results__options [class^='tutor-icon-'] { color: var(--tutor-color-primary); display: inline-block; vertical-align: top; - margin-right: 6px; + margin-inline-end: 6px; } .select2-results__option--highlighted [class^='tutor-icon-'] { @@ -1249,7 +1153,7 @@ Content Drip (Pro) } .content-drip-wrap-flex .content-drip-left { - margin-right: 50px; + margin-inline-end: 50px; } .content-drip-wrap-flex ul { @@ -1271,7 +1175,7 @@ GradeBook .gradename-bg { text-align: center; - color: #ffffff; + color: #fff; height: 32px; min-width: 32px; font-size: 16px; @@ -1280,7 +1184,7 @@ GradeBook display: inline-block; border-radius: 20px; font-weight: bold; - margin-right: 7px; + margin-inline-end: 7px; } .gradename-outline { @@ -1293,7 +1197,7 @@ GradeBook display: inline-block; border-radius: 20px; border: 2px solid; - margin-right: 7px; + margin-inline-end: 7px; } .generate-course-gradebook-btn-wrap { @@ -1317,7 +1221,7 @@ table.course-single-gradebooks { table.course-single-gradebooks th { padding: 1em 1.41575em; - text-align: left; + text-align: start; vertical-align: top; border-bottom: 1px solid #dcdfe5; } @@ -1327,14 +1231,14 @@ table.course-single-gradebooks th { } table.course-single-gradebooks thead th { - background-color: rgba(220, 223, 229, 0.14); + background-color: rgb(220 223 229 / 14%); padding: 1.41575em; vertical-align: middle; } table.course-single-gradebooks tbody td { border-bottom: 1px solid #dcdfe5; - background-color: #ffffff !important; + background-color: #fff !important; } table.course-single-gradebooks a { @@ -1351,12 +1255,12 @@ table.course-single-gradebooks a { .text-label.submitted-assignment-grade-pass { background-color: #86b223; - color: #ffffff; + color: #fff; } .text-label.submitted-assignment-grade-failed { background-color: #d71830; - color: #ffffff; + color: #fff; } /** @@ -1383,7 +1287,7 @@ table.course-single-gradebooks a { } .tutor-bp-message-recipient-avatar-wrap { - margin-right: 35px; + margin-inline-end: 35px; } .tutor-bp-message-recipient-header .tutor-bp-thread-recipient-name h3 { @@ -1420,7 +1324,7 @@ table.course-single-gradebooks a { line-height: 1.7; display: block; color: #54616d; - padding-left: 10px; + padding-inline-start: 10px; } .tutor-bp-enrolled-courses-wrap ul li a:hover { @@ -1454,6 +1358,7 @@ table.course-single-gradebooks a { ins { text-decoration: none; } + del { font-weight: 400; font-size: 15px; @@ -1472,14 +1377,14 @@ table.course-single-gradebooks a { @media only screen and (min-width: 1200px) { .tutor-course-list-pagination.tutor-pagination { width: 80%; - margin: 50px auto 0px; + margin: 50px auto 0; } } @media only screen and (max-width: 1199px) { .tutor-course-list-pagination.tutor-pagination { width: 90%; - margin: 50px auto 0px; + margin: 50px auto 0; } } diff --git a/assets/src/scss/front/__dashboard_announcements.scss b/assets/src/scss/front/__dashboard_announcements.scss index d424bed068..c7b829909a 100644 --- a/assets/src/scss/front/__dashboard_announcements.scss +++ b/assets/src/scss/front/__dashboard_announcements.scss @@ -1,12 +1,15 @@ .tutor-dashboard-announcement-sorting-wrap { display: flex; column-gap: 15px; + div:nth-child(1) { flex-basis: 50%; } + div:nth-child(2) { flex-basis: 20%; } + div:nth-child(3) { flex-basis: 30%; } @@ -14,13 +17,15 @@ .tutor-announcement-datepicker { position: relative; + input, i { position: absolute; } + i { top: 50%; - right: 10px; - color: rgba(62, 100, 222, 1); + inset-inline-end: 10px; + color: rgb(62 100 222 / 100%); } } @@ -29,6 +34,7 @@ table.frontend-dashboard-table { tr { td[data-th="Date"] { vertical-align: baseline; + div.td-datetime { margin-top: 3px; } diff --git a/assets/src/scss/front/__dashboard_assignment.scss b/assets/src/scss/front/__dashboard_assignment.scss index 891f687796..eec796ae2a 100644 --- a/assets/src/scss/front/__dashboard_assignment.scss +++ b/assets/src/scss/front/__dashboard_assignment.scss @@ -7,17 +7,21 @@ .submitted-assignments-sorting-wrap { margin-bottom: 30px; + .tutor-form-group { display: flex; align-items: center; flex-basis: 25% !important; + label, select { margin-bottom: 0; } + label { flex-basis: 35%; } + select { height: 40px; } @@ -28,12 +32,15 @@ .student-column { display: flex; align-items: center; + .student-avatar { width: 34px; - margin-right: 10px; + margin-inline-end: 10px; + img { border-radius: 50%; } + span { display: block; width: 34px; @@ -44,6 +51,7 @@ text-align: center; } } + .student-details { h4, p { @@ -52,6 +60,7 @@ } } } + span.review-required, span.result-pass, span.result-fail { @@ -62,28 +71,35 @@ padding: 4px 11px; border-radius: 2px; } + span.result-pass { background: var(--tutor-color-success); } + span.review-required { background: #f5b30d; } } + .tutor-assignment-review-header { p span { font-weight: 600; color: var(--tutor-body-color); } } + .tutor-assignment-submitted-page { border-bottom: none; + .assignment-info { display: flex; align-items: center; + p { - margin-right: 15px; + margin-inline-end: 15px; } } + h3 { margin: 5px 0; } diff --git a/assets/src/scss/front/__dashboard_quiz_review.scss b/assets/src/scss/front/__dashboard_quiz_review.scss index 21c4fccc5d..faa21cbc72 100644 --- a/assets/src/scss/front/__dashboard_quiz_review.scss +++ b/assets/src/scss/front/__dashboard_quiz_review.scss @@ -3,15 +3,18 @@ .attempt-view-top { display: flex; justify-content: space-between; + .attempt-info-col { display: inline-flex; align-items: center; max-width: 30%; } } + .attempt-view-bottom .attempt-info-col { align-items: flex-start; } + .attempt-info-content { span.result-review-required, span.result-pass, @@ -21,15 +24,18 @@ font-weight: 400; color: #fff; padding: 1px 4px; - margin-right: 13px; + margin-inline-end: 13px; border-radius: 2px; } + span.result-pass { background: var(--tutor-color-success); } + span.result-review-required { background: #f5b30d; } + h4, h5 { font-size: 14px; @@ -38,6 +44,7 @@ color: #7a7f85; font-weight: 400; } + h4 a, h4 { font-weight: 700; @@ -45,11 +52,13 @@ margin-top: 7px; } } + .attempt-view-top { padding-bottom: 30px; margin-bottom: 30px; border-bottom: 1px solid #dcdfe5; } + .attempt-view-bottom { margin-bottom: 60px; } @@ -58,8 +67,10 @@ .attempt-user-details { display: flex; align-items: center; + .attempt-user-avatar { - padding-right: 20px; + padding-inline-end: 20px; + img { display: block; width: 70px; @@ -67,6 +78,7 @@ border-radius: 50%; } } + .attempt-info-content h4 { font-size: 18px; } @@ -76,23 +88,27 @@ display: flex; margin-bottom: 60px; justify-content: space-between; + p { margin: 0; display: inline-flex; align-items: center; + &.attempt-review-notice i { font-size: 16px; color: #f5c813; - margin-right: 9px; + margin-inline-end: 9px; } + &.attempt-review-at > span { color: var(--tutor-color-primary); - margin-right: 7px; + margin-inline-end: 7px; font-size: 16px; } + > strong { font-weight: 400; - margin-right: 5px; + margin-inline-end: 5px; } } } @@ -105,8 +121,8 @@ align-items: center; .back-to-quiz-btn { - margin-left: 10px; - color: #ffffff !important; + margin-inline-start: 10px; + color: #fff !important; } } @@ -123,8 +139,9 @@ color: #fff; display: inline-block; border-radius: 2px; - margin-right: 6px; + margin-inline-end: 6px; } + .tutor-status-blocked-context i, .quiz-incorrect-answer-text i { background: #f44337; diff --git a/assets/src/scss/front/_announcements.scss b/assets/src/scss/front/_announcements.scss index 5784089623..5b0da9a8b7 100644 --- a/assets/src/scss/front/_announcements.scss +++ b/assets/src/scss/front/_announcements.scss @@ -27,7 +27,7 @@ i { top: 50%; - right: 5px; - color: rgba(62, 100, 222, 1); + inset-inline-end: 5px; + color: rgb(62 100 222 / 100%); } } diff --git a/assets/src/scss/front/_cart.scss b/assets/src/scss/front/_cart.scss index 36dd512138..911be37716 100644 --- a/assets/src/scss/front/_cart.scss +++ b/assets/src/scss/front/_cart.scss @@ -1,15 +1,14 @@ .tutor-cart-page { - padding: 80px 0px; + padding: 80px 0; @include breakpoint-max(mobile) { - padding: 40px 0px; + padding: 40px 0; } .tutor-cart-course-list { display: flex; flex-direction: column; gap: 8px; - border: 1px solid var(--tutor-border-color); border-radius: 6px; } @@ -74,7 +73,7 @@ li { font-size: 13px; line-height: 18px; - color: #00000099; + color: #0009; position: relative; &:not(&:last-child) { @@ -82,17 +81,18 @@ content: ""; position: absolute; top: 4px; - right: -20px; + inset-inline-end: -20px; height: 10px; width: 10px; background: #E3E6EB; border-radius: 50%; } + &::after { content: ""; position: absolute; top: 6px; - right: -18px; + inset-inline-end: -18px; height: 6px; width: 6px; background-color: #4B505C; @@ -103,7 +103,7 @@ } .tutor-cart-course-price-wrapper { - margin-left: auto; + margin-inline-start: auto; display: flex; flex-direction: column; justify-content: space-between; @@ -111,7 +111,7 @@ @include breakpoint-max(mobile) { flex-direction: row; - margin-left: 0; + margin-inline-start: 0; align-items: start; } @@ -182,7 +182,7 @@ font-size: 24px; line-height: 32px; color: var(--tutor-body-color); - padding: 0px; + padding: 0; margin-bottom: 24px; } diff --git a/assets/src/scss/front/_checkout.scss b/assets/src/scss/front/_checkout.scss index 32ca9d842c..250c438a72 100644 --- a/assets/src/scss/front/_checkout.scss +++ b/assets/src/scss/front/_checkout.scss @@ -1,11 +1,11 @@ .tutor-checkout-page { - padding: 40px 0px; + padding: 40px 0; input[type="text"], input[type="email"], select { line-height: 36px; - padding: 0px 10px; + padding: 0 10px; text-indent: 0; } @@ -18,34 +18,41 @@ .tutor-checkout-details-inner { background-color: #FAFAFA; border-radius: 5px; - padding: 24px 24px 12px 24px; + padding: 24px 24px 12px; } } + .tutor-checkout-detail-item { - padding: 24px 0px; + padding: 24px 0; + &:not(:last-child) { border-bottom: 1px solid var(--tutor-border-color); } + @include breakpoint-max(mobile) { padding: 16px; } } + .tutor-checkout-courses { display: flex; flex-direction: column; gap: 24px; } + .tutor-checkout-course-item { display: flex; flex-direction: column; color: var(--tutor-body-color); } + .tutor-checkout-course-content { display: flex; align-items: start; justify-content: space-between; gap: 24px; } + .tutor-checkout-course-thumb-title { display: grid; grid-template-columns: 56px 1fr; @@ -58,6 +65,7 @@ margin-top: 6px; } } + .tutor-checkout-enrollment-fee { display: flex; align-items: start; @@ -65,6 +73,7 @@ font-size: 14px; margin-top: 16px; } + .tutor-checkout-course-plan-badge { width: fit-content; display: inline-block; @@ -76,11 +85,12 @@ border-radius: 2px; padding: 4px 8px; } + .tutor-checkout-course-title { font-weight: 500; font-size: 16px; line-height: 26px; - margin: 0px; + margin: 0; a { color: var(--tutor-body-color); @@ -91,6 +101,7 @@ } } } + .tutor-checkout-coupon-badge { display: flex; align-items: center; @@ -120,22 +131,26 @@ font-size: 14px; } } + .tutor-checkout-discount-price { font-size: 13px; color: #767c8e; text-decoration: line-through; } + .tutor-checkout-summary { display: flex; flex-direction: column; gap: 8px; } + .tutor-checkout-summary-item { display: flex; align-items: center; justify-content: space-between; color: var(--tutor-body-color); } + .tutor-checkout-separator { line-height: 18px; margin-top: 16px; @@ -159,7 +174,7 @@ background-color: var(--tutor-border-color); position: absolute; top: 8px; - left: 0; + inset-inline-start: 0; } } @@ -173,7 +188,7 @@ } .tutor-apply-coupon-form { - background-color: #ffffff; + background-color: #fff; border: 1px solid var(--tutor-border-color); border-radius: 6px; padding: 4px; @@ -211,7 +226,7 @@ .tutor-tax-breakdown-modal { position: fixed; top: 0; - left: 0; + inset-inline-start: 0; width: 100%; height: 100%; z-index: 99999; @@ -220,18 +235,20 @@ position: absolute; inset: 0; z-index: 1; - background: rgba(22, 22, 22, 0.7); + background: rgb(22 22 22 / 70%); } + &__content { z-index: 2; position: absolute; top: 50%; + /* stylelint-disable-next-line property-layout-mappings -- translate(-50%) is physical, so left keeps the modal centered in RTL */ left: 50%; transform: translate(-50%, -50%); - background-color: #ffffff; + background-color: #fff; border-radius: 6px; padding: 24px; - box-shadow: 0px 8px 24px 0px rgba(17, 18, 19, 0.12); + box-shadow: 0 8px 24px 0 rgb(17 18 19 / 12%); display: flex; flex-direction: column; gap: 16px; @@ -265,7 +282,7 @@ } & > span:not(:first-of-type) { - text-align: right; + text-align: end; font-weight: 600; } } @@ -274,8 +291,8 @@ .tutor-checkout-spinner { position: absolute; top: 12px; - right: 0px; - padding: 0px; + inset-inline-end: 0; + padding: 0; } .tutor-plan-trial-price { @@ -299,12 +316,13 @@ .tutor-form-label { display: none; } + .tutor-mb-16 { margin: 0!important; } .tutor-form-control { - border-radius: 0px; + border-radius: 0; height: 40px; } @@ -313,43 +331,43 @@ } .tutor-col-12:first-of-type .tutor-form-control { - border-top-left-radius: 6px; + border-start-start-radius: 6px; } .tutor-col-12:last-of-type .tutor-form-control { - border-bottom-left-radius: 6px; - border-bottom-right-radius: 6px; + border-end-start-radius: 6px; + border-end-end-radius: 6px; } @include breakpoint-min(desktop) { .tutor-col-sm-6:nth-of-type(odd) .tutor-form-control { - border-right: none!important; + border-inline-end: none!important; } .tutor-col-12:nth-of-type(2) .tutor-form-control { - border-top-right-radius: 6px; + border-start-end-radius: 6px; } } @include breakpoint-minmax(576, 767) { .tutor-col-sm-6:nth-of-type(odd) .tutor-form-control { - border-right: none!important; + border-inline-end: none!important; } .tutor-col-12:nth-of-type(2) .tutor-form-control { - border-top-right-radius: 6px; + border-start-end-radius: 6px; } } @include breakpoint-minmax(768, 991) { .tutor-col-12:first-of-type .tutor-form-control { - border-top-right-radius: 6px; + border-start-end-radius: 6px; } } @include breakpoint-max(575) { .tutor-col-12:first-of-type .tutor-form-control { - border-top-right-radius: 6px; + border-start-end-radius: 6px; } } } @@ -360,11 +378,11 @@ flex-direction: column; border: 1px solid var(--tutor-border-color); border-radius: 6px; - background-color: #ffffff; + background-color: #fff; .tutor-checkout-payment-item { border: none; - margin: 0px; + margin: 0; background-color: transparent; display: flex; align-items: center; @@ -392,17 +410,17 @@ &.active { background-color: #E9EDFB; - box-shadow: 0px 0px 0px 1px #7391f0; + box-shadow: 0 0 0 1px #7391f0; border-color: transparent; &:first-of-type { - border-top-left-radius: 6px; - border-top-right-radius: 6px; + border-start-start-radius: 6px; + border-start-end-radius: 6px; } &:last-of-type { - border-bottom-left-radius: 6px; - border-bottom-right-radius: 6px; + border-end-start-radius: 6px; + border-end-end-radius: 6px; } } } diff --git a/assets/src/scss/front/_dashboard.scss b/assets/src/scss/front/_dashboard.scss index e3a15c7d2f..67c572153f 100644 --- a/assets/src/scss/front/_dashboard.scss +++ b/assets/src/scss/front/_dashboard.scss @@ -7,6 +7,7 @@ /* dashboard quiz attempts */ .tutor-dashboard-content { margin-bottom: 60px; + > h2 { margin-bottom: 20px; } @@ -79,7 +80,7 @@ display: inline-block; } -/* end dashboard content*/ +/* end dashboard content */ .tutor-dashboard-avater img { width: 70px; @@ -108,6 +109,7 @@ flex: 0 0 100%; max-width: 100%; } + .profile-completion-warning-details { margin-bottom: 10px; } @@ -138,7 +140,7 @@ } .date-range-input:last-child { - margin-right: 0; + margin-inline-end: 0; } .date-range-input:last-child button { @@ -150,7 +152,7 @@ box-shadow: none; line-height: 29px; margin: 0; - padding-right: 30px; + padding-inline-end: 30px; padding-top: 0; padding-bottom: 0; width: 100%; @@ -158,13 +160,13 @@ .date-range-input i.tutor-icon-calendar { position: absolute; - right: 10px; + inset-inline-end: 10px; top: 7px; } .date-range-input button { background-color: var(--tutor-color-primary); - color: #ffffff; + color: #fff; border: none; line-height: 30px; padding: 0 15px; @@ -185,7 +187,7 @@ table.tutor-dashboard-statement-table p { table.tutor-dashboard-statement-table p.small-text { font-size: 12px; - color: #666666; + color: #666; } /** ENd earning report **/ @@ -201,12 +203,14 @@ table.tutor-dashboard-statement-table p.small-text { .tutor-mycourse-delete { color: var(--tutor-color-muted); transition: 300ms; + i { line-height: inherit; display: inline-block; vertical-align: top; color: var(--tutor-color-primary); } + &:hover { color: var(--tutor-color-primary); } @@ -236,7 +240,7 @@ table.tutor-dashboard-statement-table p.small-text { margin-bottom: 0; } -//applies to small devices (landscape phones, less than 768px) +// applies to small devices (landscape phones, less than 768px) @media screen and (max-width: 767.98px) { .tutor-header-right-side { justify-content: flex-start; diff --git a/assets/src/scss/front/_denied.scss b/assets/src/scss/front/_denied.scss index e7241aa730..cc1b36a398 100644 --- a/assets/src/scss/front/_denied.scss +++ b/assets/src/scss/front/_denied.scss @@ -10,16 +10,20 @@ flex-direction: column; align-items: center; text-align: center; + img { margin-bottom: 30px; } + p { margin-bottom: 38px; } + h3 { font-size: 20px; font-weight: 500; } + p { font-size: 15px; font-weight: 400; diff --git a/assets/src/scss/front/_frontend_withdrawal.scss b/assets/src/scss/front/_frontend_withdrawal.scss index 4cb9ebf020..0ef4f3e4e6 100644 --- a/assets/src/scss/front/_frontend_withdrawal.scss +++ b/assets/src/scss/front/_frontend_withdrawal.scss @@ -3,14 +3,16 @@ .withdraw-history-table-title h4 { margin-top: 45px; } + table { .tutor-withdrawals-method { display: grid; grid-template-columns: 40px auto; - grid-gap: 15px; + gap: 15px; align-items: center; } } + table.withdrawals-history { border: 1px solid #dcdbdc; box-sizing: border-box; @@ -26,7 +28,7 @@ border: none; font-weight: normal; font-size: 13px; - text-align: left; + text-align: start; vertical-align: middle; & { @@ -39,8 +41,8 @@ } &:last-child { - text-align: right; - padding-right: 15px; + text-align: end; + padding-inline-end: 15px; width: 50px; } @@ -77,7 +79,7 @@ display: inline-block; font-weight: bold; font-size: 13px; - color: #ffffff; + color: #fff; background: gray; border-radius: 2px; padding: 3px 9px; @@ -85,9 +87,11 @@ &.status-approved { background: #24a148; } + &.status-pending { background: #ed9700; } + &.status-rejected { background: #f44337; } diff --git a/assets/src/scss/front/_instructor.scss b/assets/src/scss/front/_instructor.scss index 20e96d3a4f..1e67e0de7c 100644 --- a/assets/src/scss/front/_instructor.scss +++ b/assets/src/scss/front/_instructor.scss @@ -14,7 +14,7 @@ &-cover { .tutor-avatar { margin-top: -69px; - box-shadow: 0 0 0 1px var(--tutor-border-color), 0 0 0 6px #FFFFFF; + box-shadow: 0 0 0 1px var(--tutor-border-color), 0 0 0 6px #FFF; } } @@ -44,8 +44,10 @@ .tutor-instructor-filter { overflow: auto; + & > div { - float: left; + float: inline-start; + &:first-child { width: 230px; } @@ -95,7 +97,7 @@ .tutor-instructor-rejection-notice { width: 100%; clear: both; - margin: 41px 0 0 0; + margin: 41px 0 0; background: #fff7f7; padding: 16.5px; border-radius: 6px; @@ -110,12 +112,12 @@ color: #f44337; font-size: 27px; display: inline-block; - margin-right: 14px; + margin-inline-end: 14px; } } a { - float: right; + float: inline-end; color: #f44337; cursor: pointer; font-weight: bold; @@ -133,6 +135,7 @@ Instructor customize filters styles * { box-sizing: border-box; } + .course-category-filter { .tutor-form-check { label.text-medium-caption { @@ -140,6 +143,7 @@ Instructor customize filters styles } } } + .tutor-instructor-ratings-wrapper { padding-top: 33px; border-top: 1px solid #E3E6EB; diff --git a/assets/src/scss/front/_order.scss b/assets/src/scss/front/_order.scss index b3c6e454e8..64bc584685 100644 --- a/assets/src/scss/front/_order.scss +++ b/assets/src/scss/front/_order.scss @@ -4,9 +4,8 @@ margin: 80px auto; padding: 48px 32px 32px; border-radius: 24px; - box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.06), 0px 0px 6px 0px rgba(0, 0, 0, 0.08); + box-shadow: 0 4px 4px 0 rgb(0 0 0 / 6%), 0 0 6px 0 rgb(0 0 0 / 8%); word-break: break-all; - display: flex; flex-direction: column; align-items: center; diff --git a/assets/src/scss/front/_select_dd_search.scss b/assets/src/scss/front/_select_dd_search.scss index 3cc47ae926..d2fe362652 100644 --- a/assets/src/scss/front/_select_dd_search.scss +++ b/assets/src/scss/front/_select_dd_search.scss @@ -10,17 +10,20 @@ .tutor-dropdown-select-option:last-child { border-top: none; } + .tutor-dropdown-select-selected { margin-bottom: 0; display: grid; align-items: center; @extend .tutor-text-ellipsis; + > * { @extend .tutor-text-ellipsis; } + .text-medium-body { - padding-right: 20px; + padding-inline-end: 20px; } } @@ -28,11 +31,12 @@ .tutor-input-search { input { border-top: none; - border-right: none; - border-left: none; + border-inline-end: none; + border-inline-start: none; border-color: #dcdbdc; - border-bottom-left-radius: unset !important; - border-bottom-right-radius: unset !important; + border-end-start-radius: unset !important; + border-end-end-radius: unset !important; + &:active, &:focus { border-color: #dcdbdc; @@ -43,9 +47,11 @@ &.is-active { z-index: 999; - text-align: left; + text-align: start; } + z-index: -1; + .tutor-frequencies { max-height: 100%; overflow-y: auto; diff --git a/assets/src/scss/front/_single_course.scss b/assets/src/scss/front/_single_course.scss index f66144f38c..4a32d70e7d 100644 --- a/assets/src/scss/front/_single_course.scss +++ b/assets/src/scss/front/_single_course.scss @@ -6,7 +6,7 @@ color: #000; } -/*.tutor-course-topics-wrap*/ +/* .tutor-course-topics-wrap */ .tutor-course-topics-header { display: flex; flex-wrap: wrap; @@ -17,7 +17,7 @@ .tutor-course-topics-header .tutor-course-topics-header-right span:not(:first-child) { - margin-left: 45px; + margin-inline-start: 45px; } .tutor-course-topics-contents h4 { @@ -39,16 +39,17 @@ margin-top: 0; } -.tutor-course-topic.tutor-active .tutor-course-title h4 > i:before { +.tutor-course-topic.tutor-active .tutor-course-title h4 > i::before { content: "\e910"; } .tutor-course-topics-contents .tutor-course-title h4 i { font-size: 15px; line-height: 25px; - float: left; - margin-right: 10px; + float: inline-start; + margin-inline-end: 10px; } + .tutor-course-topics-contents .tutor-course-topic { border: 1px solid #dce4e6; margin-bottom: 20px; @@ -60,6 +61,7 @@ .tutor-course-lesson { padding: 14px 20px; } + .tutor-course-lesson { border-top: 1px solid #dce4e6; } @@ -72,6 +74,7 @@ color: inherit; margin-top: 0; } + .tutor-course-lesson h5 a { color: var(--tutor-color-primary); -webkit-transition: 300ms; @@ -85,18 +88,18 @@ .tutor-course-lesson h5 i { line-height: 22px; vertical-align: text-top; - margin-right: 10px; + margin-inline-end: 10px; color: var(--tutor-color-muted); display: block; } + .tutor-course-lesson h5 .lesson-preview-icon i { - margin-right: 0; - margin-left: 10px; + margin-inline: 10px 0; } .tutor-course-lesson h5 .tutor-lesson-duration { - margin-left: auto; - padding-left: 5px; + margin-inline-start: auto; + padding-inline-start: 5px; align-self: flex-start; } @@ -106,6 +109,7 @@ display: flex; align-items: flex-start; } + table.course-single-gradebooks .datetime { margin: 0; font-size: 80%; @@ -118,7 +122,7 @@ table.course-single-gradebooks .datetime { text-align: center; line-height: 50px; color: #fff; - margin-right: 10px; + margin-inline-end: 10px; position: relative; z-index: 1; overflow: hidden; @@ -130,14 +134,14 @@ table.course-single-gradebooks .datetime { .tutor-course-lessons .tutor-course-lesson h5 - i.tutor-lesson-thumbnail-icon:after { + i.tutor-lesson-thumbnail-icon::after { position: absolute; content: ""; - left: 0; + inset-inline-start: 0; top: 0; height: 100%; width: 100%; - background: rgba(0, 0, 0, 0.5); + background: rgb(0 0 0 / 50%); z-index: -1; } diff --git a/assets/src/scss/front/_single_lesson.scss b/assets/src/scss/front/_single_lesson.scss index 67a74ae8f2..f6b96d700c 100644 --- a/assets/src/scss/front/_single_lesson.scss +++ b/assets/src/scss/front/_single_lesson.scss @@ -1,5 +1,6 @@ .tutor-quiz-questions-pagination { margin-top: 24px; + ul { margin: 0; padding: 0!important; @@ -7,12 +8,13 @@ display: flex; flex-wrap: wrap; gap: 10px; + li { display: inline-block; + a { border: 1px solid var(--tutor-color-primary); padding: 7px 13px; - display: block; border-radius: 50%; color: var(--tutor-color-primary); font-weight: bold; @@ -22,10 +24,12 @@ display: flex; align-items: center; justify-content: center; + &:hover, &.active { background-color: var(--tutor-color-primary); color: white; + &:hover { opacity: .8; } diff --git a/assets/src/scss/front/_snackbar.scss b/assets/src/scss/front/_snackbar.scss index 83d26e1e2c..8c33a9a988 100644 --- a/assets/src/scss/front/_snackbar.scss +++ b/assets/src/scss/front/_snackbar.scss @@ -2,8 +2,7 @@ .tutor-snackbar-wrapper { position: fixed; bottom: 0; - left: 0; - right: 0; + inset-inline: 0; text-align: center; padding: 0 15px; z-index: 9999999999999999; @@ -13,12 +12,15 @@ -moz-transition: all 1s; -ms-transition: all 1s; -o-transition: all 1s; + &.tutor-snackbar-show { display: block; } + .tutor-btn-outline-primary { color: #fff; } + > div { margin: 15px auto; padding: 7px 14px; @@ -26,24 +28,26 @@ font-size: 15px; text-align: initial; color: white; - - background: rgba(0, 0, 0, 0.66); - box-shadow: 0px 5px 30px rgba(58, 57, 132, 0.06); + background: rgb(0 0 0 / 66%); + box-shadow: 0 5px 30px rgb(58 57 132 / 6%); -webkit-backdrop-filter: blur(28px); backdrop-filter: blur(28px); border-radius: 10px; + > div { display: inline-block; white-space: nowrap; margin: 5px 0; } } + .tutor-snackbar-title-icon { color: white; font-size: 24px; - margin-right: 13px; + margin-inline-end: 13px; vertical-align: middle; } + .tutor-snackbar-close { color: #7a7a7a !important; cursor: pointer; @@ -51,6 +55,7 @@ font-size: 12px; padding: 5px; } + p { color: white; font-weight: normal; diff --git a/assets/src/scss/front/_student_public_profile.scss b/assets/src/scss/front/_student_public_profile.scss index 4e221f57ac..84e4e7361d 100644 --- a/assets/src/scss/front/_student_public_profile.scss +++ b/assets/src/scss/front/_student_public_profile.scss @@ -1,15 +1,17 @@ .tutor-user-public-profile { - //rating style as per layout + // rating style as per layout &.tutor-user-public-profile-pp-circle, &.tutor-user-public-profile-pp-rectangle { .profile-rating-media.content-for-desktop { display: flex; flex-direction: column; } + .tutor-rating-container { -ms-flex-item-align: end; align-self: flex-end; } + .ratings { display: flex; align-items: center; @@ -20,20 +22,24 @@ } } } + &.tutor-user-public-profile-pp-circle { .profile-rating-media.content-for-desktop { row-gap: 15px; } } + &.tutor-user-public-profile-pp-rectangle { row-gap: 3px; } + &.tutor-user-public-profile-no-cp { .ratings { display: -webkit-box; - display: -ms-flexbox; + display: flexbox; display: flex; } + .profile-name h3 { margin-bottom: 15px; } @@ -41,58 +47,71 @@ &.tutor-user-public-profile-no-cp { .profile-name { - padding-left: 40px; + padding-inline-start: 40px; + span { color: var(--tutor-color-secondary) !important; font-weight: 400; } } + .profile-pic { border-radius: 50%; height: 200px; width: 200px; border: none !important; } + .tutor-rating-container { - padding-left: 80px; + padding-inline-start: 80px; margin-top: 30px; } + .pp-area { top: -141px; } + .tutor-social-container { top: 110px; } } + &.tutor-user-public-profile-pp-circle { .profile-pic { border-radius: 50%; height: 160px; width: 160px; } + .pp-area { top: -147px; } + .tutor-social-container { margin-top: 2px; } } + &.tutor-user-public-profile-pp-rectangle { .profile-name { - padding-left: 23px; + padding-inline-start: 23px; + span { font-weight: 300; } } + .profile-pic { border-radius: 10px; height: 275px; width: 235px; } + .tutor-social-container { margin-top: 12px; } } + .photo-area { overflow: hidden; height: 414px; @@ -102,6 +121,7 @@ position: relative; border-radius: 6px; overflow: hidden; + & > div:first-child { height: 352px; background-position: center center; @@ -111,21 +131,21 @@ & > div:last-child { position: absolute; - left: 0; - right: 0; + inset-inline: 0; bottom: 0; height: 70%; - background-image: linear-gradient(transparent, rgba(0, 0, 0, 0.6)); + background-image: linear-gradient(transparent, rgb(0 0 0 / 60%)); } } .pp-area { position: relative; - padding-left: 40px; + padding-inline-start: 40px; top: -141px; display: flex; align-items: center; gap: 30px; + @include breakpoint-max(992) { gap: 10px; } @@ -144,14 +164,14 @@ font-weight: 600; font-size: 40px; line-height: 48px; - color: #ffffff; + color: #fff; margin: 0; } } .profile-rating-media { - text-align: right; - padding-right: 30px; + text-align: end; + padding-inline-end: 30px; padding-bottom: 20px; flex: 1; @@ -159,23 +179,23 @@ font-size: 16px; .rating-digits { - color: #ffffff; + color: #fff; font-size: 16px; font-weight: 500; } .rating-total-meta { - color: #ffffff; + color: #fff; } } } .tutor-social-container { - text-align: right; + text-align: end; a { display: inline-block; - margin-left: 15px; + margin-inline-start: 15px; color: whitesmoke; cursor: pointer; text-decoration: none; @@ -194,6 +214,7 @@ &.tutor-user-public-profile-pp-rectangle { .photo-area { overflow: initial; + .profile-name, .profile-rating-media { padding-bottom: 137px; @@ -220,6 +241,7 @@ .profile-name { padding-top: 40px; + h3 { color: #161616 !important; } @@ -231,7 +253,7 @@ .profile-rating-media { position: absolute; - left: 226px; + inset-inline-start: 226px; top: 15px; .rating-digits { @@ -240,16 +262,16 @@ } .tutor-rating-container { - text-align: left; + text-align: start; } .tutor-social-container { - text-align: left !important; + text-align: start !important; margin-top: 5px !important; a { - margin-left: 0 !important; - margin-right: 20px; + margin-inline-start: 0 !important; + margin-inline-end: 20px; color: #41454f !important; &:hover { @@ -264,8 +286,7 @@ .tutor-social-container { position: absolute; - right: 36px; - left: auto; + inset-inline: auto 36px; } } @@ -273,6 +294,7 @@ .content-for-mobile { display: none; } + .content-for-desktop { display: block; } @@ -284,15 +306,18 @@ color: #757575 !important; } } + .content-for-mobile { display: block; - margin: 22px 0 0 0; + margin: 22px 0 0; padding: 0 !important; + .ratings { justify-content: center; align-items: center; } } + .content-for-desktop { display: none !important; } @@ -302,13 +327,14 @@ &.tutor-user-public-profile-pp-rectangle { .photo-area { height: auto; + .cover-area > div:first-child { height: 220px; } } .pp-area { - padding-left: 0 !important; + padding-inline-start: 0 !important; top: -82px !important; flex-wrap: wrap; justify-content: center; @@ -342,6 +368,7 @@ .pp-area { top: -98px !important; } + .profile-pic { height: 160px !important; width: 153px !important; @@ -364,7 +391,8 @@ } .tutor-social-container { - margin: 15px 0 0 0 !important; + margin: 15px 0 0 !important; + a { color: #41454f !important; } @@ -392,14 +420,14 @@ .tutor-user-profile-sidebar { padding: 15px; width: 278px; - float: left; + float: inline-start; } .tutor-user-profile-content { width: calc(100% - 278px); - float: right; + float: inline-end; margin-bottom: 30px; - padding-left: 30px; + padding-inline-start: 30px; h3 { font-style: normal; @@ -408,10 +436,12 @@ line-height: 34px; margin-top: 20px; color: var(--tutor-body-color); + &:first-child { margin-top: 0; } } + p { color: var(--tutor-color-secondary); font-size: 16px; @@ -422,13 +452,15 @@ @media (max-width: 991px) { &.tutor-user-public-profile-no-cp { .pp-area { - padding-left: 0 !important; + padding-inline-start: 0 !important; } + .profile-rating-media { - left: 178px !important; + inset-inline-start: 178px !important; } + .tutor-rating-container { - padding-left: 0px; + padding-inline-start: 0; } } @@ -448,6 +480,7 @@ margin-bottom: -90px; } } + .student-details-table-wrapper { @include breakpoint-max(992) { margin-top: 40px; @@ -457,24 +490,28 @@ .analytics-profile-authormeta { gap: 20px; + @include breakpoint-min(1200) { display: flex; gap: 40px; + > *:first-child { position: relative; - &:before { + + &::before { content: ''; position: absolute; width: 4px; height: 4px; background: #c4c4c4; border-radius: 50%; - right: -20px; + inset-inline-end: -20px; top: 50%; transform: translateY(-50%); } } } + @include breakpoint-max(1200) { > * { display: block; diff --git a/assets/src/scss/front/_theme.scss b/assets/src/scss/front/_theme.scss index 70974f348f..a531c3da49 100644 --- a/assets/src/scss/front/_theme.scss +++ b/assets/src/scss/front/_theme.scss @@ -13,10 +13,11 @@ body { } } -//common and reset css +// common and reset css .tutor-wrap{ color: var(--tutor-body-color); + img{ max-width: 100%; height: auto; @@ -27,16 +28,18 @@ body { list-style: none; margin: 0; padding: 0; + li{ position: relative; margin-bottom: 5px; line-height: 30px; - padding-left: 25px; - &:before{ + padding-inline-start: 25px; + + &::before{ content: '\e90f'; position: absolute; - left: 0; - font-family: 'tutor'; + inset-inline-start: 0; + font-family: tutor; color: var(--tutor-color-primary); } } @@ -46,8 +49,9 @@ body { > br { display: none; } + p:not(:last-child){ padding-bottom: 20px; - word-wrap: break-word; + overflow-wrap: break-word; } } \ No newline at end of file diff --git a/assets/src/scss/front/_tooltip.scss b/assets/src/scss/front/_tooltip.scss index 90a6586998..1b443460a2 100644 --- a/assets/src/scss/front/_tooltip.scss +++ b/assets/src/scss/front/_tooltip.scss @@ -1,5 +1,4 @@ .tutor-tooltip-inside{ - /* Tooltip shared base styles */ .tooltip { position: absolute; @@ -8,16 +7,9 @@ clip: rect(0,0,0,0); box-sizing: border-box; width: 0; - height: 0; - padding: 0; cursor: default; - color: #fff; font-family: Helvetica, Arial, sans-serif; - font-size: 14px; - font-size: 1.4rem; line-height: normal; - text-align: center; - white-space: nowrap; border-width: 0; border-style: solid; border-color: #6d6e71; @@ -25,10 +17,7 @@ background-color: #373739; opacity: 0; transition: opacity .3s ease-in .3s; - - - font-size: 13px; - color: #FFFFFF; + color: #FFF; height: auto; text-align: center; white-space: normal; @@ -50,15 +39,18 @@ } /* Tooltip positioning */ + /** Common styles: Horizontally Centered **/ .tooltip, /*** Default is equivalent to .tip-bottom ***/ .tooltip.tip-bottom, .tooltip.tip-top { + /* stylelint-disable-next-line property-layout-mappings -- translate(-50%) is physical, so left keeps the tooltip centered in RTL */ left: 50%; -webkit-transform: translate(-50%, 0); -ms-transform: translate(-50%, 0); transform: translate(-50%, 0); } + /** Common styles: Bottom positions **/ .tooltip, /*** Default is equivalent to .tip-bottom ***/ .tooltip.tip-bottom, @@ -67,6 +59,7 @@ top: 110%; top: calc(100% + 13px); } + /** Common styles: Top positions **/ .tooltip.tip-top, .tooltip.tip-top-left, @@ -75,6 +68,7 @@ bottom: 110%; bottom: calc(100% + 13px); } + /** Common styles: Corner positions **/ .tooltip.tip-bottom-left, .tooltip.tip-bottom-right, @@ -84,18 +78,20 @@ -ms-transform: none; transform: none; } + /** Common styles: Left corner positions **/ .tooltip.tip-bottom-left, .tooltip.tip-top-left { - right: 50%; - left: auto; - margin-right: -25px; + inset-inline: auto 50%; + margin-inline-end: -25px; } + /** Common styles: Right corner positions **/ .tooltip.tip-bottom-right, .tooltip.tip-top-right { - margin-left: -25px; + margin-inline-start: -25px; } + /** Common styles: Vertically Centered **/ .tooltip.tip-left, .tooltip.tip-right { @@ -104,20 +100,22 @@ -ms-transform: translate(0, -50%); transform: translate(0, -50%); } + /** Left position only **/ .tooltip.tip-left { - right: 110%; - right: calc(100% + 13px); - left: auto; + inset-inline-end: 110%; + inset-inline-end: calc(100% + 13px); + inset-inline-start: auto; } + /** Right position only **/ .tooltip.tip-right { - left: 110%; - left: calc(100% + 13px); + inset-inline-start: 110%; + inset-inline-start: calc(100% + 13px); } /* Tooltip arrow shared base styles */ - .tooltip:after { + .tooltip::after { content: ' '; display: block; position: absolute; @@ -127,63 +125,71 @@ border-style: solid; pointer-events: none; } + /** Common styles: Horizontally Centered, Up/Down arrows **/ - .tooltip:after, /*** Default is equivalent to .tip-bottom:after; ***/ - .tooltip.tip-bottom:after, - .tooltip.tip-top:after { + .tooltip::after, /*** Default is equivalent to .tip-bottom:after; ***/ + .tooltip.tip-bottom::after, + .tooltip.tip-top::after { + /* stylelint-disable-next-line property-layout-mappings -- margin-left is physical, so left keeps the arrow centered in RTL */ left: 50%; margin-left: -10px; } + /** Common styles: Up arrow **/ - .tooltip:after, /*** Default is equivalent to .tip-bottom:after; ***/ - .tooltip.tip-bottom:after, - .tooltip.tip-bottom-left:after, - .tooltip.tip-bottom-right:after { + .tooltip::after, /*** Default is equivalent to .tip-bottom:after; ***/ + .tooltip.tip-bottom::after, + .tooltip.tip-bottom-left::after, + .tooltip.tip-bottom-right::after { top: -20px; - border-color: transparent transparent #373739 transparent; + border-color: transparent transparent #373739; } + /** Common styles: Down arrow **/ - .tooltip.tip-top:after, - .tooltip.tip-top-left:after, - .tooltip.tip-top-right:after{ + .tooltip.tip-top::after, + .tooltip.tip-top-left::after, + .tooltip.tip-top-right::after{ top: auto; bottom: -20px; - border-color: #373739 transparent transparent transparent; + border-color: #373739 transparent transparent; } + /** Common styles: Left-/Right-aligned, Up/Down arrows **/ - .tooltip.tip-bottom-left:after, - .tooltip.tip-bottom-right:after, - .tooltip.tip-top-left:after, - .tooltip.tip-top-right:after { - margin-left: 0; + .tooltip.tip-bottom-left::after, + .tooltip.tip-bottom-right::after, + .tooltip.tip-top-left::after, + .tooltip.tip-top-right::after { + margin-inline-start: 0; } + /** Common styles: Right-aligned, Up/Down arrows **/ - .tooltip.tip-bottom-left:after, - .tooltip.tip-top-left:after { - right: 15px; - left: auto; + .tooltip.tip-bottom-left::after, + .tooltip.tip-top-left::after { + inset-inline: auto 15px; } + /** Common styles: Left-aligned, Up/Down arrows **/ - .tooltip.tip-bottom-right:after, - .tooltip.tip-top-right:after { - left: 15px; + .tooltip.tip-bottom-right::after, + .tooltip.tip-top-right::after { + inset-inline-start: 15px; } + /** Common styles: Vertically Centered, Left/Right arrows **/ - .tooltip.tip-left:after, - .tooltip.tip-right:after { + .tooltip.tip-left::after, + .tooltip.tip-right::after { top: 50%; margin-top: -10px; - margin-left: auto; + margin-inline-start: auto; } + /** Right arrow **/ - .tooltip.tip-left:after { - right: -20px; - left: auto; + .tooltip.tip-left::after { + inset-inline: auto -20px; border-color: transparent transparent transparent #373739; } + /** Left arrow **/ - .tooltip.tip-right:after { - left: -20px; + .tooltip.tip-right::after { + inset-inline-start: -20px; border-color: transparent #373739 transparent transparent; } } \ No newline at end of file diff --git a/assets/src/scss/front/_user_login.scss b/assets/src/scss/front/_user_login.scss index 0a50ff61d9..b01b915bf5 100644 --- a/assets/src/scss/front/_user_login.scss +++ b/assets/src/scss/front/_user_login.scss @@ -1,7 +1,6 @@ .tutor-forgot-password-form, .tutor-reset-password-form { max-width: 520px; - padding: 15px; margin: 0 auto; padding: 15px !important; } \ No newline at end of file diff --git a/assets/src/scss/front/course-spotlight/_players.scss b/assets/src/scss/front/course-spotlight/_players.scss index 869d0e749e..7ff0a933c2 100644 --- a/assets/src/scss/front/course-spotlight/_players.scss +++ b/assets/src/scss/front/course-spotlight/_players.scss @@ -1,10 +1,11 @@ .tutor-video-player { position: relative; + .loading-spinner { - &:before { + &::before { top: 50%; margin-top: -25px; - margin-left: -25px; + margin-inline-start: -25px; } } } diff --git a/assets/src/scss/front/course-spotlight/_sidebar.scss b/assets/src/scss/front/course-spotlight/_sidebar.scss index fb09e0d19a..bf46c9cdb5 100644 --- a/assets/src/scss/front/course-spotlight/_sidebar.scss +++ b/assets/src/scss/front/course-spotlight/_sidebar.scss @@ -12,14 +12,15 @@ flex: 0 0 400px; width: 400px; background-color: $color-gray-10; - border-right: 1px solid $border-color-secondary; + border-inline-end: 1px solid $border-color-secondary; @include breakpoint-max(desktop-lg) { flex: 0 0 100%; width: 100%; position: absolute; + // right: -100%; - top: 0px; + top: 0; opacity: 0; z-index: -1; } @@ -35,7 +36,7 @@ border-radius: 0; user-select: none; - &:after { + &::after { color: var(--tutor-color-muted); font-size: 14px; } @@ -46,13 +47,14 @@ } &.is-active { - &:after { + &::after { color: var(--tutor-color-primary); } } .tutor-course-topic-title { position: relative; + &-info { position: relative; display: inline-flex; @@ -61,7 +63,7 @@ &-icon { font-size: 14px; - color: rgba(var(--tutor-body-color-rgb), 0.5); + color: rgb(var(--tutor-body-color-rgb), 0.5); } } } @@ -73,7 +75,7 @@ } .tutor-accordion-item-body { - background-color: #FFFFFF; + background-color: #FFF; padding-top: 8px; padding-bottom: 8px; } @@ -96,7 +98,7 @@ &-icon { font-size: 18px; - color: rgba(var(--tutor-body-color-rgb), 0.3); + color: rgb(var(--tutor-body-color-rgb), 0.3); transition: 300ms ease-in; } @@ -124,11 +126,13 @@ border-color: var(--tutor-color-success); background-color: var(--tutor-color-success); } + .tutor-check-pending{ border-color: var(--tutor-color-warning)!important; background-color: var(--tutor-color-warning)!important; background-image: url("data:image/svg+xml,%3Csvg fill='%23FFF' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='14' height='10' viewBox='0 0 459.313 459.314' xml:space='preserve'%3E%3Cg%3E%3Cpath d='M459.313,229.648c0,22.201-17.992,40.199-40.205,40.199H40.181c-11.094,0-21.14-4.498-28.416-11.774 C4.495,250.808,0,240.76,0,229.66c-0.006-22.204,17.992-40.199,40.202-40.193h378.936 C441.333,189.472,459.308,207.456,459.313,229.648z'/%3E%3C/g%3E%3C/svg%3E"); } + .tutor-check-fail{ border-color: var(--tutor-color-danger)!important; background-color: var(--tutor-color-danger)!important; diff --git a/assets/src/scss/front/course-spotlight/course-assignment.scss b/assets/src/scss/front/course-spotlight/course-assignment.scss index f47b42ef82..54b7473c41 100644 --- a/assets/src/scss/front/course-spotlight/course-assignment.scss +++ b/assets/src/scss/front/course-spotlight/course-assignment.scss @@ -2,23 +2,28 @@ .tutor-assignment-attachments-list { display: grid; grid-template-columns: 1fr 1fr; - grid-gap: 20px; + gap: 20px; + @include breakpoint-max(768) { grid-template-columns: 1fr; } } + .tutor-assignment-meta-info { border-top: 1px solid var(--tutor-border-color); border-bottom: 1px solid var(--tutor-border-color); + @include breakpoint-minmax(576, 1192) { flex-direction: column; } + .tutor-assignment-detail-info { > div { &:not(:last-child) { - margin-right: 16px; + margin-inline-end: 16px; } } + @include breakpoint-minmax(576, 1192) { .tutor-assignment-duration, .tutor-assignmetn-deadline, @@ -27,6 +32,7 @@ flex-basis: 50%; } } + @include breakpoint-max(575) { .tutor-assignment-duration, .tutor-assignmetn-deadline, @@ -38,14 +44,15 @@ } } } + @include breakpoint-max(576) { flex-direction: column; } } // assignment-meta-info .tutor-assignment-border-bottom { border-bottom: 1px solid var(--tutor-border-color); - } //border-bottom - //instructor card + } // border-bottom + // instructor card .tutor-instructor-card { background-color: var(--tutor-color-white); border-radius: 6px; @@ -53,15 +60,18 @@ min-width: 100%; display: grid; grid-template-columns: auto 40px; + .tutor-icard-content { > div:first-child { - margin-right: 10px; + margin-inline-end: 10px; } + > div { word-break: break-all; } } } + // end of instructor card &.tutor-course-assignment-details { /* assignment details page */ @@ -69,6 +79,7 @@ .tutor-assignment-footer-btn { @include breakpoint-max(768) { flex-direction: column; + // align-items: flex-start; // .tutor-assignment-skip-button, a, @@ -81,62 +92,75 @@ } } } + .no-before::before { display: none; } + #full-text { display: none; } } + /* end assignment details page */ - /*start tutor-time-out-assignment*/ + + /* start tutor-time-out-assignment */ &.tutor-time-out-assignment { .quiz-flash-message { .tutor-quiz-warning-box { - background-color: rgba(var(--tutor-color-danger-rgb), 0.15); - border: 1px solid rgba(var(--tutor-color-danger-rgb), 0.3); + background-color: rgb(var(--tutor-color-danger-rgb), 0.15); + border: 1px solid rgb(var(--tutor-color-danger-rgb), 0.3); } } + .tutor-time-out-assignment-details { .tutor-to-assignment { position: relative; - &:before { + + &::before { content: ''; position: absolute; width: 100%; height: 120px; - bottom: 0px; + bottom: 0; background: linear-gradient( 180deg, - rgba(255, 255, 255, 0) 1.31%, - rgba(255, 255, 255, 0) 15.41%, - #ffffff 100% + rgb(255 255 255 / 0%) 1.31%, + rgb(255 255 255 / 0%) 15.41%, + #fff 100% ); } } } } - /*end tutor-time-out-assignment*/ - /* start tutor-submit-assignment*/ + + /* end tutor-time-out-assignment */ + + /* start tutor-submit-assignment */ &.tutor-submit-assignment { .tutor-assignment-submission { .tutor-assignment-body { max-width: 730px; + .tutor-assignment-attachment { background-color: $color-gray-10; border-radius: 6px; + .tutor-input-type-size { span { font-weight: 500; } } + .tutor-attachment-files { display: grid; grid-template-columns: 180px auto; + @include breakpoint-max(tablet) { grid-template-columns: 1fr; gap: 10px; } + .tutor-assignment-upload-btn { input, input#tutor-assignment-file-upload { @@ -144,123 +168,141 @@ } } } + .tutor-asisgnment-upload-file-preview { display: grid; grid-template-columns: repeat(2, 1fr); + @include breakpoint-max(600) { grid-template-columns: 1fr; } + gap: 20px; } } } } + .tutor-assignment-description-details { .tutor-ad-body { position: relative; - &:before { + + &::before { content: ''; position: absolute; width: 100%; height: 120px; - bottom: 0px; + bottom: 0; background: linear-gradient( 180deg, - rgba(255, 255, 255, 0) 1.31%, - rgba(255, 255, 255, 0) 15.41%, - #ffffff 100% + rgb(255 255 255 / 0%) 1.31%, + rgb(255 255 255 / 0%) 15.41%, + #fff 100% ); } } } - } /* end tutor-submit-assignment*/ + } /* end tutor-submit-assignment */ - /* start tutor-assignment-result-pending*/ + /* start tutor-assignment-result-pending */ &.tutor-assignment-result-pending { .tutor-assignment-details { .tutor-ar-body { border: 1px solid var(--tutor-border-color); box-sizing: border-box; border-radius: 6px; + .tutor-input-files { max-width: 330px; } } } + .tutor-assignment-description-details { .tutor-ad-body { position: relative; - &:before { + + &::before { content: ''; position: absolute; width: 100%; height: 120px; - bottom: 0px; + bottom: 0; background: linear-gradient( 180deg, - rgba(255, 255, 255, 0) 1.31%, - rgba(255, 255, 255, 0) 15.41%, - #ffffff 100% + rgb(255 255 255 / 0%) 1.31%, + rgb(255 255 255 / 0%) 15.41%, + #fff 100% ); } } } } - /* end tutor-assignment-result-pending*/ - /* start tutor-assignment-results*/ + + /* end tutor-assignment-result-pending */ + + /* start tutor-assignment-results */ .tutor-instructor-note { - background-color: rgba(var(--tutor-color-primary-rgb), 0.2); - border: 1px solid rgba(var(--tutor-color-primary-rgb), 0.4); + background-color: rgb(var(--tutor-color-primary-rgb), 0.2); + border: 1px solid rgb(var(--tutor-color-primary-rgb), 0.4); border-radius: 6px; } + &.tutor-assignment-results { .tutor-instructor-note { - background-color: rgba(var(--tutor-color-primary-rgb), 0.2); - border: 1px solid rgba(var(--tutor-color-primary-rgb), 0.2); + background-color: rgb(var(--tutor-color-primary-rgb), 0.2); + border: 1px solid rgb(var(--tutor-color-primary-rgb), 0.2); border-radius: 6px; } + .tutor-assignment-details { .tutor-ar-body { border: 1px solid var(--tutor-border-color); box-sizing: border-box; border-radius: 6px; + .tutor-input-files { max-width: 330px; } } } + .tutor-assignment-description-details { .tutor-ad-body { position: relative; - &:before { + + &::before { content: ''; position: absolute; width: 100%; height: 120px; - bottom: 0px; + bottom: 0; background: linear-gradient( 180deg, - rgba(255, 255, 255, 0) 1.31%, - rgba(255, 255, 255, 0) 15.41%, - #ffffff 100% + rgb(255 255 255 / 0%) 1.31%, + rgb(255 255 255 / 0%) 15.41%, + #fff 100% ); } } } } - /* end tutor-assignment-results*/ + + /* end tutor-assignment-results */ } .submited-files { > div { &:not(:last-child) { - margin-right: 15px; + margin-inline-end: 15px; } } + .tutor-instructor-card { width: 100%; + .tutor-icard-content { - padding-right: 10px; + padding-inline-end: 10px; } } } diff --git a/assets/src/scss/front/course-spotlight/index.scss b/assets/src/scss/front/course-spotlight/index.scss index 0d9ad67b6a..14054d8120 100644 --- a/assets/src/scss/front/course-spotlight/index.scss +++ b/assets/src/scss/front/course-spotlight/index.scss @@ -1,7 +1,7 @@ @import './players'; .site-content { - padding-bottom: 0px !important; + padding-bottom: 0 !important; } @import './sidebar'; @@ -16,7 +16,7 @@ width: 100%; ul, ol, li > ul, li > ol { - padding-left: 1em; + padding-inline-start: 1em; } a { @@ -34,6 +34,7 @@ .tutor-course-single-sidebar-wrapper { display: none; } + .tutor-course-topics-sidebar-toggler { .tutor-icon-left { transform: rotate(180deg); @@ -46,11 +47,12 @@ .tutor-course-single-sidebar-wrapper { background-color: #fff; height: 100vh; - right: 0 !important; + inset-inline-end: 0 !important; overflow-y: auto; opacity: 1; z-index: 1026; padding-bottom: 150px; + .tutor-course-single-sidebar-title { position: sticky; top: 0; @@ -70,9 +72,11 @@ #tutor-single-entry-content { position: relative; width: 100%; + @include breakpoint-min(desktop-lg){ min-height: 100vh; } + display: flex; flex-direction: column; @@ -84,6 +88,7 @@ padding: 8px 16px; min-height: 60px; position: relative; + // z-index: 1025; background: var(--tutor-color-primary); @@ -93,6 +98,7 @@ color: var(--tutor-color-white); background-color: transparent; border-color: var(--tutor-color-white); + &:hover { color: var(--tutor-color-primary); background-color: var(--tutor-color-white); @@ -102,12 +108,14 @@ .tutor-iconic-btn { color: #fff; + &:hover { background-color: #fff; color: var(--tutor-color-primary); } + &-secondary { - background-color: rgba(0, 0, 0, 0.2); + background-color: rgb(0 0 0 / 20%); } } @@ -123,8 +131,8 @@ align-items: center; justify-content: center; gap: 16px; - border-top: 1px solid rgba(var(--tutor-color-primary-rgb), 0.15); - background-color: rgba(var(--tutor-color-primary-rgb), 0.1); + border-top: 1px solid rgb(var(--tutor-color-primary-rgb), 0.15); + background-color: rgb(var(--tutor-color-primary-rgb), 0.1); } } @@ -132,32 +140,38 @@ .tutor-mobile-footer-navigation { height: 90px; border: 1px solid $color-gray-10; - box-shadow: 0px 0px 16px rgba(176, 182, 209, 0.180862); + box-shadow: 0 0 16px rgb(176 182 209 / 18.1%); background: var(--tutor-color-white); position: fixed; bottom: 0; - left: 0; + inset-inline-start: 0; width: 100%; z-index: 1; + @include breakpoint-min(576) { display: none; } + .tutor-footer-content { flex-basis: 70%; } + .tutor-quiz-skip-button { flex-basis: 50%; + button { padding: 0; border: 0; } } + .tutor-footer-complete-btn { button { padding: 8px 20px; } } } + @import './quiz'; } @@ -171,4 +185,4 @@ } @import './spotlight'; -@import './course-assignment.scss'; +@import './course-assignment'; diff --git a/assets/src/scss/front/course-spotlight/quiz.scss b/assets/src/scss/front/course-spotlight/quiz.scss index 30d186a3c4..292357ea1c 100644 --- a/assets/src/scss/front/course-spotlight/quiz.scss +++ b/assets/src/scss/front/course-spotlight/quiz.scss @@ -5,6 +5,7 @@ .tutor-quiz-dotted-box { border: 2px dashed var(--tutor-border-color); border-radius: 5px; + span[class^='tutor-icon-'], span[class*=' tutor-icon-'] { display: none; @@ -22,6 +23,7 @@ &.tutor-drop-over { border: 2px dashed var(--tutor-color-primary) !important; } + input { display: none; } @@ -33,8 +35,10 @@ margin-bottom: 70px; } } + .tutor-image-answer { max-width: 500px; + img { width: 100%; border-radius: 6px; @@ -54,12 +58,15 @@ margin: 0 auto; border: 1px solid #c0c3cb; border-radius: 10px; + @include breakpoint-min(desktop-lg){ padding: 65px 95px; } + .tutor-start-quiz-title { border-bottom: 1px solid var(--tutor-border-color); } + .tutor-quiz-info-area { .tutor-quiz-info { &:not(:first-child) { @@ -91,31 +98,37 @@ gap: 16px; } } + .quiz-meta-info-right { .quiz-time-remaining { #tutor-quiz-time-update { min-width: 50px; - text-align: right; + text-align: end; } + .quiz-time-remaining-progress-circle, .quiz-time-remaining-expired-circle { width: 40px; height: 25px; margin-top: 1px; } + .quiz-time-remaining-progress-circle { svg { width: 50px; height: 50px; margin-top: -3px; + circle { transform: translate(17px, 15px); + &:first-child { stroke: var(--tutor-color-primary); stroke-width: 13px; stroke-dasharray: 44; stroke-dashoffset: 0; } + &:last-child { fill: none; stroke: var(--tutor-color-gray); @@ -126,11 +139,13 @@ } } } + .quiz-time-remaining-expired-circle { svg { width: 50px; height: 50px; margin-top: -3px; + circle { -webkit-transform: translate(17px, 15px); transform: translate(17px, 15px); @@ -138,13 +153,14 @@ stroke-dashoffset: 0; stroke-dasharray: 75; stroke-width: 2px; - fill: #ffffff; + fill: #fff; } } } } } } + .tutor-quiz-border-box { cursor: move; padding: 10px 18px; @@ -162,39 +178,47 @@ display: none; } } + .tutor-quiz-dotted-box { - padding: 8px 12px 8px 12px; + padding: 8px 12px; border: 2px dashed #ddd; border-radius: 5px; font-size: 1rem; line-height: 1.5; color: #9CA0AC; } + .quiz-flash-message { .tutor-quiz-warning-box { &.time-remaining-warning { - border: 1px solid rgba(var(--tutor-color-warning-rgb), 0.30); + border: 1px solid rgb(var(--tutor-color-warning-rgb), 0.30); } + padding: 9px; border-radius: 6px; + @include breakpoint-max(600) { flex-wrap: wrap; } + .flash-info { span:first-child { font-size: 27px; } } + .flash-action { button { background: $color-warning; color: var(--tutor-color-white); border: unset; + @include breakpoint-max(600) { margin-top: 10px; } } } + &.time-over { border: 1px solid $color-danger; } @@ -208,7 +232,7 @@ .matching-quiz-question-desc { display: grid !important; - gap: 20px 20px; + gap: 20px; grid-template-columns: repeat(auto-fit, minmax(163px, 1fr)); } @@ -220,9 +244,10 @@ &-has-media { .tutor-form-check-input { position: absolute; - right: 8px; + inset-inline-end: 8px; top: 8px; z-index: 1; + &:checked + .tutor-card { border-color: var(--tutor-color-primary); box-shadow: 0 0 0 1px var(--tutor-color-primary); @@ -243,14 +268,16 @@ min-width: 240px; border: 1px solid var(--tutor-border-color); border-radius: 6px; - padding: 9.5px 15px 9.5px 15px; + padding: 9.5px 15px; display: inline-block; cursor: pointer; + input { - margin-right: 8px; + margin-inline-end: 8px; margin-top: 1px; } } + .tutor-quiz-correct-ans { span:first-child { font-size: 28px; @@ -262,9 +289,10 @@ .fill-blank { display: inline-block; border-bottom: 2px dashed var(--tutor-color-secondary); - margin: 0px 0px 10px 0px; + margin: 0 0 10px; + @include breakpoint-max(mobile) { - margin: 0px 10px 5px 0px; + margin: 0 10px 5px 0; } } @@ -274,7 +302,7 @@ border: 1px solid var(--tutor-border-color); box-shadow: none; transition: color 200ms ease-in-out, background-color 200ms ease-in-out, border-color 200ms ease-in-out; - margin: 0px 0px 3px 0px; + margin: 0 0 3px; padding: 2px 5px; } } @@ -286,24 +314,30 @@ margin-bottom: 25px; } } + .quiz-matching-ans { display: flex; max-width: 500px; align-items: center; flex-wrap: wrap; + .tutor-quiz-ans-no { width: 230px; } + .quiz-matching-ans-item { display: flex; width: 270px; align-items: center; + @include breakpoint-max(mobile) { margin-top: 20px; } + > span { - margin: 0px 20px; + margin: 0 20px; } + .tutor-quiz-dotted-box { width: 230px; } @@ -313,24 +347,29 @@ .tutor-matching-item{ display: flex; flex-direction:column; - margin-right:10px; + margin-inline-end:10px; + .tutor-matching-image{ border-radius: 6px; overflow: hidden; } } } + #quiz-ordering-ans-area { counter-reset: serial-number; + > div:not(:last-child) { margin-bottom: 25px; } + .quiz-ordering-ans-item { .tutor-quiz-border-box { width: 250px; } } - .snum:before { + + .snum::before { counter-increment: serial-number; content: counter(serial-number); } @@ -340,41 +379,49 @@ display: grid; grid-template-columns: 30px 315px; cursor: pointer; + .quiz-image-ordering-ans-item { width: 315px; border: 1px solid #c0c3cb; border-radius: 6px; display: grid; grid-template-columns: 46px auto; + .tutor-quiz-image-ordering-icon { background: #f4f6f9; width: 46px; - border-radius: 6px 0px 0px 6px; + border-radius: 6px 0 0 6px; + span { font-size: 27px; } } + .tutor-quiz-image-ordering-item { display: grid; grid-template-columns: 80px auto; grid-template-rows: auto; + img { width: 80px; height: 80px; border-radius: 6px; } + span { word-break: break-word; } } } } + #quiz-image-matching-ans-area { .quiz-image-matching-ans { display: grid !important; - gap: 20px 20px; + gap: 20px; grid-template-columns: repeat(auto-fit, minmax(162px, 1fr)); } + .quiz-image { width: 100%; height: 162px; @@ -431,13 +478,14 @@ 0% { background-size: 0% 100%; } + 100% { background-size: 100% 100%; } } .tutor-quiz-btn-countdown { - background-image: linear-gradient(rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.28)); + background-image: linear-gradient(rgb(0 0 0 / 28%), rgb(0 0 0 / 28%)); background-repeat: no-repeat; background-position: left top; animation: tutor-quiz-countdown-fill var(--reveal-wait-duration, 2000ms) linear forwards; diff --git a/assets/src/scss/front/course-spotlight/spotlight.scss b/assets/src/scss/front/course-spotlight/spotlight.scss index 2a0bbed981..f9535bb4fb 100644 --- a/assets/src/scss/front/course-spotlight/spotlight.scss +++ b/assets/src/scss/front/course-spotlight/spotlight.scss @@ -15,21 +15,27 @@ grid-template-columns: repeat(2, 1fr); gap: 20px; word-break: break-all; + @include breakpoint-max(mobile) { grid-template-columns: repeat(1, 1fr); } + .tutor-instructor-card { cursor: pointer; + &:hover { .tutor-avatar { background: var(--tutor-color-primary); + span { color: var(--tutor-color-white); } } } + .tutor-avatar { - background: rgba(var(--tutor-color-primary-rgb), 0.15); + background: rgb(var(--tutor-color-primary-rgb), 0.15); + span { font-size: 30px; } @@ -40,21 +46,25 @@ /* tutor-exercise-files */ .tutor-conversation { border-bottom: 1px solid #ddd; - padding: 0px 0px 55px 0px; + padding: 0 0 55px; + .tutor-no-comments-show { border: 1px solid var(--tutor-border-color); border-radius: 6px; padding: 47px 33px; + @include breakpoint-max(mobile) { flex-direction: column; align-items: center; justify-content: center; padding: 30px 20px; + p { text-align: center; } } } + .comment-avatar { img { width: 50px; @@ -62,9 +72,10 @@ border-radius: 50%; } } + .tutor-comment-textarea, .tutor-actual-comment { - &:before { + &::before { content: ''; display: block; height: 10px; @@ -72,36 +83,41 @@ background-color: #fff; border: 1px solid var(--tutor-border-color); position: absolute; - left: -6px; + inset-inline-start: -6px; top: 18px; clip-path: polygon(0% 0%, 100% 100%, 0% 100%); transform: rotate(45deg); border-radius: 0 0 0 3px; } - &:after { + + &::after { content: ''; display: block; height: 10px; width: 10px; background-color: #fff; - border: 1px solid #ffffff; + border: 1px solid #fff; position: absolute; - left: -2px; + inset-inline-start: -2px; top: 18px; border-radius: 3px 0 0 3px; } } + .tutor-comment-box { display: grid; grid-template-columns: 70px auto; + .tutor-comment-textarea { position: relative; grid-area: 1/2/1/3; border: 1px solid var(--tutor-border-color); border-radius: 6px; + &.is-focused { border: 1px solid var(--tutor-color-primary); - &:before { + + &::before { border: 1px solid var(--tutor-color-primary); } } @@ -112,16 +128,19 @@ border-color: transparent; } } + .tutor-comment-submit-btn { margin-top: 20px; grid-area: 2/2/2/3; justify-self: end; } } + /* tutor-comment-box */ .tutor-comments-list { display: grid; grid-template-columns: 70px auto; + .tutor-single-comment { .tutor-actual-comment { background-color: #fff; @@ -129,28 +148,34 @@ border-radius: 6px; position: relative; padding: 15px 20px; + .tutor-comment-author { span:first-child { color: #161d25; } + span:last-child { color: #808993; } } } + /* tutor-actual-comment */ .tutor-comment-actions { span { cursor: pointer; text-transform: capitalize; + &:not(:last-child) { - margin-right: 23px; + margin-inline-end: 23px; } } } + .tutor-comment-box.tutor-reply-box { - padding: 16px 0px 16px 16px; + padding: 16px 0 16px 16px; min-height: 54px; + .tutor-comment-textarea { textarea { padding: 15px 20px; @@ -159,39 +184,46 @@ } } } + /* tutor-single-comment */ } + .tutor-comments-list.tutor-parent-comment { position: relative; + .tutor-comment-line { position: absolute; width: 1px; - left: 24px; + inset-inline-start: 24px; top: 50px; background: var(--tutor-border-color); } + .tutor-child-comment { position: relative; - &:after { + + &::after { content: ''; position: absolute; width: 45px; height: 1px; - left: -45px; + inset-inline-start: -45px; top: 25px; background: var(--tutor-border-color); } - &:before { + + &::before { content: ''; position: absolute; width: 45px; height: 1px; - left: -68px; + inset-inline-start: -68px; top: 3px; background: var(--tutor-border-color); transform: rotate(90deg); z-index: 9; } + .tutor-single-comment { .tutor-actual-comment { .tutor-comment-author { @@ -212,8 +244,8 @@ // .tutor-spotlight-mobile-progress-complete .tutor-spotlight-mobile { &-progress-complete { - background: #ffffff; - box-shadow: 0px 0px 16px 0 rgba(176, 182, 209, 0.180862); + background: #fff; + box-shadow: 0 0 16px 0 rgb(176 182 209 / 18.1%); margin-top: 16px; @include breakpoint-max(420) { @@ -226,16 +258,19 @@ &-progress-right { text-align: center; + @include breakpoint-min(420) { .tutor-topbar-complete-btn { - text-align: right; + text-align: end; } } + @include breakpoint-max(420) { .tutor-topbar-complete-btn.tutor-ml-24 { - margin-left: 0 !important; + margin-inline-start: 0 !important; } } + [class*='tutor-icon-'] { display: none; } @@ -253,15 +288,16 @@ .tutor-conversation { .tutor-comment-textarea, .tutor-actual-comment { - &:before { - left: initial; - right: -6px; + &::before { + inset-inline-start: initial; + inset-inline-end: -6px; transform: rotate(220deg); - border-radius: 0 3px 0 0px; + border-radius: 0 3px 0 0; } - &:after { - left: initial; - right: -2px; + + &::after { + inset-inline-start: initial; + inset-inline-end: -2px; } } @@ -270,8 +306,8 @@ .tutor-comment-actions { span { &:not(:last-child) { - margin-right: initial; - margin-left: 23px; + margin-inline-end: initial; + margin-inline-start: 23px; } } } @@ -280,18 +316,19 @@ .tutor-comments-list.tutor-parent-comment { .tutor-comment-line { - left: initial; - right: 24px; + inset-inline-start: initial; + inset-inline-end: 24px; } .tutor-child-comment { - &:after { - left: initial; - right: -45px; + &::after { + inset-inline-start: initial; + inset-inline-end: -45px; } - &:before { - left: initial; - right: -68px; + + &::before { + inset-inline-start: initial; + inset-inline-end: -68px; transform: rotate(90deg); } } diff --git a/assets/src/scss/front/course/_archive.scss b/assets/src/scss/front/course/_archive.scss index c64d4e7213..3e3b442a4f 100644 --- a/assets/src/scss/front/course/_archive.scss +++ b/assets/src/scss/front/course/_archive.scss @@ -12,7 +12,7 @@ flex-wrap: wrap; .tutor-loop-cart-btn-wrap { - margin-left: auto; + margin-inline-start: auto; a { color: var(--tutor-body-color); @@ -34,7 +34,7 @@ &::before { content: '\e915'; - font-family: 'tutor' !important; + font-family: tutor !important; speak: none; font-style: normal; font-weight: normal; @@ -43,14 +43,14 @@ line-height: 20px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; - margin-right: 5px; + margin-inline-end: 5px; vertical-align: top; color: var(--tutor-color-primary); } } .tutor-course-booked-fully { - margin-left: auto; + margin-inline-start: auto; & > * { display: inline-block; @@ -66,7 +66,7 @@ .subscription-details { font-size: 15px; - margin-left: 4px; + margin-inline-start: 4px; font-weight: 400; } @@ -74,7 +74,7 @@ font-weight: 400; & > span { - margin-right: 6px; + margin-inline-end: 6px; } span { @@ -84,7 +84,7 @@ & + ins { background: transparent; - margin-left: 0; + margin-inline-start: 0; text-decoration: none; } } diff --git a/assets/src/scss/front/course/_filter.scss b/assets/src/scss/front/course/_filter.scss index 4e369dd6d0..6b53301f05 100644 --- a/assets/src/scss/front/course/_filter.scss +++ b/assets/src/scss/front/course/_filter.scss @@ -5,7 +5,7 @@ background-color: #fff; position: fixed; top: 0; - right: -100%; + inset-inline-end: -100%; bottom: 0; overflow-y: auto; z-index: 999999; @@ -16,12 +16,12 @@ &-backdrop { position: fixed; top: 0; - left: 0; + inset-inline-start: 0; width: 100%; height: 100%; z-index: -1; opacity: 0; - background-color: rgba(22, 22, 22, 0.5); + background-color: rgb(22 22 22 / 50%); mix-blend-mode: normal; backdrop-filter: blur(20px); transition: 300ms ease-in; @@ -33,7 +33,7 @@ &.tutor-course-filter-open { .tutor-course-filter { &-container { - right: 0; + inset-inline-end: 0; } &-backdrop { diff --git a/assets/src/scss/front/course/_single-course-details.scss b/assets/src/scss/front/course/_single-course-details.scss index e368c84435..f710e6a0a7 100644 --- a/assets/src/scss/front/course/_single-course-details.scss +++ b/assets/src/scss/front/course/_single-course-details.scss @@ -1,7 +1,8 @@ .tutor-single-course-wrapper { overflow: auto; + &>div{ - float: left; + float: inline-start; width: 100%; @media(min-width:992px) { @@ -11,7 +12,7 @@ &:last-child{ width: 350px; - float: right; + float: inline-end; } } } @@ -34,13 +35,13 @@ display: block; font-size: 16px; padding: 5px 0 20px; - margin-right: 20px; + margin-inline-end: 20px; color: var(--tutor-color-muted); border-bottom: 2px solid transparent; } &:not(:first-child) a { - margin-left: 20px; + margin-inline-start: 20px; } &.active a { @@ -74,8 +75,8 @@ .tutor-sidebar-card { .tutor-card-body { background-color: #F4F6F9; - border-top-left-radius: 6px; - border-top-right-radius: 6px; + border-start-start-radius: 6px; + border-start-end-radius: 6px; } } @@ -88,26 +89,27 @@ padding: 16px 32px; margin: 0; background-color: #FCFCFD; - border-left: 1px solid var(--tutor-border-color); - border-right: 1px solid var(--tutor-border-color); + border-inline-start: 1px solid var(--tutor-border-color); + border-inline-end: 1px solid var(--tutor-border-color); &:first-child { padding-top: 24px; border-top: 1px solid var(--tutor-border-color); - border-top-left-radius: 6px; - border-top-right-radius: 6px; + border-start-start-radius: 6px; + border-start-end-radius: 6px; } &:last-child { padding-bottom: 24px; border-bottom: 1px solid var(--tutor-border-color); - border-bottom-left-radius: 6px; - border-bottom-right-radius: 6px; + border-end-start-radius: 6px; + border-end-end-radius: 6px; } } .tutor-course-details-instructors { padding-bottom: 24px; + & + div { border-top: 1px solid var(--tutor-border-color); padding-top: 24px; diff --git a/assets/src/scss/front/course/_social-share.scss b/assets/src/scss/front/course/_social-share.scss index 25323709b8..1ad68dfbe0 100644 --- a/assets/src/scss/front/course/_social-share.scss +++ b/assets/src/scss/front/course/_social-share.scss @@ -1,6 +1,7 @@ .tutor-social-share-wrap { display: flex; gap: 16px; + button { border: none; padding: 8px 15px; @@ -9,16 +10,18 @@ cursor: pointer; display: inline-flex; align-items: center; + span { font-style: normal; font-weight: 500; font-size: 15px; - color: #ffffff; + color: #fff; position: relative; top: 1px; - left: 2px; + inset-inline-start: 2px; } } + .tutor_share { &.s_linkedin i { margin-top: -2px; diff --git a/assets/src/scss/front/course/index.scss b/assets/src/scss/front/course/index.scss index 284b9e463e..d9aece5058 100644 --- a/assets/src/scss/front/course/index.scss +++ b/assets/src/scss/front/course/index.scss @@ -9,7 +9,7 @@ height: 34px; border-radius: 50%; overflow: hidden; - margin-right: 8px; + margin-inline-end: 8px; vertical-align: middle; } diff --git a/assets/src/scss/front/index.scss b/assets/src/scss/front/index.scss index 91ebd1be68..e06b0dea26 100644 --- a/assets/src/scss/front/index.scss +++ b/assets/src/scss/front/index.scss @@ -1,29 +1,33 @@ -@import "../../../../v2-library/src/scss/reusables.scss"; +@import "../../../../v2-library/src/scss/reusables"; @import "theme"; @import "single_course"; @import "single_lesson"; @import "_archive"; @import "user_login"; -@import "./course/index.scss"; +@import "./course/index"; @import "./select_dd_search"; -//dashboard + +// dashboard @import "dashboard"; @import "_dashboard_assignment"; -@import "_dashboard_announcements"; //since 1.7.9 +@import "_dashboard_announcements"; // since 1.7.9 @import "_dashboard_quiz_review"; @import "_student_public_profile"; -//frontend-builder + +// frontend-builder @import "_frontend_withdrawal"; @import "_tooltip"; + // Instructor list short code @import "_instructor"; -//Any kind of denied (permission, unauthorized, not found) + +// Any kind of denied (permission, unauthorized, not found) @import "_denied"; -@import "./course-spotlight/index.scss"; -@import "../modules/qna.scss"; -@import "../modules/quiz-attempts.scss"; -@import "../modules/quiz-icons.scss"; -@import '../modules/instructor-note.scss'; +@import "./course-spotlight/index"; +@import "../modules/qna"; +@import "../modules/quiz-attempts"; +@import "../modules/quiz-icons"; +@import '../modules/instructor-note'; @import "./snackbar"; @import "./cart"; @import "./checkout"; @@ -33,6 +37,7 @@ .tutor-display-none { display: none; } + .tutor-page-wrap { width: 100%; } \ No newline at end of file diff --git a/assets/src/scss/frontend/components/_discussion-card.scss b/assets/src/scss/frontend/components/_discussion-card.scss index c20813119f..79fb466ea8 100644 --- a/assets/src/scss/frontend/components/_discussion-card.scss +++ b/assets/src/scss/frontend/components/_discussion-card.scss @@ -5,6 +5,7 @@ .tutor-discussion-card { @include tutor-flex(column, flex-start); + gap: $tutor-spacing-4; background-color: $tutor-surface-l1; border: 1px solid $tutor-border-idle; @@ -12,6 +13,7 @@ padding: $tutor-spacing-6; padding-bottom: $tutor-spacing-4; position: relative; + @include tutor-transition(background-color); @include tutor-breakpoint-down(sm) { @@ -70,6 +72,7 @@ &-top { @include tutor-typography(tiny); @include tutor-flex(row, center); + gap: $tutor-spacing-5; margin-block: $tutor-spacing-3; min-width: 0; @@ -115,14 +118,17 @@ &-title { @include tutor-typography(medium, semibold); @include tutor-text-clamp(2); + margin-bottom: $tutor-spacing-3; - margin-top: 0px; + margin-top: 0; + @include tutor-transition(color); } &-meta { @include tutor-typography(small, regular, subdued); @include tutor-flex(row, center); + gap: $tutor-spacing-6; line-height: $tutor-line-height-h3; @@ -133,6 +139,7 @@ .tutor-discussion-card-meta-reply-button { @include tutor-button-reset(); @include tutor-typography(tiny, medium, subdued); + margin-inline-end: auto; min-height: unset; background: unset !important; @@ -149,6 +156,7 @@ @include tutor-breakpoint-down(sm) { @include tutor-typography(tiny, regular, subdued); + gap: $tutor-spacing-5; width: 100%; @@ -166,6 +174,7 @@ &-actions { @include tutor-flex(row, center); + gap: $tutor-spacing-3; position: absolute; top: $tutor-spacing-6; @@ -173,6 +182,7 @@ @include tutor-breakpoint-up(sm) { opacity: 0; + @include tutor-transition((opacity)); } diff --git a/assets/src/scss/frontend/components/_discussion-single.scss b/assets/src/scss/frontend/components/_discussion-single.scss index cd3c253478..27ac90beae 100644 --- a/assets/src/scss/frontend/components/_discussion-single.scss +++ b/assets/src/scss/frontend/components/_discussion-single.scss @@ -11,6 +11,7 @@ .tutor-discussion-single-reply-count { @include tutor-typography(small, regular, secondary); @include tutor-flex(row, center, space-between); + padding: $tutor-spacing-5 $tutor-spacing-6; border-bottom: 1px solid $tutor-border-idle; @@ -27,6 +28,7 @@ .tutor-discussion-single-reply-list { .tutor-discussion-reply-list-item { @include tutor-flex(row); + gap: $tutor-spacing-4; padding: $tutor-spacing-6; diff --git a/assets/src/scss/frontend/components/_event-badge.scss b/assets/src/scss/frontend/components/_event-badge.scss index d9a7818781..668af919fb 100644 --- a/assets/src/scss/frontend/components/_event-badge.scss +++ b/assets/src/scss/frontend/components/_event-badge.scss @@ -18,6 +18,7 @@ &-text { @include tutor-typography('tiny'); + white-space: nowrap; } diff --git a/assets/src/scss/frontend/components/_player.scss b/assets/src/scss/frontend/components/_player.scss index ffe230f2dc..38ca5b4914 100644 --- a/assets/src/scss/frontend/components/_player.scss +++ b/assets/src/scss/frontend/components/_player.scss @@ -12,6 +12,7 @@ background: $tutor-surface-base; border-radius: $tutor-radius-sm; z-index: $tutor-z-positive; + @include tutor-loading-spinner($tutor-actions-brand-primary, $tutor-surface-base); &::before { diff --git a/assets/src/scss/frontend/components/_quiz-attempt-details.scss b/assets/src/scss/frontend/components/_quiz-attempt-details.scss index a75d0ac8ea..11c915adb6 100644 --- a/assets/src/scss/frontend/components/_quiz-attempt-details.scss +++ b/assets/src/scss/frontend/components/_quiz-attempt-details.scss @@ -37,6 +37,7 @@ &-inner { @include tutor-frontend-layout(); @include tutor-flex(row, center, space-between); + min-height: var(--tutor-quiz-summary-header-height); margin: 0 auto; } @@ -68,6 +69,7 @@ .tutor-quiz-summary-sidebar { @include tutor-flex(column); + position: sticky; top: var(--tutor-quiz-summary-sidebar-top); align-self: start; @@ -79,12 +81,16 @@ .tutor-quiz-sidebar-questions { overflow-y: auto; + @include tutor-scrollbar; - padding: 1px 1px $tutor-spacing-6 1px; + + padding: 1px 1px $tutor-spacing-6; .tutor-quiz-sidebar-question-item { all: unset; + @include tutor-flex(row); + outline: none; box-shadow: none; gap: $tutor-spacing-5; @@ -95,6 +101,7 @@ .tutor-question-number { @include tutor-typography(p2, bold); @include tutor-flex(row, center); + gap: $tutor-spacing-5; min-width: 46px; align-self: start; @@ -112,8 +119,8 @@ .tutor-question-content { @include tutor-typography(p2); + overflow-wrap: break-word; - word-wrap: break-word; -ms-word-break: break-all; word-break: break-all; -ms-hyphens: auto; @@ -133,6 +140,7 @@ &:focus-visible { @include tutor-focus-ring; + background-color: $tutor-surface-l2; } @@ -162,16 +170,16 @@ .tutor-quiz-summary-footer { background-color: $tutor-surface-base; border-top: 1px solid $tutor-border-idle; - box-shadow: 0px -4px 13px -2px #1018280f; + box-shadow: 0 -4px 13px -2px #1018280f; position: fixed; bottom: 0; - inset-inline-start: 0; - inset-inline-end: 0; + inset-inline: 0; .tutor-quiz-summary-footer-inner { max-width: 1220px; margin-inline: auto; padding: $tutor-spacing-7 $tutor-spacing-6; + @include tutor-flex(row, center, end); } @@ -200,6 +208,7 @@ .tutor-quiz-questions { @include tutor-frontend-layout(); @include tutor-flex(column); + padding-inline: 0; width: 100%; min-width: 0; @@ -223,6 +232,7 @@ .tutor-quiz-review-dnd-grid { @include tutor-flex(column); + gap: $tutor-spacing-3; @include tutor-breakpoint-down(sm) { @@ -239,9 +249,11 @@ .tutor-quiz-review-given { order: 1; } + .tutor-quiz-review-correct { order: 2; } + .tutor-quiz-review-col-title.tutor-quiz-review-correct { margin-top: $tutor-spacing-5; } @@ -260,6 +272,7 @@ .tutor-quiz-review-dnd-rows { @include tutor-flex(column); + gap: $tutor-spacing-3; @include tutor-breakpoint-down(sm) { @@ -280,12 +293,14 @@ .tutor-quiz-review-col-title { @include tutor-typography(tiny, regular, subdued); + margin-bottom: $tutor-spacing-3; } .tutor-quiz-review-item { @include tutor-flex(row, center, flex-start); @include tutor-typography(small, semibold); + gap: $tutor-spacing-3; min-height: 38px; min-width: 0; @@ -297,24 +312,25 @@ &:has(.tutor-quiz-review-item-title) { @include tutor-flex(column, flex-start, center); + gap: $tutor-spacing-none; } .tutor-quiz-review-item-title { @include tutor-typography(tiny); + color: inherit; min-width: 0; overflow-wrap: break-word; - word-break: break-word; } .tutor-quiz-review-item-text, span { @include tutor-typography(small, semibold); + color: inherit; min-width: 0; overflow-wrap: break-word; - word-break: break-word; } &:has(img) { @@ -348,6 +364,7 @@ background: $tutor-surface-warning-hover; } } + .tutor-quiz-question-option { &[data-readonly='true'] { pointer-events: none; @@ -391,6 +408,7 @@ &-actions { @include tutor-flex(row, center); + gap: $tutor-spacing-7; flex-shrink: 0; @@ -401,6 +419,7 @@ &-status { @include tutor-flex(row, center, flex-start, wrap); + gap: $tutor-spacing-3; } @@ -413,12 +432,14 @@ &-score { @include tutor-typography(small, regular, subdued); + white-space: nowrap; } } &-review-actions { @include tutor-flex(row, center); + gap: $tutor-spacing-4; @include tutor-breakpoint-down(sm) { @@ -431,6 +452,7 @@ @include tutor-button-variant(secondary); @include tutor-button-icon-size(x-small); @include tutor-transition((background-color, color, opacity, border-color)); + position: relative; cursor: pointer; @@ -454,7 +476,7 @@ padding: 0; margin: -1px; overflow: hidden; - clip: rect(0, 0, 0, 0); + clip-path: inset(50%); white-space: nowrap; border: 0; } @@ -477,8 +499,7 @@ .tutor-quiz-summary-footer { position: sticky; bottom: 0; - inset-inline-start: auto; - inset-inline-end: auto; + inset-inline: auto; } } @@ -493,6 +514,7 @@ body:has(#wpadminbar) .tutor-quiz-summary-feedback { @include tutor-flex(column); + gap: $tutor-spacing-4; margin-top: $tutor-spacing-6; border: 1px solid $tutor-border-brand-secondary; @@ -524,6 +546,7 @@ body:has(#wpadminbar) .tutor-quiz-review-feedback { @include tutor-flex(column); + gap: $tutor-spacing-7; .tutor-quiz-review-feedback-button { @@ -539,11 +562,12 @@ body:has(#wpadminbar) .tutor-quiz-open-ended-answer { @include tutor-typography(p2, regular, primary); + border: 1px solid $tutor-border-idle; border-radius: $tutor-radius-2xl; background-color: $tutor-surface-base; padding: $tutor-spacing-6; - word-break: break-word; + overflow-wrap: break-word; &.is-empty { color: $tutor-text-subdued; @@ -555,6 +579,7 @@ body:has(#wpadminbar) .tutor-quiz-obtained-marks-group { @include tutor-flex(column); + gap: $tutor-spacing-3; } @@ -564,6 +589,7 @@ body:has(#wpadminbar) .tutor-quiz-obtained-marks-row { @include tutor-flex(row, baseline); + gap: $tutor-spacing-3; .tutor-input-field { @@ -578,6 +604,7 @@ body:has(#wpadminbar) .tutor-quiz-manual-review-error { @include tutor-typography(small, regular); + color: $tutor-text-critical; margin-top: $tutor-spacing-1; } @@ -585,6 +612,7 @@ body:has(#wpadminbar) .tutor-quiz-add-feedback-btn { @include tutor-flex(row, center); @include tutor-typography(p2, medium); + gap: $tutor-spacing-2; background: none; border: none; @@ -592,6 +620,7 @@ body:has(#wpadminbar) margin-top: $tutor-spacing-4; cursor: pointer; color: $tutor-text-brand; + @include tutor-transition(color); &:hover { @@ -616,6 +645,7 @@ body:has(#wpadminbar) &-header { @include tutor-flex(row, center, space-between); + margin-bottom: $tutor-spacing-3; } @@ -629,6 +659,7 @@ body:has(#wpadminbar) &-content { @include tutor-typography(p2, regular, primary); + margin-bottom: $tutor-spacing-4; } @@ -641,6 +672,7 @@ body:has(#wpadminbar) .tutor-quiz-feedback-actions-main { @include tutor-flex(row, center); + gap: $tutor-spacing-3; } } @@ -652,14 +684,16 @@ body:has(#wpadminbar) .tutor-quiz-question-feedback-title { @include tutor-typography(p2, semibold, primary); + margin-bottom: $tutor-spacing-3; } .tutor-quiz-question-feedback-card { @include tutor-typography(p2, regular, primary); + background-color: $tutor-surface-brand-tertiary; border-radius: $tutor-radius-2xl; padding: $tutor-spacing-6; - word-break: break-word; + overflow-wrap: break-word; } } diff --git a/assets/src/scss/frontend/components/_quiz-attempts.scss b/assets/src/scss/frontend/components/_quiz-attempts.scss index 28f884ce6a..80bb946729 100644 --- a/assets/src/scss/frontend/components/_quiz-attempts.scss +++ b/assets/src/scss/frontend/components/_quiz-attempts.scss @@ -23,6 +23,7 @@ .tutor-quiz-attempts { &-filter { @include tutor-flex(row, center, space-between); + padding: $tutor-spacing-5 $tutor-spacing-6; border-bottom: 1px solid $tutor-border-idle; } @@ -34,7 +35,9 @@ background-color: $tutor-surface-l1-hover; border-bottom: 1px solid $tutor-border-idle; padding: $tutor-spacing-5 $tutor-spacing-6; + @include tutor-typography(tiny); + color: $tutor-text-secondary; @include tutor-breakpoint-down(sm) { @@ -86,8 +89,7 @@ 'info info info' 'marks time result' 'buttons buttons buttons'; - row-gap: $tutor-spacing-4; - column-gap: 0px; + gap: $tutor-spacing-4 0; &[data-learning-area='true'] { .tutor-quiz-item-info { @@ -107,6 +109,7 @@ &-expanded { @include tutor-flex(row, start); + gap: $tutor-spacing-4; text-align: center; min-height: 24px; @@ -114,8 +117,10 @@ &-title { @include tutor-typography(medium, semibold); + text-align: start; margin-bottom: $tutor-spacing-2; + @include tutor-transition(color); &:hover { @@ -130,7 +135,9 @@ &-course { @include tutor-flex(row, center); + gap: $tutor-spacing-2; + @include tutor-typography(small, regular, secondary); @include tutor-breakpoint-down(sm) { @@ -141,24 +148,30 @@ &-student { @include tutor-typography(tiny, regular, secondary); + margin-top: $tutor-spacing-3; } &-date { @include tutor-typography(tiny, regular, subdued); + margin-top: $tutor-spacing-3; } .tutor-quiz-attempts-expand-btn { @include tutor-button-reset(); @include tutor-flex(row, center); + gap: $tutor-spacing-2; + @include tutor-typography(small, medium, brand); + cursor: pointer; white-space: nowrap; @include tutor-breakpoint-down(sm) { @include tutor-flex(row, center); + font-size: $tutor-font-size-tiny; line-height: $tutor-line-height-tiny; } @@ -166,6 +179,7 @@ .tutor-quiz-attempts-expand-icon { display: flex; + @include tutor-transition(transform, 0.3s); @include tutor-breakpoint-down(sm) { @@ -178,6 +192,7 @@ .tutor-student-attempt-detail { text-decoration: none; + @include tutor-breakpoint-up(sm) { display: none; } @@ -186,7 +201,9 @@ .tutor-quiz-item-marks { grid-area: marks; + @include tutor-flex(row, center); + gap: $tutor-spacing-4; @include tutor-breakpoint-down(sm) { @@ -199,11 +216,13 @@ .tutor-quiz-marks-breakdown { @include tutor-flex(column, stretch, center); + gap: $tutor-spacing-1; .tutor-quiz-marks-correct, .tutor-quiz-marks-incorrect { @include tutor-badge-base; + width: 100%; border-radius: $tutor-radius-full; @@ -228,13 +247,18 @@ .tutor-quiz-item-time { grid-area: time; + @include tutor-flex(row, center); + gap: $tutor-spacing-3; + @include tutor-typography(medium, regular, subdued); + white-space: nowrap; @include tutor-breakpoint-down(sm) { @include tutor-typography(small, regular, subdued); + height: 100%; background-color: $tutor-surface-l1-hover; padding-inline: $tutor-spacing-4; @@ -243,6 +267,7 @@ .tutor-quiz-item-result { grid-area: result; + @include tutor-flex(column, center, center); @include tutor-breakpoint-down(sm) { @@ -265,6 +290,7 @@ @include tutor-breakpoint-down(sm) { @include tutor-flex(row, center, center); + gap: $tutor-spacing-5; margin-top: $tutor-spacing-2; @@ -317,6 +343,7 @@ .tutor-quiz-attempts-item { grid-template-columns: 324px 180px 1.5fr 1fr; padding: $tutor-spacing-6; + @include tutor-transition(background-color); @include tutor-breakpoint-down(sm) { @@ -326,8 +353,7 @@ 'marks time result' 'buttons buttons buttons'; padding-top: $tutor-spacing-5; - padding-inline-start: $tutor-spacing-5; - padding-inline-end: $tutor-spacing-5; + padding-inline: $tutor-spacing-5 $tutor-spacing-5; padding-bottom: $tutor-spacing-2; row-gap: $tutor-spacing-4; } @@ -353,6 +379,7 @@ @include tutor-breakpoint-down(sm) { .tutor-quiz-item-actions { padding-bottom: $tutor-spacing-5; + &:not(:last-child) { border-bottom: 1px solid $tutor-border-idle; } @@ -376,6 +403,7 @@ .tutor-quiz-item-actions { @include tutor-flex(row, center, space-between); + gap: $tutor-spacing-5; padding-top: $tutor-spacing-2; grid-column: 1/-1; diff --git a/assets/src/scss/frontend/components/_quiz-question.scss b/assets/src/scss/frontend/components/_quiz-question.scss index 690239c1ad..2e7cee237d 100644 --- a/assets/src/scss/frontend/components/_quiz-question.scss +++ b/assets/src/scss/frontend/components/_quiz-question.scss @@ -3,6 +3,7 @@ .tutor-quiz-question { @include tutor-flex(column); + gap: $tutor-spacing-7; background-color: $tutor-surface-l1; border: 1px solid $tutor-border-idle; @@ -13,11 +14,13 @@ &:has(:focus-visible:not(input):not(textarea):not(select)) { @include tutor-focus-ring(#{$tutor-border-idle2}, true); + outline-offset: $tutor-spacing-2; } .tutor-keyboard-nav &:has(:focus-visible) { @include tutor-focus-ring(#{$tutor-border-idle2}, true); + outline-offset: $tutor-spacing-2; } @@ -28,6 +31,7 @@ &-header { @include tutor-flex(row, flex-start, space-between); + gap: $tutor-spacing-4; min-width: 0; } @@ -35,6 +39,7 @@ &-number { @include tutor-flex(row, center, center); @include tutor-typography('medium', 'semibold'); + background-color: $tutor-surface-l1-hover; border: 1px solid $tutor-border-idle; border-radius: $tutor-radius-sm; @@ -44,6 +49,7 @@ @include tutor-breakpoint-down(sm) { @include tutor-typography('tiny', 'semibold'); + width: 20px; height: 20px; } @@ -52,20 +58,22 @@ &-title { @include tutor-flex(column); @include tutor-typography('medium', 'semibold'); + gap: $tutor-spacing-4; flex: 1; min-width: 0; overflow-wrap: break-word; - word-break: break-word; @include tutor-breakpoint-down(sm) { @include tutor-typography('p2', 'semibold'); + gap: $tutor-spacing-2; } } &-options { @include tutor-flex(row); + gap: $tutor-spacing-6; width: 100%; min-width: 0; @@ -73,11 +81,13 @@ &-option { @include tutor-typography('small'); + border: 1px solid $tutor-border-idle2; border-radius: $tutor-radius-md; background-color: $tutor-quiz-idle; overflow: hidden; min-width: 0; + @include tutor-transition((background-color, border-color, color)); label { @@ -92,6 +102,7 @@ &:focus-visible, &:has(.tutor-input:focus-visible) { @include tutor-focus-ring(brand, true); + outline-offset: $tutor-spacing-2; } @@ -216,12 +227,14 @@ @include tutor-breakpoint-down(sm) { @include tutor-grid-auto-columns(1, 1); + gap: $tutor-spacing-5; } } &-option { @include tutor-flex-center; + gap: $tutor-spacing-3; padding: $tutor-spacing-3 $tutor-spacing-4; @@ -248,11 +261,13 @@ @include tutor-breakpoint-down(sm) { &:has(img) { @include tutor-grid-auto-columns(2, 2); + gap: $tutor-spacing-5; } &:not(:has(img)) { @include tutor-grid-auto-columns(1, 1); + gap: $tutor-spacing-5; } } @@ -260,11 +275,13 @@ &-option { @include tutor-flex(row, center, flex-start); + gap: $tutor-spacing-3; padding: $tutor-spacing-3 $tutor-spacing-4; &:has(img) { @include tutor-flex(column, flex-start, center); + padding: 0; gap: 0; @@ -297,11 +314,13 @@ .tutor-quiz-question { &-options { @include tutor-grid-auto-columns(1, 1); + gap: $tutor-spacing-5; } &-option { @include tutor-typography('small', 'regular'); + background-color: transparent; border: none; line-height: 2.5; @@ -325,6 +344,7 @@ width: 167px; min-width: 167px; color: $tutor-text-brand; + @include tutor-transition((color, opacity)); } } @@ -335,6 +355,7 @@ .tutor-quiz-question { &-options { @include tutor-grid-auto-columns(1, 1); + gap: $tutor-spacing-3; } } diff --git a/assets/src/scss/frontend/components/_quiz-summary.scss b/assets/src/scss/frontend/components/_quiz-summary.scss index dc217510c2..09671a53fc 100644 --- a/assets/src/scss/frontend/components/_quiz-summary.scss +++ b/assets/src/scss/frontend/components/_quiz-summary.scss @@ -3,6 +3,7 @@ .tutor-quiz-summary { @include tutor-frontend-layout(); + margin: 0 auto; padding-block: $tutor-spacing-13; @@ -49,28 +50,35 @@ @include tutor-flex(row, center, center); } } + &-marks { @include tutor-typography(medium, regular, secondary); @include tutor-flex(column); + gap: $tutor-spacing-6; grid-area: marks; @include tutor-breakpoint-down(sm) { @include tutor-text(small); + gap: $tutor-spacing-4; } } + &-statics { grid-area: statics; + @include tutor-typography(medium, regular, secondary); @include tutor-breakpoint-down(sm) { @include tutor-text(small); + align-self: end; } .tutor-quiz-result-static-item { @include tutor-flex(row, center); + gap: $tutor-spacing-3; &::before { @@ -99,6 +107,7 @@ } } } + &-retake { grid-area: retake; align-self: end; @@ -113,6 +122,7 @@ &-footer { @include tutor-flex(row, center, center); @include tutor-typography(tiny, regular, subdued); + gap: $tutor-spacing-4; flex-wrap: wrap; @@ -136,6 +146,7 @@ .tutor-empty-quiz-details { @include tutor-flex(row, center, center); + padding: $tutor-spacing-6; background-color: $tutor-surface-critical; border: 1px solid $tutor-border-error-tertiary; @@ -145,6 +156,7 @@ .error-message { @include tutor-typography(small, regular); + color: $tutor-text-critical; margin-block: 0; } diff --git a/assets/src/scss/frontend/components/_tour.scss b/assets/src/scss/frontend/components/_tour.scss index ff243d6a75..6a0e70ee76 100644 --- a/assets/src/scss/frontend/components/_tour.scss +++ b/assets/src/scss/frontend/components/_tour.scss @@ -39,7 +39,7 @@ } &[class*='tutor-slide-4']::after { - box-shadow: inset 10px 0px 20px 0px $tutor-surface-l1-hover; + box-shadow: inset 10px 0 20px 0 $tutor-surface-l1-hover; } @include tutor-breakpoint-up(sm) { @@ -47,7 +47,7 @@ &[class*='tutor-slide-1']::after, &[class*='tutor-slide-2']::after, &[class*='tutor-slide-3']::after { - box-shadow: inset -6px -6px 20px 0px $tutor-surface-l1-hover; + box-shadow: inset -6px -6px 20px 0 $tutor-surface-l1-hover; } } @@ -55,11 +55,11 @@ &[class*='tutor-slide-0']::after, &[class*='tutor-slide-2']::after, &[class*='tutor-slide-3']::after { - box-shadow: inset -6px -6px 20px 0px $tutor-surface-l1-hover; + box-shadow: inset -6px -6px 20px 0 $tutor-surface-l1-hover; } &[class*='tutor-slide-1']::after { - box-shadow: inset 6px -6px 20px 0px $tutor-surface-l1-hover; + box-shadow: inset 6px -6px 20px 0 $tutor-surface-l1-hover; } } } @@ -71,6 +71,7 @@ border-radius: $tutor-radius-full; background: $tutor-icon-disabled; display: inline-block; + @include tutor-transition(background); &.is-active { diff --git a/assets/src/scss/frontend/components/_upcoming-lesson-card.scss b/assets/src/scss/frontend/components/_upcoming-lesson-card.scss index 9554caaa7e..362d8bbdde 100644 --- a/assets/src/scss/frontend/components/_upcoming-lesson-card.scss +++ b/assets/src/scss/frontend/components/_upcoming-lesson-card.scss @@ -18,6 +18,7 @@ .tutor-upcoming-lesson-card-live-tag-badge { opacity: 0; } + .tutor-upcoming-lesson-card-action { opacity: 1; pointer-events: auto; @@ -27,14 +28,17 @@ &-header { @include tutor-flex(row, center, space-between); + margin-bottom: $tutor-spacing-1; min-height: 32px; } &-meta { @include tutor-flex(row, center, flex-start); + gap: $tutor-spacing-2; align-items: center; + @include tutor-typography('tiny', 'regular', 'secondary', 'body'); } @@ -47,20 +51,24 @@ &-badge { @include tutor-flex(row, center, center); + opacity: 1; z-index: $tutor-z-positive; + @include tutor-transition(opacity); } } &-action { @include tutor-flex(row, center, center); + position: absolute; top: 0; inset-inline-end: 0; opacity: 0; pointer-events: none; z-index: $tutor-z-dropdown; + @include tutor-transition(opacity); &:hover { @@ -70,9 +78,11 @@ &-title { display: block; + @include tutor-typography('small', 'medium', 'primary', 'body'); @include tutor-text-truncate(); - margin: 0 0 $tutor-spacing-5 0; + + margin: 0 0 $tutor-spacing-5; &:hover { color: $tutor-text-brand; @@ -86,6 +96,7 @@ &-course { @include tutor-flex(row, baseline, flex-start); @include tutor-typography('tiny', 'regular', 'secondary', 'body'); + gap: $tutor-spacing-1; } diff --git a/assets/src/scss/frontend/dashboard/_billing.scss b/assets/src/scss/frontend/dashboard/_billing.scss index f919eb452c..167df9dee8 100644 --- a/assets/src/scss/frontend/dashboard/_billing.scss +++ b/assets/src/scss/frontend/dashboard/_billing.scss @@ -43,6 +43,7 @@ .tutor-tabs-tab { @include tutor-flex(row, center, center); + flex: 1; } } @@ -50,6 +51,7 @@ &-content { @include tutor-flex(column, flex-start, center); + width: 100%; @include tutor-breakpoint-down(sm) { @@ -61,6 +63,7 @@ &-filters { @include tutor-flex(row, center, space-between); + gap: $tutor-spacing-4; width: 100%; padding: $tutor-spacing-5 $tutor-spacing-6; @@ -73,6 +76,7 @@ &-card { @include tutor-flex(row, start, space-between); + border-bottom: 1px solid $tutor-border-idle; padding: $tutor-spacing-6; gap: $tutor-spacing-4; @@ -94,6 +98,7 @@ &-left { @include tutor-flex(column, flex-start, center); + flex: 1 1 0; gap: $tutor-spacing-3; min-width: 0; @@ -110,6 +115,7 @@ &-right { @include tutor-flex(column, flex-end, center); + flex-shrink: 0; gap: $tutor-spacing-2; text-align: end; @@ -119,6 +125,7 @@ @include tutor-flex(row, start, flex-start); @include tutor-typography('small', 'medium'); @include tutor-text-truncate(); + min-width: 0; width: 100%; gap: $tutor-spacing-2; @@ -139,16 +146,17 @@ @include tutor-breakpoint-down(sm) { @include tutor-flex(column, flex-start, center); + overflow: visible; text-overflow: unset; white-space: normal; overflow-wrap: anywhere; - word-break: break-word; } } &-details { @include tutor-flex(row, center); + gap: $tutor-spacing-4; color: $tutor-text-secondary; } @@ -156,6 +164,7 @@ &-id { @include tutor-flex(row, center, center); @include tutor-typography('tiny'); + padding: 0 $tutor-spacing-2; background-color: $tutor-surface-l2; border-radius: $tutor-radius-xs; @@ -184,11 +193,13 @@ &-invoice { @include tutor-flex(column, flex-start, center); + width: 100%; gap: $tutor-spacing-5; &-header { @include tutor-flex(row, center, space-between); + width: 100%; border: 1px solid $tutor-border-idle; border-radius: $tutor-radius-2xl; @@ -198,6 +209,7 @@ &-content { @include tutor-flex-center; + width: 100%; border: 1px solid $tutor-border-idle; border-radius: $tutor-radius-2xl; @@ -222,6 +234,7 @@ .tutor-payment-modal-payments { @include tutor-flex(column); + background-color: $tutor-surface-base; border: 1px solid $tutor-border-idle; border-radius: $tutor-radius-lg; diff --git a/assets/src/scss/frontend/dashboard/_course-card.scss b/assets/src/scss/frontend/dashboard/_course-card.scss index d2c30db729..6f651094a1 100644 --- a/assets/src/scss/frontend/dashboard/_course-card.scss +++ b/assets/src/scss/frontend/dashboard/_course-card.scss @@ -6,11 +6,13 @@ .tutor-course-card { @include tutor-flex(column, flex-start, flex-start); + height: 100%; background-color: $tutor-surface-l1; padding: $tutor-spacing-4; border: 1px solid $tutor-border-idle; border-radius: $tutor-radius-lg; + @include tutor-transition(background-color); &:hover { @@ -57,15 +59,18 @@ .tutor-ratings { @include tutor-typography('tiny', 'regular', 'exception4'); @include tutor-flex(row, center, flex-start, wrap); + gap: $tutor-spacing-2; } .tutor-course-card-ratings-stars { @include tutor-flex(row, center, flex-start); + gap: $tutor-spacing-2; i[class*='tutor-icon-star'] { @include tutor-typography('tiny', 'regular', 'exception4'); + line-height: 12px; } } @@ -77,10 +82,12 @@ &-title { @include tutor-typography('small', 'medium', 'primary'); + margin-bottom: $tutor-spacing-2; a { color: $tutor-text-primary; + @include tutor-transition(color); &:hover { @@ -91,12 +98,16 @@ &-meta { @include tutor-flex(row, center, flex-start, wrap); + gap: $tutor-spacing-1 $tutor-spacing-3; + @include tutor-typography('tiny', 'regular', 'secondary', 'body'); + margin-top: auto; a { color: $tutor-text-secondary; + @include tutor-transition(color); &:hover { @@ -107,9 +118,13 @@ &-footer { padding-top: $tutor-spacing-4; + @include tutor-flex(row, center, flex-start); + gap: $tutor-spacing-5; + @include tutor-typography('small', 'medium', 'primary'); + margin-top: auto; del { diff --git a/assets/src/scss/frontend/dashboard/_profile-completion.scss b/assets/src/scss/frontend/dashboard/_profile-completion.scss index 19309f1e5c..3d28aa73b2 100644 --- a/assets/src/scss/frontend/dashboard/_profile-completion.scss +++ b/assets/src/scss/frontend/dashboard/_profile-completion.scss @@ -7,6 +7,7 @@ &-header { @include tutor-flex(row, center, space-between); + padding: $tutor-spacing-5; background-color: $tutor-surface-l1; border: 1px solid $tutor-border-idle; @@ -20,6 +21,7 @@ &-body { @include tutor-flex(column); + gap: $tutor-spacing-5; padding: $tutor-spacing-5 26px; border: 1px solid $tutor-border-idle; @@ -27,7 +29,6 @@ border-end-start-radius: $tutor-radius-2xl; border-end-end-radius: $tutor-radius-2xl; box-shadow: $tutor-shadow-lg; - position: absolute; top: 100%; inset-inline-start: 0; diff --git a/assets/src/scss/frontend/dashboard/_profile.scss b/assets/src/scss/frontend/dashboard/_profile.scss index abc59d9be4..345c9b4707 100644 --- a/assets/src/scss/frontend/dashboard/_profile.scss +++ b/assets/src/scss/frontend/dashboard/_profile.scss @@ -4,12 +4,14 @@ .tutor-user-profile { .tutor-profile-card { @include tutor-card-base; + border-radius: $tutor-radius-2xl; padding: $tutor-spacing-6; } .tutor-profile-card-header { @include tutor-flex(row, center, center); + background-color: $tutor-surface-brand-tertiary; background-size: cover; background-position: center center; @@ -32,6 +34,7 @@ @include tutor-button-base(); @include tutor-button-variant(outline); @include tutor-button-size(x-small); + outline: none; gap: $tutor-spacing-2; position: absolute; @@ -57,6 +60,7 @@ .tutor-profile-card-body { @include tutor-grid(2, $tutor-spacing-21); + position: relative; @include tutor-breakpoint-down(sm) { @@ -65,6 +69,7 @@ .tutor-user-profile-title { @include tutor-typography(h3, semibold, primary, heading); + margin-top: $tutor-spacing-none; margin-bottom: $tutor-spacing-2; @@ -79,6 +84,7 @@ .tutor-user-profile-social { @include tutor-flex(row, center); + gap: $tutor-spacing-6; margin-top: $tutor-spacing-6; @@ -88,6 +94,7 @@ outline: none; box-shadow: none; color: $tutor-text-primary; + @include tutor-transition(color); &:hover { @@ -98,6 +105,7 @@ .tutor-user-profile-bio { @include tutor-typography(p2, regular, secondary); + margin-bottom: $tutor-spacing-9; p { @@ -124,6 +132,7 @@ .tutor-user-profile-details { @include tutor-flex(column, flex-start); + gap: $tutor-spacing-2; list-style: none; padding: 0; @@ -155,7 +164,9 @@ .tutor-profile-member-since { @include tutor-flex(row, center); + gap: $tutor-spacing-2; + @include tutor-typography(tiny, regular, subdued); @include tutor-breakpoint-up(sm) { @@ -168,6 +179,7 @@ %bio-toggle-base { @include tutor-typography(small); + appearance: none; background: $tutor-surface-l1; border: none; @@ -175,7 +187,7 @@ color: $tutor-text-brand; cursor: pointer; text-box-trim: trim-both; - text-edge: cap alphabetic; + text-box-edge: cap alphabetic; &:focus-visible { outline: 2px solid $tutor-text-brand; @@ -190,6 +202,7 @@ .tutor-bio-toggle-less { @extend %bio-toggle-base; + display: inline; margin-top: $tutor-spacing-2; } @@ -199,6 +212,7 @@ .tutor-statistic-title { @include tutor-typography(h5, semibold, primary, heading); + margin-top: $tutor-spacing-none; margin-bottom: $tutor-spacing-4; } @@ -210,6 +224,7 @@ .tutor-statistic-card { @include tutor-card-base; @include tutor-flex(row, flex-start); + gap: $tutor-spacing-5; background-color: $tutor-surface-l1; border: 1px solid $tutor-border-idle; @@ -236,6 +251,7 @@ &-content { @include tutor-flex(column); + gap: $tutor-spacing-1; } diff --git a/assets/src/scss/frontend/dashboard/_progress-card.scss b/assets/src/scss/frontend/dashboard/_progress-card.scss index f8eb78a6af..0e7f1c9789 100644 --- a/assets/src/scss/frontend/dashboard/_progress-card.scss +++ b/assets/src/scss/frontend/dashboard/_progress-card.scss @@ -16,6 +16,7 @@ .tutor-progress-card-inner { @include tutor-flex(row, stretch, flex-start); + gap: $tutor-spacing-5; } @@ -41,18 +42,22 @@ &-content { flex: 0 0 calc(100% - 350px); min-width: 0; + @include tutor-flex(column, stretch, space-between); } &-header { min-width: 0; + @include tutor-flex(column, stretch, flex-start); + gap: $tutor-spacing-1; } &-category { @include tutor-typography('tiny', 'regular', 'secondary'); @include tutor-text-truncate(); + min-width: 0; max-width: 100%; margin-bottom: $tutor-spacing-1; @@ -60,11 +65,13 @@ &-title { @include tutor-typography('small', 'medium', 'primary'); + margin: 0; } &-details { @include tutor-typography('tiny', 'regular', 'secondary'); + display: flex; align-items: center; gap: $tutor-spacing-2; @@ -78,8 +85,10 @@ &-actions { position: absolute; top: $tutor-spacing-4; + @include right($tutor-spacing-4); @include tutor-flex(row, center, flex-end); + gap: $tutor-spacing-3; opacity: 0; visibility: hidden; @@ -130,6 +139,7 @@ &:focus-visible { @include tutor-focus-ring(); + border-radius: $tutor-radius-2xl !important; z-index: $tutor-z-positive; } @@ -143,6 +153,7 @@ // Mobile styles @include tutor-breakpoint-down(sm) { @include tutor-flex(column, stretch, flex-start); + height: auto; gap: $tutor-spacing-none; @@ -161,7 +172,9 @@ display: block; position: absolute; top: $tutor-spacing-4; + @include right($tutor-spacing-4); + z-index: $tutor-z-dropdown; } diff --git a/assets/src/scss/frontend/dashboard/_reviews.scss b/assets/src/scss/frontend/dashboard/_reviews.scss index a9e74f6416..3a05837c5d 100644 --- a/assets/src/scss/frontend/dashboard/_reviews.scss +++ b/assets/src/scss/frontend/dashboard/_reviews.scss @@ -12,9 +12,11 @@ .tutor-review { &-card { @include tutor-flex(column); + background-color: $tutor-surface-l1; border: 1px solid $tutor-border-idle; border-radius: $tutor-radius-lg; + @include tutor-transition((background-color, border-color, opacity)); &:hover { @@ -34,12 +36,14 @@ &-header { @include tutor-flex(column); + gap: $tutor-spacing-2; padding: $tutor-spacing-6; } &-title { @include tutor-typography('medium', 'medium'); + margin-top: $tutor-spacing-1; } @@ -49,6 +53,7 @@ &-content { @include tutor-flex(column); + gap: $tutor-spacing-5; padding: $tutor-spacing-6; } @@ -60,12 +65,14 @@ &-rating { @include tutor-flex(row, center); @include tutor-typography('p1'); + height: 32px; } &-actions { gap: $tutor-spacing-4; opacity: 0; + @include tutor-transition(opacity); } @@ -75,12 +82,14 @@ &-form { @include tutor-flex(column); + background-color: $tutor-surface-l1-hover; gap: $tutor-spacing-5; padding: $tutor-spacing-6; &-fields { @include tutor-flex(column); + gap: $tutor-spacing-6; width: 100%; } @@ -88,6 +97,7 @@ &-student { @include tutor-flex(row, center); + gap: $tutor-spacing-4; margin-top: $tutor-spacing-4; } diff --git a/assets/src/scss/frontend/dashboard/_stat-card.scss b/assets/src/scss/frontend/dashboard/_stat-card.scss index 966ad8cfc7..a4be7d9c3d 100644 --- a/assets/src/scss/frontend/dashboard/_stat-card.scss +++ b/assets/src/scss/frontend/dashboard/_stat-card.scss @@ -6,11 +6,13 @@ .tutor-stat-card { @include tutor-flex(column, stretch, space-between); + padding: $tutor-spacing-6; height: 146px; border: 1px solid $tutor-border-idle; border-radius: $tutor-radius-2xl; background-color: $tutor-surface-l1; + @include tutor-transition(background-color); @include tutor-breakpoint-down(sm) { @@ -40,6 +42,7 @@ &-title { @include tutor-typography('small'); + margin: 0; } @@ -49,11 +52,13 @@ &-value { @include tutor-typography('h2', 'bold', 'primary', 'heading'); + margin: 0; } &-change { @include tutor-typography('tiny', 'regular', 'secondary', 'body'); + margin-top: $tutor-spacing-1; margin-bottom: 0; } diff --git a/assets/src/scss/frontend/dashboard/_withdrawals.scss b/assets/src/scss/frontend/dashboard/_withdrawals.scss index d05b1a1d0a..5085325e41 100644 --- a/assets/src/scss/frontend/dashboard/_withdrawals.scss +++ b/assets/src/scss/frontend/dashboard/_withdrawals.scss @@ -4,6 +4,7 @@ .tutor-user-withdrawals { .tutor-withdrawal-history-heading { @include tutor-typography(medium, medium); + margin-top: $tutor-spacing-10; margin-bottom: $tutor-spacing-5; @@ -157,7 +158,6 @@ > div:last-child { min-width: 0; - word-break: break-word; overflow-wrap: break-word; } } @@ -170,6 +170,7 @@ .tutor-withdrawal-available-balance { @include tutor-flex(); + gap: $tutor-spacing-5; padding: $tutor-spacing-5 $tutor-spacing-6; background: $tutor-surface-l1-hover; @@ -178,6 +179,7 @@ &-icon { @include tutor-flex-center(); + width: 44px; height: 44px; gap: $tutor-spacing-4; diff --git a/assets/src/scss/frontend/dashboard/layout/_account.scss b/assets/src/scss/frontend/dashboard/layout/_account.scss index dad64d9b5a..99d185e050 100644 --- a/assets/src/scss/frontend/dashboard/layout/_account.scss +++ b/assets/src/scss/frontend/dashboard/layout/_account.scss @@ -27,11 +27,11 @@ &-title { @include tutor-typography(h4, semibold, primary, heading); + margin: $tutor-spacing-none; @include tutor-breakpoint-up(sm) { - margin-inline-end: auto; - margin-inline-start: $tutor-spacing-4; + margin-inline: $tutor-spacing-4 auto; } } } @@ -48,5 +48,6 @@ body:has(#wpadminbar) .tutor-account-page-wrapper.tutor-has-site-shell .tutor-ac .tutor-account-container { @include tutor-frontend-layout(); + padding-inline: $tutor-spacing-6; } diff --git a/assets/src/scss/frontend/dashboard/layout/_header.scss b/assets/src/scss/frontend/dashboard/layout/_header.scss index 32f3d51a08..29456f6002 100644 --- a/assets/src/scss/frontend/dashboard/layout/_header.scss +++ b/assets/src/scss/frontend/dashboard/layout/_header.scss @@ -35,6 +35,7 @@ &-inner { @include tutor-frontend-layout(); @include tutor-flex(row, center, space-between); + height: 100%; @include tutor-breakpoint-up(2xl) { @@ -44,6 +45,7 @@ &-left { @include tutor-flex(column); + gap: $tutor-spacing-1; } @@ -53,9 +55,11 @@ padding: 0; @include tutor-typography(tiny, regular); + color: $tutor-text-secondary; @include tutor-flex(row, center); + gap: $tutor-spacing-5; li { @@ -87,6 +91,7 @@ &-user { position: relative; + @include tutor-flex(row, center); } @@ -96,9 +101,11 @@ &-user-avatar { @include tutor-button-reset(); + border: 1px solid $tutor-border-idle; border-radius: $tutor-radius-full; overflow: hidden; + @include tutor-transition(border-color); &:hover, @@ -118,6 +125,7 @@ &-profile { @include tutor-flex(column, center, flex-start); + gap: $tutor-spacing-5; background-color: $tutor-surface-brand-tertiary; padding: $tutor-spacing-6 $tutor-spacing-5; @@ -133,7 +141,9 @@ list-style: none; margin: 0; padding: 0; + @include tutor-flex(column); + gap: $tutor-spacing-2; li { @@ -147,7 +157,9 @@ a { width: 100%; + @include tutor-flex(row, center); + gap: $tutor-spacing-5; padding: $tutor-spacing-4 $tutor-spacing-5; border-radius: $tutor-radius-md; @@ -155,6 +167,7 @@ text-decoration: none; box-shadow: none; outline: none; + @include tutor-transition(background-color); &:hover { @@ -180,6 +193,7 @@ .tutor-dashboard-header-user-avatar { @include tutor-button-base(); @include tutor-button-variant(ghost); + padding: 9px; .tutor-avatar { @@ -188,8 +202,8 @@ } &-user-popover { - top: 0px !important; - inset-inline-start: 0px !important; + top: 0 !important; + inset-inline-start: 0 !important; width: 100% !important; max-width: 100% !important; height: 100% !important; @@ -198,6 +212,7 @@ overflow-y: auto; background: $tutor-surface-base; padding: $tutor-spacing-none; + @include tutor-flex(column); body:has(#wpadminbar) & { @@ -214,7 +229,9 @@ .tutor-profile-header-top { width: 100%; + @include tutor-flex(row, center, space-between); + background: $tutor-surface-base; } @@ -242,6 +259,7 @@ &-menu-wrapper { @include tutor-flex(column, stretch, space-between); + height: 100%; } diff --git a/assets/src/scss/frontend/dashboard/layout/_layout.scss b/assets/src/scss/frontend/dashboard/layout/_layout.scss index a20ab02264..7baefd82cf 100644 --- a/assets/src/scss/frontend/dashboard/layout/_layout.scss +++ b/assets/src/scss/frontend/dashboard/layout/_layout.scss @@ -18,6 +18,7 @@ .tutor-dashboard-page { @include tutor-frontend-layout(); + padding-inline: $tutor-spacing-6; padding-bottom: $tutor-spacing-7; padding-top: $tutor-spacing-7; diff --git a/assets/src/scss/frontend/dashboard/layout/_nav-mobile.scss b/assets/src/scss/frontend/dashboard/layout/_nav-mobile.scss index 32b44a850c..027aec585e 100644 --- a/assets/src/scss/frontend/dashboard/layout/_nav-mobile.scss +++ b/assets/src/scss/frontend/dashboard/layout/_nav-mobile.scss @@ -9,8 +9,7 @@ padding: $tutor-spacing-6 $tutor-spacing-6 $tutor-spacing-5 $tutor-spacing-6; position: fixed; bottom: 0; - inset-inline-start: 0; - inset-inline-end: 0; + inset-inline: 0; z-index: $tutor-z-footer; @include tutor-breakpoint-up(md) { @@ -19,12 +18,14 @@ &-list { @include tutor-flex(row, center, space-between); + list-style: none; margin: 0; padding: 0; > li { @include tutor-flex(column, center); + min-width: 44px; margin: 0; padding: 0; @@ -34,6 +35,7 @@ @include tutor-button-reset(); @include tutor-typography(tiny, medium); @include tutor-flex(column, center); + gap: $tutor-spacing-2; &.active, @@ -78,6 +80,7 @@ a { @include tutor-typography(tiny, regular); @include tutor-flex(row, center); + gap: $tutor-spacing-4; padding: $tutor-spacing-4 $tutor-spacing-5; text-decoration: none; @@ -100,6 +103,5 @@ .tutor-dashboard-layout.tutor-has-site-footer .tutor-dashboard-nav-mobile { position: sticky; bottom: 0; - inset-inline-start: auto; - inset-inline-end: auto; + inset-inline: auto; } diff --git a/assets/src/scss/frontend/dashboard/layout/_profile-header.scss b/assets/src/scss/frontend/dashboard/layout/_profile-header.scss index 24927020cc..77f48601d8 100644 --- a/assets/src/scss/frontend/dashboard/layout/_profile-header.scss +++ b/assets/src/scss/frontend/dashboard/layout/_profile-header.scss @@ -18,11 +18,11 @@ &-title { @include tutor-typography(h4, semibold, primary, heading); + margin: $tutor-spacing-none; @include tutor-breakpoint-up(sm) { - margin-inline-end: auto; - margin-inline-start: $tutor-spacing-4; + margin-inline: $tutor-spacing-4 auto; } } diff --git a/assets/src/scss/frontend/dashboard/layout/_sidebar.scss b/assets/src/scss/frontend/dashboard/layout/_sidebar.scss index 49bed3bab5..495ee940a1 100644 --- a/assets/src/scss/frontend/dashboard/layout/_sidebar.scss +++ b/assets/src/scss/frontend/dashboard/layout/_sidebar.scss @@ -48,11 +48,13 @@ } } } + .tutor-dashboard-sidebar-nav { padding: $tutor-spacing-8 $tutor-spacing-6; ul { @include tutor-flex-column(); + gap: $tutor-spacing-2; list-style: none; margin: 0; @@ -68,8 +70,7 @@ border-bottom: 1px solid $tutor-border-idle; margin-top: $tutor-spacing-4; margin-bottom: $tutor-spacing-2; - margin-inline-start: $tutor-spacing-8; - margin-inline-end: $tutor-spacing-none; + margin-inline: $tutor-spacing-8 $tutor-spacing-none; width: calc(100% - 48px); } } @@ -77,6 +78,7 @@ a { @include tutor-typography(small, medium); @include tutor-flex(row, center); + gap: $tutor-spacing-5; border-radius: $tutor-radius-md; padding: $tutor-spacing-4 $tutor-spacing-8; @@ -101,14 +103,19 @@ .tutor-see-all-courses { width: calc(100% - 32px); + @include tutor-flex(row, center); + gap: $tutor-spacing-3; + @include tutor-typography(small); + padding: $tutor-spacing-4 $tutor-spacing-8; border-radius: $tutor-radius-md; + @include tutor-transition(background-color); - outline: none; + outline: none; position: absolute; inset-inline-start: $tutor-spacing-6; bottom: $tutor-spacing-8; diff --git a/assets/src/scss/frontend/dashboard/pages/_announcements.scss b/assets/src/scss/frontend/dashboard/pages/_announcements.scss index 23eb76ed92..590f5bb2b4 100644 --- a/assets/src/scss/frontend/dashboard/pages/_announcements.scss +++ b/assets/src/scss/frontend/dashboard/pages/_announcements.scss @@ -17,6 +17,7 @@ .tutor-announcement-actions { opacity: 0; + @include tutor-transition(opacity); } diff --git a/assets/src/scss/frontend/dashboard/pages/_instructor-dashboard.scss b/assets/src/scss/frontend/dashboard/pages/_instructor-dashboard.scss index dc5f6a9f3a..c3b5c8e9c6 100644 --- a/assets/src/scss/frontend/dashboard/pages/_instructor-dashboard.scss +++ b/assets/src/scss/frontend/dashboard/pages/_instructor-dashboard.scss @@ -14,6 +14,7 @@ [data-grab] { @include tutor-reset; @include tutor-flex-center; + cursor: grab; svg { @@ -30,6 +31,7 @@ @include tutor-card-base; @include tutor-card-radius(2xl); @include tutor-flex(column); + padding-bottom: $tutor-spacing-6; &-canvas { @@ -38,16 +40,19 @@ &-header { @include tutor-flex(row, center, space-between); + padding: $tutor-spacing-6; } &-legend { @include tutor-flex(row, center); @include tutor-typography('tiny', 'regular', 'subdued'); + gap: $tutor-spacing-2; &::before { @include tutor-flex-center(); + content: ''; height: 2px; width: 14px; @@ -75,6 +80,7 @@ .tutor-dashboard-home-chart-legend { @include tutor-flex(row, start); @include tutor-typography('tiny', 'regular', 'subdued'); + gap: $tutor-spacing-2; min-width: 99px; @@ -118,11 +124,13 @@ @include tutor-card-base; @include tutor-card-radius(2xl); @include tutor-flex(column); + gap: $tutor-spacing-5; padding: $tutor-spacing-6; &-body { @include tutor-flex(column, center); + gap: $tutor-spacing-5; &:has(.tutor-dashboard-home-activity) { @@ -133,6 +141,7 @@ &-item { @include tutor-flex(row, center); @include tutor-typography('tiny', 'regular', 'subdued'); + gap: $tutor-spacing-4; padding-inline: $tutor-spacing-5; width: 100%; @@ -140,12 +149,14 @@ &-avatar { @include tutor-flex-center(); + flex-shrink: 0; } &-icon { @include tutor-flex-center(); @include tutor-typography('tiny', 'regular', 'subdued'); + width: 16px; flex-shrink: 0; } @@ -156,6 +167,7 @@ @include tutor-card-radius(lg); @include tutor-flex(row, center, space-between); @include tutor-transition(background-color); + width: 100%; padding: $tutor-spacing-4 $tutor-spacing-5; @@ -166,6 +178,7 @@ &-index { @include tutor-typography('p3', 'medium', 'secondary'); @include tutor-flex-center(); + width: 32px; height: 32px; aspect-ratio: 1/1; @@ -179,6 +192,7 @@ @include tutor-card-radius(lg); @include tutor-flex(row, flex-start); @include tutor-transition(background-color); + gap: $tutor-spacing-5; width: 100%; padding: $tutor-spacing-5; @@ -205,6 +219,7 @@ &-icon { @include tutor-flex-center(); + width: 32px; height: 32px; aspect-ratio: 1/1; @@ -218,6 +233,7 @@ &-meta { @include tutor-typography('tiny', 'medium', 'subdued'); + width: fit-content; padding-inline: $tutor-spacing-4; border-radius: $tutor-radius-sm; @@ -237,9 +253,11 @@ &-badge { @include tutor-flex(row, center, flex-start); + opacity: 1; visibility: visible; z-index: $tutor-z-positive; + @include tutor-transition((opacity, visibility)); } } @@ -253,11 +271,13 @@ &-review { @include tutor-card-base; @include tutor-card-radius(lg); + width: 100%; padding: $tutor-spacing-5; &-avatar { @include tutor-flex-center(); + flex-shrink: 0; align-self: flex-start; } @@ -267,6 +287,7 @@ @include tutor-button-size(x-small); @include tutor-button-variant(link); @include tutor-flex(row, center); + color: $tutor-text-subdued; gap: $tutor-spacing-2; min-height: unset; diff --git a/assets/src/scss/frontend/dashboard/pages/_my-courses.scss b/assets/src/scss/frontend/dashboard/pages/_my-courses.scss index 4107103dd2..c9a49eef1d 100644 --- a/assets/src/scss/frontend/dashboard/pages/_my-courses.scss +++ b/assets/src/scss/frontend/dashboard/pages/_my-courses.scss @@ -33,12 +33,16 @@ @include tutor-flex(column); @include tutor-card-base(); @include tutor-card-radius(); + position: relative; + @include tutor-transition(background-color); + border-color: $tutor-border-idle2; &-body { @include tutor-flex(column); + gap: $tutor-spacing-4; padding: $tutor-spacing-4; flex: 1; @@ -59,18 +63,21 @@ &-actions { @include tutor-flex-center(); + gap: $tutor-spacing-4; position: absolute; inset: 0; - background: #00000066; - box-shadow: 0px 4px 4px 0px #00000040; + background: #0006; + box-shadow: 0 4px 4px 0 #00000040; opacity: 0; + @include tutor-transition((opacity)); } &-footer { @include tutor-typography(small, medium); @include tutor-flex(row, center, space-between); + padding: $tutor-spacing-3 $tutor-spacing-5; border-top: 1px solid $tutor-border-idle2; min-height: 44px; @@ -82,6 +89,7 @@ &-actions { opacity: 0; + @include tutor-transition((opacity)); } } diff --git a/assets/src/scss/frontend/dashboard/pages/_student-dashboard.scss b/assets/src/scss/frontend/dashboard/pages/_student-dashboard.scss index ea1e5c7d9c..00ba8c9851 100644 --- a/assets/src/scss/frontend/dashboard/pages/_student-dashboard.scss +++ b/assets/src/scss/frontend/dashboard/pages/_student-dashboard.scss @@ -5,6 +5,7 @@ @include tutor-flex(row, center, space-between); @include tutor-card-base(); @include tutor-card-radius(2xl); + margin-bottom: $tutor-spacing-7; @include tutor-breakpoint-down(sm) { @@ -19,6 +20,7 @@ .tutor-dashboard-welcome-badge { @include tutor-typography(tiny, semibold, brand); + display: inline-flex; align-items: center; gap: $tutor-spacing-2; @@ -30,6 +32,7 @@ .tutor-dashboard-welcome-banner { width: 248px; height: 248px; + @include tutor-flex-center(); @include tutor-breakpoint-down(sm) { @@ -42,6 +45,7 @@ @include tutor-flex(row, start, space-between); @include tutor-card-base(); @include tutor-card-radius(2xl); + padding: $tutor-spacing-8; margin-bottom: $tutor-spacing-7; diff --git a/assets/src/scss/frontend/dashboard/pages/_wishlist.scss b/assets/src/scss/frontend/dashboard/pages/_wishlist.scss index 7b068ec631..5d4b67bb9e 100644 --- a/assets/src/scss/frontend/dashboard/pages/_wishlist.scss +++ b/assets/src/scss/frontend/dashboard/pages/_wishlist.scss @@ -3,17 +3,21 @@ @use '@Core/scss/tokens' as *; @use '@Core/scss/mixins' as *; + .tutor-dashboard-wishlist-wrapper { padding: $tutor-spacing-6; background-color: $tutor-surface-l1; .tutor-wishlist-grid { @include tutor-grid(3, $tutor-spacing-4); + @include tutor-breakpoint-down('sm') { @include tutor-grid(1, $tutor-spacing-4); + background-color: transparent; } } + @include tutor-breakpoint-down('sm') { padding: $tutor-spacing-5 $tutor-spacing-none; background-color: transparent; diff --git a/assets/src/scss/frontend/dashboard/settings/_account.scss b/assets/src/scss/frontend/dashboard/settings/_account.scss index 0c5271a0d4..9b9a8ce239 100644 --- a/assets/src/scss/frontend/dashboard/settings/_account.scss +++ b/assets/src/scss/frontend/dashboard/settings/_account.scss @@ -28,6 +28,7 @@ .tutor-account-cover-photo-action { @include tutor-flex(); + gap: $tutor-spacing-3; position: absolute; top: $tutor-spacing-4; @@ -37,6 +38,7 @@ .tutor-account-avatar-wrapper { @include tutor-flex(row, center, center); + transform: translateY(-52px); margin-bottom: -52px; position: relative; @@ -44,6 +46,7 @@ .tutor-account-avatar { @include tutor-avatar-base(); + width: 104px; height: 104px; border: 4px solid $tutor-border-inverse; @@ -71,6 +74,7 @@ bottom: 0; border: 3px solid $tutor-border-inverse; border-radius: $tutor-radius-full; + @include tutor-transition((background-color, color)); &:hover, diff --git a/assets/src/scss/frontend/dashboard/settings/_preferences.scss b/assets/src/scss/frontend/dashboard/settings/_preferences.scss index cf8e09c8c2..f90cef1794 100644 --- a/assets/src/scss/frontend/dashboard/settings/_preferences.scss +++ b/assets/src/scss/frontend/dashboard/settings/_preferences.scss @@ -4,6 +4,7 @@ .tutor-preferences { &-reset-default { @include tutor-flex(row, center, flex-end); + color: $tutor-text-secondary; gap: $tutor-spacing-2; cursor: pointer; @@ -11,6 +12,7 @@ &-setting-item { @include tutor-flex-between; + gap: $tutor-spacing-10; &:not(:last-child) { @@ -19,10 +21,12 @@ .tutor-preferences-setting-content { @include tutor-flex(row, center, flex-start); + gap: $tutor-spacing-4; .tutor-preferences-setting-icon { @include tutor-flex-center; + color: $tutor-icon-idle; } @@ -36,6 +40,7 @@ .tutor-preferences-setting-text { @include tutor-flex-column; + gap: $tutor-spacing-1; .tutor-preferences-setting-subtitle { @@ -54,6 +59,7 @@ .tutor-preferences-setting-action { @include tutor-flex(row, center, flex-end); + flex-shrink: 0; } @@ -73,6 +79,7 @@ &-vision-preview { @include tutor-flex-center(); + background-color: $tutor-surface-l1-hover; border-radius: $tutor-radius-md; padding-top: $tutor-spacing-5; diff --git a/assets/src/scss/frontend/dashboard/settings/_profile.scss b/assets/src/scss/frontend/dashboard/settings/_profile.scss index 6606a01042..7eb99a719c 100644 --- a/assets/src/scss/frontend/dashboard/settings/_profile.scss +++ b/assets/src/scss/frontend/dashboard/settings/_profile.scss @@ -27,17 +27,17 @@ .tutor-profile-settings-tab { background: transparent; height: auto; + overflow: unset; overflow-y: visible; width: 100%; flex-direction: column; gap: $tutor-spacing-6; border: none; padding: $tutor-spacing-none; - overflow: unset; } .tutor-profile-settings-tab button { - padding: 0px 0px; + padding: 0; } .tutor-flex:has(.tutor-profile-tab-activated) .tutor-profile-settings-tab { @@ -128,10 +128,11 @@ svg { color: $tutor-icon-secondary; + @include tutor-transition(transform); path { - transform: translate(0px, 2px); + transform: translate(0, 2px); } } @@ -145,11 +146,12 @@ } .tutor-input-field { - margin-bottom: 0px; + margin-bottom: 0; } .tutor-profile-notification-content { @include tutor-flex(column); + gap: $tutor-spacing-3; padding: $tutor-spacing-6; border-top: 1px solid $tutor-border-idle; diff --git a/assets/src/scss/frontend/dashboard/settings/_social-accounts.scss b/assets/src/scss/frontend/dashboard/settings/_social-accounts.scss index bd40e94c4e..cbac3136f0 100644 --- a/assets/src/scss/frontend/dashboard/settings/_social-accounts.scss +++ b/assets/src/scss/frontend/dashboard/settings/_social-accounts.scss @@ -4,11 +4,13 @@ .tutor-social { &-accounts { @include tutor-flex(column); + gap: $tutor-spacing-4; } &-form { @include tutor-flex(column); + gap: $tutor-spacing-5; background-color: $tutor-surface-l1; border: 1px solid $tutor-border-idle; @@ -18,6 +20,7 @@ &-field { @include tutor-flex(); + gap: $tutor-spacing-3; } diff --git a/assets/src/scss/frontend/kids/_button.scss b/assets/src/scss/frontend/kids/_button.scss index c1f97526b9..7215185e6f 100644 --- a/assets/src/scss/frontend/kids/_button.scss +++ b/assets/src/scss/frontend/kids/_button.scss @@ -1,5 +1,4 @@ // Kids Mode Theme -// // Token overrides for `/[data-tutor-ui="kids"]` context. // Keeps `:root` button defaults alongside kids-specific values. @@ -11,41 +10,33 @@ --tutor-button-font-weight: #{$tutor-font-weight-medium}; --tutor-button-border-shadow-base: 1px; --tutor-button-border-shadow-bottom: 2px; - --tutor-button-primary-border-shadow: none; --tutor-button-primary-border-shadow-hover: none; --tutor-button-primary-border-shadow-focused: none; --tutor-button-primary-border-shadow-disabled: none; - --tutor-button-primary-soft-border-shadow: none; --tutor-button-primary-soft-border-shadow-hover: none; --tutor-button-primary-soft-border-shadow-focused: none; --tutor-button-primary-soft-border-shadow-disabled: none; - --tutor-button-destructive-border-shadow: none; --tutor-button-destructive-border-shadow-hover: none; --tutor-button-destructive-border-shadow-focused: none; --tutor-button-destructive-border-shadow-disabled: none; - --tutor-button-destructive-soft-border-shadow: none; --tutor-button-destructive-soft-border-shadow-hover: none; --tutor-button-destructive-soft-border-shadow-focused: none; --tutor-button-destructive-soft-border-shadow-disabled: none; - --tutor-button-secondary-border-shadow: none; --tutor-button-secondary-border-shadow-hover: none; --tutor-button-secondary-border-shadow-focused: none; --tutor-button-secondary-border-shadow-disabled: none; - --tutor-button-outline-border-shadow: 0 0 0 1px #{$tutor-border-idle2}; --tutor-button-outline-border-shadow-hover: none; --tutor-button-outline-border-shadow-focused: 0 0 0 1px #{$tutor-border-idle2}; --tutor-button-outline-border-shadow-disabled: none; - --tutor-button-ghost-border-shadow: none; --tutor-button-ghost-border-shadow-hover: none; --tutor-button-ghost-border-shadow-disabled: none; - --tutor-button-ghost-brand-border-shadow: none; --tutor-button-ghost-brand-border-shadow-hover: none; --tutor-button-ghost-brand-border-shadow-disabled: none; @@ -70,7 +61,6 @@ --tutor-button-primary-border-shadow-disabled: 0 0 0 var(--tutor-button-border-shadow-base) #{$tutor-border-brand-secondary}, 0 var(--tutor-button-border-shadow-bottom) 0 0 #{$tutor-border-brand-secondary}; - --tutor-button-destructive-border-shadow: 0 0 0 var(--tutor-button-border-shadow-base) #{$tutor-border-error}, 0 var(--tutor-button-border-shadow-bottom) 0 0 #{$tutor-border-error}; @@ -83,7 +73,6 @@ --tutor-button-destructive-border-shadow-disabled: 0 0 0 var(--tutor-button-border-shadow-base) #{$tutor-border-idle}, 0 var(--tutor-button-border-shadow-bottom) 0 0 #{$tutor-border-idle}; - --tutor-button-primary-soft-border-shadow: 0 0 0 var(--tutor-button-border-shadow-base) #{$tutor-border-brand-secondary}, 0 var(--tutor-button-border-shadow-bottom) 0 0 #{$tutor-border-brand-secondary}; @@ -96,7 +85,6 @@ --tutor-button-primary-soft-border-shadow-disabled: 0 0 0 var(--tutor-button-border-shadow-base) #{$tutor-border-idle}, 0 var(--tutor-button-border-shadow-bottom) 0 0 #{$tutor-border-idle}; - --tutor-button-destructive-soft-border-shadow: 0 0 0 var(--tutor-button-border-shadow-base) #{$tutor-border-error}, 0 var(--tutor-button-border-shadow-bottom) 0 0 #{$tutor-border-error}; @@ -109,7 +97,6 @@ --tutor-button-destructive-soft-border-shadow-disabled: 0 0 0 var(--tutor-button-border-shadow-base) #{$tutor-border-idle}, 0 var(--tutor-button-border-shadow-bottom) 0 0 #{$tutor-border-idle}; - --tutor-button-secondary-border-shadow: 0 0 0 var(--tutor-button-border-shadow-base) #{$tutor-border-hover}, 0 var(--tutor-button-border-shadow-bottom) 0 0 #{$tutor-border-hover}; @@ -122,7 +109,6 @@ --tutor-button-secondary-border-shadow-disabled: 0 0 0 var(--tutor-button-border-shadow-base) #{$tutor-border-idle}, 0 var(--tutor-button-border-shadow-bottom) 0 0 #{$tutor-border-idle}; - --tutor-button-outline-border-shadow: 0 0 0 var(--tutor-button-border-shadow-base) #{$tutor-border-idle2}, 0 var(--tutor-button-border-shadow-bottom) 0 0 #{$tutor-border-idle2}; @@ -135,11 +121,9 @@ --tutor-button-outline-border-shadow-disabled: 0 0 0 var(--tutor-button-border-shadow-base) #{$tutor-border-idle2}, 0 var(--tutor-button-border-shadow-bottom) 0 0 #{$tutor-border-idle2}; - --tutor-button-ghost-border-shadow-hover: 0 0 0 var(--tutor-button-border-shadow-base) #{$tutor-border-hover}, 0 var(--tutor-button-border-shadow-bottom) 0 0 #{$tutor-border-hover}; - --tutor-button-ghost-brand-border-shadow-hover: 0 0 0 var(--tutor-button-border-shadow-base) #{$tutor-border-brand-tertiary}, 0 var(--tutor-button-border-shadow-bottom) 0 0 #{$tutor-border-brand-tertiary}; diff --git a/assets/src/scss/frontend/kids/_dashboard.scss b/assets/src/scss/frontend/kids/_dashboard.scss index c4a963871b..a0d12123e4 100644 --- a/assets/src/scss/frontend/kids/_dashboard.scss +++ b/assets/src/scss/frontend/kids/_dashboard.scss @@ -16,8 +16,10 @@ .active { .tutor-dashboard-nav-mobile-icon { @include tutor-kids-shadow(false, $tutor-border-brand, $tutor-radius-full, sm); + background-color: $tutor-surface-brand-tertiary; } + .tutor-dashboard-nav-mobile-text { font-weight: $tutor-font-weight-semibold; } @@ -55,6 +57,7 @@ .tutor-billing-card:hover { @include tutor-kids-shadow; + &:not(:last-of-type) { border-bottom: 1px solid transparent; } @@ -164,6 +167,7 @@ .tutor-quiz-attempts-item:hover { &:not(:first-of-type) { @include tutor-kids-shadow($tutor-border-brand-tertiary); + border-bottom: 1px solid transparent; } } @@ -217,7 +221,7 @@ // notification drawer .tutor-pn-drawer-content { - border-width: 0px 2px 5px 2px; + border-width: 0 2px 5px; } // user account/notification @@ -290,13 +294,14 @@ .tutor-lesson-note:hover { @include tutor-kids-shadow(true, $tutor-border-brand-tertiary); + border-bottom: 1px solid transparent; } } @include tutor-breakpoint-down(md) { .tutor-calendar { - border-radius: 0px; + border-radius: 0; box-shadow: none; } @@ -312,7 +317,7 @@ @include tutor-breakpoint-down(sm) { .tutor-dashboard-header-user-popover, .tutor-profile-settings-tab.tutor-tabs-nav { - border-radius: 0px !important; + border-radius: 0 !important; box-shadow: none !important; } @@ -325,7 +330,7 @@ .tutor-billing-body, .tutor-dashboard-courses-wrapper .tutor-dashboard-courses-card, .tutor-dashboard-lesson-notes .tutor-dashboard-page-card { - border-radius: 0px; + border-radius: 0; box-shadow: none; } @@ -357,8 +362,8 @@ } .tutor-dashboard-courses-card { - padding: 2px 2px 5px 2px; - margin: -2px -2px -5px -2px; + padding: 2px 2px 5px; + margin: -2px -2px -5px; } } } diff --git a/assets/src/scss/frontend/kids/_learning-area.scss b/assets/src/scss/frontend/kids/_learning-area.scss index 82c14594ff..fa9a258e0e 100644 --- a/assets/src/scss/frontend/kids/_learning-area.scss +++ b/assets/src/scss/frontend/kids/_learning-area.scss @@ -87,7 +87,7 @@ .tutor-quiz-submission[data-question-layout-view='question_pagination'] { .tutor-quiz-question { width: calc(100% - 2px); - margin: 1px 1px 0 1px; + margin: 1px 1px 0; } } @@ -120,6 +120,7 @@ .tutor-text-area { --tutor-input-radius: #{$tutor-radius-2xl}; } + .tutor-quiz-question-option { @include tutor-kids-shadow(false, $tutor-border-idle, $tutor-radius-2xl, sm); @@ -129,7 +130,7 @@ &[data-option='dragging'] { border-color: $tutor-border-brand; - box-shadow: -6px 7px 0px 0px #00000014; + box-shadow: -6px 7px 0 0 #00000014; } } diff --git a/assets/src/scss/frontend/kids/_sidebar.scss b/assets/src/scss/frontend/kids/_sidebar.scss index 5323c0c27d..b0fb5bfecc 100644 --- a/assets/src/scss/frontend/kids/_sidebar.scss +++ b/assets/src/scss/frontend/kids/_sidebar.scss @@ -10,7 +10,7 @@ .tutor-dashboard-sidebar-nav { ul { a { - border-width: 1px 1px 3px 1px; + border-width: 1px 1px 3px; border-style: solid; border-color: transparent; diff --git a/assets/src/scss/frontend/learning-area/_lesson-comments.scss b/assets/src/scss/frontend/learning-area/_lesson-comments.scss index 3c2333dd2b..dad617670d 100644 --- a/assets/src/scss/frontend/learning-area/_lesson-comments.scss +++ b/assets/src/scss/frontend/learning-area/_lesson-comments.scss @@ -15,6 +15,7 @@ .tutor-comment { @include tutor-flex(row, flex-start, flex-start); + gap: $tutor-spacing-5; padding: $tutor-spacing-6; position: relative; @@ -34,7 +35,9 @@ &-action-btn { @include tutor-button-reset; @include tutor-flex(row, center, center); + gap: $tutor-spacing-2; + @include tutor-typography('small', 'regular', 'subdued'); @include tutor-transition(color); @@ -43,6 +46,7 @@ height: 16px; flex-shrink: 0; color: $tutor-icon-secondary; + @include tutor-transition(color); } @@ -65,6 +69,7 @@ &-replies { @include tutor-flex(column); + gap: $tutor-spacing-6; margin-top: $tutor-spacing-6; @@ -81,6 +86,7 @@ @include tutor-button-reset; @include tutor-typography('tiny', 'medium', 'brand'); @include tutor-flex(row, center, flex-start); + gap: $tutor-spacing-2; margin-top: $tutor-spacing-6; diff --git a/assets/src/scss/frontend/learning-area/_lesson-content.scss b/assets/src/scss/frontend/learning-area/_lesson-content.scss index 15471a0da6..b90908d04b 100644 --- a/assets/src/scss/frontend/learning-area/_lesson-content.scss +++ b/assets/src/scss/frontend/learning-area/_lesson-content.scss @@ -13,6 +13,7 @@ @include tutor-button-base(); @include tutor-button-variant(primary-soft); @include tutor-button-size(); + gap: $tutor-spacing-4; min-width: 160px; height: 40px; @@ -107,6 +108,7 @@ .tutor-lesson-image-wrapper { @include tutor-flex-center(); + aspect-ratio: 16 / 9; .tutor-lesson-feature-image { diff --git a/assets/src/scss/frontend/learning-area/_quiz.scss b/assets/src/scss/frontend/learning-area/_quiz.scss index e5fb02aae3..ea525429e8 100644 --- a/assets/src/scss/frontend/learning-area/_quiz.scss +++ b/assets/src/scss/frontend/learning-area/_quiz.scss @@ -9,6 +9,7 @@ $tutor-quiz-pagination-height: 60px; $tutor-quiz-content-bottom-offset: calc( #{$tutor-quiz-pagination-gap-from-footer} + #{$tutor-quiz-pagination-height} + #{$tutor-spacing-2} ); + // Chrome inside the questions slot for draw/pin: meta, card padding/gap, header, actions. // Plain sum string so it interpolates cleanly into a single outer calc(). $tutor-quiz-draw-pin-chrome: '#{$tutor-spacing-5} + 2.5rem + #{$tutor-spacing-8} * 2 + #{$tutor-spacing-7} + 4.5rem + 3rem'; @@ -16,6 +17,7 @@ $tutor-quiz-draw-pin-chrome: '#{$tutor-spacing-5} + 2.5rem + #{$tutor-spacing-8} .tutor-quiz { &-submission { @include tutor-flex(column); + gap: $tutor-spacing-11; height: fit-content; padding-top: calc((#{$tutor-spacing-8} * 2) + #{$tutor-spacing-14}); @@ -51,6 +53,7 @@ $tutor-quiz-draw-pin-chrome: '#{$tutor-spacing-5} + 2.5rem + #{$tutor-spacing-8} &[data-question-layout-view='single_question'] .tutor-quiz-question-wrapper, &[data-question-layout-view='question_pagination'] .tutor-quiz-question-wrapper { @include tutor-flex(column); + max-height: calc(100dvh - #{$tutor-quiz-header-offset} - #{$tutor-quiz-footer-offset}); overflow: auto; } @@ -83,6 +86,7 @@ $tutor-quiz-draw-pin-chrome: '#{$tutor-spacing-5} + 2.5rem + #{$tutor-spacing-8} max-height: 100%; width: 100%; overflow: hidden; + @include tutor-flex(column); .tutor-quiz-question { @@ -113,6 +117,7 @@ $tutor-quiz-draw-pin-chrome: '#{$tutor-spacing-5} + 2.5rem + #{$tutor-spacing-8} max-height: 100%; width: 100%; overflow: hidden; + @include tutor-flex(column); .tutor-quiz-question { @@ -191,6 +196,7 @@ $tutor-quiz-draw-pin-chrome: '#{$tutor-spacing-5} + 2.5rem + #{$tutor-spacing-8} &-progress { @include tutor-flex(column); @include tutor-frontend-layout(); + padding-inline: 0; padding-block: $tutor-spacing-5; gap: $tutor-spacing-5; @@ -201,6 +207,7 @@ $tutor-quiz-draw-pin-chrome: '#{$tutor-spacing-5} + 2.5rem + #{$tutor-spacing-8} &-header { @include tutor-flex(row, center, space-between); + gap: $tutor-spacing-5; @include tutor-breakpoint-down(sm) { @@ -210,6 +217,7 @@ $tutor-quiz-draw-pin-chrome: '#{$tutor-spacing-5} + 2.5rem + #{$tutor-spacing-8} &-meta { @include tutor-flex(row, center, flex-start); + gap: $tutor-spacing-5; min-width: 0; flex: 1; @@ -221,6 +229,7 @@ $tutor-quiz-draw-pin-chrome: '#{$tutor-spacing-5} + 2.5rem + #{$tutor-spacing-8} &-title { @include tutor-typography('h5', 'semibold'); + color: $tutor-text-primary; padding-top: 4px; white-space: nowrap; @@ -236,6 +245,7 @@ $tutor-quiz-draw-pin-chrome: '#{$tutor-spacing-5} + 2.5rem + #{$tutor-spacing-8} &-timer-frame { @include tutor-flex(row, center, flex-start); + position: relative; display: inline-grid; flex-shrink: 0; @@ -297,7 +307,7 @@ $tutor-quiz-draw-pin-chrome: '#{$tutor-spacing-5} + 2.5rem + #{$tutor-spacing-8} width: 10px; height: 4px; border-radius: 2px 2px 0 0; - background: currentColor; + background: currentcolor; opacity: 0.2; } @@ -320,33 +330,36 @@ $tutor-quiz-draw-pin-chrome: '#{$tutor-spacing-5} + 2.5rem + #{$tutor-spacing-8} &-timer-frame-body-stroke { position: absolute; inset: 0; + @include tutor-card-radius(md); } &-timer-frame-body-fill { - background: currentColor; + background: currentcolor; opacity: 0.06; } &-timer-frame-body-stroke { - border: 1px solid currentColor; + border: 1px solid currentcolor; opacity: 0.4; } &-timer-text { @include tutor-typography('h5', 'semibold'); @include tutor-flex-center; + grid-area: 1 / 1; position: relative; min-height: 33px; margin-top: 4px; - padding-inline-start: var(--tutor-quiz-timer-padding-inline-start, #{$tutor-spacing-4}); - padding-inline-end: var(--tutor-quiz-timer-padding-inline-end, #{$tutor-spacing-4}); + padding-inline: var(--tutor-quiz-timer-padding-inline-start, #{$tutor-spacing-4}) var(--tutor-quiz-timer-padding-inline-end, #{$tutor-spacing-4}); line-height: 1; font-variant-numeric: tabular-nums; text-box-trim: trim-both; text-box-edge: cap alphabetic; + @include tutor-transition(color); + z-index: $tutor-z-positive; &.is-initial { @@ -391,6 +404,7 @@ $tutor-quiz-draw-pin-chrome: '#{$tutor-spacing-5} + 2.5rem + #{$tutor-spacing-8} &-timer-reel { @include tutor-flex-column; + transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); span { @@ -405,11 +419,13 @@ $tutor-quiz-draw-pin-chrome: '#{$tutor-spacing-5} + 2.5rem + #{$tutor-spacing-8} 100% { transform: rotate(0deg); } + 10%, 50%, 90% { transform: rotate(-6deg); } + 30%, 70% { transform: rotate(6deg); @@ -419,6 +435,7 @@ $tutor-quiz-draw-pin-chrome: '#{$tutor-spacing-5} + 2.5rem + #{$tutor-spacing-8} &-questions { @include tutor-flex(column); @include tutor-frontend-layout(); + padding-inline: 0; width: 100%; gap: $tutor-spacing-10; @@ -463,6 +480,7 @@ $tutor-quiz-draw-pin-chrome: '#{$tutor-spacing-5} + 2.5rem + #{$tutor-spacing-8} &-question-meta { @include tutor-frontend-layout(); @include tutor-flex(row, center, space-between); + width: 100%; padding-inline: 0; @@ -481,6 +499,7 @@ $tutor-quiz-draw-pin-chrome: '#{$tutor-spacing-5} + 2.5rem + #{$tutor-spacing-8} &-questions-pagination { @include tutor-flex(row, center, center); + width: max-content; max-width: calc(100vw - #{$tutor-spacing-8}); overflow: visible; @@ -494,6 +513,7 @@ $tutor-quiz-draw-pin-chrome: '#{$tutor-spacing-5} + 2.5rem + #{$tutor-spacing-8} ul { @include tutor-flex(row, center, center); + gap: $tutor-spacing-2; list-style: none; padding: 0; @@ -503,6 +523,7 @@ $tutor-quiz-draw-pin-chrome: '#{$tutor-spacing-5} + 2.5rem + #{$tutor-spacing-8} .tutor-quiz-question-paginate-item { @include tutor-typography('small', 'semibold'); + width: 32px; height: 32px; border-radius: $tutor-radius-sm; @@ -510,6 +531,7 @@ $tutor-quiz-draw-pin-chrome: '#{$tutor-spacing-5} + 2.5rem + #{$tutor-spacing-8} background-color: $tutor-surface-l1; color: $tutor-text-secondary; cursor: pointer; + @include tutor-transition((background-color, border-color, color, transform)); .tutor-quiz-question-paginate-icon { @@ -526,11 +548,11 @@ $tutor-quiz-draw-pin-chrome: '#{$tutor-spacing-5} + 2.5rem + #{$tutor-spacing-8} &[data-pagination-style='radio'], &[data-pagination-style='number'] { @include tutor-frontend-layout(); + width: calc(100dvw - #{$tutor-spacing-8}); justify-content: flex-start; padding-block: 10px; - overflow-x: auto; - overflow-y: hidden; + overflow: auto hidden; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-mask-image: none; @@ -692,6 +714,7 @@ $tutor-quiz-draw-pin-chrome: '#{$tutor-spacing-5} + 2.5rem + #{$tutor-spacing-8} .tutor-quiz-question-paginate-item { @include tutor-flex(row, center, center); + width: 16px; min-width: 16px; height: 16px; @@ -774,6 +797,7 @@ $tutor-quiz-draw-pin-chrome: '#{$tutor-spacing-5} + 2.5rem + #{$tutor-spacing-8} .tutor-quiz-question-paginate-item { @include tutor-flex(row, center, center); @include tutor-typography('small', 'medium'); + width: 24px; min-width: 24px; height: 38px; @@ -873,7 +897,9 @@ $tutor-quiz-draw-pin-chrome: '#{$tutor-spacing-5} + 2.5rem + #{$tutor-spacing-8} &:disabled, &.disabled { background-color: $tutor-button-disabled; + --tutor-button-border-shadow: #{$tutor-button-outline-border-shadow-disabled}; + color: $tutor-text-subdued; opacity: 1; cursor: default; @@ -883,7 +909,7 @@ $tutor-quiz-draw-pin-chrome: '#{$tutor-spacing-5} + 2.5rem + #{$tutor-spacing-8} &-btn-countdown, &.tutor-quiz-btn-countdown, .tutor-quiz-btn-countdown { - background-image: linear-gradient(rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.28)); + background-image: linear-gradient(rgb(0 0 0 / 28%), rgb(0 0 0 / 28%)); background-repeat: no-repeat; background-position: left top; animation: tutor-quiz-countdown-fill var(--reveal-wait-duration, 2000ms) linear forwards; @@ -941,7 +967,7 @@ $tutor-quiz-draw-pin-chrome: '#{$tutor-spacing-5} + 2.5rem + #{$tutor-spacing-8} &[data-option='draggable'] { cursor: grab; - box-shadow: 2px 2px 0px 0px #00000014; + box-shadow: 2px 2px 0 0 #00000014; &:hover, &:focus, @@ -952,19 +978,21 @@ $tutor-quiz-draw-pin-chrome: '#{$tutor-spacing-5} + 2.5rem + #{$tutor-spacing-8} &:focus-visible { @include tutor-focus-ring(brand, true); + outline-offset: $tutor-spacing-2; } } &[data-option='dragging'] { border-color: $tutor-border-brand; - box-shadow: -6px 7px 0px 0px #00000014; + box-shadow: -6px 7px 0 0 #00000014; } } } &-questions-error { @include tutor-typography('tiny', 'regular', 'critical'); + margin-top: $tutor-spacing-3; } @@ -975,12 +1003,14 @@ $tutor-quiz-draw-pin-chrome: '#{$tutor-spacing-5} + 2.5rem + #{$tutor-spacing-8} @include tutor-breakpoint-down(sm) { @include tutor-grid-auto-columns(1, 1); + gap: $tutor-spacing-5; } } &-option { @include tutor-flex(column, flex-start, center); + gap: $tutor-spacing-3; padding: $tutor-spacing-4; @@ -1007,6 +1037,7 @@ $tutor-quiz-draw-pin-chrome: '#{$tutor-spacing-5} + 2.5rem + #{$tutor-spacing-8} &-option { @include tutor-flex(row, center, flex-start); + padding: 0; gap: $tutor-spacing-3; cursor: grab; @@ -1020,12 +1051,14 @@ $tutor-quiz-draw-pin-chrome: '#{$tutor-spacing-5} + 2.5rem + #{$tutor-spacing-8} &:focus-visible { @include tutor-focus-ring(brand, true); + outline-offset: $tutor-spacing-2; } [data-option-order] { @include tutor-flex-center; @include tutor-typography('small', 'semibold'); + width: 40px; height: 100%; border-inline-end: 1px solid $tutor-border-idle2; @@ -1033,6 +1066,7 @@ $tutor-quiz-draw-pin-chrome: '#{$tutor-spacing-5} + 2.5rem + #{$tutor-spacing-8} [data-title] { @include tutor-flex(row, center, flex-start); + gap: $tutor-spacing-4; padding: $tutor-spacing-4 $tutor-spacing-4 $tutor-spacing-4 $tutor-spacing-1; min-height: 56px; @@ -1050,6 +1084,7 @@ $tutor-quiz-draw-pin-chrome: '#{$tutor-spacing-5} + 2.5rem + #{$tutor-spacing-8} [data-grab-handle] { @include tutor-button-reset; @include tutor-flex-center; + margin-inline: auto $tutor-spacing-4; pointer-events: none; cursor: inherit; @@ -1072,6 +1107,7 @@ $tutor-quiz-draw-pin-chrome: '#{$tutor-spacing-5} + 2.5rem + #{$tutor-spacing-8} &[data-image-matching='1'] { @include tutor-grid-auto-columns(1, 1); + gap: $tutor-spacing-5; } } @@ -1079,6 +1115,7 @@ $tutor-quiz-draw-pin-chrome: '#{$tutor-spacing-5} + 2.5rem + #{$tutor-spacing-8} &-option { @include tutor-flex(column); + padding: $tutor-spacing-4; gap: $tutor-spacing-3; background-color: $tutor-surface-base; @@ -1095,12 +1132,13 @@ $tutor-quiz-draw-pin-chrome: '#{$tutor-spacing-5} + 2.5rem + #{$tutor-spacing-8} &-drop-zone { @include tutor-flex(row, center, space-between); @include tutor-typography('small'); + padding: $tutor-spacing-3; background-color: $tutor-surface-l1; border: 1px solid $tutor-border-idle; border-radius: $tutor-radius-md; border-style: dashed; - box-shadow: -1px -1px 6px 0px #0000000f inset; + box-shadow: -1px -1px 6px 0 #0000000f inset; max-width: 544px; min-height: 46px; width: 100%; @@ -1131,6 +1169,7 @@ $tutor-quiz-draw-pin-chrome: '#{$tutor-spacing-5} + 2.5rem + #{$tutor-spacing-8} &-draggable { @include tutor-flex(column, flex-start, flex-start); + gap: $tutor-spacing-5; padding: $tutor-spacing-6; background-color: $tutor-surface-base; @@ -1144,6 +1183,7 @@ $tutor-quiz-draw-pin-chrome: '#{$tutor-spacing-5} + 2.5rem + #{$tutor-spacing-8} &-header { @include tutor-flex(row, center, flex-start); + gap: $tutor-spacing-3; } @@ -1153,12 +1193,14 @@ $tutor-quiz-draw-pin-chrome: '#{$tutor-spacing-5} + 2.5rem + #{$tutor-spacing-8} @include tutor-breakpoint-down(sm) { @include tutor-grid-auto-columns(1, 1, '.tutor-quiz-question-option'); + gap: $tutor-spacing-5; } } &-option { @include tutor-flex(row, center, flex-start); + background-color: $tutor-surface-l1; padding: 0 $tutor-spacing-4; cursor: grab; @@ -1172,6 +1214,7 @@ $tutor-quiz-draw-pin-chrome: '#{$tutor-spacing-5} + 2.5rem + #{$tutor-spacing-8} &:focus-visible { @include tutor-focus-ring(brand, true); + outline-offset: $tutor-spacing-2; } @@ -1183,12 +1226,14 @@ $tutor-quiz-draw-pin-chrome: '#{$tutor-spacing-5} + 2.5rem + #{$tutor-spacing-8} [data-title] { @include tutor-typography('small'); @include tutor-flex(row, center, flex-start); + min-height: 36px; } [data-grab-handle] { @include tutor-button-reset; @include tutor-flex-center; + margin-inline-start: auto; pointer-events: none; cursor: inherit; @@ -1202,6 +1247,7 @@ $tutor-quiz-draw-pin-chrome: '#{$tutor-spacing-5} + 2.5rem + #{$tutor-spacing-8} .tutor-quiz-question { &-option { @include tutor-flex(row, center, space-between); + padding: 0; border: none; background-color: transparent !important; @@ -1213,6 +1259,7 @@ $tutor-quiz-draw-pin-chrome: '#{$tutor-spacing-5} + 2.5rem + #{$tutor-spacing-8} &-number { @include tutor-flex(row, center, center); @include tutor-typography('medium', 'semibold'); + border-radius: $tutor-radius-sm; width: 28px; height: 28px; @@ -1221,6 +1268,7 @@ $tutor-quiz-draw-pin-chrome: '#{$tutor-spacing-5} + 2.5rem + #{$tutor-spacing-8} [data-title] { @include tutor-flex(row, center, flex-start); + gap: $tutor-spacing-4; } @@ -1263,6 +1311,7 @@ $tutor-quiz-draw-pin-chrome: '#{$tutor-spacing-5} + 2.5rem + #{$tutor-spacing-8} [data-question='pin_image'] { .tutor-quiz-question-options { @include tutor-flex(column, center, center); + width: 100%; } @@ -1290,6 +1339,7 @@ $tutor-quiz-draw-pin-chrome: '#{$tutor-spacing-5} + 2.5rem + #{$tutor-spacing-8} .tutor-draw-image-question, .tutor-pin-image-question { @include tutor-flex(column, center, center); + flex: 0 1 auto; min-height: 0; margin-top: 0; @@ -1311,6 +1361,7 @@ $tutor-quiz-draw-pin-chrome: '#{$tutor-spacing-5} + 2.5rem + #{$tutor-spacing-8} img { display: block; + // Cap against the questions slot (size container), not a stretched card. // Interpolate the whole value so Sass does not strip the outer calc(). max-height: #{'min(744px, calc(100cqh - (#{$tutor-quiz-draw-pin-chrome})))'}; @@ -1330,14 +1381,14 @@ $tutor-quiz-draw-pin-chrome: '#{$tutor-spacing-5} + 2.5rem + #{$tutor-spacing-8} .tutor-puzzle-question { @include tutor-flex(column, center, flex-start); + flex: 0 1 auto; min-height: 0; max-height: 100%; height: auto; margin-top: 0; width: 100%; - overflow-x: hidden; - overflow-y: auto; + overflow: hidden auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; } @@ -1378,6 +1429,7 @@ $tutor-quiz-draw-pin-chrome: '#{$tutor-spacing-5} + 2.5rem + #{$tutor-spacing-8} &-inner { @include tutor-flex(row, center, flex-start); @include tutor-frontend-layout(); + gap: $tutor-spacing-4; width: 100%; margin-inline: auto; @@ -1385,12 +1437,14 @@ $tutor-quiz-draw-pin-chrome: '#{$tutor-spacing-5} + 2.5rem + #{$tutor-spacing-8} &-feedback { @include tutor-flex(row, center, flex-start); + gap: $tutor-spacing-3; margin-inline-end: auto; } &-feedback-icon { @include tutor-flex(row, center, center); + width: 40px; height: 40px; border-radius: $tutor-radius-full; @@ -1407,6 +1461,7 @@ $tutor-quiz-draw-pin-chrome: '#{$tutor-spacing-5} + 2.5rem + #{$tutor-spacing-8} &-actions { @include tutor-flex(row, center, flex-end); + gap: $tutor-spacing-6; margin-inline-start: auto; } @@ -1415,12 +1470,14 @@ $tutor-quiz-draw-pin-chrome: '#{$tutor-spacing-5} + 2.5rem + #{$tutor-spacing-8} &-submission-modal { &-content { @include tutor-flex(column, stretch, space-between); + gap: $tutor-spacing-2; } } &-autostart-modal { @include tutor-flex(row, center, center); + padding: 0; } @@ -1444,6 +1501,7 @@ $tutor-quiz-draw-pin-chrome: '#{$tutor-spacing-5} + 2.5rem + #{$tutor-spacing-8} &-autostart-title { @include tutor-typography('h4', 'semibold'); + position: absolute; top: $tutor-spacing-9; inset-inline: 0; @@ -1454,6 +1512,7 @@ $tutor-quiz-draw-pin-chrome: '#{$tutor-spacing-5} + 2.5rem + #{$tutor-spacing-8} &-autostart-digit { @include tutor-flex(row, center, center); @include tutor-typography('d1', 'bold'); + height: 100%; width: 100%; position: absolute; @@ -1465,6 +1524,7 @@ $tutor-quiz-draw-pin-chrome: '#{$tutor-spacing-5} + 2.5rem + #{$tutor-spacing-8} &-result-modal { @include tutor-flex(column, center, center); + gap: $tutor-spacing-4; text-align: center; padding: $tutor-spacing-10 $tutor-spacing-7 $tutor-spacing-7 $tutor-spacing-7; @@ -1527,6 +1587,7 @@ body:has(#wpadminbar) .tutor-learning-area.tutor-has-site-shell { 0% { background-size: 0% 100%; } + 100% { background-size: 100% 100%; } diff --git a/assets/src/scss/frontend/learning-area/layout/_footer.scss b/assets/src/scss/frontend/learning-area/layout/_footer.scss index 03e6296398..edf8776b2b 100644 --- a/assets/src/scss/frontend/learning-area/layout/_footer.scss +++ b/assets/src/scss/frontend/learning-area/layout/_footer.scss @@ -3,14 +3,15 @@ .tutor-learning-area-footer { margin-top: $tutor-spacing-6; + @include tutor-flex(row, stretch, flex-end); + gap: $tutor-spacing-4; @include tutor-breakpoint-down(sm) { position: fixed; bottom: 0; - inset-inline-start: 0; - inset-inline-end: 0; + inset-inline: 0; padding: $tutor-spacing-6; margin: 0; background-color: $tutor-surface-l1; @@ -21,6 +22,7 @@ .tutor-has-site-shell & { @include tutor-card-base(); + margin-top: $tutor-spacing-6; border-radius: $tutor-radius-2xl; position: sticky; @@ -37,6 +39,7 @@ button:not(.tutor-mark-as-complete-button), a { @include tutor-button-size(large); + width: 50%; &:is(:only-child), @@ -48,6 +51,7 @@ &[data-lesson] { @include tutor-flex(row, center, space-between); + background-color: $tutor-surface-base; padding: $tutor-spacing-6 0; margin-top: $tutor-spacing-none; @@ -71,11 +75,13 @@ a.tutor-btn { @include tutor-button-size(x-small); + width: auto; } button.tutor-btn { @include tutor-button-size(medium); + width: auto; gap: $tutor-spacing-4; } diff --git a/assets/src/scss/frontend/learning-area/layout/_header.scss b/assets/src/scss/frontend/learning-area/layout/_header.scss index 398fbb0e24..fa4ff30495 100644 --- a/assets/src/scss/frontend/learning-area/layout/_header.scss +++ b/assets/src/scss/frontend/learning-area/layout/_header.scss @@ -44,6 +44,7 @@ &-content { @include tutor-flex(row, center); + gap: $tutor-spacing-5; width: 100%; @@ -56,6 +57,7 @@ &-back { @include tutor-button-reset(); @include tutor-flex-center(); + flex-shrink: 0; height: 48px; width: 48px; diff --git a/assets/src/scss/frontend/learning-area/layout/_layout.scss b/assets/src/scss/frontend/learning-area/layout/_layout.scss index b96c6a24e1..1980829f29 100644 --- a/assets/src/scss/frontend/learning-area/layout/_layout.scss +++ b/assets/src/scss/frontend/learning-area/layout/_layout.scss @@ -20,6 +20,7 @@ $tutor-fixed-footer-offset: $tutor-spacing-6; .tutor-learning-area-body { padding-inline-start: 320px; position: relative; + @include tutor-transition((padding, grid-template-columns), 0.3s); @include tutor-breakpoint-down(lg) { @@ -56,6 +57,7 @@ $tutor-fixed-footer-offset: $tutor-spacing-6; grid-template-columns: 320px minmax(0, 1fr); align-items: start; padding-inline-start: 0; + @include tutor-transition(grid-template-columns, 0.3s); } @@ -113,6 +115,7 @@ $tutor-fixed-footer-offset: $tutor-spacing-6; .tutor-learning-area-container { @include tutor-frontend-layout(); + padding-bottom: $tutor-spacing-6; @include tutor-breakpoint-down(md) { diff --git a/assets/src/scss/frontend/learning-area/layout/_sidebar.scss b/assets/src/scss/frontend/learning-area/layout/_sidebar.scss index ddf94a15e1..3fb1a4b717 100644 --- a/assets/src/scss/frontend/learning-area/layout/_sidebar.scss +++ b/assets/src/scss/frontend/learning-area/layout/_sidebar.scss @@ -5,6 +5,7 @@ .tutor-learning-sidebar { @include tutor-flex(column); + gap: $tutor-spacing-6; padding: $tutor-spacing-4; padding-bottom: calc(#{$tutor-spacing-6} + 40px); @@ -15,6 +16,7 @@ inset-inline-start: 0; overflow: hidden; z-index: $tutor-z-sidebar; + @include tutor-transition((opacity, transform)); .tutor-has-admin-bar & { @@ -48,10 +50,9 @@ } @include tutor-breakpoint-down(lg) { - inset-inline-start: auto; - inset-inline-end: 0px; + inset-inline: auto 0; gap: $tutor-spacing-4; - top: 0px; + top: 0; width: 100%; height: 100dvh; overflow-y: auto; @@ -62,7 +63,9 @@ .tutor-has-site-shell & { z-index: $tutor-z-highest; } + transform: translateX(100%); + @include tutor-transition(transform, 0.3s); .tutor-has-admin-bar & { @@ -78,13 +81,16 @@ .tutor-learning-sidebar-curriculum { background-color: $tutor-surface-l1; border-radius: $tutor-radius-lg; + @include tutor-flex(column); + min-height: 0; flex-grow: 1; overflow: hidden; .tutor-learning-progress { @include tutor-flex(column); + gap: $tutor-spacing-4; padding: $tutor-spacing-6 $tutor-spacing-7; @@ -103,6 +109,7 @@ .tutor-learning-nav { @include tutor-flex(column); + gap: $tutor-spacing-1; padding: $tutor-spacing-6 $tutor-spacing-4; flex-grow: 1; @@ -111,17 +118,20 @@ &-topic { @include tutor-flex(column); + gap: $tutor-spacing-1; .tutor-learning-nav-header { @include tutor-flex(row, center); + gap: $tutor-spacing-4; padding-block: $tutor-spacing-4; - padding-inline-start: $tutor-spacing-5; - padding-inline-end: $tutor-spacing-3; + padding-inline: $tutor-spacing-5 $tutor-spacing-3; cursor: pointer; border-radius: $tutor-radius-md; + @include tutor-transition((color, background-color)); + outline: none; &:hover, @@ -140,6 +150,7 @@ @include tutor-breakpoint-down(lg) { @include tutor-flex(row, center); + gap: $tutor-spacing-4; margin-inline-start: auto; } @@ -151,7 +162,9 @@ &-arrow { @include tutor-flex-center(); + color: $tutor-icon-secondary; + @include tutor-transition(transform); &.is-expanded { @@ -163,6 +176,7 @@ &:hover .tutor-learning-nav-header-actions, &:focus-visible .tutor-learning-nav-header-actions { @include tutor-flex(row, center); + gap: $tutor-spacing-4; margin-inline-start: auto; } @@ -204,10 +218,13 @@ @include tutor-button-reset(); @include tutor-typography(small, medium, secondary); @include tutor-flex(row, flex-start); + gap: $tutor-spacing-4; padding: $tutor-spacing-4 $tutor-spacing-5; border-radius: $tutor-radius-md; + @include tutor-transition((color, background-color, box-shadow)); + position: relative; min-height: 40px; opacity: 1; @@ -254,9 +271,11 @@ color: $tutor-icon-secondary; } } + &.pending svg { color: $tutor-icon-warning-secondary; } + &.fail svg { color: $tutor-icon-critical; } @@ -283,11 +302,12 @@ .tutor-sidebar-resizer { position: absolute; top: -14px; - inset-inline-start: 0; - inset-inline-end: 0; + inset-inline: 0; height: 12px; cursor: ns-resize; + @include tutor-flex-center(); + z-index: $tutor-z-sidebar; &::before { @@ -296,6 +316,7 @@ height: 3px; background-color: $tutor-surface-l2; border-radius: $tutor-radius-5xl; + @include tutor-transition(background-color); } @@ -310,6 +331,7 @@ .tutor-sidebar-restore-dropdown { @include tutor-flex(row, center, center); + position: absolute; width: 100%; inset-inline-start: 0; @@ -318,6 +340,7 @@ button { @include tutor-button-reset(); @include tutor-flex(row, center, center); + background-color: $tutor-surface-l1; color: $tutor-icon-secondary; border-start-start-radius: $tutor-radius-sm; @@ -334,7 +357,6 @@ bottom: 0; inset-inline-start: -8px; background: $tutor-surface-l1; - mask: radial-gradient(circle 8px at top left, transparent 8px, $tutor-surface-l1 8px); -webkit-mask: radial-gradient(circle 8px at top left, transparent 8px, $tutor-surface-l1 8px); } @@ -347,7 +369,6 @@ bottom: 0; inset-inline-end: -8px; background: $tutor-surface-l1; - mask: radial-gradient(circle 8px at top right, transparent 8px, $tutor-surface-l1 8px); -webkit-mask: radial-gradient(circle 8px at top right, transparent 8px, $tutor-surface-l1 8px); } @@ -369,11 +390,12 @@ .tutor-learning-pages { @include tutor-flex(column); + gap: $tutor-spacing-1; &:not(:has(.tutor-popover)) { - overflow-y: auto; - overflow-x: hidden; + overflow: hidden auto; + @include tutor-transition(height, 0.3s); } @@ -389,6 +411,7 @@ &-nav, .tutor-popover-body { @include tutor-flex(column); + gap: $tutor-spacing-1; } @@ -396,15 +419,19 @@ @include tutor-button-reset(); @include tutor-typography(small); @include tutor-flex(row, center); + gap: $tutor-spacing-5; padding: $tutor-spacing-4 $tutor-spacing-5; border-radius: $tutor-radius-md; + @include tutor-transition(background-color); + width: 100%; position: relative; svg { color: $tutor-icon-idle; + @include tutor-transition(transform, 0.3s); } @@ -445,6 +472,7 @@ z-index: calc($tutor-z-sidebar + 1); color: $tutor-icon-secondary; transform: translateX(0); + @include tutor-transition(transform); @include tutor-breakpoint-down(lg) { diff --git a/assets/src/scss/frontend/learning-area/pages/_announcements.scss b/assets/src/scss/frontend/learning-area/pages/_announcements.scss index 0b8127523e..4579a824f9 100644 --- a/assets/src/scss/frontend/learning-area/pages/_announcements.scss +++ b/assets/src/scss/frontend/learning-area/pages/_announcements.scss @@ -4,10 +4,12 @@ .tutor-course-announcements { @include tutor-card-base; @include tutor-card-radius; + padding: 0; .tutor-announcement-item { padding: $tutor-spacing-6; + &:not(:last-of-type) { border-bottom: 1px solid $tutor-border-idle; } diff --git a/assets/src/scss/frontend/learning-area/pages/_certificate.scss b/assets/src/scss/frontend/learning-area/pages/_certificate.scss index 544d4a17e1..c145c7bbfb 100644 --- a/assets/src/scss/frontend/learning-area/pages/_certificate.scss +++ b/assets/src/scss/frontend/learning-area/pages/_certificate.scss @@ -11,6 +11,7 @@ .tutor-certificate-locked-badge { @include tutor-typography(small, medium, brand); @include tutor-flex(row, center); + gap: $tutor-spacing-2; padding: $tutor-spacing-4 $tutor-spacing-6; border-radius: $tutor-radius-full; @@ -20,7 +21,9 @@ // @TODO: The glass effect needs to improve. .tutor-certificate-modal-preview { height: 320px; + @include tutor-flex(row, end, center); + padding-bottom: $tutor-spacing-11; background-color: $tutor-surface-brand-secondary; border-radius: $tutor-radius-2xl; @@ -38,30 +41,33 @@ .tutor-certificate-preview-effect { position: absolute; bottom: 24px; - inset-inline-start: 50%; + /* stylelint-disable-next-line property-layout-mappings -- translateX(-50%) is physical, so left keeps the preview centered in RTL */ + left: 50%; transform: translateX(-50%); width: 310px; height: 142px; - background: rgba(255, 255, 255, 0.1); + background: rgb(255 255 255 / 10%); backdrop-filter: blur(1px); -webkit-backdrop-filter: blur(1px); border-radius: $tutor-radius-3xl; box-shadow: - inset 0 1px 1px rgba(255, 255, 255, 1), - inset 0 -1px 1px rgba(255, 255, 255, 1); + inset 0 1px 1px rgb(255 255 255 / 100%), + inset 0 -1px 1px rgb(255 255 255 / 100%); } .tutor-certificate-preview-lock { width: 92px; height: 92px; + @include tutor-flex(row, center, center); + background-color: $tutor-surface-brand-primary; color: $tutor-icon-caution; border-radius: 50%; - position: absolute; top: 0; - inset-inline-start: 50%; + /* stylelint-disable-next-line property-layout-mappings -- translateX(-50%) is physical, so left keeps the lock centered in RTL */ + left: 50%; transform: translateX(-50%) translateY(-50%); } } diff --git a/assets/src/scss/frontend/learning-area/pages/_course-info.scss b/assets/src/scss/frontend/learning-area/pages/_course-info.scss index c4da9e1f0a..53469ad01f 100644 --- a/assets/src/scss/frontend/learning-area/pages/_course-info.scss +++ b/assets/src/scss/frontend/learning-area/pages/_course-info.scss @@ -17,6 +17,7 @@ .tutor-course-sticky-card { @include tutor-flex(row, center); + gap: $tutor-spacing-5; background-color: $tutor-surface-l1; border: 1px solid $tutor-border-idle; @@ -25,6 +26,7 @@ .tutor-course-thumb { @include tutor-flex(); + max-width: 106px; } } @@ -44,6 +46,7 @@ .tutor-course-info-cards { @include tutor-flex(column); + gap: $tutor-spacing-4; } @@ -56,6 +59,7 @@ &-item { @include tutor-flex(row); + gap: $tutor-spacing-4; svg { @@ -84,6 +88,7 @@ td { @include tutor-typography(medium); + padding: $tutor-spacing-5 $tutor-spacing-6; vertical-align: top; @@ -138,8 +143,7 @@ 'thumb content' 'buttons buttons'; padding: $tutor-spacing-5; - row-gap: $tutor-spacing-5; - column-gap: $tutor-spacing-6; + gap: $tutor-spacing-5 $tutor-spacing-6; } &-thumb { @@ -165,11 +169,14 @@ &-buttons { grid-area: buttons; align-self: start; + @include tutor-flex(row, center); + gap: $tutor-spacing-5; @include tutor-breakpoint-down(sm) { @include tutor-flex(column-reverse); + gap: $tutor-spacing-4; button { diff --git a/assets/src/scss/frontend/learning-area/pages/_quiz-intro.scss b/assets/src/scss/frontend/learning-area/pages/_quiz-intro.scss index a4ceeb9ba1..4d8274be49 100644 --- a/assets/src/scss/frontend/learning-area/pages/_quiz-intro.scss +++ b/assets/src/scss/frontend/learning-area/pages/_quiz-intro.scss @@ -5,6 +5,7 @@ @include tutor-card-base(); @include tutor-card-padding(medium); @include tutor-card-radius(2xl); + margin-top: $tutor-spacing-4; @include tutor-breakpoint-down(sm) { @@ -20,12 +21,14 @@ @include tutor-breakpoint-down(sm) { @include tutor-card-base(); @include tutor-card-radius(2xl); + padding: $tutor-spacing-5; } } &-icon { @include tutor-flex-center; + height: 200px; background-color: $tutor-surface-l3; border-radius: $tutor-radius-lg; @@ -45,17 +48,21 @@ &-title { @include tutor-typography('h3', 'semibold', 'primary', 'heading'); + margin-top: $tutor-spacing-8; @include tutor-breakpoint-down(sm) { @include tutor-typography('h5', 'semibold', 'primary', 'heading'); + margin-block: $tutor-spacing-5 $tutor-spacing-4; } } &-description { @include tutor-typography('p1', 'regular', 'secondary'); + margin-block: $tutor-spacing-5 $tutor-spacing-8; + @include tutor-breakpoint-down(sm) { @include tutor-typography('small', 'regular', 'secondary'); } @@ -75,6 +82,7 @@ td { &:first-of-type { width: 31.71%; + svg { flex-shrink: 0; } @@ -111,6 +119,7 @@ .tutor-quiz-attempts { background-color: $tutor-surface-l1; overflow: hidden; + .tutor-quiz-attempts-header { grid-template-columns: 324px 190px 1.5fr 1fr; } @@ -150,6 +159,7 @@ th { &.tutor-quiz-intro-attempts-header { @include tutor-typography('tiny', 'regular', 'secondary'); + letter-spacing: 0; &:first-child { @@ -166,6 +176,7 @@ &-row { @include tutor-breakpoint-down(sm) { @include tutor-flex(column); + padding: $tutor-spacing-5; gap: $tutor-spacing-4; } @@ -190,6 +201,7 @@ @include tutor-breakpoint-down(sm) { width: 100%; + @include tutor-flex(column); } } @@ -199,6 +211,7 @@ @include tutor-breakpoint-down(sm) { width: 100%; + @include tutor-flex(row, center, flex-start, wrap); > div { @@ -231,6 +244,7 @@ &-attempt { &-number { @include tutor-typography('medium', 'semibold', 'primary'); + margin-bottom: $tutor-spacing-3; @include tutor-breakpoint-down(sm) { @@ -259,6 +273,7 @@ width: 100%; @include tutor-flex(row, center); + gap: $tutor-spacing-4; @include tutor-breakpoint-down(sm) { @@ -269,6 +284,7 @@ &-time-info { @include tutor-flex(row, center); + gap: $tutor-spacing-2; svg { @@ -281,6 +297,7 @@ @include tutor-breakpoint-down(sm) { @include tutor-flex(); + margin-inline-start: $tutor-spacing-4; } } @@ -290,8 +307,10 @@ @include tutor-breakpoint-down(sm) { @include tutor-flex(row, center); + margin-inline-start: auto; gap: $tutor-spacing-2; + @include tutor-typography('tiny', 'medium', 'secondary'); } } @@ -299,6 +318,7 @@ &-marks { &-breakdown { @include tutor-flex(column); + gap: $tutor-spacing-2; @include tutor-breakpoint-down(sm) { @@ -310,6 +330,7 @@ &-incorrect { @include tutor-typography('tiny', 'medium', 'primary'); @include tutor-flex(row, center); + gap: $tutor-spacing-2; background-color: $tutor-gray-200; padding: 0 $tutor-spacing-4; diff --git a/assets/src/scss/modules/certificate-list.scss b/assets/src/scss/modules/certificate-list.scss index 1f1109d322..366507886b 100644 --- a/assets/src/scss/modules/certificate-list.scss +++ b/assets/src/scss/modules/certificate-list.scss @@ -22,24 +22,28 @@ ul { counter-reset: listItem; + li { list-style: none; display: block; font-size: 15px; line-height: 1.6; margin-bottom: 13px; - &:before { + + &::before { counter-increment: listItem; content: counter(listItem) '.'; - margin-right: 12px; + margin-inline-end: 12px; } } } + .create-certificate-btn { margin-top: 28px; } + .item-wrapper { - padding: 42px 52px 54px 52px; + padding: 42px 52px 54px; } } // end of.create-certificate-steps @@ -61,19 +65,23 @@ .all-certificate { .tutor-option-field-row { grid-template-columns: 98px 1fr auto; - grid-gap: 20px; + gap: 20px; } + .certificate-thumb { display: inline-flex; justify-self: center; position: relative; - &:before { + + &::before { position: absolute; content: ''; + @include svg-eye-icon; + background-position: center; background-repeat: no-repeat; - background-color: rgba(22, 22, 22, 0.5); + background-color: rgb(22 22 22 / 50%); width: 100%; height: 100%; backdrop-filter: blur(2px); @@ -81,7 +89,8 @@ opacity: 0; transition: 0.2s linear; } - &:hover:before { + + &:hover::before { opacity: 1; } } @@ -90,12 +99,14 @@ .no-certificate { .certificate-thumb { text-align: center; + p { font-size: 20px; line-height: 1.5; margin-top: 24px; } } + .item-wrapper { padding-top: 50px; padding-bottom: 50px; @@ -106,16 +117,19 @@ .tutor-option-field-row { border-bottom: none; } + .radio-thumbnail { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); - grid-gap: 18px 16px; + gap: 18px 16px; + label { margin: unset; display: inline-flex; cursor: pointer; } } + .radio-thumbnail input[type='radio']:checked ~ .icon-wrapper img { box-shadow: 0 0 0 1px var(--tutor-color-primary); } @@ -127,15 +141,17 @@ } .signature-upload-wrap { - text-align: left; + text-align: start; padding-top: 7px; padding-bottom: 13px; } + .signature-upload { display: flex; align-items: center; - text-align: left; + text-align: start; } + .signature-preview { border: 2px solid #e8e8e8; border-radius: 3px; @@ -144,6 +160,7 @@ display: flex; justify-content: center; padding: 2px 0; + img { width: 100%; height: 100%; @@ -152,7 +169,7 @@ } .signature-info { - margin-left: 23px; + margin-inline-start: 23px; } // .signature-upload (delete icon) @@ -162,13 +179,16 @@ width: 24px; height: 24px; border-radius: 50%; + @include svg-delete-icon; + background-color: $color-danger; background-repeat: no-repeat; background-position: 50%; cursor: pointer; top: -12px; - right: -12px; + inset-inline-end: -12px; + &:hover { background-color: darken($color: $color-danger, $amount: 6); } @@ -182,6 +202,7 @@ .tutor-btn { margin-top: 24px; + // padding: 6px 17px 6px 43px; input[type='file'] { appearance: none; diff --git a/assets/src/scss/modules/instructor-note.scss b/assets/src/scss/modules/instructor-note.scss index b58aaf2c30..345173434b 100644 --- a/assets/src/scss/modules/instructor-note.scss +++ b/assets/src/scss/modules/instructor-note.scss @@ -1,5 +1,5 @@ .tutor-instructor-note.tutor-quiz-attempt-note { - background-color: rgba(var(--tutor-color-primary-rgb), 0.15); - border: 1px solid rgba(var(--tutor-color-primary-rgb), 0.4); + background-color: rgb(var(--tutor-color-primary-rgb), 0.15); + border: 1px solid rgb(var(--tutor-color-primary-rgb), 0.4); border-radius: 6px; } \ No newline at end of file diff --git a/assets/src/scss/modules/qna.scss b/assets/src/scss/modules/qna.scss index 93e7a54476..ab33494f76 100644 --- a/assets/src/scss/modules/qna.scss +++ b/assets/src/scss/modules/qna.scss @@ -15,8 +15,8 @@ body.wp-admin { .tutor-qna-single-wrapper { .tutor-qa-reply { - border-top-left-radius: 6px; - border-top-right-radius: 6px; + border-start-start-radius: 6px; + border-start-end-radius: 6px; overflow: hidden; } } @@ -43,6 +43,7 @@ height: 80px !important; width: 100%; border: none; + // border-bottom: 1px solid #cdcfd5; border: 1px solid var(--tutor-border-color); border-radius: 6px; @@ -62,7 +63,7 @@ .tutor-qna-badges { .tutor-btn { &:not(:last-child) { - margin-right: 18px; + margin-inline-end: 18px; } } } @@ -109,7 +110,7 @@ position: relative; max-width: max-content; - &:before { + &::before { content: ''; position: absolute; width: 20px; @@ -124,8 +125,8 @@ &.tutor-qna-left { .tutor-qna-text { - &:before { - left: 15px; + &::before { + inset-inline-start: 15px; } } } @@ -138,8 +139,8 @@ } .tutor-qna-text { - &:before { - right: 15px; + &::before { + inset-inline-end: 15px; } } } @@ -149,7 +150,7 @@ } ul { - padding-left: 2rem; + padding-inline-start: 2rem; li { list-style-type: disc; @@ -176,7 +177,8 @@ } .tutor-toggle-reply { - text-align: right; + text-align: end; + span { cursor: pointer; @@ -192,7 +194,7 @@ @at-root { body.wp-admin { .tutor-qa-chatlist { - margin-right: 16px; + margin-inline-end: 16px; margin-top: 16px; } } @@ -229,8 +231,8 @@ table.qna-list-table { .tutor-qna-question-col { i { font-size: 24px !important; - margin-right: 13px; - left: -6px; + margin-inline-end: 13px; + inset-inline-start: -6px; top: 2px; } @@ -257,7 +259,7 @@ table.qna-list-table { color: var(--tutor-body-color); ul { - padding-left: 2rem; + padding-inline-start: 2rem; li { list-style-type: disc; @@ -279,7 +281,7 @@ table.qna-list-table { color: #212327; ul { - padding-left: 2rem; + padding-inline-start: 2rem; li { list-style-type: disc; @@ -333,7 +335,7 @@ table.qna-list-table { } .tutor-qna-single-question .tutor-qa-reply div { - padding: 10px 0px 0px 0px; + padding: 10px 0 0; } .tutor-qa-new { @@ -367,8 +369,9 @@ body.wp-admin { & > * { padding: 20px !important; } + .tutor-qa-reply { - border-radius: 0px; + border-radius: 0; } } @@ -383,36 +386,46 @@ body.wp-admin { .wp-editor-container { border: none; } + .mce-tinymce.mce-panel { background: #fff; border: none; + > .mce-container-body { border: 1px solid #dcdfe6; border-radius: 6px; } + box-shadow: none; } + .mce-toolbar-grp { border-bottom: none; background: transparent; } + .mce-top-part::before { - box-shadow: 0 1px 0px #cdcfd5; + box-shadow: 0 1px 0 #cdcfd5; } .mce-statusbar { border-top: none; + > .mce-container-body .mce-path { visibility: hidden; } + &.mce-last { background-color: transparent; } } + .mce-toolbar { .mce-ico { color: #767c8e; + --size: 22px; + width: var(--size); height: var(--size); display: flex; diff --git a/assets/src/scss/modules/quiz-attempts.scss b/assets/src/scss/modules/quiz-attempts.scss index 9de4f4e56f..bfaef68f38 100644 --- a/assets/src/scss/modules/quiz-attempts.scss +++ b/assets/src/scss/modules/quiz-attempts.scss @@ -1,5 +1,6 @@ .answer-image-matched-wrap { display: block; + .image-matching-item { display: flex; align-items: center; @@ -14,7 +15,7 @@ .dragged-caption { font-size: 14px; - margin-left: 12px; + margin-inline-start: 12px; } } } @@ -35,7 +36,7 @@ align-items: center; .image { - margin-right: 12px; + margin-inline-end: 12px; } } @@ -124,7 +125,7 @@ .is-penalty { color: #dc3545; - margin-left: 2px; + margin-inline-start: 2px; } } @@ -139,6 +140,7 @@ background:#F4F6F9; text-align:center!important; padding:4px; + button{ margin:0; line-height: 32px; @@ -210,10 +212,9 @@ .tutor-quiz-question-review-actions { display: flex; - flex-direction: row; + flex-flow: row nowrap; align-items: center; justify-content: flex-start; - flex-wrap: nowrap; gap: 8px; } @@ -252,29 +253,29 @@ &[data-review-status='correct']:has(input:checked) { background-color: #24983f; - color: #ffffff; + color: #fff; svg:not([class]) { - color: #ffffff; + color: #fff; } &:hover:not(:disabled):not(.disabled) { background-color: #1c7731; - color: #ffffff; + color: #fff; } } &[data-review-status='incorrect']:has(input:checked) { background-color: #d92d20; - color: #ffffff; + color: #fff; svg:not([class]) { - color: #ffffff; + color: #fff; } &:hover:not(:disabled):not(.disabled) { background-color: #b42318; - color: #ffffff; + color: #fff; } } } @@ -293,7 +294,7 @@ @include breakpoint-max(mobile) { .tutor-manual-review-wrapper { - text-align: left; + text-align: start; } } } \ No newline at end of file diff --git a/assets/src/scss/modules/quiz-icons.scss b/assets/src/scss/modules/quiz-icons.scss index b79cfb8db0..7adfb8ff2f 100644 --- a/assets/src/scss/modules/quiz-icons.scss +++ b/assets/src/scss/modules/quiz-icons.scss @@ -3,7 +3,7 @@ padding: 0; color: #fff; border-radius: 4px; - margin-right: 8px; + margin-inline-end: 8px; display: inline-block; width: 32px; height: 32px; @@ -14,8 +14,7 @@ background-color: var(--tutor-color-primary); .rtl & { - margin-left: 8px; - margin-right: 0px; + margin-inline: 8px 0; } } diff --git a/classes/Assets.php b/classes/Assets.php index bd76152857..6ee51fcf21 100644 --- a/classes/Assets.php +++ b/classes/Assets.php @@ -443,11 +443,7 @@ public function common_scripts( $slug ) { wp_enqueue_style( 'tutor-icon', tutor()->url . 'assets/css/tutor-icon.min.css', array(), TUTOR_VERSION ); // Common css library. - if ( is_rtl() ) { - wp_enqueue_style( 'tutor', tutor()->url . 'assets/css/tutor-rtl.min.css', array(), TUTOR_VERSION ); - } else { - wp_enqueue_style( 'tutor', tutor()->url . 'assets/css/tutor.min.css', array(), TUTOR_VERSION ); - } + wp_enqueue_style( 'tutor', tutor()->url . 'assets/css/tutor.min.css', array(), TUTOR_VERSION ); /** * Load tutor common scripts both backend and frontend diff --git a/classes/Tutor_Setup.php b/classes/Tutor_Setup.php index 6853686cdf..b02a2d2f21 100644 --- a/classes/Tutor_Setup.php +++ b/classes/Tutor_Setup.php @@ -134,11 +134,7 @@ public function enqueue_onboard_scripts() { wp_enqueue_style( 'tutor-setup', tutor()->url . 'assets/css/tutor-setup.min.css', array(), TUTOR_VERSION ); wp_register_script( 'tutor-setup', tutor()->url . 'assets/js/tutor-setup.js', array( 'wp-i18n' ), TUTOR_VERSION, true ); - if ( is_rtl() ) { - wp_enqueue_style( 'tutor', tutor()->url . 'assets/css/tutor-rtl.min.css', array(), TUTOR_VERSION ); - } else { - wp_enqueue_style( 'tutor', tutor()->url . 'assets/css/tutor.min.css', array(), TUTOR_VERSION ); - } + wp_enqueue_style( 'tutor', tutor()->url . 'assets/css/tutor.min.css', array(), TUTOR_VERSION ); wp_enqueue_script( 'tutor-script', tutor()->url . 'assets/js/tutor.js', array( 'wp-i18n' ), TUTOR_VERSION, true ); diff --git a/package.json b/package.json index 3a2feaf97d..91cb31773b 100644 --- a/package.json +++ b/package.json @@ -13,8 +13,8 @@ "watch": "rspack --watch --mode=development", "make-pot": "rspack --env=make-pot --mode=production && php -d memory_limit=-1 $(which wp) i18n make-pot . ./languages/tutor.pot --slug=tutor --domain=tutor --include='**/*.php,assets/js/*.js' --exclude='node_modules,vendor,build,includes/droip,includes/kirki'", "eslint:fix": "pnpm exec eslint --fix", - "lint:css": "stylelint \"assets/core/scss/**/*.scss\" \"assets/src/scss/frontend/**/*.scss\"", - "lint:css:fix": "stylelint \"assets/core/scss/**/*.scss\" \"assets/src/scss/frontend/**/*.scss\" --fix", + "lint:css": "stylelint \"**/*.scss\"", + "lint:css:fix": "stylelint \"**/*.scss\" --fix", "tutor-droip": "cd includes/droip && npm run build && cp -r dist/* ../../includes/droip", "tutor-kirki": "cd includes/kirki && npm run build && cp -r dist/* ../../includes/kirki", "cy:open": "cypress open --e2e --browser electron", @@ -92,6 +92,7 @@ "storybook-react-rsbuild": "^3.0.0", "style-loader": "^4.0.0", "stylelint": "^17.16.0", + "stylelint-config-standard-scss": "17.0.0", "tsx": "^4.20.3", "typescript-eslint": "^8.37.0", "webpack-node-externals": "^3.0.0" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index b2a109bac0..54e9818581 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -279,6 +279,9 @@ importers: stylelint: specifier: ^17.16.0 version: 17.16.0(typescript@5.8.3) + stylelint-config-standard-scss: + specifier: 17.0.0 + version: 17.0.0(postcss@8.5.6)(stylelint@17.16.0(typescript@5.8.3)) tsx: specifier: ^4.20.3 version: 4.21.0 @@ -5920,6 +5923,9 @@ packages: resolution: {integrity: sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==} engines: {node: '>=0.10.0'} + known-css-properties@0.37.0: + resolution: {integrity: sha512-JCDrsP4Z1Sb9JwG0aJ8Eo2r7k4Ou5MwmThS/6lcIe1ICyb7UBJKGRIUUdqc2ASdE/42lgz6zFUnzAIhtXnBVrQ==} + language-subtag-registry@0.3.23: resolution: {integrity: sha512-0K65Lea881pHotoGEa5gDlMxt3pctLi2RplBb7Ezh4rRdLEOtgi7n4EwK9lamnUCkKBqaeKRVebTq6BAxSkpXQ==} @@ -6523,6 +6529,9 @@ packages: webpack: optional: true + postcss-media-query-parser@0.2.3: + resolution: {integrity: sha512-3sOlxmbKcSHMjlUXQZKQ06jOswE7oVkXPxmZdoB1r5l0q6gTFTQSHxNxOrCccElbW7dxNytifNEo8qidX2Vsig==} + postcss-modules-extract-imports@3.1.0: resolution: {integrity: sha512-k3kNe0aNFQDAZGbin48pL2VNidTF0w4/eASDsxlyspobzU3wZQLOGj7L9gfRe0Jo9/4uud09DsjFNH7winGv8Q==} engines: {node: ^10 || ^12 || >= 14} @@ -6552,6 +6561,9 @@ packages: peerDependencies: postcss: '>4 <9' + postcss-resolve-nested-selector@0.1.7: + resolution: {integrity: sha512-lFcugRCQXWManq7nyZ0dDtir52wc7gKYJfWpSuz4GxvnGc7dtlpXcZYX4A0asatzTuqpQ3ngDdyD+QG/szeXWw==} + postcss-safe-parser@7.1.0: resolution: {integrity: sha512-1WzZxRLaAFwEh6Do+zyGpjWV3nGJNxxhuh7Ubu/q1ICImMgZJnLwhoaEpRbG4pJppp2Y1ncL9ffA2f+LhrefQg==} engines: {node: '>=18.0'} @@ -7416,6 +7428,44 @@ packages: peerDependencies: webpack: ^5.27.0 + stylelint-config-recommended-scss@17.0.1: + resolution: {integrity: sha512-x5DVehzJudcwF0od3sGpgkln2PLLranFE7twwbp7dqDINCyZvwzFkMc6TLhNOvazRiVBJYATQLouJY0xPGB8WA==} + engines: {node: '>=20'} + peerDependencies: + postcss: ^8.3.3 + stylelint: ^17.0.0 + peerDependenciesMeta: + postcss: + optional: true + + stylelint-config-recommended@18.0.0: + resolution: {integrity: sha512-mxgT2XY6YZ3HWWe3Di8umG6aBmWmHTblTgu/f10rqFXnyWxjKWwNdjSWkgkwCtxIKnqjSJzvFmPT5yabVIRxZg==} + engines: {node: '>=20.19.0'} + peerDependencies: + stylelint: ^17.0.0 + + stylelint-config-standard-scss@17.0.0: + resolution: {integrity: sha512-uLJS6xgOCBw5EMsDW7Ukji8l28qRoMnkRch15s0qwZpskXvWt9oPzMmcYM307m9GN4MxuWLsQh4I6hU9yI53cQ==} + engines: {node: '>=20'} + peerDependencies: + postcss: ^8.3.3 + stylelint: ^17.0.0 + peerDependenciesMeta: + postcss: + optional: true + + stylelint-config-standard@40.0.0: + resolution: {integrity: sha512-EznGJxOUhtWck2r6dJpbgAdPATIzvpLdK9+i5qPd4Lx70es66TkBPljSg4wN3Qnc6c4h2n+WbUrUynQ3fanjHw==} + engines: {node: '>=20.19.0'} + peerDependencies: + stylelint: ^17.0.0 + + stylelint-scss@7.3.0: + resolution: {integrity: sha512-FBz075AUFoEJ1WQKsgsRr6EJKcjy7jxQjV8xsAqbPcnhNiXnJ7C489vqUyDZccBy1GorewlshERkaMuCyOKXaw==} + engines: {node: '>=20.19.0'} + peerDependencies: + stylelint: ^16.8.2 || ^17.0.0 + stylelint@17.16.0: resolution: {integrity: sha512-ejlWnbJ13x1GU32+zZXa6sYQJsKKkwSdv2B4rAdO3OWdEmvhSJKcXi5pOphQYSzyaj1kXpuGJr7pcMBNfDIuPw==} engines: {node: '>=20.19.0'} @@ -15114,6 +15164,8 @@ snapshots: kind-of@6.0.3: {} + known-css-properties@0.37.0: {} + language-subtag-registry@0.3.23: {} language-tags@1.0.9: @@ -15705,6 +15757,8 @@ snapshots: transitivePeerDependencies: - typescript + postcss-media-query-parser@0.2.3: {} + postcss-modules-extract-imports@3.1.0(postcss@8.5.6): dependencies: postcss: 8.5.6 @@ -15730,6 +15784,8 @@ snapshots: dependencies: postcss: 8.5.6 + postcss-resolve-nested-selector@0.1.7: {} + postcss-safe-parser@7.1.0(postcss@8.5.30): dependencies: postcss: 8.5.30 @@ -16715,6 +16771,47 @@ snapshots: dependencies: webpack: 5.103.0(postcss@8.5.6) + stylelint-config-recommended-scss@17.0.1(postcss@8.5.6)(stylelint@17.16.0(typescript@5.8.3)): + dependencies: + postcss-scss: 4.0.9(postcss@8.5.6) + stylelint: 17.16.0(typescript@5.8.3) + stylelint-config-recommended: 18.0.0(stylelint@17.16.0(typescript@5.8.3)) + stylelint-scss: 7.3.0(stylelint@17.16.0(typescript@5.8.3)) + optionalDependencies: + postcss: 8.5.6 + + stylelint-config-recommended@18.0.0(stylelint@17.16.0(typescript@5.8.3)): + dependencies: + stylelint: 17.16.0(typescript@5.8.3) + + stylelint-config-standard-scss@17.0.0(postcss@8.5.6)(stylelint@17.16.0(typescript@5.8.3)): + dependencies: + stylelint: 17.16.0(typescript@5.8.3) + stylelint-config-recommended-scss: 17.0.1(postcss@8.5.6)(stylelint@17.16.0(typescript@5.8.3)) + stylelint-config-standard: 40.0.0(stylelint@17.16.0(typescript@5.8.3)) + optionalDependencies: + postcss: 8.5.6 + + stylelint-config-standard@40.0.0(stylelint@17.16.0(typescript@5.8.3)): + dependencies: + stylelint: 17.16.0(typescript@5.8.3) + stylelint-config-recommended: 18.0.0(stylelint@17.16.0(typescript@5.8.3)) + + stylelint-scss@7.3.0(stylelint@17.16.0(typescript@5.8.3)): + dependencies: + '@csstools/css-calc': 3.4.3(@csstools/css-parser-algorithms@4.0.2(@csstools/css-tokenizer@4.0.2))(@csstools/css-tokenizer@4.0.2) + '@csstools/css-parser-algorithms': 4.0.2(@csstools/css-tokenizer@4.0.2) + '@csstools/css-syntax-patches-for-csstree': 1.1.15(css-tree@3.2.1) + '@csstools/css-tokenizer': 4.0.2 + css-tree: 3.2.1 + is-plain-object: 5.1.0 + known-css-properties: 0.37.0 + postcss-media-query-parser: 0.2.3 + postcss-resolve-nested-selector: 0.1.7 + postcss-selector-parser: 7.1.6 + postcss-value-parser: 4.2.0 + stylelint: 17.16.0(typescript@5.8.3) + stylelint@17.16.0(typescript@5.8.3): dependencies: '@csstools/css-calc': 3.4.3(@csstools/css-parser-algorithms@4.0.2(@csstools/css-tokenizer@4.0.2))(@csstools/css-tokenizer@4.0.2) diff --git a/rspack.config.mjs b/rspack.config.mjs index a16d874e28..cd8c252e80 100644 --- a/rspack.config.mjs +++ b/rspack.config.mjs @@ -322,7 +322,6 @@ const scssEntries = { 'tutor-admin-scss': './assets/src/scss/admin-dashboard/index.scss', 'tutor-setup-scss': './assets/src/scss/admin-dashboard/tutor-setup.scss', 'tutor-scss': './v2-library/src/scss/main.scss', - 'tutor-rtl-scss': './v2-library/src/scss/main.rtl.scss', 'tutor-icon-scss': './v2-library/tutor-icon/tutor-icon.scss', 'tutor-core-scss': './assets/core/scss/main.scss', 'tutor-kids-scss': './assets/src/scss/frontend/kids/index.scss', diff --git a/stylelint.config.mjs b/stylelint.config.mjs deleted file mode 100644 index 83944ab711..0000000000 --- a/stylelint.config.mjs +++ /dev/null @@ -1,45 +0,0 @@ -// RTL guard for new UI styles. -// -// Physical direction properties (margin-left, text-align: right, left, ...) do -// not mirror in RTL, so these trees use flow-relative properties instead: -// assets/core/scss design system -// assets/src/scss/frontend dashboard, learning area, kids -// -// Legacy styles are deliberately out of scope: v2-library/src/scss builds a -// separate RTL stylesheet via $is-rtl (main.rtl.scss), and -// assets/src/scss/{front,admin-dashboard,modules} predate the design system. -// -// Intentional physical CSS (physical float utilities, or `left: 50%` with a -// physical translate) gets a one-line disable with a reason: -// /* stylelint-disable-next-line -- reason */ -// -// Stylelint skips --fix for any file that contains a disable comment. -// Known gap: 4-value shorthands (margin: 0 0 0 10px) are not inspected. - -// Block-axis and size properties read the same in LTR and RTL, so they stay -// physical: width/height, top/bottom, and the block border/margin/padding sides. -const directionNeutralProperties = - /^(top|bottom|width|height|min-(width|height)|max-(width|height)|contain-intrinsic-(width|height)|margin-(top|bottom)|padding-(top|bottom)|border-(top|bottom)(-(width|style|color))?|overflow-[xy]|overscroll-behavior-[xy]|scroll-(margin|padding)-(top|bottom))$/; - -/** @type {import('stylelint').Config} */ -export default { - // Stylelint's documented SCSS parser. Used directly instead of extending - // stylelint-config-standard-scss, which also turns on unrelated style rules. - customSyntax: 'postcss-scss', - languageOptions: { - directionality: { block: 'top-to-bottom', inline: 'left-to-right' }, - }, - // Stylelint resolves the formatter against the config too; without a top-level - // rules object it errors before the file-scoped overrides are applied. - rules: {}, - overrides: [ - { - files: ['assets/core/scss/**/*.scss', 'assets/src/scss/frontend/**/*.scss'], - rules: { - 'property-layout-mappings': ['flow-relative', { ignoreProperties: [directionNeutralProperties] }], - // resize does not mirror; block/inline only narrows browser support. - 'value-keyword-layout-mappings': ['flow-relative', { ignoreProperties: ['resize'] }], - }, - }, - ], -}; diff --git a/stylelint.config.ts b/stylelint.config.ts new file mode 100644 index 0000000000..2d9959fe66 --- /dev/null +++ b/stylelint.config.ts @@ -0,0 +1,30 @@ +import type { Config } from 'stylelint'; + +// Direction-neutral properties that stay physical in LTR and RTL. +const directionNeutralProperties = + /^(top|bottom|width|height|min-(width|height)|max-(width|height)|contain-intrinsic-(width|height)|margin-(top|bottom)|padding-(top|bottom)|border-(top|bottom)(-(width|style|color))?|overflow-[xy]|overscroll-behavior-[xy]|scroll-(margin|padding)-(top|bottom))$/; + +const config: Config = { + customSyntax: 'postcss-scss', + languageOptions: { + directionality: { block: 'top-to-bottom', inline: 'left-to-right' }, + }, + rules: {}, + overrides: [ + { + files: ['assets/core/scss/**/*.scss', 'assets/src/scss/frontend/**/*.scss'], + extends: ['stylelint-config-standard-scss'], + rules: { + 'property-no-vendor-prefix': null, + 'selector-class-pattern': null, + 'scss/at-mixin-argumentless-call-parentheses': null, + 'selector-not-notation': null, + 'media-feature-range-notation': 'prefix', + 'property-layout-mappings': ['flow-relative', { ignoreProperties: [directionNeutralProperties] }], + 'value-keyword-layout-mappings': ['flow-relative', { ignoreProperties: ['resize'] }], + }, + }, + ], +}; + +export default config; diff --git a/v2-library/src/components/datapicker/TutorDatepicker.scss b/v2-library/src/components/datapicker/TutorDatepicker.scss index e03ec517df..5869bb664e 100644 --- a/v2-library/src/components/datapicker/TutorDatepicker.scss +++ b/v2-library/src/components/datapicker/TutorDatepicker.scss @@ -1,15 +1,17 @@ -@import './datepicker-range-nav.scss'; +@import './datepicker-range-nav'; .tutor-react-datepicker { .react-datepicker-popper { z-index: 99999; } + .datepicker-header-custom { display: flex; gap: 2px; justify-content: space-between; margin: 0; } + .dropdown-container { position: relative; @@ -23,14 +25,17 @@ border-radius: 8px; padding: 8px 10px; cursor: pointer; + &:hover { color: var(--tutor-color-primary); - background: rgba(var(--tutor-color-primary-rgb), 0.15); + background: rgb(var(--tutor-color-primary-rgb), 0.15); + > svg path { stroke: var(--tutor-color-primary); } } } + > ul { padding: 0; margin: 0; @@ -38,37 +43,41 @@ } .dropdown-list { - text-align: left; + text-align: start; position: absolute; + /* stylelint-disable-next-line property-layout-mappings -- translateX(-50%) is physical, so left keeps the dropdown centered in RTL */ left: 50%; top: calc(100% - 8px); transform: translateX(-50%) translateY(-4px); min-width: 71px; max-width: 112px; min-height: 200px; - max-height: 322px; max-height: 258px; overflow-y: auto; - background: #ffffff; + background: #fff; border: 1px solid #e0e2ea; box-sizing: border-box; - box-shadow: 0px 10px 14px rgba(0, 0, 0, 0.12); + box-shadow: 0 10px 14px rgb(0 0 0 / 12%); border-radius: 6px; z-index: 9; transition: 200ms ease-out; opacity: 0; visibility: hidden; - --scrollbarBG: rgba(205, 207, 213, 0); + --scrollbarBG: rgb(205 207 213 / 0%); --thumbBG: #d2dbf5; + scrollbar-width: thin; scrollbar-color: var(--thumbBG) var(--scrollbarBG); + &::-webkit-scrollbar { width: 4px; } + &::-webkit-scrollbar-track { background: var(--scrollbarBG); } + &::-webkit-scrollbar-thumb { background-color: var(--thumbBG); border-radius: 30px; @@ -103,13 +112,15 @@ // dropdown-label active &.is-active { .dropdown-list { - transform: translateX(-50%) translateY(0px); + transform: translateX(-50%) translateY(0); opacity: 1; visibility: visible; } + .dropdown-label { color: var(--tutor-color-primary); - background: rgba(var(--tutor-color-primary-rgb), 0.15); + background: rgb(var(--tutor-color-primary-rgb), 0.15); + > svg path { stroke: var(--tutor-color-primary); } @@ -119,8 +130,10 @@ .navigation-icon { display: flex; + // align-items: center; gap: 2px; + button { position: relative; width: 36px; @@ -142,10 +155,10 @@ } .react-datepicker { - background: #ffffff; + background: #fff; border: 1px solid var(--tutor-border-color); box-sizing: border-box; - box-shadow: 0px 6px 20px rgba(28, 49, 104, 0.1); + box-shadow: 0 6px 20px rgb(28 49 104 / 10%); border-radius: 6px; min-width: 350px; display: flex; @@ -204,13 +217,13 @@ transition: 100ms; &:not(.react-datepicker__day--keyboard-selected, .react-datepicker__day--selected, .react-datepicker__day--range-start, .react-datepicker__day--in-range):hover { - color: var(--tutor-color-primary); - background: #e9edfb; /* text/title */ color: #41454f; + /* color/primary/fill/30 */ background: #f6f8fd; + /* color/primary/fill/50 */ box-shadow: 0 0 0 1px #d2dbf5; } @@ -222,7 +235,7 @@ } &__day--keyboard-selected { - background: rgba(var(--tutor-color-primary-rgb), 0.8); + background: rgb(var(--tutor-color-primary-rgb), 0.8); color: #fff; } @@ -230,6 +243,7 @@ margin: 0; margin-top: 26px; } + &__day--outside-month, &__day--disabled { color: #b4b7c0; @@ -254,19 +268,21 @@ &__time-container { float: unset; width: unset; - border-left: 1px solid #c0c3cb; + border-inline-start: 1px solid #c0c3cb; .rtl & { - border-left: 0; - border-right: 1px solid #c0c3cb; + border-inline-start: 0; + border-inline-end: 1px solid #c0c3cb; } .react-datepicker-time { &__input { - margin-left: 0; + margin-inline-start: 0; + > input { /* design/white */ - background: #ffffff; + background: #fff; + /* stroke/gray40 */ border: 1px solid #c0c3cb; box-sizing: border-box; @@ -276,15 +292,14 @@ font-weight: normal; font-size: 16px; line-height: 162%; + /* identical to box height, or 162% */ /* text/primary */ color: #212327; - height: 40px; padding: 4px 10px; - transition: 200ms ease-out; &::-webkit-calendar-picker-indicator { @@ -293,7 +308,7 @@ display: flex; align-items: center; justify-content: center; - margin-left: 20px; + margin-inline-start: 20px; } &:focus-visible { @@ -302,6 +317,7 @@ } } } + &__caption { display: none; } @@ -317,7 +333,7 @@ height: 40px!important; padding: 11px 10px!important; } - } //end .react-datepicker + } // end .react-datepicker } // .tutor-react-datepicker__selects-range @@ -325,12 +341,15 @@ .react-datepicker { &__navigation { --pd: 15px; + top: 18px; + &--next { - right: var(--pd); + inset-inline-end: var(--pd); } + &--previous { - left: var(--pd); + inset-inline-start: var(--pd); } &:hover *::before { @@ -341,11 +360,12 @@ &__day { position: relative; z-index: 1; - &:before { + + &::before { content: ''; position: absolute; inset: 1px -50%; - box-shadow: 0px 1px 0px 0px #d2dbf5, 0px -1px 0px 0px #d2dbf5; + box-shadow: 0 1px 0 0 #d2dbf5, 0 -1px 0 0 #d2dbf5; background: #f6f8fd; z-index: -1; opacity: 0; @@ -357,6 +377,7 @@ background: #f6f8fd; color: #41454f; } + &__day--in-selecting-range:not(.react-datepicker__day--selecting-range-start) { box-shadow: 0 0 0 1px #d2dbf5; } @@ -365,11 +386,13 @@ &__day--range-end { background: var(--tutor-color-primary); color: #fff; + &::after { content: ''; position: absolute; inset: 0; z-index: -1; + /* design/brand */ background: var(--tutor-color-primary); border-radius: 6px; @@ -380,33 +403,36 @@ &::before { opacity: 1; } + &__day--range-start, &__day--range-end { background: var(--tutor-color-primary); color: #fff; } - &:first-child:before { - left: 0; + + &:first-child::before { + inset-inline-start: 0; } - &:last-child:before { - right: 0; + + &:last-child::before { + inset-inline-end: 0; } } &__day--range-start { - &.react-datepicker__day--in-range:before { - left: 50%; + &.react-datepicker__day--in-range::before { + inset-inline-start: 50%; } } &__day--range-end { - &.react-datepicker__day--in-range:before { - right: 50%; + &.react-datepicker__day--in-range::before { + inset-inline-end: 50%; } } &__header { - padding: 20px 20px 10px 20px; + padding: 20px 20px 10px; } &__current-month { @@ -416,7 +442,7 @@ text-align: center; color: #212327; } - } //end .react-datepicker + } // end .react-datepicker .react-datepicker__custom-footer { display: flex; @@ -428,18 +454,20 @@ line-height: 162%; color: #9ca0ac; border-top: 1px solid #e3e6eb; + .tutor-btns { display: flex; align-items: center; - grid-gap: 10px; + gap: 10px; } + .tutor-btn { &:not(.tutor-btn-icon).tutor-btn-md { padding: 7px 16.8px; } } } -} //end .tutor-react-datepicker__selects-range +} // end .tutor-react-datepicker__selects-range .tutor-screen-frontend-dashboard { .tutor-react-datepicker .react-datepicker__input-container { @@ -459,7 +487,7 @@ border: none; height: 20px; width: 20px; - right: 10px; + inset-inline-end: 10px; top: 50%; transform: translateY(-50%); border-radius: 50%; @@ -467,22 +495,26 @@ align-items: center; justify-content: center; padding: 0 !important; - --color: hsl(0, 0%, 70%); + + --color: hsl(0deg 0% 70%); + background: var(--color) !important; color: #fff; border-color: var(--color) !important; .rtl & { - right: auto; - left: 10px; + inset-inline-end: auto; + inset-inline-start: 10px; } &:hover { - --color: hsl(0, 0%, 50%); + --color: hsl(0deg 0% 50%); + background: var(--color) !important; border-color: var(--color) !important; } - &:after { + + &::after { content: '×'; margin-top: -2px; } diff --git a/v2-library/src/components/datapicker/datepicker-range-nav.scss b/v2-library/src/components/datapicker/datepicker-range-nav.scss index b29539dbfc..713bda1b15 100644 --- a/v2-library/src/components/datapicker/datepicker-range-nav.scss +++ b/v2-library/src/components/datapicker/datepicker-range-nav.scss @@ -1,4 +1,5 @@ @charset "UTF-8"; + .react-datepicker__year-read-view--down-arrow, .react-datepicker__month-read-view--down-arrow, .react-datepicker__month-year-read-view--down-arrow, @@ -13,12 +14,14 @@ top: 6px; width: 9px; } + .react-datepicker-popper[data-placement^="top"] .react-datepicker__triangle, .react-datepicker-popper[data-placement^="bottom"] .react-datepicker__triangle { - margin-left: -4px; + margin-inline-start: -4px; position: absolute; width: 0; } + .react-datepicker-popper[data-placement^="top"] .react-datepicker__triangle::before, .react-datepicker-popper[data-placement^="bottom"] @@ -35,8 +38,9 @@ content: ""; z-index: -1; border-width: 8px; - left: -8px; + inset-inline-start: -8px; } + .react-datepicker-popper[data-placement^="top"] .react-datepicker__triangle::before, .react-datepicker-popper[data-placement^="bottom"] @@ -48,6 +52,7 @@ top: 0; margin-top: -8px; } + .react-datepicker-popper[data-placement^="bottom"] .react-datepicker__triangle::before, .react-datepicker-popper[data-placement^="bottom"] @@ -55,10 +60,12 @@ border-top: none; border-bottom-color: #f0f0f0; } + .react-datepicker-popper[data-placement^="bottom"] .react-datepicker__triangle::after { top: 0; } + .react-datepicker-popper[data-placement^="bottom"] .react-datepicker__triangle::before { top: -1px; @@ -69,6 +76,7 @@ bottom: 0; margin-bottom: -8px; } + .react-datepicker-popper[data-placement^="top"] .react-datepicker__triangle::before, .react-datepicker-popper[data-placement^="top"] @@ -76,10 +84,12 @@ border-bottom: none; border-top-color: #fff; } + .react-datepicker-popper[data-placement^="top"] .react-datepicker__triangle::after { bottom: 0; } + .react-datepicker-popper[data-placement^="top"] .react-datepicker__triangle::before { bottom: -1px; @@ -105,70 +115,82 @@ } .react-datepicker--time-only .react-datepicker__triangle { - left: 35px; + inset-inline-start: 35px; } + .react-datepicker--time-only .react-datepicker__time-container { - border-left: 0; + border-inline-start: 0; } + .react-datepicker--time-only .react-datepicker__time, .react-datepicker--time-only .react-datepicker__time-box { - border-bottom-left-radius: 0.3rem; - border-bottom-right-radius: 0.3rem; + border-end-start-radius: 0.3rem; + border-end-end-radius: 0.3rem; } .react-datepicker__triangle { position: absolute; - left: 50px; + inset-inline-start: 50px; } .react-datepicker-popper { z-index: 1; } + .react-datepicker-popper[data-placement^="bottom"] { padding-top: 10px; } + .react-datepicker-popper[data-placement="bottom-end"] .react-datepicker__triangle, .react-datepicker-popper[data-placement="top-end"] .react-datepicker__triangle { - left: auto; - right: 50px; + inset-inline-start: auto; + inset-inline-end: 50px; } + .react-datepicker-popper[data-placement^="top"] { padding-bottom: 10px; } + .react-datepicker-popper[data-placement^="right"] { - padding-left: 8px; + padding-inline-start: 8px; } + .react-datepicker-popper[data-placement^="right"] .react-datepicker__triangle { - left: auto; - right: 42px; + inset-inline-start: auto; + inset-inline-end: 42px; } + .react-datepicker-popper[data-placement^="left"] { - padding-right: 8px; + padding-inline-end: 8px; } + .react-datepicker-popper[data-placement^="left"] .react-datepicker__triangle { - left: 42px; - right: auto; + inset-inline-start: 42px; + inset-inline-end: auto; } .react-datepicker__header { text-align: center; background-color: #f0f0f0; border-bottom: 1px solid #aeaeae; - border-top-left-radius: 0.3rem; + border-start-start-radius: 0.3rem; padding: 8px 0; position: relative; } + .react-datepicker__header--time { padding-bottom: 8px; - padding-left: 5px; - padding-right: 5px; + padding-inline-start: 5px; + padding-inline-end: 5px; } + .react-datepicker__header--time:not(.react-datepicker__header--time--only) { - border-top-left-radius: 0; + border-start-start-radius: 0; } + .react-datepicker__header:not(.react-datepicker__header--has-time-select) { - border-top-right-radius: 0.3rem; + border-start-end-radius: 0.3rem; } .react-datepicker__year-dropdown-container--select, @@ -213,28 +235,35 @@ text-indent: -999em; overflow: hidden; } + .react-datepicker__navigation--previous { - left: 2px; + inset-inline-start: 2px; } + .react-datepicker__navigation--next { - right: 2px; + inset-inline-end: 2px; } + .react-datepicker__navigation--next--with-time:not(.react-datepicker__navigation--next--with-today-button) { - right: 85px; + inset-inline-end: 85px; } + .react-datepicker__navigation--years { position: relative; top: 0; display: block; - margin-left: auto; - margin-right: auto; + margin-inline-start: auto; + margin-inline-end: auto; } + .react-datepicker__navigation--years-previous { top: 4px; } + .react-datepicker__navigation--years-upcoming { top: -4px; } + .react-datepicker__navigation:hover *::before { border-color: #a6a6a6; } @@ -245,17 +274,21 @@ font-size: 20px; width: 0; } + .react-datepicker__navigation-icon--next { - left: -2px; + inset-inline-start: -2px; } + .react-datepicker__navigation-icon--next::before { transform: rotate(45deg); - left: -7px; + inset-inline-start: -7px; } + .react-datepicker__navigation-icon--previous { - right: -2px; + inset-inline-end: -2px; } + .react-datepicker__navigation-icon--previous::before { transform: rotate(225deg); - right: -7px; + inset-inline-end: -7px; } diff --git a/v2-library/src/scss/components/_accordion.scss b/v2-library/src/scss/components/_accordion.scss index 0ca960e5b7..186f0595cd 100644 --- a/v2-library/src/scss/components/_accordion.scss +++ b/v2-library/src/scss/components/_accordion.scss @@ -6,6 +6,7 @@ &:not(:last-child) { margin-bottom: 10px; + @include breakpoint-min(desktop) { margin-bottom: 20px; } @@ -16,13 +17,12 @@ font-size: 20px; font-weight: 500; line-height: 1.4; - @if ($is_rtl == true) { - padding: 16px 20px 16px 40px; - } @else { - padding: 16px 40px 16px 20px; - } + + padding-block: 16px; + padding-inline-start: 20px; + padding-inline-end: 40px; + margin: 0 !important; - transition: 200ms; background-color: $color-gray-2; color: var(--tutor-color-secondary); user-select: none; @@ -33,16 +33,14 @@ // arrow &::after { content: '\e940'; - font-family: 'tutor' !important; + font-family: tutor !important; color: var(--tutor-color-primary); font-size: 16px; font-weight: normal; position: absolute; - @if ($is_rtl == true) { - left: 16px; - } @else { - right: 16px; - } + + inset-inline-end: 16px; + top: 50%; transform: translateY(-50%) rotate(0deg); transition: 150ms; @@ -56,6 +54,7 @@ color: var(--tutor-color-primary); background-color: $color-gray-10; border-radius: 6px 6px 0 0; + &::after { transform: translateY(-50%) rotate(-90deg); } @@ -67,17 +66,15 @@ position: relative; font-size: 16px; top: 1px; - @if ($is_rtl == true) { - margin-right: 8px; - } @else { - margin-left: 8px; - } + + margin-inline-start: 8px; } } } &-body { overflow: hidden; + &-content { padding: 0 16px; border-top: 1px solid $border-color-secondary; diff --git a/v2-library/src/scss/components/_avatar.scss b/v2-library/src/scss/components/_avatar.scss index e8f251abaa..6759e7625b 100644 --- a/v2-library/src/scss/components/_avatar.scss +++ b/v2-library/src/scss/components/_avatar.scss @@ -3,8 +3,8 @@ flex-shrink: 0; height: 36px; width: 36px; - background-color: #FFFFFF; - box-shadow: 0px 0px 0px 1px var(--tutor-border-color); + background-color: #FFF; + box-shadow: 0 0 0 1px var(--tutor-border-color); border-radius: 100px; overflow: hidden; @@ -12,13 +12,14 @@ display: flex; align-items: center; justify-content: center; - color: rgba(255, 255, 255, 0.80); + color: rgb(255 255 255 / 80%); background-color: var(--tutor-color-primary); } &-xl { width: 96px; height: 96px; + .tutor-avatar-text { font-size: 24px; font-weight: 500; diff --git a/v2-library/src/scss/components/_card.scss b/v2-library/src/scss/components/_card.scss index ce89bf51b5..5bb7578b95 100644 --- a/v2-library/src/scss/components/_card.scss +++ b/v2-library/src/scss/components/_card.scss @@ -1,12 +1,13 @@ .tutor { &-card { - background-color: #FFFFFF; + background-color: #FFF; position: relative; border-radius: 6px; display: flex; flex-direction: column; min-width: 0; - word-wrap: break-word; + overflow-wrap: break-word; + &:not(.tutor-no-border) { border: 1px solid var(--tutor-border-color); } @@ -17,6 +18,7 @@ justify-content: space-between; padding: 16px 20px; border-radius: 5px 5px 0 0; + &:not(.tutor-no-border) { border-bottom: 1px solid var(--tutor-border-color); } @@ -36,6 +38,7 @@ &-footer { padding: 16px 20px; border-radius: 0 0 5px 5px; + &:not(.tutor-no-border) { border-top: 1px solid var(--tutor-border-color); } @@ -43,20 +46,21 @@ &-image { border-radius: 5px; + &-top { - border-radius: 5px 5px 0px 0px; + border-radius: 5px 5px 0 0; } &-right { - border-radius: 0px 5px 5px 0px; + border-radius: 0 5px 5px 0; } &-bottom { - border-radius: 0px 0px 5px 5px; + border-radius: 0 0 5px 5px; } &-left { - border-radius: 5px 0px 0px 5px; + border-radius: 5px 0 0 5px; } } @@ -65,12 +69,12 @@ } &.is-selected { - background-color: rgba(var(--tutor-color-primary-rgb), 0.05); - border-color: rgba(var(--tutor-color-primary-rgb), 0.4); + background-color: rgb(var(--tutor-color-primary-rgb), 0.05); + border-color: rgb(var(--tutor-color-primary-rgb), 0.4); } &.is-active { - background-color: rgba(var(--tutor-color-primary-rgb), 0.05); + background-color: rgb(var(--tutor-color-primary-rgb), 0.05); border-color: var(--tutor-color-primary); } @@ -80,6 +84,7 @@ &-header { padding: 10px 16px; } + &-body, &-footer { padding: 16px; @@ -107,14 +112,14 @@ &-list { display: flex; flex-direction: column; - padding-left: 0; + padding-inline-start: 0; margin-bottom: 0; border-radius: 6px; &:first-child { border-top-width: 0; - border-top-left-radius: 5px; - border-top-right-radius: 5px; + border-start-start-radius: 5px; + border-start-end-radius: 5px; } &-item { @@ -133,13 +138,13 @@ } &:first-child { - border-top-left-radius: 6px; - border-top-right-radius: 6px; + border-start-start-radius: 6px; + border-start-end-radius: 6px; } &:last-child { - border-bottom-left-radius: 6px; - border-bottom-right-radius: 6px; + border-end-start-radius: 6px; + border-end-end-radius: 6px; } } @@ -147,6 +152,7 @@ @include media-breakpoint-up(xl) { &-horizontal { flex-direction: row; + .tutor-card-list-item { flex-shrink: 0; flex-grow: 1; @@ -154,9 +160,9 @@ border-radius: 6px; &:not(:last-child) { - border-right: 1px solid #CDCFD5; - border-top-right-radius: 0; - border-bottom-right-radius: 0; + border-inline-end: 1px solid #CDCFD5; + border-start-end-radius: 0; + border-end-end-radius: 0; } } } diff --git a/v2-library/src/scss/components/_certificate-template.scss b/v2-library/src/scss/components/_certificate-template.scss index 33f4e4430f..bc0c084ea8 100644 --- a/v2-library/src/scss/components/_certificate-template.scss +++ b/v2-library/src/scss/components/_certificate-template.scss @@ -18,7 +18,7 @@ &.is-active { color: var(--tutor-color-primary); background-color: var(--tutor-color-white); - box-shadow: 0px 1px 2px rgba(2, 11, 83, 0.2); + box-shadow: 0 1px 2px rgb(2 11 83 / 20%); } } } @@ -82,7 +82,7 @@ background-image: url("data:image/svg+xml,%3Csvg width='25' height='25' viewBox='0 0 25 25' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.42318 12.9161C6.3686 12.8593 6.32513 12.7929 6.29503 12.7201C6.23499 12.558 6.23499 12.3797 6.29503 12.2175C6.32453 12.1445 6.36807 12.0779 6.42318 12.0215L7.33283 11.1496C7.38636 11.0869 7.45336 11.0371 7.52883 11.0038C7.60148 10.971 7.68026 10.9538 7.76001 10.9536C7.84642 10.9519 7.93217 10.9691 8.01129 11.0038C8.0895 11.0386 8.16031 11.0881 8.21985 11.1496L10.9639 13.8986L16.8539 8.00855C16.9119 7.94744 16.981 7.89797 17.0575 7.8628C17.1368 7.82861 17.2224 7.81149 17.3088 7.81255C17.3898 7.813 17.4698 7.83071 17.5435 7.8645C17.6171 7.8983 17.6827 7.94741 17.7359 8.00855L18.6456 8.89306C18.7007 8.9494 18.7442 9.01598 18.7737 9.08906C18.8338 9.25121 18.8338 9.42949 18.7737 9.59163C18.7436 9.66439 18.7002 9.73087 18.6456 9.78763L11.4061 16.9894C11.3522 17.0523 11.2853 17.1029 11.2101 17.1377C11.0492 17.2041 10.8685 17.2041 10.7076 17.1377C10.6323 17.1029 10.5655 17.0523 10.5116 16.9894L6.42318 12.9161Z' fill='white'/%3E%3C/svg%3E%0A"); background-color: var(--tutor-color-primary); border-radius: 50%; - right: -15px; + inset-inline-end: -15px; top: -15px; z-index: 1; opacity: 0; @@ -93,8 +93,10 @@ input[type='radio'] { display: none; appearance: none; + &:checked + .tutor-certificate-template-inner { box-shadow: 0 0 0 2px var(--tutor-color-primary); + &::after { opacity: 1; } @@ -103,7 +105,7 @@ &-icon { position: absolute; - right: -12px; + inset-inline-end: -12px; top: -20px; z-index: 10; opacity: 0; @@ -118,7 +120,7 @@ gap: 16px; position: absolute; inset: 0; - background: rgba(255, 255, 255, 0.6); + background: rgb(255 255 255 / 60%); backdrop-filter: blur(30px); border-radius: 6px; visibility: hidden; diff --git a/v2-library/src/scss/components/_course-details-elements.scss b/v2-library/src/scss/components/_course-details-elements.scss index ed538fc594..6365968566 100644 --- a/v2-library/src/scss/components/_course-details-elements.scss +++ b/v2-library/src/scss/components/_course-details-elements.scss @@ -31,7 +31,7 @@ .tutor-is-sticky { position: sticky; top: 0; - background: rgba(255, 255, 255, 0.6); + background: rgb(255 255 255 / 60%); backdrop-filter: blur(14px); z-index: 500; } @@ -61,7 +61,8 @@ } &-tags { - margin-left: -16px; + margin-inline-start: -16px; + .tutor-tag-list li { a { margin-bottom: 16px; @@ -75,6 +76,7 @@ display: flex; flex-flow: row wrap; justify-content: space-between; + > li { width: calc(50% - (2.4rem/2)); } @@ -112,6 +114,7 @@ .tutor-alert-text { align-items: flex-start; } + .tutor-alert-icon { margin-top: -4px; } @@ -119,20 +122,22 @@ // .tutor-course-sidebar-card-membership-plan &-membership-plan { - border-color: rgba(var(--tutor-color-primary), 0.2); + border-color: rgb(var(--tutor-color-primary), 0.2); + &-badge { position: absolute; top: -1px; - right: 30px; + inset-inline-end: 30px; &.badge-left { - right: unset; - left: 30px; + inset-inline-end: unset; + inset-inline-start: 30px; } } &.badge-triangle-ribbon { position: relative; + &::before { @include triangleRibbonStar; } @@ -146,35 +151,41 @@ display: grid; align-items: center; position: relative; + input[type='radio'] { position: absolute; - left: 20px; + inset-inline-start: 20px; width: 20px; height: 20px; border: 2px solid var(--tutor-border-color); z-index: 1; + &:checked { ~ .tutor-course-sidebar-card-pick-plan-input { - background: rgba(var(--tutor-color-primary), 0.15); + background: rgb(var(--tutor-color-primary), 0.15); border-color: var(--tutor-color-primary); - &:before { + + &::before { opacity: 1; } } } } } + &-input { padding: 16px 20px; display: grid; align-items: center; grid-template-columns: 1fr auto; - grid-gap: 10px; + gap: 10px; transition: 400ms; - padding-left: 48px; + padding-inline-start: 48px; position: relative; - &:before { + + &::before { @include triangleRibbonStar; + opacity: 0; } } @@ -186,23 +197,27 @@ top: 24px; } } + .tutor-course-sidebar-card-pick-plan-input { display: block; - padding-left: 16px; + padding-inline-start: 16px; + .input-plan { padding: 0 16px; display: grid; align-items: center; grid-template-columns: 1fr auto; - grid-gap: 10px; + gap: 10px; transition: 400ms; position: relative; - padding-left: 40px; + padding-inline-start: 40px; } + .input-plan-details { max-height: 0; overflow: hidden; transition: max-height 0.25s linear; + > *:first-child { margin-top: 17px; } @@ -230,11 +245,12 @@ &-main { @include breakpoint-min(desktop) { display: grid; - grid-gap: 32px; + gap: 32px; grid-template-columns: 8fr 4fr; } + @include breakpoint-min(desktop-lg) { - grid-gap: 54px; + gap: 54px; } } } // end of .tutor-course-details-page @@ -275,7 +291,7 @@ } &-icon { - color: rgba(var(--tutor-body-color-rgb), 0.35); + color: rgb(var(--tutor-body-color-rgb), 0.35); } } } @@ -308,43 +324,48 @@ &-commentlist { list-style: none; + .commentlist-comment { border-radius: 6px; position: relative; + > * { position: relative; z-index: 1; } - &:before { + &::before { content: ''; position: absolute; width: 20px; height: 20px; top: -5px; - left: 15px; + inset-inline-start: 15px; background: inherit; clip-path: polygon(0% 0%, 0% 100%, 100% 0%); transform: rotate(45deg); border-radius: 3px; } - &:after { + + &::after { content: ''; position: absolute; inset: 0; background: white; } - &:before, - &:after { + + &::before, + &::after { opacity: 0.5; } } + &-item { // background: #000; &-reply { - .commentlist-comment:before { - left: unset; - right: 15px; + .commentlist-comment::before { + inset-inline-start: unset; + inset-inline-end: 15px; } } } diff --git a/v2-library/src/scss/components/_course-listing.scss b/v2-library/src/scss/components/_course-listing.scss index e16a372617..4eb8e894bc 100644 --- a/v2-library/src/scss/components/_course-listing.scss +++ b/v2-library/src/scss/components/_course-listing.scss @@ -2,26 +2,26 @@ .tutor-course { &-card { height: 100%; + .tutor-card-body { display: flex; - flex-direction: column; - flex-wrap: nowrap; + flex-flow: column nowrap; } .tutor-course { &-bookmark { position: absolute; top: 12px; - right: 12px; + inset-inline-end: 12px; } &-co-author-badge { position: absolute; top: 9px; - right: 10px; + inset-inline-end: 10px; border-radius: 4px; font-size: 10px; - padding: 0px 7px; + padding: 0 7px; background: #3F51B5; color: white; } @@ -29,9 +29,9 @@ &-difficulty-level { position: absolute; top: 12px; - left: 12px; + inset-inline-start: 12px; background: var(--tutor-color-primary); - color: #FFFFFF; + color: #FFF; font-size: 12px; line-height: 1.4; font-weight: 500; @@ -41,6 +41,7 @@ &-name { @include tutorLineClamp(3); + &, a { color: var(--tutor-body-color); diff --git a/v2-library/src/scss/components/_download-certificate.scss b/v2-library/src/scss/components/_download-certificate.scss index c757f4c5fa..9d0ff976fb 100644 --- a/v2-library/src/scss/components/_download-certificate.scss +++ b/v2-library/src/scss/components/_download-certificate.scss @@ -3,29 +3,36 @@ display: grid; margin: auto; } + .tutor-certificate-demo { max-width: 730px; height: auto; overflow: hidden; + img { width: 100%; } } + .tutor-certificate-info { display: grid; grid-template-columns: repeat(4, 1fr); + @include breakpoint-max(650) { grid-template-columns: repeat(2, 1fr); + .tutor-info-issued, .tutor-info-issued-date { padding-top: 10px; } + .tutor-info-id-name, .tutor-info-expiration-name, .tutor-info-issued-name, .tutor-info-date-name { font-size: 13px; } + .tutor-info-id-details, .tutor-info-expiration-value, .tutor-info-issued-value, @@ -33,8 +40,10 @@ font-size: 18px; } } + @include breakpoint-max(400) { grid-template-columns: repeat(1, 1fr); + .tutor-info-expiration { padding-top: 10px; } @@ -43,7 +52,7 @@ .tutor-dc-button-group { position: absolute; - right: 20px; + inset-inline-end: 20px; top: 210px; } @@ -53,27 +62,32 @@ padding-bottom: 200px; } } + @include breakpoint-minmax(992, 1200) { .tutor-dc-button-group { top: 200px; } } + @include breakpoint-max(991) { .tutor-dc-button-group { - right: 0px; + inset-inline-end: 0; top: 125px; } } + @include breakpoint-minmax(768, 1200) { .tutor-certificate-demo { max-width: 570px; } } + @include breakpoint-minmax(577, 767) { .tutor-certificate-demo { max-width: 420px; } } + @include breakpoint-max(576) { .tutor-certificate-demo { max-width: 82%; @@ -82,5 +96,5 @@ .tutor-dc-button-group .tooltip-txt.tooltip-left { top: unset; - right: calc(100% + 19px); + inset-inline-end: calc(100% + 19px); } diff --git a/v2-library/src/scss/components/_dropdown-select.scss b/v2-library/src/scss/components/_dropdown-select.scss index 69d6eeed61..4b8955286b 100644 --- a/v2-library/src/scss/components/_dropdown-select.scss +++ b/v2-library/src/scss/components/_dropdown-select.scss @@ -24,17 +24,17 @@ position: absolute; top: calc(100% + 5px); z-index: 10; - background: #ffffff; + background: #fff; border: 1px solid var(--tutor-border-color); - box-shadow: 0px 6px 20px rgba(28, 49, 104, 0.1); + box-shadow: 0 6px 20px rgb(28 49 104 / 10%); border-radius: 6px; - opacity: 0; visibility: hidden; &.is-active { opacity: 1; visibility: visible; + + .tutor-dropdown-select-selected::after { transform: translateY(-50%) rotateX(180deg); transform: translateY(-50%) rotate(-180deg); @@ -50,15 +50,14 @@ border: 1px solid var(--tutor-border-color); border-radius: 6px; order: 0; + &::after { content: '\e93e'; - font-family: 'tutor' !important; + font-family: tutor !important; position: absolute; - @if ($is_rtl == true) { - left: 8px; - } @else { - right: 8px; - } + + inset-inline-end: 8px; + top: 50%; transition: transform 200ms linear; transform: translateY(-50%); @@ -69,6 +68,7 @@ &-option { padding: 8px 19px; cursor: pointer; + &:hover { background: $color-gray-10; } @@ -84,8 +84,10 @@ line-height: 1.4; padding: 10px 16px; cursor: pointer; + > div:first-child { @extend .text-medium-body; + color: var(--tutor-body-color); } } @@ -104,11 +106,13 @@ height: 40px; } } + &-md { .tutor-dropdown-select { height: 48px; } } + &-lg { .tutor-dropdown-select { height: 54px; diff --git a/v2-library/src/scss/components/_dropdown.scss b/v2-library/src/scss/components/_dropdown.scss index 5b2690b990..2fff94b9fb 100644 --- a/v2-library/src/scss/components/_dropdown.scss +++ b/v2-library/src/scss/components/_dropdown.scss @@ -1,21 +1,16 @@ .tutor-dropdown { list-style: none; - padding: 0; position: absolute; top: calc(100% - 4px); - padding: 8px 0px; + padding: 8px 0; background-color: var(--tutor-color-white); border: 1px solid var(--tutor-border-color); - box-shadow: 0px 6px 20px rgba(28, 49, 104, 0.1); + box-shadow: 0 6px 20px rgb(28 49 104 / 10%); border-radius: 4px; display: none; z-index: 1025; - @if ($is-rtl) { - left: 0; - } @else { - right: 0; - } + inset-inline-end: 0; > li { padding: 0; @@ -35,12 +30,12 @@ &:hover, &:focus { color: var(--tutor-color-primary); - background-color: rgba(var(--tutor-color-primary-rgb), 0.10); + background-color: rgb(var(--tutor-color-primary-rgb), 0.10); } &.is-active { color: var(--tutor-color-primary); - background-color: rgba(var(--tutor-color-primary-rgb), 0.10); + background-color: rgb(var(--tutor-color-primary-rgb), 0.10); } } @@ -52,7 +47,7 @@ &, &:hover, &:focus { - color: #FFFFFF; + color: #FFF; } &:hover, @@ -61,7 +56,7 @@ } &.is-active { - color: #FFFFFF; + color: #FFF; background-color: #41454F; } } @@ -70,6 +65,7 @@ .tutor-dropdown-parent { position: relative; + &.is-open { .tutor-dropdown { display: block; diff --git a/v2-library/src/scss/components/_insapp-process.scss b/v2-library/src/scss/components/_insapp-process.scss index 08f6b76c33..460e405f75 100644 --- a/v2-library/src/scss/components/_insapp-process.scss +++ b/v2-library/src/scss/components/_insapp-process.scss @@ -2,6 +2,7 @@ max-width: 920px; height: auto; overflow: hidden; + img { width: 100%; border-radius: 10px; @@ -16,6 +17,7 @@ span.tutor-app-process-title { font-size: 28px; } + span.tutor-app-process-subtitle { font-size: 16px; } diff --git a/v2-library/src/scss/components/_list.scss b/v2-library/src/scss/components/_list.scss index df5469814e..1aa1b5215d 100644 --- a/v2-library/src/scss/components/_list.scss +++ b/v2-library/src/scss/components/_list.scss @@ -22,11 +22,7 @@ cursor: pointer; input[type="checkbox"] { - @if ($is_rtl == true) { - margin-left: 16px; - } @else { - margin-right: 16px; - } + margin-inline-end: 16px; } } } diff --git a/v2-library/src/scss/components/_meta.scss b/v2-library/src/scss/components/_meta.scss index b400b9b393..f0cb6f5539 100644 --- a/v2-library/src/scss/components/_meta.scss +++ b/v2-library/src/scss/components/_meta.scss @@ -17,6 +17,7 @@ a { text-decoration: none; + &:hover, &:focus, &:active { @@ -28,10 +29,7 @@ &-icon { line-height: 1.6; - @if ($is_rtl == true) { - margin-left: 4px; - } @else { - margin-right: 4px; - } + + margin-inline-end: 4px; } } \ No newline at end of file diff --git a/v2-library/src/scss/components/_modal.scss b/v2-library/src/scss/components/_modal.scss index a2cfa7b983..f893f0230a 100644 --- a/v2-library/src/scss/components/_modal.scss +++ b/v2-library/src/scss/components/_modal.scss @@ -1,12 +1,11 @@ .tutor-modal { position: fixed; top: 0; - left: 0; + inset-inline-start: 0; display: none; width: 100%; height: 100%; - overflow-x: hidden; - overflow-y: auto; + overflow: hidden auto; outline: 0; z-index: 99999; @@ -24,7 +23,7 @@ height: 100%; width: 100%; top: 0; - left: 0; + inset-inline-start: 0; background-color: rgba(#000, 0.75); z-index: -1; } @@ -65,7 +64,7 @@ outline: 0; &-white { - background-color: #FFFFFF; + background-color: #FFF; } } @@ -76,26 +75,23 @@ flex-shrink: 0; align-items: center; justify-content: space-between; - background-color: #FFFFFF; + background-color: #FFF; } &-header { border-bottom: 1px solid var(--tutor-border-color); - border-top-left-radius: 16px; - border-top-right-radius: 16px; + border-start-start-radius: 16px; + border-start-end-radius: 16px; + .tutor-modal-close { - @if ($is_rtl == true) { - margin-left: -16px; - } @else { - margin-right: -16px; - } + margin-inline-end: -16px; } } .tutor-modal-close-o { position: absolute; top: 16px; - right: 16px; + inset-inline-end: 16px; font-size: 20px; z-index: 1; } @@ -110,8 +106,8 @@ &-footer { border-top: 1px solid var(--tutor-border-color); - border-bottom-right-radius: 16px; - border-bottom-left-radius: 16px; + border-end-end-radius: 16px; + border-end-start-radius: 16px; } &-body { @@ -147,6 +143,7 @@ padding: 0; position: relative; overflow: hidden; + li { display: flex; flex-direction: column; @@ -156,30 +153,39 @@ color: var(--tutor-color-muted); position: relative; z-index: 8; + &:nth-child(2) { z-index: 7; } + &:nth-child(3) { z-index: 6; } + &:nth-child(4) { z-index: 5; } + &:nth-child(5) { z-index: 4; } + &:nth-child(6) { z-index: 3; } + &:nth-child(7) { z-index: 2; } + &:nth-child(8) { z-index: 1; } + &:nth-child(9) { z-index: 0; } + .tutor-modal-step-btn { margin: 4px 0; display: flex; @@ -204,16 +210,18 @@ margin-top: -1px; background-color: var(--tutor-color-gray); width: 1000px; - right: 100%; + inset-inline-end: 100%; } } &.tutor-is-completed { color: var(--tutor-body-color); + .tutor-modal-step-btn { &::before { background-color: var(--tutor-color-primary); } + color: transparent; background-size: 10px; background-position: 5px center; @@ -232,12 +240,12 @@ background-color: white; top: 50%; margin-top: -1px; - right: 100%; + inset-inline-end: 100%; } &:last-child .tutor-modal-step-btn::after { - right: auto; - left: 100%; + inset-inline-end: auto; + inset-inline-start: 100%; } } } @@ -245,14 +253,17 @@ .tutor-quiz-item { @extend .tutor-bordered-box; + background: var(--tutor-color-white); border-radius: 6px; display: flex; + .tutor-quiz-item-label { flex-grow: 1; min-width: 0; display: inline-flex; align-items: flex-start; + .tutor-quiz-item-name { margin: 0; padding: 9px 0; @@ -260,6 +271,7 @@ font-size: 15px; line-height: 24px; } + .tutor-quiz-item-draggable { padding: 0 15px 0 13px; line-height: 42px; @@ -267,16 +279,18 @@ cursor: move; } } + .tutor-quiz-item-action { display: inline-flex; align-items: flex-start; - padding-left: 20px; - padding-right: 3px; + padding-inline-start: 20px; + padding-inline-end: 3px; + .tutor-quiz-item-type { display: inline-flex; align-items: center; font-size: 13px; - padding-right: 10px; + padding-inline-end: 10px; line-height: 42px; width: 165px; } @@ -285,6 +299,7 @@ .tutor-radio-select { @extend .tutor-bordered-box; + display: flex; padding: 13px; border-radius: 6px; @@ -298,19 +313,22 @@ } .tutor-radio-select-content { - padding-left: 12px; + padding-inline-start: 12px; font-size: 13px; line-height: 18px; color: var(--tutor-color-muted); + .tutor-radio-select-title { font-size: 15px; line-height: 24px; color: var(--tutor-body-color); display: block; } + a { text-decoration: none; color: var(--tutor-color-primary); + &:hover { color: var(--tutor-color-primary-hover); } @@ -321,11 +339,12 @@ .tutor-modal { .tutor-alert { padding: 8px 12px; + &.tutor-warning { - background-color: rgba(var(--tutor-color-warning), 0.15); + background-color: rgb(var(--tutor-color-warning), 0.15); color: var(--tutor-color-warning); - border-color: rgba(var(--tutor-color-warning), 0.3); - text-align: left; + border-color: rgb(var(--tutor-color-warning), 0.3); + text-align: start; } } @@ -333,22 +352,26 @@ .tutor-modal-root { width: 634px; } + .tutor-modal-buttons { .tutor-btn { max-width: 280px; } } + .tutor-avatar { width: 100px; height: 100px; + img { object-fit: cover; } } + .tutor-modal-buttons { max-width: 280px; - margin-left: auto; - margin-right: auto; + margin-inline-start: auto; + margin-inline-end: auto; } } // end of /.tutor-modal-ins-approval @@ -367,4 +390,4 @@ } } } -} //end of /.tutor-modal +} // end of /.tutor-modal diff --git a/v2-library/src/scss/components/_nav.scss b/v2-library/src/scss/components/_nav.scss index 39792a2592..23b2d29901 100644 --- a/v2-library/src/scss/components/_nav.scss +++ b/v2-library/src/scss/components/_nav.scss @@ -42,14 +42,13 @@ } .tutor-nav-more { - margin-left: auto !important; + margin-inline-start: auto !important; + &-icon { font-size: 12px; - @if ($is_rtl == true) { - margin-right: 4px; - } @else { - margin-left: 4px; - } + + margin-inline-start: 4px; + color: var(--tutor-color-primary); transform: rotate(-45deg); transition: transform 200ms ease-in; @@ -59,6 +58,7 @@ .tutor-dropdown { display: block; } + .tutor-nav-more-icon { transform: rotate(0deg); } @@ -67,9 +67,11 @@ &:not(.tutor-nav-pills):not(.tutor-nav-tabs) { border-bottom: 1px solid var(--tutor-border-color); + .tutor-nav-link { border-bottom: 2px solid transparent; margin-bottom: -1px; + &.is-active { border-bottom-color: var(--tutor-color-primary); } @@ -82,11 +84,7 @@ .tutor-nav-item { &:not(:last-child) { - @if ($is_rtl == true) { - margin-left: 4px; - } @else { - margin-right: 4px; - } + margin-inline-end: 4px; } } @@ -100,7 +98,7 @@ &.is-active { background-color: var(--tutor-color-primary); - color: #FFFFFF; + color: #FFF; margin-bottom: 0; } } @@ -110,11 +108,11 @@ &-tabs { background-color: #FAFAFB; border-bottom: 1px solid #cdcfd5; - border-radius: 6px 6px 0px 0px; + border-radius: 6px 6px 0 0; .tutor-nav-link { position: relative; - border-right: 1px solid var(--tutor-border-color); + border-inline-end: 1px solid var(--tutor-border-color); border-top: 2px solid transparent; border-bottom: 1px solid var(--tutor-border-color); margin-top: -1px; @@ -126,9 +124,9 @@ padding: 16px 32px; // @todo: need to add an option for bigger tab &.is-active { - background-color: #FFFFFF; + background-color: #FFF; border-top-color: var(--tutor-color-primary); - border-bottom-color: #FFFFFF; + border-bottom-color: #FFF; } } @@ -139,20 +137,20 @@ &:first-child { .tutor-nav-link { - border-radius: 5px 0 0 0; + border-radius: 5px 0 0; } } &:last-child { .tutor-nav-link { border-radius: 0 5px 0 0; - border-right: 0; + border-inline-end: 0; } } } &-container { - background-color: #FFFFFF; + background-color: #FFF; border: 1px solid var(--tutor-border-color); border-radius: 6px; } @@ -164,7 +162,8 @@ border-bottom: 0; .tutor-nav-item { - margin-right: 0; + margin-inline-end: 0; + &:not(:last-child) { margin-bottom: 4px; } @@ -174,6 +173,7 @@ // @todo: to be removed &-admin { border-bottom: 0 !important; + .tutor-nav-item { margin: 0; } diff --git a/v2-library/src/scss/components/_notification.scss b/v2-library/src/scss/components/_notification.scss index 2cb685e4e1..a073486058 100644 --- a/v2-library/src/scss/components/_notification.scss +++ b/v2-library/src/scss/components/_notification.scss @@ -15,12 +15,15 @@ &.tutor-bg-primary { border-color: var(--tutor-color-primary); } + &.tutor-bg-success { border-color: var(--tutor-color-success); } + &.tutor-bg-warning { border-color: var(--tutor-color-warning); } + &.tutor-bg-danger { border-color: var(--tutor-color-color); } @@ -28,11 +31,8 @@ &-icon { color: var(--tutor-color-primary); font-size: 32px; - @if ($is_rtl == true) { - margin-left: 16px; - } @else { - margin-right: 16px; - } + + margin-inline-end: 16px; } &-content { @@ -59,7 +59,7 @@ background: none; position: absolute; padding: 5px; - right: 6px; + inset-inline-end: 6px; top: 6px; color: var(--tutor-border-color); transition: 200ms; @@ -79,10 +79,10 @@ // alert $alertVariations: ( - 'primary' rgba(var(--tutor-color-primary-rgb), 0.7) $color-secondary $color-white var(--tutor-color-primary) var(--tutor-color-primary) rgba(var(--tutor-color-primary-rgb), 0.15) rgba(var(--tutor-color-primary-rgb), 0.3), - 'success' rgba(var(--tutor-color-success-rgb), 0.7) $color-secondary $color-white var(--tutor-color-success) var(--tutor-color-success) rgba(var(--tutor-color-success-rgb), 0.15) rgba(var(--tutor-color-success-rgb), 0.3), - 'danger' rgba(var(--tutor-color-danger-rgb), 0.7) $color-secondary $color-white var(--tutor-color-danger) var(--tutor-color-danger) rgba(var(--tutor-color-danger-rgb), 0.15) rgba(var(--tutor-color-danger-rgb), 0.3), - 'warning' rgba(var(--tutor-color-warning-rgb), 0.7) $color-secondary $color-white var(--tutor-color-warning) var(--tutor-color-warning) rgba(var(--tutor-color-warning-rgb), 0.15) rgba(var(--tutor-color-warning-rgb), 0.3) + 'primary' rgb(var(--tutor-color-primary-rgb), 0.7) $color-secondary $color-white var(--tutor-color-primary) var(--tutor-color-primary) rgb(var(--tutor-color-primary-rgb), 0.15) rgb(var(--tutor-color-primary-rgb), 0.3), + 'success' rgb(var(--tutor-color-success-rgb), 0.7) $color-secondary $color-white var(--tutor-color-success) var(--tutor-color-success) rgb(var(--tutor-color-success-rgb), 0.15) rgb(var(--tutor-color-success-rgb), 0.3), + 'danger' rgb(var(--tutor-color-danger-rgb), 0.7) $color-secondary $color-white var(--tutor-color-danger) var(--tutor-color-danger) rgb(var(--tutor-color-danger-rgb), 0.15) rgb(var(--tutor-color-danger-rgb), 0.3), + 'warning' rgb(var(--tutor-color-warning-rgb), 0.7) $color-secondary $color-white var(--tutor-color-warning) var(--tutor-color-warning) rgb(var(--tutor-color-warning-rgb), 0.15) rgb(var(--tutor-color-warning-rgb), 0.3) ); // Tutor alert @@ -97,7 +97,7 @@ $alertVariations: ( } padding: 13px 16px; - grid-gap: 24px; + gap: 24px; background: var(--tutor-color-white); border: 1px solid var(--tutor-border-color); @@ -121,8 +121,10 @@ $alertVariations: ( .tutor-alert-text { @extend .text-regular-caption; + color: var(--tutor-color-secondary); display: flex; + @include breakpoint-min(tablet) { align-items: center; } @@ -132,18 +134,20 @@ $alertVariations: ( display: flex; justify-self: flex-end; align-items: center; - grid-gap: 10px; + gap: 10px; } .tutor-btn:not(.tutor-btn-icon).tutor-btn-sm { padding: 7.5px 13px; } + .tutor-btn.tutor-btn-outline-primary { border-color: var(--tutor-border-color); } .tutor-alert-close { cursor: pointer; + @include breakpoint-max(mobile) { display: none; } @@ -152,15 +156,15 @@ $alertVariations: ( // icon---title---btnC---btnBg---btnBdr $largeNotificationVariations: ( - 'primary' var(--tutor-color-primary) var(--tutor-color-primary) var(--tutor-color-primary) rgba(var(--tutor-color-primary-rgb), 0.15) rgba(var(--tutor-color-primary-rgb), 0.3), - 'success' var(--tutor-color-success) var(--tutor-color-success) var(--tutor-color-success) rgba(var(--tutor-color-success-rgb), 0.15) rgba(var(--tutor-color-success-rgb), 0.3), - 'warning' var(--tutor-color-warning) var(--tutor-color-warning) var(--tutor-color-warning) rgba(var(--tutor-color-warning-rgb), 0.15) rgba(var(--tutor-color-warning-rgb), 0.3), - 'danger' var(--tutor-color-danger) var(--tutor-color-danger) var(--tutor-color-danger) rgba(var(--tutor-color-danger-rgb), 0.15) rgba(var(--tutor-color-danger-rgb), 0.3) + 'primary' var(--tutor-color-primary) var(--tutor-color-primary) var(--tutor-color-primary) rgb(var(--tutor-color-primary-rgb), 0.15) rgb(var(--tutor-color-primary-rgb), 0.3), + 'success' var(--tutor-color-success) var(--tutor-color-success) var(--tutor-color-success) rgb(var(--tutor-color-success-rgb), 0.15) rgb(var(--tutor-color-success-rgb), 0.3), + 'warning' var(--tutor-color-warning) var(--tutor-color-warning) var(--tutor-color-warning) rgb(var(--tutor-color-warning-rgb), 0.15) rgb(var(--tutor-color-warning-rgb), 0.3), + 'danger' var(--tutor-color-danger) var(--tutor-color-danger) var(--tutor-color-danger) rgb(var(--tutor-color-danger-rgb), 0.15) rgb(var(--tutor-color-danger-rgb), 0.3) ); .tutor-large-notification { display: flex; - box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.05); + box-shadow: 0 2px 4px rgb(0 0 0 / 5%); backdrop-filter: blur(24px); position: relative; background: #fff; @@ -170,16 +174,13 @@ $largeNotificationVariations: ( @extend .tutor-p-24; @include breakpoint-min(desktop-lg) { - padding-right: 90px; + padding-inline-end: 90px; } &-icon { font-size: 32px; - @if ($is_rtl == true) { - margin-left: 20px; - } @else { - margin-right: 20px; - } + + margin-inline-end: 20px; } &-btns { @@ -188,18 +189,14 @@ $largeNotificationVariations: ( } > *:not(:last-child) { - @if ($is_rtl == true) { - margin-left: 10px; - } @else { - margin-right: 10px; - } + margin-inline-end: 10px; } } .tutor-noti-close { position: absolute; top: 16px; - right: 13px; + inset-inline-end: 13px; cursor: pointer; } @@ -208,6 +205,7 @@ $largeNotificationVariations: ( .tutor-large-notification-icon { color: #{$icon}; } + .tutor-large-notification-title { color: #{$title}; } diff --git a/v2-library/src/scss/components/_offcanvas.scss b/v2-library/src/scss/components/_offcanvas.scss index b6f2cfc2d3..c7c3426cfd 100644 --- a/v2-library/src/scss/components/_offcanvas.scss +++ b/v2-library/src/scss/components/_offcanvas.scss @@ -5,7 +5,7 @@ width: 100vw; height: 100vh; z-index: 1040; - background-color: rgba(0, 0, 0, 0.25); + background-color: rgb(0 0 0 / 25%); opacity: 0; visibility: hidden; transition: 300ms; @@ -15,7 +15,7 @@ position: fixed; z-index: 1050; background: #fff; - box-shadow: 0px 6px 20px rgba(28, 49, 104, 0.1); + box-shadow: 0 6px 20px rgb(28 49 104 / 10%); padding: 20px 0; transition: 300ms ease-in-out; opacity: 0; @@ -28,7 +28,7 @@ max-width: 100%; height: 100%; top: 0; - right: 0; + inset-inline-end: 0; transform: translateX(100%); } } @@ -39,7 +39,7 @@ max-width: 100%; height: 100%; top: 0; - left: 0; + inset-inline-start: 0; transform: translateX(-100%); } } @@ -49,8 +49,8 @@ height: 360px; max-height: 100%; top: 0; - left: 0; - right: 0; + inset-inline-start: 0; + inset-inline-end: 0; transform: translateY(-100%); } } @@ -61,8 +61,8 @@ max-height: 100%; width: 100%; bottom: 0; - left: 0; - right: 0; + inset-inline-start: 0; + inset-inline-end: 0; transform: translateY(100%); } } @@ -101,15 +101,16 @@ } } -//Tutor Notification Tab +// Tutor Notification Tab .tutor-notification-tab { .tab-header { position: relative; - &:before { + + &::before { content: ' '; bottom: 0; position: absolute; - left: calc(-1 * var(--padding)); + inset-inline-start: calc(-1 * var(--padding)); width: calc(100% + calc(2 * var(--padding))); border-bottom: 1px solid var(--tutor-border-color); } @@ -117,15 +118,17 @@ &-item { cursor: pointer; position: relative; + > * { pointer-events: none; } + span { display: flex; padding: 10px; } - &:before { + &::before { content: ''; position: absolute; width: 100%; @@ -136,12 +139,13 @@ } &.is-active { - &:before { + &::before { transform: scaleY(1); } } } } + .tab-body { min-width: 100%; width: calc(100% + var(--padding)); @@ -149,29 +153,35 @@ max-height: calc(100vmin - 120px); overflow-y: auto; - @if ($is-rtl) { - padding-left: var(--padding); - } @else { - padding-right: var(--padding); + padding-inline-end: var(--padding); + + body.rtl & { + padding-inline-start: var(--padding); + padding-inline-end: 0; } &-item { display: none; + &.is-active { display: block; } } - --scrollbarBG: rgba(205, 207, 213, 0.5); + --scrollbarBG: rgb(205 207 213 / 50%); --thumbBG: #3e64de; + scrollbar-width: thin; scrollbar-color: var(--thumbBG) var(--scrollbarBG); + &::-webkit-scrollbar { width: 4px; } + &::-webkit-scrollbar-track { background: var(--scrollbarBG); } + &::-webkit-scrollbar-thumb { background-color: var(--thumbBG); border-radius: 40px; @@ -181,10 +191,10 @@ // Notification Elements $variations: ( - 'primary' var(--tutor-color-primary) rgba(var(--tutor-color-primary-rgb), 0.15), - 'success' var(--tutor-color-success) rgba(var(--tutor-color-success-rgb), 0.15), - 'warning' var(--tutor-color-warning) rgba(var(--tutor-color-warning-rgb), 0.15), - 'danger' var(--tutor-color-danger) rgba(var(--tutor-color-danger-rgb), 0.15), + 'primary' var(--tutor-color-primary) rgb(var(--tutor-color-primary-rgb), 0.15), + 'success' var(--tutor-color-success) rgb(var(--tutor-color-success-rgb), 0.15), + 'warning' var(--tutor-color-warning) rgb(var(--tutor-color-warning-rgb), 0.15), + 'danger' var(--tutor-color-danger) rgb(var(--tutor-color-danger-rgb), 0.15), 'purple' #9b4ab4 #faebff, ); @@ -196,6 +206,7 @@ $variations: ( color: #{$color}; } } + .element-content .header { .element-#{$prefix} { color: #{$color}; @@ -213,6 +224,7 @@ $variations: ( .element-icon { color: var(--tutor-color-muted); + [class^='element-'] { width: 24px; height: 24px; @@ -235,6 +247,7 @@ $variations: ( display: flex; align-items: center; gap: 8px; + .dot { display: inline-block; width: 8px; @@ -244,11 +257,12 @@ $variations: ( box-shadow: 0 0 0 2px #e9edfb; position: relative; - &:before { + &::before { content: ''; position: absolute; inset: 0; border-radius: 50%; + // animation: pulse-animation 2s infinite; z-index: -1; } @@ -256,10 +270,11 @@ $variations: ( @keyframes pulse-animation { 0% { - box-shadow: 0 0 0 0px rgba(0, 0, 0, 0.1); + box-shadow: 0 0 0 0 rgb(0 0 0 / 10%); } + 100% { - box-shadow: 0 0 0 6px rgba(0, 0, 0, 0); + box-shadow: 0 0 0 6px rgb(0 0 0 / 0%); } } } @@ -283,6 +298,7 @@ $variations: ( display: none; } } + .message, .message > * { color: var(--tutor-color-secondary); @@ -295,6 +311,7 @@ $variations: ( display: grid; place-items: center; text-align: center; + .element-content { max-width: 250px; } diff --git a/v2-library/src/scss/components/_pagination.scss b/v2-library/src/scss/components/_pagination.scss index c3d45cebb7..0f7ea5315e 100644 --- a/v2-library/src/scss/components/_pagination.scss +++ b/v2-library/src/scss/components/_pagination.scss @@ -32,6 +32,7 @@ .page-numbers { @extend .text-medium-caption; + color: var(--tutor-body-color); display: flex; align-items: center; @@ -55,7 +56,7 @@ display: flex; align-items: center; justify-content: center; - background: rgba(var(--tutor-color-primary-rgb), 0.1); + background: rgb(var(--tutor-color-primary-rgb), 0.1); border-radius: 6px; transition: all 150ms linear; @@ -67,23 +68,24 @@ @include breakpoint-min(desktop-lg) { --margin: 32px; + &.prev { - margin-right: var(--margin); + margin-inline-end: var(--margin); } &.next { - margin-left: var(--margin); + margin-inline-start: var(--margin); } } - &:before { + &::before { content: ''; position: absolute; width: 100%; height: 2px; background: var(--tutor-color-primary); bottom: calc(0% - 12px); - left: 0; + inset-inline-start: 0; transform: scaleY(0); transform-origin: bottom; transition: transform 100ms linear; @@ -91,8 +93,10 @@ &.current { @extend .text-bold-caption; + color: var(--tutor-color-primary); - &:before { + + &::before { transform: scaleY(1); } } @@ -106,10 +110,7 @@ &::before{ content: ''; position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; + inset: 0; display: block; z-index: 99; background: black; diff --git a/v2-library/src/scss/components/_password-field.scss b/v2-library/src/scss/components/_password-field.scss index f828aff5e0..ea8943f0b0 100644 --- a/v2-library/src/scss/components/_password-field.scss +++ b/v2-library/src/scss/components/_password-field.scss @@ -3,10 +3,12 @@ color: var(--tutor-color-secondary); } } + .tutor-password-strength-checker { position: relative; + .tutor-password-field { - text-align: left; + text-align: start; .field-group, .tutor-input-group { @@ -20,7 +22,7 @@ .show-hide-btn { position: absolute; - right: 10px; + inset-inline-end: 10px; top: 50%; transform: translateY(-50%); font-size: 15px; @@ -53,28 +55,33 @@ align-items: center; justify-content: space-between; display: none; + span { position: relative; height: 2px; width: 72px; background: lightgrey; border-radius: 5px; - &.active:before { + + &.active::before { position: absolute; content: ''; top: 0; - left: 0; + inset-inline-start: 0; height: 100%; width: 100%; border-radius: 5px; } - &.weak:before { + + &.weak::before { background-color: $color-danger; } - &.medium:before { + + &.medium::before { background-color: $color-warning; } - &.strong:before { + + &.strong::before { background-color: var(--tutor-color-success); } @@ -86,15 +93,18 @@ .text { display: none; - text-align: right; + text-align: end; text-transform: capitalize; } + .text.weak { color: $color-danger; } + .text.medium { color: $color-warning; } + .text.strong { color: var(--tutor-color-success); } diff --git a/v2-library/src/scss/components/_progress.scss b/v2-library/src/scss/components/_progress.scss index 46f483f2ec..721d9ffcce 100644 --- a/v2-library/src/scss/components/_progress.scss +++ b/v2-library/src/scss/components/_progress.scss @@ -20,14 +20,15 @@ &-circle { --w: 24px; --pd: 3px; + position: relative; width: var(--w); height: var(--w); padding: var(--pd); border-radius: 50%; - background: conic-gradient(var(--tutor-color-primary) var(--pro), 0, rgba(var(--tutor-color-primary-rgb), 0.15) 100%); + background: conic-gradient(var(--tutor-color-primary) var(--pro), 0, rgb(var(--tutor-color-primary-rgb), 0.15) 100%); - &:before { + &::before { content: ''; position: absolute !important; inset: calc(0% + var(--pd)); diff --git a/v2-library/src/scss/components/_table.scss b/v2-library/src/scss/components/_table.scss index 7b47529528..fd0b04b58b 100644 --- a/v2-library/src/scss/components/_table.scss +++ b/v2-library/src/scss/components/_table.scss @@ -4,6 +4,7 @@ min-width: 600px; width: 100%; margin: 0; + --tutor-table-border-radius: 6px; &-responsive { @@ -45,23 +46,15 @@ color: var(--tutor-color-secondary); &:not(.tutor-text-left):not(.tutor-text-center):not(.tutor-text-right) { - text-align: left; + text-align: start; } &:first-child { - @if ($is-rtl) { - border-right: 1px solid var(--tutor-border-color); - } @else { - border-left: 1px solid var(--tutor-border-color); - } + border-inline-start: 1px solid var(--tutor-border-color); } &:last-child { - @if ($is-rtl) { - border-left: 1px solid var(--tutor-border-color); - } @else { - border-right: 1px solid var(--tutor-border-color); - } + border-inline-end: 1px solid var(--tutor-border-color); } } @@ -70,7 +63,7 @@ padding: 16px; font-size: 16px; line-height: 1.6; - background: #ffffff; + background: #fff; font-weight: 500; color: var(--tutor-body-color); @@ -80,51 +73,33 @@ text-decoration: none; color: var(--tutor-body-color); font-weight: 500; + &:hover { color: var(--tutor-color-primary); } } &:not(.tutor-text-left):not(.tutor-text-center):not(.tutor-text-right) { - @if ($is-rtl) { - text-align: right; - } @else { - text-align: left; - } + text-align: start; } &:first-child { - @if ($is-rtl) { - border-right: 1px solid var(--tutor-border-color); - } @else { - border-left: 1px solid var(--tutor-border-color); - } + border-inline-start: 1px solid var(--tutor-border-color); } &:last-child { - @if ($is-rtl) { - border-left: 1px solid var(--tutor-border-color); - } @else { - border-right: 1px solid var(--tutor-border-color); - } + border-inline-end: 1px solid var(--tutor-border-color); } } &:first-child { th { &:first-child { - @if ($is-rtl) { - border-top-right-radius: var(--tutor-table-border-radius); - } @else { - border-top-left-radius: var(--tutor-table-border-radius); - } + border-start-start-radius: var(--tutor-table-border-radius); } + &:last-child { - @if ($is-rtl) { - border-top-left-radius: var(--tutor-table-border-radius); - } @else { - border-top-right-radius: var(--tutor-table-border-radius); - } + border-start-end-radius: var(--tutor-table-border-radius); } } } @@ -132,18 +107,11 @@ &:last-child { td { &:first-child { - @if ($is-rtl) { - border-bottom-right-radius: var(--tutor-table-border-radius); - } @else { - border-bottom-left-radius: var(--tutor-table-border-radius); - } + border-end-start-radius: var(--tutor-table-border-radius); } + &:last-child { - @if ($is-rtl) { - border-bottom-left-radius: var(--tutor-table-border-radius); - } @else { - border-bottom-right-radius: var(--tutor-table-border-radius); - } + border-end-end-radius: var(--tutor-table-border-radius); } } } @@ -211,7 +179,7 @@ thead tr { position: absolute; top: -9999px; - left: -9999px; + inset-inline-start: -9999px; } tr { @@ -235,21 +203,21 @@ } &:first-child { - border-left: none!important; + border-inline-start: none!important; border-radius: 0!important; } &:last-child { border-bottom: none!important; - border-right: none!important; + border-inline-end: none!important; } - &:before { + &::before { content: attr(data-title); font-size: 13px; font-weight: 500; color: var(--tutor-color-subdued); - text-align: left; + text-align: start; } } } diff --git a/v2-library/src/scss/components/_thumbnail-ulopader.scss b/v2-library/src/scss/components/_thumbnail-ulopader.scss index 3778fd353d..f0dc232e29 100644 --- a/v2-library/src/scss/components/_thumbnail-ulopader.scss +++ b/v2-library/src/scss/components/_thumbnail-ulopader.scss @@ -13,12 +13,11 @@ .thumbnail-preview { --width: 235px; + background: $color-gray-10; border: 2px solid $color-gray-10; border-radius: 3px; position: relative; - width: 268px; - height: 98px; width: var(--width); height: calc(var(--width) / 1.775); display: flex; @@ -39,7 +38,9 @@ display: flex; align-items: center; justify-content: center; + @include svg-image-uppoad; + background-repeat: no-repeat; background-position: center; } @@ -51,13 +52,15 @@ width: 24px; height: 24px; border-radius: 50%; + @include svg-delete-icon; + background-color: $color-danger; background-repeat: no-repeat; background-position: 50%; cursor: pointer; top: -12px; - right: -12px; + inset-inline-end: -12px; &:hover { background-color: darken($color: $color-danger, $amount: 6); @@ -68,6 +71,7 @@ .thumbnail-input { input[type='file'] { @include appearNone; + display: none; } diff --git a/v2-library/src/scss/components/_tooltip.scss b/v2-library/src/scss/components/_tooltip.scss index 9000063886..b121e7e4c1 100644 --- a/v2-library/src/scss/components/_tooltip.scss +++ b/v2-library/src/scss/components/_tooltip.scss @@ -8,11 +8,12 @@ $arrow: 5px; cursor: pointer; &.tooltip-icon { - margin-left: 4px; + margin-inline-start: 4px; color: var(--tutor-color-muted); - &:after { + + &::after { content: "\e99a"; - font-family: "tutor"; + font-family: tutor; } } @@ -34,9 +35,9 @@ $arrow: 5px; text-align: center; border-radius: 10px; z-index: 100; - opacity: 0; visibility: hidden; + // filter: blur(2px); transition: 200ms ease-in; @@ -52,13 +53,15 @@ $arrow: 5px; &:hover .tooltip-txt { opacity: 1; visibility: visible; - filter: blur(0px); + filter: blur(0); } .tooltip-top { bottom: calc(100% + 8px); + &::after { top: 100%; + /* stylelint-disable-next-line property-layout-mappings -- margin-left is physical, so left keeps the arrow centered in RTL */ left: 50%; margin-left: -$arrow; border-top-color: var(--tutor-body-color); @@ -67,8 +70,10 @@ $arrow: 5px; .tooltip-bottom { top: calc(100% + 8px); + &::after { bottom: 100%; + /* stylelint-disable-next-line property-layout-mappings -- margin-left is physical, so left keeps the arrow centered in RTL */ left: 50%; margin-left: -$arrow; border-bottom-color: var(--tutor-body-color); @@ -77,6 +82,7 @@ $arrow: 5px; .tooltip-top, .tooltip-bottom { + /* stylelint-disable-next-line property-layout-mappings -- translateX(-50%) is physical, so left keeps the tooltip centered in RTL */ left: 50%; transform: translateX(-50%); } @@ -85,6 +91,7 @@ $arrow: 5px; .tooltip-right { // -> arrow on top top: -$arrow; + &::after { top: 18px; margin-top: -$arrow; @@ -94,6 +101,7 @@ $arrow: 5px; &.arrow-center { top: 50%; transform: translateY(-50%); + &::after { top: 50%; transform: translateY(-50%); @@ -103,18 +111,20 @@ $arrow: 5px; } .tooltip-right { - left: calc(100% + 8px); + inset-inline-start: calc(100% + 8px); + &::after { - right: 100%; - border-right-color: var(--tutor-body-color); + inset-inline-end: 100%; + border-inline-end-color: var(--tutor-body-color); } } .tooltip-left { - right: calc(100% + 8px); + inset-inline-end: calc(100% + 8px); + &::after { - left: 100%; - border-left-color: var(--tutor-body-color); + inset-inline-start: 100%; + border-inline-start-color: var(--tutor-body-color); } } } @@ -124,43 +134,54 @@ $arrow: 5px; .tooltip-top { transform: translateX(-50%) translateY(-2px); } + .tooltip-bottom { transform: translateX(-50%) translateY(2px); } + .tooltip-right { transform: translateX(2px); } + .tooltip-left { transform: translateX(-2px); } + &:hover { .tooltip-top { transform: translateX(-50%) translateY(0); } + .tooltip-bottom { transform: translateX(-50%) translateY(0); } + .tooltip-right { transform: translateX(0); } + .tooltip-left { transform: translateX(0); } + // -> arrow on center .arrow-center { &.tooltip-right { - transform: translateY(-50%) translateX(0px); + transform: translateY(-50%) translateX(0); } + &.tooltip-left { - transform: translateY(-50%) translateX(0px); + transform: translateY(-50%) translateX(0); } } } + // -> arrow on center .arrow-center { &.tooltip-right { transform: translateY(-50%) translateX(2px); } + &.tooltip-left { transform: translateY(-50%) translateX(-2px); } diff --git a/v2-library/src/scss/components/_wp-dashboard-elements.scss b/v2-library/src/scss/components/_wp-dashboard-elements.scss index f188da56eb..62b1018166 100644 --- a/v2-library/src/scss/components/_wp-dashboard-elements.scss +++ b/v2-library/src/scss/components/_wp-dashboard-elements.scss @@ -1,19 +1,24 @@ .tutor-wp-dashboard-filter { gap: 30px; + @include breakpoint-max(1300) { flex-wrap: wrap; margin-top: 40px; } + @include breakpoint-max(mobile) { flex-direction: row; display: block !important; + &-items { display: block !important; + .tutor-input-group { max-width: 100% !important; width: 100% !important; } } + &-item { margin-top: 20px; } @@ -30,8 +35,10 @@ .tutor-wp-dashboard-filter-items { gap: 24px; + .tutor-form-label { @extend .text-medium-caption; + color: var(--tutor-color-secondary); } } @@ -70,8 +77,8 @@ .tutor-wp-dashboard-filter-right { body:not(.rtl) & { &.tutor-flex-column .tutor-wp-dashboard-filter-tag-dropdown:last-child .tutor-form-select-dropdown { - left: auto; - right: 0px; + inset-inline-start: auto; + inset-inline-end: 0; } } } @@ -79,7 +86,7 @@ .tutor-wp-dashboard-filter-order { font-size: 14px; line-height: 1.5; - background-color: #ffffff; + background-color: #fff; color: #9197A8; border: 1px solid var(--tutor-border-color); border-radius: 6px; @@ -106,7 +113,7 @@ position: relative; &-button { - background-color: #ffffff; + background-color: #fff; color: #212327; font-size: 14px; border: 1px solid var(--tutor-border-color); @@ -183,7 +190,7 @@ display: flex; align-items: center; border-radius: 4px; - background-color: #ffffff; + background-color: #fff; select.tutor-form-control { width: 100px !important; @@ -194,7 +201,7 @@ font-size: 14px !important; color: #41454F !important; border: none !important; - border-radius: 0px !important; + border-radius: 0 !important; min-width: auto !important; line-height: 24px !important; } @@ -203,7 +210,7 @@ flex-shrink: 0; font-size: 14px; color: #9197A8; - border-left: 1px solid #f5f5f5; + border-inline-start: 1px solid #f5f5f5; height: 40px; width: 40px; display: flex; @@ -212,8 +219,8 @@ transition: color 0.25 ease-in-out; .rtl & { - border-left: none; - border-right: 1px solid #f5f5f5; + border-inline-start: none; + border-inline-end: 1px solid #f5f5f5; } &:hover { @@ -223,7 +230,7 @@ } .tutor-wp-dashboard-filter-tag { - background-color: #ffffff; + background-color: #fff; border-radius: 4px; display: flex; align-items: center; @@ -231,11 +238,11 @@ line-height: 18px; color: var(--tutor-color-secondary); text-transform: capitalize; - padding-left: 12px; + padding-inline-start: 12px; .rtl & { - padding-left: 0px; - padding-right: 12px; + padding-inline-start: 0; + padding-inline-end: 12px; } a { @@ -245,7 +252,7 @@ align-items: center; justify-content: center; color: #9197A8; - border-left: 1px solid #f5f5f5; + border-inline-start: 1px solid #f5f5f5; transition: color 0.25 ease-in-out; &:hover { @@ -253,8 +260,8 @@ } .rtl & { - border-left: none; - border-right: 1px solid #f5f5f5; + border-inline-start: none; + border-inline-end: 1px solid #f5f5f5; } } @@ -263,8 +270,8 @@ font-size: 14px !important; border: none !important; width: 90px; - padding: 0px !important; - margin: 0px !important; + padding: 0 !important; + margin: 0 !important; background-color: transparent; } diff --git a/v2-library/src/scss/components/index.scss b/v2-library/src/scss/components/index.scss index 45e624bf1f..72cf2b260d 100644 --- a/v2-library/src/scss/components/index.scss +++ b/v2-library/src/scss/components/index.scss @@ -14,7 +14,7 @@ @import './tooltip'; @import './download-certificate'; // to be moved @import './insapp-process'; // to be moved -@import '../../components/datapicker/TutorDatepicker.scss'; +@import '../../components/datapicker/TutorDatepicker'; @import './pagination'; @import './dropdown-select'; @import './dropdown'; diff --git a/v2-library/src/scss/core/_general-utility.scss b/v2-library/src/scss/core/_general-utility.scss index a27d94f154..341d0e5dd0 100644 --- a/v2-library/src/scss/core/_general-utility.scss +++ b/v2-library/src/scss/core/_general-utility.scss @@ -108,9 +108,11 @@ .tutor-line-clamp-1 { @include tutorLineClamp(1); } + .tutor-line-clamp-2 { @include tutorLineClamp(2); } + .tutor-line-clamp-3 { @include tutorLineClamp(3); } diff --git a/v2-library/src/scss/core/_utility.scss b/v2-library/src/scss/core/_utility.scss index db77d7d1e0..495335b9e6 100644 --- a/v2-library/src/scss/core/_utility.scss +++ b/v2-library/src/scss/core/_utility.scss @@ -8,16 +8,20 @@ cursor: move; } } + // width & height .tutor-w-100 { width: 100%; } + .tutor-mw-100 { min-width: 100%; } + .tutor-h-100 { height: 100%; } + .tutor-mh-100 { min-height: 100%; } @@ -26,18 +30,23 @@ .d-inline { display: inline; } + .d-inline-block { display: inline-block; } + .d-block { display: block; } + .d-flex { display: flex; } + .d-inline-flex { display: inline-flex; } + .align-items-center { align-items: center; } @@ -50,6 +59,7 @@ .tutor-bg-transparent { background-color: transparent !important; } + // text/typography // image @@ -116,11 +126,11 @@ } .tutor-text-left { - text-align: left; + text-align: start; } .tutor-text-right { - text-align: right; + text-align: end; } .tutor-text-justify { @@ -190,33 +200,43 @@ .tutor-bordered-box { border: 1px solid var(--tutor-border-color); } + .tutor-border-left { - border-left: 1px solid var(--tutor-border-color); + border-inline-start: 1px solid var(--tutor-border-color); } + .tutor-border-right { - border-right: 1px solid var(--tutor-border-color); + border-inline-end: 1px solid var(--tutor-border-color); } + .tutor-border-top { border-top: 1px solid var(--tutor-border-color); } + .tutor-border-bottom { border-bottom: 1px solid var(--tutor-border-color); } + .tutor-border-top-light { border-top: 1px solid #E0E2EA; } + .tutor-divider { border: 1px solid $border-color-secondary; } + .tutor-divider-left { - border-left: 1px solid $border-color-secondary; + border-inline-start: 1px solid $border-color-secondary; } + .tutor-divider-right { - border-right: 1px solid $border-color-secondary; + border-inline-end: 1px solid $border-color-secondary; } + .tutor-divider-top { border-top: 1px solid $border-color-secondary; } + .tutor-divider-bottom { border-bottom: 1px solid $border-color-secondary; } @@ -265,7 +285,7 @@ $radius: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 15, 20, 30, 40, 50; > * { position: absolute !important; top: 0 !important; - left: 0 !important; + inset-inline-start: 0 !important; width: 100% !important; height: 100% !important; } @@ -281,17 +301,18 @@ $radius: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 15, 20, 30, 40, 50; &-collapsed { position: relative; overflow: hidden; - &:before { + + &::before { content: ' '; position: absolute; bottom: 0; - left: 0; + inset-inline-start: 0; width: 100%; height: 62px; background: linear-gradient( 180deg, - rgba(255, 255, 255, 0.0001) 1.31%, - rgba(255, 255, 255, 0.721372) 15.41%, + rgb(255 255 255 / 0.01%) 1.31%, + rgb(255 255 255 / 72.1%) 15.41%, #fff 100% ); z-index: 5; @@ -320,7 +341,7 @@ $radius: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 15, 20, 30, 40, 50; border-radius: 80px; overflow: hidden; color: var(--tutor-color-primary); - background: rgba(var(--tutor-color-primary-rgb), 0.1); + background: rgb(var(--tutor-color-primary-rgb), 0.1); [class^='tutor-icon-'], [class*=' tutor-icon-'], @@ -357,13 +378,10 @@ $radius: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 15, 20, 30, 40, 50; } // stretched link -.tutor-stretched-link:after { +.tutor-stretched-link::after { content: ' '; position: absolute; - top: 0; - right: 0; - bottom: 0; - left: 0; + inset: 0; z-index: 2; } @@ -373,8 +391,8 @@ $radius: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 15, 20, 30, 40, 50; width: 32px; height: 32px; vertical-align: -4px; - border: 4px solid currentColor; - border-right-color: transparent; + border: 4px solid currentcolor; + border-inline-end-color: transparent; border-radius: 50%; animation: 800ms linear infinite rotateSpinner; diff --git a/v2-library/src/scss/elements/_badge-label.scss b/v2-library/src/scss/elements/_badge-label.scss index 171b4ca681..66561bf566 100644 --- a/v2-library/src/scss/elements/_badge-label.scss +++ b/v2-library/src/scss/elements/_badge-label.scss @@ -1,9 +1,9 @@ $variations: ( 'default' var(--tutor-color-gray-10) var(--tutor-color-muted) var(--tutor-border-color), - 'primary' rgba(var(--tutor-color-primary-rgb), 0.15) var(--tutor-color-primary) rgba(var(--tutor-color-primary-rgb), 0.3), - 'success' rgba(var(--tutor-color-success-rgb), 0.15) var(--tutor-color-success) rgba(var(--tutor-color-success-rgb), 0.3), - 'warning' rgba(var(--tutor-color-warning-rgb), 0.15) var(--tutor-color-warning) rgba(var(--tutor-color-warning-rgb), 0.3), - 'danger' rgba(var(--tutor-color-danger-rgb), 0.15) var(--tutor-color-danger) rgba(var(--tutor-color-danger-rgb), 0.3), + 'primary' rgb(var(--tutor-color-primary-rgb), 0.15) var(--tutor-color-primary) rgb(var(--tutor-color-primary-rgb), 0.3), + 'success' rgb(var(--tutor-color-success-rgb), 0.15) var(--tutor-color-success) rgb(var(--tutor-color-success-rgb), 0.3), + 'warning' rgb(var(--tutor-color-warning-rgb), 0.15) var(--tutor-color-warning) rgb(var(--tutor-color-warning-rgb), 0.3), + 'danger' rgb(var(--tutor-color-danger-rgb), 0.15) var(--tutor-color-danger) rgb(var(--tutor-color-danger-rgb), 0.3), ); // Tutor badge label diff --git a/v2-library/src/scss/elements/_badge.scss b/v2-library/src/scss/elements/_badge.scss index d2e30bcc0e..4c6015d834 100644 --- a/v2-library/src/scss/elements/_badge.scss +++ b/v2-library/src/scss/elements/_badge.scss @@ -1,5 +1,6 @@ .tutor-badge { @extend .d-inline-block; + padding: 0 8px; line-height: 21px; font-size: 13px; @@ -11,6 +12,7 @@ .tutor-badge-square { @extend .tutor-badge; + line-height: 22px; padding: 5px; min-width: 32px; @@ -22,18 +24,23 @@ .tutor-profile-badge { @extend .d-flex; @extend .align-items-center; + box-sizing: border-box; + img { @extend .d-block; + height: auto; max-width: 50px; } + .tutor-profile-badge-content { - padding-left: 20px; + padding-inline-start: 20px; font-size: 16px; line-height: 26px; font-weight: 400; color: var(--tutor-color-muted); + h5 { margin: 0; font-size: 24px; @@ -50,16 +57,16 @@ justify-content: center; background-color: var(--tutor-color-danger); position: absolute; - right: -4px; + inset-inline-end: -4px; top: -4px; line-height: 1; min-width: 20px; min-height: 20px; font-size: 12px; border-radius: 40px; - padding: 0px 4px; + padding: 0 4px; box-sizing: border-box; - color: #ffffff; + color: #fff; font-weight: 700; z-index: 1; } \ No newline at end of file diff --git a/v2-library/src/scss/elements/_buttons.scss b/v2-library/src/scss/elements/_buttons.scss index 46dfbe5f78..6b52edeba5 100644 --- a/v2-library/src/scss/elements/_buttons.scss +++ b/v2-library/src/scss/elements/_buttons.scss @@ -8,8 +8,8 @@ a.tutor-btn, &:not(:disabled):not([disabled]):not(.disabled) { outline: none; box-shadow: - 0px 0px 0px 1px #ffffff, - 0px 0px 0px 3px var(--tutor-color-primary, #90a0f7); + 0 0 0 1px #fff, + 0 0 0 3px var(--tutor-color-primary, #90a0f7); } } } @@ -54,12 +54,12 @@ a.tutor-btn, &-primary { border-color: var(--tutor-color-primary); background-color: var(--tutor-color-primary); - color: #ffffff; + color: #fff; &:hover, &:focus, &:active { - color: #ffffff; + color: #fff; border-color: var(--tutor-color-primary-hover); background-color: var(--tutor-color-primary-hover); } @@ -77,7 +77,7 @@ a.tutor-btn, &:hover, &:focus, &:active { - color: #ffffff; + color: #fff; border-color: var(--tutor-color-primary-hover); background-color: var(--tutor-color-primary-hover); } @@ -89,13 +89,13 @@ a.tutor-btn, } &-secondary { - background-color: rgba(var(--tutor-color-primary-rgb), 0.1); + background-color: rgb(var(--tutor-color-primary-rgb), 0.1); color: var(--tutor-color-primary); &:hover, &:focus, &:active { - color: #ffffff; + color: #fff; background-color: var(--tutor-color-primary-hover); } @@ -106,14 +106,14 @@ a.tutor-btn, } &-outline-secondary { - border-color: rgba(var(--tutor-color-primary-rgb), 0.1); - background-color: rgba(var(--tutor-color-primary-rgb), 0.1); + border-color: rgb(var(--tutor-color-primary-rgb), 0.1); + background-color: rgb(var(--tutor-color-primary-rgb), 0.1); color: var(--tutor-color-primary); &:hover, &:focus, &:active { - color: #ffffff; + color: #fff; border-color: var(--tutor-color-primary-hover); background-color: var(--tutor-color-primary-hover); } @@ -126,7 +126,7 @@ a.tutor-btn, } &-tertiary { - background-color: #ffffff; + background-color: #fff; color: var(--tutor-color-secondary); border: 1px solid var(--tutor-border-color); @@ -149,12 +149,12 @@ a.tutor-btn, &-danger { background-color: #f44337; - color: #ffffff; + color: #fff; &:hover, &:focus, &:active { - color: #ffffff; + color: #fff; } &[disabled], @@ -167,13 +167,14 @@ a.tutor-btn, &-link { font-size: inherit; - padding: 0px !important; + padding: 0 !important; position: relative; - &:after { + + &::after { content: ' '; position: absolute; - bottom: 0px; - left: 0; + bottom: 0; + inset-inline-start: 0; width: 0; height: 1px; background: var(--tutor-color-primary-hover); @@ -183,7 +184,7 @@ a.tutor-btn, &:hover, &:focus, &:active { - &:after { + &::after { width: 100%; } } @@ -191,7 +192,8 @@ a.tutor-btn, &-ghost { // font-size: inherit; - padding: 0px !important; + padding: 0 !important; + // font-weight: 500; position: relative; color: #757c8e; // @todo: to be changed @@ -200,11 +202,12 @@ a.tutor-btn, &.tutor-has-underline { position: relative; - &:after { + + &::after { content: ' '; position: absolute; - bottom: 0px; - left: 0; + bottom: 0; + inset-inline-start: 0; width: 100%; height: 1px; background-color: #757c8e; @@ -216,7 +219,8 @@ a.tutor-btn, &:focus, &:active { color: var(--tutor-color-primary); - &.tutor-has-underline:after { + + &.tutor-has-underline::after { background-color: var(--tutor-color-primary); } @@ -226,17 +230,19 @@ a.tutor-btn, // light variants &-light { - color: #ffffff; - &.tutor-has-underline:after { - background-color: #ffffff; + color: #fff; + + &.tutor-has-underline::after { + background-color: #fff; } &:hover, &:focus, &:active { - color: rgba(255, 255, 255, 0.8); - &.tutor-has-underline:after { - background-color: rgba(255, 255, 255, 0.8); + color: rgb(255 255 255 / 80%); + + &.tutor-has-underline::after { + background-color: rgb(255 255 255 / 80%); } } } @@ -265,12 +271,8 @@ a.tutor-btn, // loading state &.is-loading { - &:before { - @if ($is_rtl == true) { - margin-left: 8px; - } @else { - margin-right: 8px; - } + &::before { + margin-inline-end: 8px; } [class^='tutor-icon-'], @@ -309,6 +311,7 @@ a.tutor-btn, border: 1px solid transparent; border-radius: 48px; cursor: pointer; + // position: relative; transition: color 200ms ease-in-out, background-color 200ms ease-in-out; @@ -321,8 +324,8 @@ a.tutor-btn, &:focus, &:active { color: var(--tutor-color-primary-hover); - background-color: rgba(var(--tutor-color-primary-rgb), 0.1); - border-color: rgba(var(--tutor-color-primary-rgb), 0.1); + background-color: rgb(var(--tutor-color-primary-rgb), 0.1); + border-color: rgb(var(--tutor-color-primary-rgb), 0.1); } &[disabled], @@ -338,7 +341,7 @@ a.tutor-btn, &:hover, &:focus, &:active { - color: #ffffff; + color: #fff; border-color: var(--tutor-color-primary-hover); background-color: var(--tutor-color-primary-hover); } @@ -351,13 +354,13 @@ a.tutor-btn, // secondary &-secondary { - background-color: rgba(var(--tutor-color-primary-rgb), 0.1); + background-color: rgb(var(--tutor-color-primary-rgb), 0.1); color: var(--tutor-color-primary); &:hover, &:focus, &:active { - color: #ffffff; + color: #fff; background-color: var(--tutor-color-primary-hover); } @@ -370,12 +373,12 @@ a.tutor-btn, // light &-light { - color: #ffffff; + color: #fff; &:hover, &:focus, &:active { - color: #ffffff; + color: #fff; background-color: var(--tutor-color-primary-hover); } @@ -418,14 +421,14 @@ a.tutor-btn, } &:not(:last-child) { - border-top-right-radius: 0; - border-bottom-right-radius: 0; + border-start-end-radius: 0; + border-end-end-radius: 0; } &:not(:first-child) { - border-top-left-radius: 0; - border-bottom-left-radius: 0; - margin-left: -1px; + border-start-start-radius: 0; + border-end-start-radius: 0; + margin-inline-start: -1px; } } } @@ -434,10 +437,10 @@ a.tutor-btn, .tutor-iconic-btn { // loading state &.is-loading { - &:before { + &::before { content: '\e9df' !important; display: inline-block; - font-family: 'tutor'; + font-family: tutor; line-height: 1; font-size: 18px; margin-top: -2px; diff --git a/v2-library/src/scss/elements/_input.scss b/v2-library/src/scss/elements/_input.scss index 90926c4425..3a500ad6d8 100644 --- a/v2-library/src/scss/elements/_input.scss +++ b/v2-library/src/scss/elements/_input.scss @@ -46,6 +46,7 @@ $height-sm: 38px; background-color: var(--tutor-disabled-bg); border-color: var(--tutor-disabled-bg); color: var(--tutor-disabled-color); + &::placeholder { color: var(--tutor-disabled-color); } @@ -55,6 +56,7 @@ $height-sm: 38px; background: $color-gray-20; border-color: $color-gray-20; cursor: not-allowed; + &::placeholder { color: var(--tutor-color-muted); } @@ -85,7 +87,7 @@ $height-sm: 38px; &-select { position: relative; min-width: 180px; - text-align: left; + text-align: start; cursor: pointer; &-dropdown { @@ -96,20 +98,21 @@ $height-sm: 38px; max-height: 300px; transition: all 100ms; position: absolute; - left: 0px; + inset-inline-start: 0; top: calc(100% + 5px); - background: #ffffff; + background: #fff; border: 1px solid #cdcfd5; - box-shadow: 0px 6px 20px rgba(28, 49, 104, 0.1); + box-shadow: 0 6px 20px rgb(28 49 104 / 10%); border-radius: 6px; z-index: 10; .tutor-form-control { - padding-left: 0; - padding-right: 0; + padding-inline-start: 0; + padding-inline-end: 0; border-top: 0; - border-left: 0; - border-right: 0; + border-inline-start: 0; + border-inline-end: 0; + // border-radius: 0; } } @@ -125,7 +128,7 @@ $height-sm: 38px; display: flex; flex-direction: column; gap: 1px; - padding: 8px 0px; + padding: 8px 0; margin: 0; overflow-y: auto; } @@ -163,11 +166,9 @@ $height-sm: 38px; position: absolute; top: 0; bottom: 0; - @if ($is_rtl == true) { - right: 0; - } @else { - left: 0; - } + + inset-inline-start: 0; + font-size: 16px; line-height: 1.4; width: 40px; @@ -181,29 +182,16 @@ $height-sm: 38px; } &-reverse { - @if ($is_rtl == true) { - right: auto; - left: 0; - } @else { - left: auto; - right: 0; - } + inset-inline-start: auto; + inset-inline-end: 0; & ~ .tutor-form-control { - @if ($is_rtl == true) { - padding-left: 40px !important; - } @else { - padding-right: 40px !important; - } + padding-inline-end: 40px !important; } } &:not(.tutor-form-icon-reverse) ~ .tutor-form-control { - @if ($is_rtl == true) { - padding-right: 40px !important; - } @else { - padding-left: 40px !important; - } + padding-inline-start: 40px !important; } } } @@ -212,6 +200,7 @@ textarea { &.tutor-form-control { min-height: 180px; resize: vertical; + &-auto-height { min-height: 72px; } @@ -225,7 +214,7 @@ select.tutor-form-control, background-repeat: no-repeat; background-position: right 0.75rem center; background-size: 16px 12px; - padding-right: 36px; + padding-inline-end: 36px; } .tutor-input-group { @@ -242,6 +231,7 @@ select.tutor-form-control, font-size: 16px; font-weight: 400; line-height: 1.4; + // color: $input-group-addon-color; text-align: center; white-space: nowrap; @@ -252,19 +242,19 @@ select.tutor-form-control, >:not(.tutor-form-wrap):not(:last-child), >.tutor-form-wrap:not(:last-child) > .tutor-form-control { - border-top-right-radius: 0; - border-bottom-right-radius: 0; + border-start-end-radius: 0; + border-end-end-radius: 0; } >:not(.tutor-form-wrap):not(:first-child), >.tutor-form-wrap:not(:first-child) > .tutor-form-control { - border-top-left-radius: 0; - border-bottom-left-radius: 0; + border-start-start-radius: 0; + border-end-start-radius: 0; } >:not(.tutor-form-wrap):not(:first-child), >.tutor-form-wrap:not(:first-child) { - margin-left: -1px; + margin-inline-start: -1px; } >.tutor-form-control, @@ -295,11 +285,8 @@ select.tutor-form-control, .tutor-form-feedback-icon { font-size: 18px; - @if ($is_rtl == true) { - margin-left: 8px; - } @else { - margin-right: 8px; - } + + margin-inline-end: 8px; } } @@ -314,21 +301,15 @@ select.tutor-form-control, margin: 0 !important; cursor: pointer; } + input.tutor-form-check-input { - margin-top: 0px !important; - @if ($is-rtl) { - margin-left: 8px; - } @else { - margin-right: 8px; - } + margin-top: 0 !important; + + margin-inline-end: 8px; } & + & { - @if ($is-rtl) { - margin-right: 16px; - } @else { - margin-left: 16px; - } + margin-inline-start: 16px; } } @@ -349,26 +330,29 @@ select.tutor-form-control, background-position: center; background-repeat: no-repeat; transition: 300ms; - box-shadow: 0 0 0 0 rgba(var(--tutor-color-primary-rgb), 0.1); + box-shadow: 0 0 0 0 rgb(var(--tutor-color-primary-rgb), 0.1); flex: 0 0 auto; - &:before, - &:after { + &::before, + &::after { display: none !important; } &:focus { - box-shadow: 0 0 0 6px rgba(var(--tutor-color-primary-rgb), 0.1); + box-shadow: 0 0 0 6px rgb(var(--tutor-color-primary-rgb), 0.1); } &[type='checkbox'] { border-radius: 4px; + &.tutor-form-check-square { border-radius: 0; } + &.tutor-form-check-circle { border-radius: 50%; } + &:checked { border-color: var(--tutor-color-primary); background-color: var(--tutor-color-primary); @@ -402,8 +386,10 @@ select.tutor-form-control, display: inline-flex; align-items: center; vertical-align: top; + input { display: none; + ~ .tutor-form-toggle-control { flex-shrink: 0; display: inline-block; @@ -415,6 +401,7 @@ select.tutor-form-control, cursor: pointer; position: relative; margin: 0 4px; + &::before { content: ''; position: absolute; @@ -422,20 +409,24 @@ select.tutor-form-control, width: 18px; background-color: var(--tutor-color-white); top: 3px; - left: 4px; + inset-inline-start: 4px; border-radius: 50%; transition: 100ms; - box-shadow: 0px 2px 4px 0px #0000002A; + box-shadow: 0 2px 4px 0 #0000002A; } } + &:checked ~ .tutor-form-toggle-control { background-color: var(--tutor-color-primary); + &::before { - left: 18px; + inset-inline-start: 18px; } } + ~ .tutor-form-toggle-label { padding: 0 4px; + &.tutor-form-toggle-checked { color: var(--tutor-border-color); } @@ -445,6 +436,7 @@ select.tutor-form-control, ~ .tutor-form-toggle-checked { color: inherit; } + ~ .tutor-form-toggle-unchecked { color: var(--tutor-border-color); } diff --git a/v2-library/src/scss/elements/_select-with-icon.scss b/v2-library/src/scss/elements/_select-with-icon.scss index a4f7a61539..2b43d5deea 100644 --- a/v2-library/src/scss/elements/_select-with-icon.scss +++ b/v2-library/src/scss/elements/_select-with-icon.scss @@ -1,11 +1,10 @@ -$default-color: rgba(65, 69, 79, 0.9); - +$default-color: rgb(65 69 79 / 90%); $variations: ( - 'primary' var(--tutor-color-primary) rgba(var(--tutor-color-primary-rgb), 0.15) rgba(var(--tutor-color-primary-rgb), 0.3) '\e978', + 'primary' var(--tutor-color-primary) rgb(var(--tutor-color-primary-rgb), 0.15) rgb(var(--tutor-color-primary-rgb), 0.3) '\e978', 'default' $default-color $color-gray-10 var(--tutor-border-color) '\e9ab', - 'success' var(--tutor-color-success) rgba(var(--tutor-color-success-rgb), 0.15) rgba(var(--tutor-color-success-rgb), 0.3) '\E982', - 'danger' var(--tutor-color-danger) rgba(var(--tutor-color-danger-rgb), 0.15) rgba(var(--tutor-color-danger-rgb), 0.3) '\e9a3', - 'warning' var(--tutor-color-warning) rgba(var(--tutor-color-warning-rgb), 0.15) rgba(var(--tutor-color-warning-rgb), 0.3) '\e966' + 'success' var(--tutor-color-success) rgb(var(--tutor-color-success-rgb), 0.15) rgb(var(--tutor-color-success-rgb), 0.3) '\E982', + 'danger' var(--tutor-color-danger) rgb(var(--tutor-color-danger-rgb), 0.15) rgb(var(--tutor-color-danger-rgb), 0.3) '\e9a3', + 'warning' var(--tutor-color-warning) rgb(var(--tutor-color-warning-rgb), 0.15) rgb(var(--tutor-color-warning-rgb), 0.3) '\e966' ); @each $suffix, $txtColor, $bgColor, $border, $icon in $variations { @@ -23,7 +22,7 @@ $variations: ( border-color: #{$txtColor}; } - .icon1:before { + .icon1::before { content: '#{$icon}'; } } @@ -35,7 +34,6 @@ $variations: ( min-width: 120px; max-width: max-content; position: relative; - border-radius: 42px; display: flex; align-items: center; @@ -43,6 +41,7 @@ $variations: ( select { @extend .text-medium-small; + display: block; width: 100%; margin: 0; @@ -68,10 +67,11 @@ $variations: ( // variation icon .icon1 { - left: 8px; + inset-inline-start: 8px; } + // down arrow icon .icon2 { - right: 8px; + inset-inline-end: 8px; } } diff --git a/v2-library/src/scss/elements/_star-ratings.scss b/v2-library/src/scss/elements/_star-ratings.scss index 28167510b0..4394b82c64 100644 --- a/v2-library/src/scss/elements/_star-ratings.scss +++ b/v2-library/src/scss/elements/_star-ratings.scss @@ -15,24 +15,19 @@ &-average { color: var(--tutor-body-color); font-weight: 500; - @if ($is-rtl) { - margin-right: 12px; - } @else { - margin-left: 12px; - } + + margin-inline-start: 12px; } &-count { color: var(--tutor-color-muted); - @if ($is-rtl) { - margin-right: 8px; - } @else { - margin-left: 8px; - } + + margin-inline-start: 8px; } &-progress-bar { height: 8px !important; + .tutor-progress-value { background-color: #ED9700; } diff --git a/v2-library/src/scss/elements/_tag-list.scss b/v2-library/src/scss/elements/_tag-list.scss index 01137dffad..fd617a9020 100644 --- a/v2-library/src/scss/elements/_tag-list.scss +++ b/v2-library/src/scss/elements/_tag-list.scss @@ -2,8 +2,10 @@ list-style: none; margin: 0 0 0 -15px; padding: 0; + li { display: inline-block; + a { display: block; font-size: 16px; @@ -12,9 +14,10 @@ padding: 7px 23px; border: 1px solid var(--tutor-border-color); color: var(--tutor-color-secondary); - margin-left: 15px; + margin-inline-start: 15px; border-radius: 6px; transition: 200ms; + &:hover { color: var(--tutor-color-primary); border-color: var(--tutor-color-primary); diff --git a/v2-library/src/scss/elements/_tag.scss b/v2-library/src/scss/elements/_tag.scss index 8f8164611d..77ea3cc418 100644 --- a/v2-library/src/scss/elements/_tag.scss +++ b/v2-library/src/scss/elements/_tag.scss @@ -1,9 +1,9 @@ $variations: ( 'default' var(--tutor-color-gray-10) var(--tutor-color-muted), - 'primary' rgba(var(--tutor-color-primary-rgb), 0.15) var(--tutor-color-primary), - 'success' rgba(var(--tutor-color-success-rgb), 0.15) #202223, - 'warning' rgba(var(--tutor-color-warning-rgb), 0.15) var(--tutor-color-warning), - 'danger' rgba(var(--tutor-color-danger-rgb), 0.15) var(--tutor-color-danger), + 'primary' rgb(var(--tutor-color-primary-rgb), 0.15) var(--tutor-color-primary), + 'success' rgb(var(--tutor-color-success-rgb), 0.15) #202223, + 'warning' rgb(var(--tutor-color-warning-rgb), 0.15) var(--tutor-color-warning), + 'danger' rgb(var(--tutor-color-danger-rgb), 0.15) var(--tutor-color-danger), ); .tutor-tag { diff --git a/v2-library/src/scss/legacy/_dashboard.scss b/v2-library/src/scss/legacy/_dashboard.scss index 8381663df8..67999b6a2e 100644 --- a/v2-library/src/scss/legacy/_dashboard.scss +++ b/v2-library/src/scss/legacy/_dashboard.scss @@ -1,17 +1,20 @@ .tutor-user-profile { display: flex; align-items: center; + .tutor-profile-content { - padding-left: 20px; + padding-inline-start: 20px; font-size: 15px; color: var(--tutor-color-muted); } + .tutor-profile-subtitle { font-size: 24px; line-height: 34px; font-weight: 400; color: var(--tutor-body-color); } + .tutor-profile-name { display: block; font-size: 30px; @@ -24,27 +27,33 @@ @extend .tutor-border; @extend .d-flex; @extend .align-items-center; + padding: 12px 17px; border-radius: 4px; min-width: 320px; + .tutor-icard-content { @extend .tutor-pl-12; + font-size: 13px; line-height: 18px; color: var(--tutor-color-muted); flex-grow: 1; } + .tutor-name { @extend .d-flex; @extend .align-items-center; + font-size: 18px; font-weight: 500; line-height: 28px; margin: 0; color: var(--tutor-body-color); + .tutor-icard-icon { font-size: 13px; - padding-left: 6px; + padding-inline-start: 6px; color: var(--tutor-color-primary); } } diff --git a/v2-library/src/scss/legacy/_slider-input.scss b/v2-library/src/scss/legacy/_slider-input.scss index db72e5b819..88bae01a57 100644 --- a/v2-library/src/scss/legacy/_slider-input.scss +++ b/v2-library/src/scss/legacy/_slider-input.scss @@ -2,13 +2,13 @@ .ui-slider { position: relative; - text-align: left; + text-align: start; + .ui-slider-handle { position: absolute; z-index: 2; width: 15px; height: 15px; - cursor: default; top: -6px; cursor: pointer; } @@ -32,11 +32,11 @@ } .ui-slider-range-min { - left: 0; + inset-inline-start: 0; } .ui-slider-range-max { - right: 0; + inset-inline-end: 0; } } @@ -45,13 +45,13 @@ height: 100px; .ui-slider-handle { - left: -0.3em; - margin-left: 0; + inset-inline-start: -0.3em; + margin-inline-start: 0; margin-bottom: -0.6em; } .ui-slider-range { - left: 0; + inset-inline-start: 0; width: 100%; } @@ -100,7 +100,7 @@ font-weight: 600; background: var(--tutor-color-primary); position: absolute; - right: 5px; + inset-inline-end: 5px; top: 50%; margin: 0; -webkit-transform: translateY(-50%); @@ -111,22 +111,24 @@ border-radius: 4px; color: #fff; - &:before { + &::before { content: ""; position: absolute; border: 7px solid transparent; top: 50%; - border-right-color: var(--tutor-color-primary); - right: 100%; + border-inline-end-color: var(--tutor-color-primary); + inset-inline-end: 100%; -webkit-transform: translateY(-50%); transform: translateY(-50%); } } } + .tutor-quiz-slider { .tutor-field-type-slider { padding: 10px 0 10px 6px!important; } + .tutor-field-type-slider .ui-widget-content { top: 40% !important; width: 85% !important; diff --git a/v2-library/src/scss/legacy/_switch.scss b/v2-library/src/scss/legacy/_switch.scss index b05ab1dda6..526bc132b2 100644 --- a/v2-library/src/scss/legacy/_switch.scss +++ b/v2-library/src/scss/legacy/_switch.scss @@ -29,27 +29,25 @@ .slider { position: absolute; cursor: pointer; - top: 0; - left: 0; - right: 0; - bottom: 0; + inset: 0; background-color: #ccc; -webkit-transition: .4s; transition: .4s; &.round { border-radius: 34px; - &:before { + + &::before { border-radius: 50%; } } - &:before { + &::before { position: absolute; content: ""; height: 18px; width: 18px; - left: 4px; + inset-inline-start: 4px; bottom: 3px; background-color: white; -webkit-transition: .4s; diff --git a/v2-library/src/scss/legacy/_toast.scss b/v2-library/src/scss/legacy/_toast.scss index db3b5b6ce8..1d86132cf3 100644 --- a/v2-library/src/scss/legacy/_toast.scss +++ b/v2-library/src/scss/legacy/_toast.scss @@ -1,12 +1,11 @@ .tutor-toast-parent { position: fixed; - right: 25px; + inset-inline-end: 25px; bottom: 25px; - left: auto; + inset-inline-start: auto; max-height: 400px; width: 350px; - overflow-x: hidden; - overflow-y: auto; + overflow: hidden auto; background: transparent; z-index: 99999999; @@ -17,14 +16,15 @@ &.tutor-toast-left { position: fixed; bottom: 25px; - left: 25px; - right: auto; + inset-inline-start: 25px; + inset-inline-end: auto; } .tutor-is-success{ .tutor-notification-icon { color: var(--tutor-color-success); } + .tutor-notification-content h5{ color: var(--tutor-color-success); } @@ -34,6 +34,7 @@ .tutor-notification-icon { color: var(--tutor-color-warning); } + .tutor-notification-content h5{ color: var(--tutor-color-warning); } @@ -43,6 +44,7 @@ .tutor-notification-icon { color: var(--tutor-color-danger); } + .tutor-notification-content h5{ color: var(--tutor-color-danger); } @@ -50,6 +52,6 @@ } body.rtl .tutor-toast-parent { - right: auto; - left: 50px; + inset-inline-end: auto; + inset-inline-start: 50px; } \ No newline at end of file diff --git a/v2-library/src/scss/legacy/_ui-date-picker.scss b/v2-library/src/scss/legacy/_ui-date-picker.scss index 8a0c83fd2e..f57692ddc8 100644 --- a/v2-library/src/scss/legacy/_ui-date-picker.scss +++ b/v2-library/src/scss/legacy/_ui-date-picker.scss @@ -3,10 +3,10 @@ margin-top: 4px; padding: 10px; width: 260px; - background: #FFFFFF; + background: #FFF; border: 1px solid #E3E5EB; box-sizing: border-box; - box-shadow: 0px 10px 14px rgba(0, 0, 0, 0.12); + box-shadow: 0 10px 14px rgb(0 0 0 / 12%); border-radius: 6px; table th span { @@ -26,7 +26,8 @@ .ui-datepicker-calendar { table-layout: fixed; width: 100%; - border: 0px !important; + border: 0 !important; + .ui-state-default { border: none; background: none; @@ -47,6 +48,7 @@ cursor: pointer; -webkit-transition: background-color 0.1s ease-in-out, color 0.1s ease-in-out; transition: background-color 0.1s ease-in-out, color 0.1s ease-in-out; + &:hover { border-radius: 100% !important; background-color: #E9EDFB !important; @@ -58,13 +60,15 @@ text-decoration: none; } } + tbody { - border: 0px !important; + border: 0 !important; } + th, td { text-align: center; padding: 0; - border: 0px !important; + border: 0 !important; } .ui-datepicker-unselectable:hover { @@ -113,7 +117,7 @@ .ui-datepicker-prev, .ui-datepicker-next { cursor: default; - font-family: "tutor"; + font-family: tutor; -webkit-font-smoothing: antialiased; font-style: normal; font-weight: normal; @@ -124,19 +128,19 @@ } .ui-datepicker-prev { - float: left; - text-align: left; + float: inline-start; + text-align: start; - &:before { + &::before { content: "\e921"; } } .ui-datepicker-next { - float: right; - text-align: right; + float: inline-end; + text-align: end; - &:before { + &::before { content: "\e903"; } } diff --git a/v2-library/src/scss/legacy/index.scss b/v2-library/src/scss/legacy/index.scss index 2dc97338e1..83eceb7c49 100644 --- a/v2-library/src/scss/legacy/index.scss +++ b/v2-library/src/scss/legacy/index.scss @@ -1,12 +1,13 @@ /* This is a legacy directory pulled from inside the tutor as it is sort of old design library */ + /* Common libraries. This file will be loaded in both of admin and frontend main scss file once */ @import './dashboard'; -@import './switch.scss'; -@import './toast.scss'; +@import './switch'; +@import './toast'; @import './slider-input'; .tutor-backend, .tutor-screen-frontend-dashboard { - @import './ui-date-picker.scss'; + @import './ui-date-picker'; } // @todo: to be removed @@ -26,6 +27,7 @@ i { background-color: #AAAEB5 !important; } + color: #AAAEB5 !important; cursor: none !important; pointer-events: none !important; diff --git a/v2-library/src/scss/main.rtl.scss b/v2-library/src/scss/main.rtl.scss deleted file mode 100644 index cfecb20164..0000000000 --- a/v2-library/src/scss/main.rtl.scss +++ /dev/null @@ -1,4 +0,0 @@ -$is-rtl: true !default; - -@import './structure/structure.scss'; -@import './main_contents.scss'; diff --git a/v2-library/src/scss/main.scss b/v2-library/src/scss/main.scss index 7e256bd04f..50fa854e36 100644 --- a/v2-library/src/scss/main.scss +++ b/v2-library/src/scss/main.scss @@ -1,4 +1,2 @@ -$is-rtl: false !default; - -@import './structure/structure.scss'; -@import './main_contents.scss'; +@import './structure/structure'; +@import './main_contents'; diff --git a/v2-library/src/scss/main_contents.scss b/v2-library/src/scss/main_contents.scss index 218046bfef..1e1610dd5c 100644 --- a/v2-library/src/scss/main_contents.scss +++ b/v2-library/src/scss/main_contents.scss @@ -1,11 +1,11 @@ // Reusables loader, (variables and mixins) -@import './reusables.scss'; +@import './reusables'; // Core -@import './core/index.scss'; +@import './core/index'; // Legacy common styles -@import './legacy/index.scss'; +@import './legacy/index'; // ui elements @import './elements/index'; diff --git a/v2-library/src/scss/mixins/_breakpoint.scss b/v2-library/src/scss/mixins/_breakpoint.scss index 3c52164b10..57df1b3efa 100644 --- a/v2-library/src/scss/mixins/_breakpoint.scss +++ b/v2-library/src/scss/mixins/_breakpoint.scss @@ -52,15 +52,15 @@ // @include breakpoint-minmax(tablet, desktop) { ... } @mixin breakpoint-minmax($sizemin, $sizemax) { - @if ($sizemin == mobile and $sizemax == tablet) { + @if $sizemin == mobile and $sizemax == tablet { @media (min-width: 576px) and (max-width: 767.98px) { @content; } - } @else if ($sizemin == tablet and $sizemax == desktop) { + } @else if $sizemin == tablet and $sizemax == desktop { @media (min-width: 768px) and (max-width: 991.98px) { @content; } - } @else if ($sizemin == desktop and $sizemax == desktop-lg) { + } @else if $sizemin == desktop and $sizemax == desktop-lg { @media (min-width: 992px) and (max-width: 1199.98px) { @content; } diff --git a/v2-library/src/scss/mixins/_breakpoints.scss b/v2-library/src/scss/mixins/_breakpoints.scss index cdc8034eb3..e166f5cf55 100644 --- a/v2-library/src/scss/mixins/_breakpoints.scss +++ b/v2-library/src/scss/mixins/_breakpoints.scss @@ -1,3 +1,5 @@ +@use 'sass:map'; + // Breakpoint viewport sizes and media queries. // // Breakpoints are defined as a map of (name: minimum width), order from small to large: @@ -14,11 +16,13 @@ // md // >> breakpoint-next(sm, $breakpoint-names: (xs sm md lg xl)) // md -@function breakpoint-next($name, $breakpoints: $grid-breakpoints, $breakpoint-names: map-keys($breakpoints)) { +@function breakpoint-next($name, $breakpoints: $grid-breakpoints, $breakpoint-names: map.keys($breakpoints)) { $n: index($breakpoint-names, $name); + @if not $n { @error "breakpoint `#{$name}` not found in `#{$breakpoints}`"; } + @return if($n < length($breakpoint-names), nth($breakpoint-names, $n + 1), null); } @@ -27,7 +31,8 @@ // >> breakpoint-min(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px)) // 576px @function breakpoint-min($name, $breakpoints: $grid-breakpoints) { - $min: map-get($breakpoints, $name); + $min: map.get($breakpoints, $name); + @return if($min != 0, $min, null); } @@ -41,7 +46,8 @@ // >> breakpoint-max(md, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px)) // 767.98px @function breakpoint-max($name, $breakpoints: $grid-breakpoints) { - $max: map-get($breakpoints, $name); + $max: map.get($breakpoints, $name); + @return if($max and $max > 0, $max - .02, null); } @@ -60,6 +66,7 @@ // Makes the @content apply to the given breakpoint and wider. @mixin media-breakpoint-up($name, $breakpoints: $grid-breakpoints) { $min: breakpoint-min($name, $breakpoints); + @if $min { @media (min-width: $min) { @content; @@ -73,6 +80,7 @@ // Makes the @content apply to the given breakpoint and narrower. @mixin media-breakpoint-down($name, $breakpoints: $grid-breakpoints) { $max: breakpoint-max($name, $breakpoints); + @if $max { @media (max-width: $max) { @content; @@ -107,9 +115,9 @@ // No minimum for the smallest breakpoint, and no maximum for the largest one. // Makes the @content apply only to the given breakpoint, not viewports any wider or narrower. @mixin media-breakpoint-only($name, $breakpoints: $grid-breakpoints) { - $min: breakpoint-min($name, $breakpoints); + $min: breakpoint-min($name, $breakpoints); $next: breakpoint-next($name, $breakpoints); - $max: breakpoint-max($next); + $max: breakpoint-max($next); @if $min != null and $max != null { @media (min-width: $min) and (max-width: $max) { diff --git a/v2-library/src/scss/mixins/_clearfix.scss b/v2-library/src/scss/mixins/_clearfix.scss index ffc62bb285..073851b8ba 100644 --- a/v2-library/src/scss/mixins/_clearfix.scss +++ b/v2-library/src/scss/mixins/_clearfix.scss @@ -6,4 +6,5 @@ content: ""; } } + // scss-docs-end clearfix diff --git a/v2-library/src/scss/mixins/_container.scss b/v2-library/src/scss/mixins/_container.scss index ee6044d0dd..dbd1d6b383 100644 --- a/v2-library/src/scss/mixins/_container.scss +++ b/v2-library/src/scss/mixins/_container.scss @@ -2,8 +2,8 @@ @mixin make-container($gutter: $container-padding-x) { width: 100%; - padding-right: var(--#{$variable-prefix}gutter-x, #{$gutter}); - padding-left: var(--#{$variable-prefix}gutter-x, #{$gutter}); - margin-right: auto; - margin-left: auto; + padding-inline-end: var(--#{$variable-prefix}gutter-x, #{$gutter}); + padding-inline-start: var(--#{$variable-prefix}gutter-x, #{$gutter}); + margin-inline-end: auto; + margin-inline-start: auto; } diff --git a/v2-library/src/scss/mixins/_general-minxins.scss b/v2-library/src/scss/mixins/_general-minxins.scss index d50fbbc6a3..f708c3a139 100644 --- a/v2-library/src/scss/mixins/_general-minxins.scss +++ b/v2-library/src/scss/mixins/_general-minxins.scss @@ -8,8 +8,8 @@ // Masonry Grid @mixin masonryGrid($colCount, $colGap, $rowGap) { columns: $colCount; - row-gap: $rowGap; - column-gap: $colGap; + gap: $rowGap $colGap; + > * { break-inside: avoid; margin-bottom: $rowGap; @@ -20,8 +20,9 @@ grid-template-columns: repeat($colCount, 1fr); grid-template-rows: masonry; grid-auto-flow: dense; + > * { - margin-bottom: 0em; + margin-bottom: 0; } } } @@ -30,10 +31,11 @@ @mixin getDashedBorder($width: 2px, $gap: 15px, $color1: orange, $color2: $color1, $color3: $color1, $color4: $color1) { --borderWidth: #{$width}; --borderGap: #{$gap}; - background-image: linear-gradient(to right, $color1 50%, rgba(255, 255, 255, 0) 0%), - linear-gradient($color2 50%, rgba(255, 255, 255, 0) 0%), - linear-gradient(to right, $color3 50%, rgba(255, 255, 255, 0) 0%), - linear-gradient($color4 50%, rgba(255, 255, 255, 0) 0%); + + background-image: linear-gradient(to right, $color1 50%, rgb(255 255 255 / 0%) 0%), + linear-gradient($color2 50%, rgb(255 255 255 / 0%) 0%), + linear-gradient(to right, $color3 50%, rgb(255 255 255 / 0%) 0%), + linear-gradient($color4 50%, rgb(255 255 255 / 0%) 0%); background-position: top, right, bottom, left; background-repeat: repeat-x, repeat-y; background-size: var(--borderGap) var(--borderWidth), var(--borderWidth) var(--borderGap); @@ -54,14 +56,14 @@ @mixin triangleRibbonStar { content: ''; position: absolute; - right: -1px; + inset-inline-end: -1px; top: -1px; width: 26px; height: 26px; background: #3e64de; color: #fff; clip-path: polygon(100% 0, 0 0, 100% 100%); - border-radius: 0px 5px 0px 0px; + border-radius: 0 5px 0 0; transition: 200ms; background-image: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.91728 2.33301C6.98861 2.33348 7.05929 2.34669 7.12598 2.37202C7.19764 2.39504 7.26396 2.43218 7.32103 2.48125C7.37943 2.53622 7.4259 2.60261 7.45756 2.6763L8.63177 5.06371L11.2884 5.45381C11.3645 5.46335 11.4377 5.4893 11.5029 5.52988C11.565 5.56953 11.6214 5.61743 11.6707 5.67227C11.7124 5.7317 11.744 5.7976 11.7643 5.86732C11.7833 5.93195 11.7931 5.99891 11.7935 6.06627C11.7945 6.13854 11.7784 6.21002 11.7467 6.27497C11.7144 6.33838 11.6722 6.3963 11.6219 6.44662L9.68894 8.33276L10.1454 10.9893C10.1601 11.0601 10.1601 11.1331 10.1454 11.2039C10.1292 11.2731 10.1015 11.339 10.0634 11.3989C10.0277 11.4611 9.97919 11.515 9.92105 11.5569C9.80242 11.6419 9.65634 11.6795 9.51144 11.6623C9.4421 11.6521 9.37565 11.6275 9.31639 11.5901L6.91728 10.3515L4.52596 11.5901C4.4667 11.6275 4.40025 11.6521 4.33091 11.6623C4.18602 11.6795 4.03993 11.6419 3.9213 11.5569C3.86317 11.515 3.81463 11.4611 3.77892 11.3989C3.74081 11.339 3.71311 11.2731 3.69699 11.2039C3.68227 11.1331 3.68227 11.0601 3.69699 10.9893L4.15341 8.33276L2.21266 6.45637C2.16394 6.40236 2.12381 6.34118 2.09368 6.27497C2.06362 6.20917 2.04578 6.13846 2.04102 6.06627C2.04088 5.99695 2.05074 5.92798 2.07027 5.86147C2.09099 5.79005 2.12618 5.72366 2.17365 5.66642C2.21755 5.61005 2.27103 5.56185 2.33164 5.52403C2.39717 5.48522 2.4704 5.46125 2.5462 5.45381L5.20278 5.06371L6.39259 2.66459C6.42351 2.59437 6.46945 2.53179 6.52717 2.48125C6.58425 2.43218 6.65057 2.39504 6.72223 2.37202C6.78461 2.34823 6.85054 2.33505 6.91728 2.33301V2.33301Z' fill='white'/%3E%3C/svg%3E%0A"); background-repeat: no-repeat; diff --git a/v2-library/src/scss/mixins/_grid.scss b/v2-library/src/scss/mixins/_grid.scss index 1028685b42..f10a60d3ca 100644 --- a/v2-library/src/scss/mixins/_grid.scss +++ b/v2-library/src/scss/mixins/_grid.scss @@ -1,3 +1,5 @@ +@use 'sass:map'; + // Grid system // // Generate semantic grid columns with these mixins. @@ -5,25 +7,28 @@ @mixin make-row($gutter: $grid-gutter-width) { --#{$variable-prefix}gutter-x: #{$gutter}; --#{$variable-prefix}gutter-y: 0; + display: flex; flex-wrap: wrap; + // TODO: Revisit calc order after https://github.com/react-bootstrap/react-bootstrap/issues/6039 is fixed margin-top: calc(-1 * var(--#{$variable-prefix}gutter-y)); // stylelint-disable-line function-disallowed-list - margin-right: calc(-.5 * var(--#{$variable-prefix}gutter-x)); // stylelint-disable-line function-disallowed-list - margin-left: calc(-.5 * var(--#{$variable-prefix}gutter-x)); // stylelint-disable-line function-disallowed-list + margin-inline-end: calc(-.5 * var(--#{$variable-prefix}gutter-x)); // stylelint-disable-line function-disallowed-list + margin-inline-start: calc(-.5 * var(--#{$variable-prefix}gutter-x)); // stylelint-disable-line function-disallowed-list } @mixin make-col-ready($gutter: $grid-gutter-width) { // Add box sizing if only the grid is loaded box-sizing: if(variable-exists(include-column-box-sizing) and $include-column-box-sizing, border-box, null); + // Prevent columns from becoming too narrow when at smaller grid tiers by // always setting `width: 100%;`. This works because we set the width // later on to override this initial width. flex-shrink: 0; width: 100%; max-width: 100%; // Prevent `.col-auto`, `.col` (& responsive variants) from breaking out the grid - padding-right: calc(var(--#{$variable-prefix}gutter-x) * .5); // stylelint-disable-line function-disallowed-list - padding-left: calc(var(--#{$variable-prefix}gutter-x) * .5); // stylelint-disable-line function-disallowed-list + padding-inline-end: calc(var(--#{$variable-prefix}gutter-x) * .5); // stylelint-disable-line function-disallowed-list + padding-inline-start: calc(var(--#{$variable-prefix}gutter-x) * .5); // stylelint-disable-line function-disallowed-list margin-top: var(--#{$variable-prefix}gutter-y); } @@ -45,7 +50,8 @@ @mixin make-col-offset($size, $columns: $grid-columns) { $num: divide($size, $columns); - margin-left: if($num == 0, 0, percentage($num)); + + margin-inline-start: if($num == 0, 0, percentage($num)); } // Row columns @@ -66,7 +72,7 @@ // any value of `$grid-columns`. @mixin make-grid-columns($columns: $grid-columns, $gutter: $grid-gutter-width, $breakpoints: $grid-breakpoints) { - @each $breakpoint in map-keys($breakpoints) { + @each $breakpoint in map.keys($breakpoints) { $infix: breakpoint-infix($breakpoint, $breakpoints); @include media-breakpoint-up($breakpoint, $breakpoints) { @@ -124,4 +130,4 @@ } } } -} \ No newline at end of file +} diff --git a/v2-library/src/scss/mixins/_spinner.scss b/v2-library/src/scss/mixins/_spinner.scss index 80e48bb440..646bd16e55 100644 --- a/v2-library/src/scss/mixins/_spinner.scss +++ b/v2-library/src/scss/mixins/_spinner.scss @@ -5,11 +5,11 @@ box-sizing: border-box; position: absolute; top: 50%; - left: 50%; + inset-inline-start: 50%; width: #{$size}; height: #{$size}; margin-top: calc(-1 * #{$size} / 2); - margin-left: calc(-1 * #{$size} / 2); + margin-inline-start: calc(-1 * #{$size} / 2); border-radius: 50%; border: 2px solid $lineBgColor; border-top-color: $lineColor; diff --git a/v2-library/src/scss/mixins/_utilities.scss b/v2-library/src/scss/mixins/_utilities.scss index 519b39c7af..09e588b14b 100644 --- a/v2-library/src/scss/mixins/_utilities.scss +++ b/v2-library/src/scss/mixins/_utilities.scss @@ -1,7 +1,9 @@ +@use 'sass:map'; + // Utility generator // Used to generate utilities & print utilities @mixin generate-utility($utility, $infix, $is-rfs-media-query: false) { - $values: map-get($utility, values); + $values: map.get($utility, values); // If the values are a list or string, convert it into a map @if type-of($values) == "string" or type-of(nth($values, 1)) != "list" { @@ -9,7 +11,7 @@ } @each $key, $value in $values { - $properties: map-get($utility, property); + $properties: map.get($utility, property); // Multiple properties are possible, for example with vertical or horizontal margins or paddings @if type-of($properties) == "string" { @@ -17,7 +19,7 @@ } // Use custom class if present - $property-class: if(map-has-key($utility, class), map-get($utility, class), nth($properties, 1)); + $property-class: if(map.has-key($utility, class), map.get($utility, class), nth($properties, 1)); $property-class: if($property-class == null, "", $property-class); // is important @@ -25,29 +27,27 @@ $is-important: if($property-class == "tutor-fs" or $property-class == "tutor-fw" or $property-class == "tutor-m" or $property-class == "tutor-mx" or $property-class == "tutor-my" or $property-class == "tutor-mt" or $property-class == "tutor-mr" or $property-class == "tutor-mb" or $property-class == "tutor-ml" or $property-class == "tutor-p" or $property-class == "tutor-px" or $property-class == "tutor-py" or $property-class == "tutor-pt" or $property-class == "tutor-pr" or $property-class == "tutor-pb" or $property-class == "tutor-pl", false, $is-important); // State params to generate pseudo-classes - $state: if(map-has-key($utility, state), map-get($utility, state), ()); - + $state: if(map.has-key($utility, state), map.get($utility, state), ()); $infix: if($property-class == "" and str-slice($infix, 1, 1) == "-", str-slice($infix, 2), $infix); // Don't prefix if value key is null (eg. with shadow class) $property-class-modifier: if($key, if($property-class == "" and $infix == "", "", "-") + $key, ""); - @if map-get($utility, rfs) { + @if map.get($utility, rfs) { // Inside the media query @if $is-rfs-media-query { $val: rfs-value($value); // Do not render anything if fluid and non fluid values are the same $value: if($val == rfs-fluid-value($value), null, $val); - } - @else { + } @else { $value: rfs-fluid-value($value); } } - $is-css-var: map-get($utility, css-var); - $is-local-vars: map-get($utility, local-vars); - $is-rtl: map-get($utility, rtl); + $is-css-var: map.get($utility, css-var); + $is-local-vars: map.get($utility, local-vars); + $is-rtl: map.get($utility, rtl); @if $value != null { @if $is-rtl == false { @@ -72,6 +72,7 @@ --#{$variable-prefix}#{$local-var}: #{$value}; } } + #{$property}: $value if($is-important, !important, null); } } diff --git a/v2-library/src/scss/structure/_containers.scss b/v2-library/src/scss/structure/_containers.scss index bde47b67ba..070173891c 100644 --- a/v2-library/src/scss/structure/_containers.scss +++ b/v2-library/src/scss/structure/_containers.scss @@ -25,13 +25,13 @@ $extend-breakpoint: true; @each $name, $width in $grid-breakpoints { - @if ($extend-breakpoint) { + @if $extend-breakpoint { .tutor-container#{breakpoint-infix($name, $grid-breakpoints)} { @extend %responsive-container-#{$breakpoint}; } // Once the current breakpoint is reached, stop extending - @if ($breakpoint == $name) { + @if $breakpoint == $name { $extend-breakpoint: false; } } diff --git a/v2-library/src/scss/structure/_functions.scss b/v2-library/src/scss/structure/_functions.scss index 30539b3930..4b9dbb2e39 100644 --- a/v2-library/src/scss/structure/_functions.scss +++ b/v2-library/src/scss/structure/_functions.scss @@ -1,3 +1,5 @@ +@use 'sass:map'; + // Bootstrap functions // // Utility mixins and functions for evaluating source code across our variables, maps, and mixins. @@ -7,6 +9,7 @@ @mixin _assert-ascending($map, $map-name) { $prev-key: null; $prev-num: null; + @each $key, $num in $map { @if $prev-num == null or unit($num) == "%" or unit($prev-num) == "%" { // Do nothing @@ -15,6 +18,7 @@ } @else if $prev-num >= $num { @warn "Invalid value for #{$map-name}: This map must be in ascending order, but key '#{$key}' has value #{$num} which isn't greater than #{$prev-num}, the value of the previous key '#{$prev-key}' !"; } + $prev-key: $key; $prev-num: $num; } @@ -24,8 +28,9 @@ // Used to ensure the min-width of the lowest breakpoint starts at 0. @mixin _assert-starts-at-zero($map, $map-name: "$grid-breakpoints") { @if length($map) > 0 { - $values: map-values($map); + $values: map.values($map); $first-value: nth($values, 1); + @if $first-value != 0 { @warn "First breakpoint in #{$map-name} must start at 0, but starts at #{$first-value}."; } @@ -41,7 +46,9 @@ @function rgba-css-var($identifier, $target) { @if $identifier == "body" and $target == "bg" { @return rgba(var(--#{$variable-prefix}#{$identifier}-bg-rgb), var(--#{$variable-prefix}#{$target}-opacity)); - } @if $identifier == "body" and $target == "text" { + } + + @if $identifier == "body" and $target == "text" { @return rgba(var(--#{$variable-prefix}#{$identifier}-color-rgb), var(--#{$variable-prefix}#{$target}-opacity)); } @else { @return rgba(var(--#{$variable-prefix}#{$identifier}-rgb), var(--#{$variable-prefix}#{$target}-opacity)); @@ -54,11 +61,12 @@ @each $key, $value in $map { // allow to pass the $key and $value of the map as an function argument $_args: (); + @each $arg in $args { $_args: append($_args, if($arg == "$key", $key, if($arg == "$value", $value, $arg))); } - $_map: map-merge($_map, ($key: call(get-function($func), $_args...))); + $_map: map.merge($_map, ($key: call(get-function($func), $_args...))); } @return $_map; @@ -67,9 +75,11 @@ @function varify($list) { $result: null; + @each $entry in $list { $result: append($result, var(--#{$variable-prefix}#{$entry}), space); } + @return $result; } @@ -77,22 +87,26 @@ // It prefixes the keys with `n` and makes the value negative. @function negativify-map($map) { $result: (); + @each $key, $value in $map { @if $key != 0 { - $result: map-merge($result, ("n" + $key: (-$value))); + $result: map.merge($result, ("n" + $key: (-$value))); } } + @return $result; } // Get multiple keys from a sass map @function map-get-multiple($map, $values) { $result: (); + @each $key, $value in $map { - @if (index($values, $key) != null) { - $result: map-merge($result, ($key: $value)); + @if index($values, $key) != null { + $result: map.merge($result, ($key: $value)); } } + @return $result; } @@ -101,8 +115,9 @@ $merged-maps: (); @each $map in $maps { - $merged-maps: map-merge($merged-maps, $map); + $merged-maps: map.merge($merged-maps, $map); } + @return $merged-maps; } @@ -157,6 +172,7 @@ $_luminance-list: .0008 .001 .0011 .0013 .0015 .0017 .002 .0022 .0025 .0027 .003 @each $color in $foregrounds { $contrast-ratio: contrast-ratio($background, $color); + @if $contrast-ratio > $min-contrast-ratio { @return $color; } @else if $contrast-ratio > $max-ratio { @@ -166,7 +182,6 @@ $_luminance-list: .0008 .001 .0011 .0013 .0015 .0017 .002 .0022 .0025 .0027 .003 } @warn "Found no color leading to #{$min-contrast-ratio}:1 contrast ratio against #{$background}..."; - @return $max-ratio-color; } @@ -189,10 +204,10 @@ $_luminance-list: .0008 .001 .0011 .0013 .0015 .0017 .002 .0022 .0025 .0027 .003 @each $name, $value in $rgb { $value: if(divide($value, 255) < .03928, divide(divide($value, 255), 12.92), nth($_luminance-list, $value + 1)); - $rgb: map-merge($rgb, ($name: $value)); + $rgb: map.merge($rgb, ($name: $value)); } - @return (map-get($rgb, "r") * .2126) + (map-get($rgb, "g") * .7152) + (map-get($rgb, "b") * .0722); + @return (map.get($rgb, "r") * .2126) + (map.get($rgb, "g") * .7152) + (map.get($rgb, "b") * .0722); } // Return opaque color @@ -216,6 +231,7 @@ $_luminance-list: .0008 .001 .0011 .0013 .0015 .0017 .002 .0022 .0025 .0027 .003 @function shift-color($color, $weight) { @return if($weight > 0, shade-color($color, $weight), tint-color($color, -$weight)); } + // scss-docs-end color-functions // Return valid calc @@ -263,29 +279,37 @@ $_luminance-list: .0008 .001 .0011 .0013 .0015 .0017 .002 .0022 .0025 .0027 .003 $sign: if($dividend > 0 and $divisor > 0 or $dividend < 0 and $divisor < 0, 1, -1); $dividend: abs($dividend); $divisor: abs($divisor); + @if $dividend == 0 { @return 0; } + @if $divisor == 0 { @error "Cannot divide by 0"; } + $remainder: $dividend; $result: 0; $factor: 10; - @while ($remainder > 0 and $precision >= 0) { + + @while $remainder > 0 and $precision >= 0 { $quotient: 0; - @while ($remainder >= $divisor) { + + @while $remainder >= $divisor { $remainder: $remainder - $divisor; $quotient: $quotient + 1; } + $result: $result * 10 + $quotient; $factor: $factor * .1; $remainder: $remainder * 10; $precision: $precision - 1; - @if ($precision < 0 and $remainder >= $divisor * 5) { + + @if $precision < 0 and $remainder >= $divisor * 5 { $result: $result + 1; } } + $result: $result * $factor * $sign; $dividend-unit: unit($dividend); $divisor-unit: unit($divisor); @@ -295,8 +319,10 @@ $_luminance-list: .0008 .001 .0011 .0013 .0015 .0017 .002 .0022 .0025 .0027 .003 "em": 1em, "%": 1% ); - @if ($dividend-unit != $divisor-unit and map-has-key($unit-map, $dividend-unit)) { - $result: $result * map-get($unit-map, $dividend-unit); + + @if $dividend-unit != $divisor-unit and map.has-key($unit-map, $dividend-unit) { + $result: $result * map.get($unit-map, $dividend-unit); } + @return $result; } diff --git a/v2-library/src/scss/structure/_grid.scss b/v2-library/src/scss/structure/_grid.scss index 97f77c4777..e8b7702d9f 100644 --- a/v2-library/src/scss/structure/_grid.scss +++ b/v2-library/src/scss/structure/_grid.scss @@ -25,8 +25,7 @@ // grids .tutor-grid { display: grid; - grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); - grid-gap: 32px; + gap: 32px; grid-template-rows: min-content; grid-template-columns: repeat(1, 1fr); diff --git a/v2-library/src/scss/structure/_utilities.scss b/v2-library/src/scss/structure/_utilities.scss index 1f386a5711..0f9d24b9bc 100644 --- a/v2-library/src/scss/structure/_utilities.scss +++ b/v2-library/src/scss/structure/_utilities.scss @@ -1,12 +1,11 @@ +@use 'sass:map'; + // stylelint-disable indentation // Utilities -$left: if($is-rtl == true, right, left); -$right: if($is-rtl == true, left, right); - $utilities: () !default; // stylelint-disable-next-line scss/dollar-variable-default -$utilities: map-merge( +$utilities: map.merge( ( // scss-docs-start utils-vertical-align "align": ( @@ -21,8 +20,8 @@ $utilities: map-merge( property: float, class: tutor-float, values: ( - start: #{$left}, - end: #{$right}, + start: inline-start, + end: inline-end, none: none, ) ), @@ -58,12 +57,12 @@ $utilities: map-merge( values: static relative absolute fixed sticky ), "start": ( - property: #{$left}, + property: inset-inline-start, class: tutor-start, values: $position-values ), "end": ( - property: #{$right}, + property: inset-inline-end, class: tutor-end, values: $position-values ), @@ -249,43 +248,43 @@ $utilities: map-merge( responsive: true, property: margin, class: tutor-m, - values: map-merge($utility-spacers, (auto: auto)) + values: map.merge($utility-spacers, (auto: auto)) ), "margin-x": ( responsive: true, - property: margin-#{$right} margin-#{$left}, + property: margin-inline-start margin-inline-end, class: tutor-mx, - values: map-merge($utility-spacers, (auto: auto)) + values: map.merge($utility-spacers, (auto: auto)) ), "margin-y": ( responsive: true, property: margin-top margin-bottom, class: tutor-my, - values: map-merge($utility-spacers, (auto: auto)) + values: map.merge($utility-spacers, (auto: auto)) ), "margin-top": ( responsive: true, property: margin-top, class: tutor-mt, - values: map-merge($utility-spacers, (auto: auto)) + values: map.merge($utility-spacers, (auto: auto)) ), "margin-end": ( responsive: true, - property: margin-#{$right}, + property: margin-inline-end, class: tutor-mr, - values: map-merge($utility-spacers, (auto: auto)) + values: map.merge($utility-spacers, (auto: auto)) ), "margin-bottom": ( responsive: true, property: margin-bottom, class: tutor-mb, - values: map-merge($utility-spacers, (auto: auto)) + values: map.merge($utility-spacers, (auto: auto)) ), "margin-start": ( responsive: true, - property: margin-#{$left}, + property: margin-inline-start, class: tutor-ml, - values: map-merge($utility-spacers, (auto: auto)) + values: map.merge($utility-spacers, (auto: auto)) ), // Negative margin utilities @@ -297,7 +296,7 @@ $utilities: map-merge( ), "negative-margin-x": ( responsive: true, - property: margin-#{$right} margin-#{$left}, + property: margin-inline-start margin-inline-end, class: tutor-mx, values: $negative-utility-spacers ), @@ -315,7 +314,7 @@ $utilities: map-merge( ), "negative-margin-end": ( responsive: true, - property: margin-#{$right}, + property: margin-inline-end, class: tutor-mr, values: $negative-utility-spacers ), @@ -327,7 +326,7 @@ $utilities: map-merge( ), "negative-margin-start": ( responsive: true, - property: margin-#{$left}, + property: margin-inline-start, class: tutor-ml, values: $negative-utility-spacers ), @@ -341,7 +340,7 @@ $utilities: map-merge( ), "padding-x": ( responsive: true, - property: padding-#{$right} padding-#{$left}, + property: padding-inline-start padding-inline-end, class: tutor-px, values: $utility-spacers ), @@ -359,7 +358,7 @@ $utilities: map-merge( ), "padding-end": ( responsive: true, - property: padding-#{$right}, + property: padding-inline-end, class: tutor-pr, values: $utility-spacers ), @@ -371,7 +370,7 @@ $utilities: map-merge( ), "padding-start": ( responsive: true, - property: padding-#{$left}, + property: padding-inline-start, class: tutor-pl, values: $utility-spacers ), diff --git a/v2-library/src/scss/structure/_variables.scss b/v2-library/src/scss/structure/_variables.scss index bb84791f17..6fe6b79510 100644 --- a/v2-library/src/scss/structure/_variables.scss +++ b/v2-library/src/scss/structure/_variables.scss @@ -1,10 +1,9 @@ // Variables -$enable-negative-margins: true !default; -$enable-grid-classes: true !default; -$variable-prefix: tutor- !default; -$enable-important-utilities: false !default; - +$enable-negative-margins: true !default; +$enable-grid-classes: true !default; +$variable-prefix: tutor- !default; +$enable-important-utilities: false !default; $grid-breakpoints: ( xs: 0, sm: 576px, @@ -13,6 +12,7 @@ $grid-breakpoints: ( xl: 1200px, xxl: 1400px ) !default; + // scss-docs-end grid-breakpoints @include _assert-ascending($grid-breakpoints, "$grid-breakpoints"); @@ -31,6 +31,7 @@ $container-max-widths: ( xl: 1140px, xxl: 1320px ) !default; + // scss-docs-end container-max-widths @include _assert-ascending($container-max-widths, "$container-max-widths"); @@ -40,10 +41,9 @@ $container-max-widths: ( // // Set the number of columns and specify the width of the gutters. -$grid-columns: 12 !default; -$grid-gutter-width: 1.5rem !default; -$grid-row-columns: 6 !default; - +$grid-columns: 12 !default; +$grid-gutter-width: 1.5rem !default; +$grid-row-columns: 6 !default; $gutter: 1rem !default; $gutters: ( 0: 0, @@ -66,6 +66,7 @@ $position-values: ( 50: 50%, 100: 100% ) !default; + // scss-docs-end position-map // padding & margin spacer @@ -94,7 +95,6 @@ $utility-spacers: ( 76: $utility-spacer * 19, 80: $utility-spacer * 20, ) !default; - $negative-utility-spacers: negativify-map($utility-spacers); // scss-docs-start font-sizes @@ -109,4 +109,5 @@ $font-sizes: ( 8: 12px, 9: 10px ) !default; + // scss-docs-end font-sizes \ No newline at end of file diff --git a/v2-library/src/scss/structure/structure.scss b/v2-library/src/scss/structure/structure.scss index 66f4f795cc..e68f50d97a 100644 --- a/v2-library/src/scss/structure/structure.scss +++ b/v2-library/src/scss/structure/structure.scss @@ -2,18 +2,15 @@ $include-column-box-sizing: true !default; @import "functions"; @import "variables"; - @import "../mixins/breakpoints"; @import "../mixins/container"; @import "../mixins/grid"; @import "../mixins/utilities"; - @import "vendor/rfs"; - @import "containers"; @import "grid"; - @import "utilities"; + // Only use the utilities we need // stylelint-disable-next-line scss/dollar-variable-default $utilities: map-get-multiple( diff --git a/v2-library/src/scss/structure/vendor/rfs.scss b/v2-library/src/scss/structure/vendor/rfs.scss index 76e3be688e..22f05f5b23 100644 --- a/v2-library/src/scss/structure/vendor/rfs.scss +++ b/v2-library/src/scss/structure/vendor/rfs.scss @@ -1,3 +1,5 @@ +@use 'sass:map'; + // stylelint-disable property-blacklist, scss/dollar-variable-default // SCSS RFS mixin @@ -56,29 +58,37 @@ $rfs-base-value-unit: unit($rfs-base-value); $sign: if($dividend > 0 and $divisor > 0 or $dividend < 0 and $divisor < 0, 1, -1); $dividend: abs($dividend); $divisor: abs($divisor); + @if $dividend == 0 { @return 0; } + @if $divisor == 0 { @error "Cannot divide by 0"; } + $remainder: $dividend; $result: 0; $factor: 10; - @while ($remainder > 0 and $precision >= 0) { + + @while $remainder > 0 and $precision >= 0 { $quotient: 0; - @while ($remainder >= $divisor) { + + @while $remainder >= $divisor { $remainder: $remainder - $divisor; $quotient: $quotient + 1; } + $result: $result * 10 + $quotient; $factor: $factor * .1; $remainder: $remainder * 10; $precision: $precision - 1; - @if ($precision < 0 and $remainder >= $divisor * 5) { + + @if $precision < 0 and $remainder >= $divisor * 5 { $result: $result + 1; } } + $result: $result * $factor * $sign; $dividend-unit: unit($dividend); $divisor-unit: unit($divisor); @@ -88,17 +98,18 @@ $rfs-base-value-unit: unit($rfs-base-value); "em": 1em, "%": 1% ); - @if ($dividend-unit != $divisor-unit and map-has-key($unit-map, $dividend-unit)) { - $result: $result * map-get($unit-map, $dividend-unit); + + @if $dividend-unit != $divisor-unit and map.has-key($unit-map, $dividend-unit) { + $result: $result * map.get($unit-map, $dividend-unit); } + @return $result; } // Remove px-unit from $rfs-base-value for calculations @if $rfs-base-value-unit == px { $rfs-base-value: divide($rfs-base-value, $rfs-base-value * 0 + 1); -} -@else if $rfs-base-value-unit == rem { +} @else if $rfs-base-value-unit == rem { $rfs-base-value: divide($rfs-base-value, divide($rfs-base-value * 0 + 1, $rfs-rem-value)); } @@ -108,8 +119,7 @@ $rfs-breakpoint-unit-cache: unit($rfs-breakpoint); // Remove unit from $rfs-breakpoint for calculations @if $rfs-breakpoint-unit-cache == px { $rfs-breakpoint: divide($rfs-breakpoint, $rfs-breakpoint * 0 + 1); -} -@else if $rfs-breakpoint-unit-cache == rem or $rfs-breakpoint-unit-cache == "em" { +} @else if $rfs-breakpoint-unit-cache == rem or $rfs-breakpoint-unit-cache == "em" { $rfs-breakpoint: divide($rfs-breakpoint, divide($rfs-breakpoint * 0 + 1, $rfs-rem-value)); } @@ -125,14 +135,12 @@ $rfs-mq-property-height: if($rfs-mode == max-media-query, max-height, min-height @media (#{$rfs-mq-property-width}: #{$rfs-mq-value}), (#{$rfs-mq-property-height}: #{$rfs-mq-value}) { @content; } - } - @else { + } @else { @media (#{$rfs-mq-property-width}: #{$rfs-mq-value}) and (#{$rfs-mq-property-height}: #{$rfs-mq-value}) { @content; } } - } - @else { + } @else { @media (#{$rfs-mq-property-width}: #{$rfs-mq-value}) { @content; } @@ -148,21 +156,18 @@ $rfs-mq-property-height: if($rfs-mode == max-media-query, max-height, min-height &.disable-rfs { @content; } - } - @else if $rfs-class == enable and $rfs-mode == min-media-query { + } @else if $rfs-class == enable and $rfs-mode == min-media-query { .enable-rfs &, &.enable-rfs { @content; } - } - @else { + } @else { @content; } } // Internal mixin that adds enable classes to the selector if needed. @mixin _rfs-media-query-rule { - @if $rfs-class == enable { @if $rfs-mode == min-media-query { @content; @@ -174,14 +179,14 @@ $rfs-mq-property-height: if($rfs-mode == max-media-query, max-height, min-height @content; } } - } - @else { + } @else { @if $rfs-class == disable and $rfs-mode == min-media-query { .disable-rfs &, &.disable-rfs { @content; } } + @include _rfs-media-query { @content; } @@ -192,27 +197,23 @@ $rfs-mq-property-height: if($rfs-mode == max-media-query, max-height, min-height @function rfs-value($values) { // Convert to list $values: if(type-of($values) != list, ($values,), $values); - $val: ''; // Loop over each value and calculate value @each $value in $values { @if $value == 0 { $val: $val + ' 0'; - } - @else { + } @else { // Cache $value unit $unit: if(type-of($value) == "number", unit($value), false); @if $unit == px { // Convert to rem if needed $val: $val + ' ' + if($rfs-unit == rem, #{divide($value, $value * 0 + $rfs-rem-value)}rem, $value); - } - @else if $unit == rem { + } @else if $unit == rem { // Convert to px if needed $val: $val + ' ' + if($rfs-unit == px, #{divide($value, $value * 0 + 1) * $rfs-rem-value}px, $value); - } - @else { + } @else { // If $value isn't a number (like inherit) or $value has a unit (not px or rem, like 1.5em) or $ is 0, just print the value $val: $val + ' ' + $value; } @@ -227,33 +228,27 @@ $rfs-mq-property-height: if($rfs-mode == max-media-query, max-height, min-height @function rfs-fluid-value($values) { // Convert to list $values: if(type-of($values) != list, ($values,), $values); - $val: ''; // Loop over each value and calculate value @each $value in $values { @if $value == 0 { $val: $val + ' 0'; - } - - @else { + } @else { // Cache $value unit $unit: if(type-of($value) == "number", unit($value), false); // If $value isn't a number (like inherit) or $value has a unit (not px or rem, like 1.5em) or $ is 0, just print the value @if not $unit or $unit != px and $unit != rem { $val: $val + ' ' + $value; - } - - @else { + } @else { // Remove unit from $value for calculations $value: divide($value, $value * 0 + if($unit == px, 1, divide(1, $rfs-rem-value))); // Only add the media query if the value is greater than the minimum value @if abs($value) <= $rfs-base-value or not $enable-rfs { $val: $val + ' ' + if($rfs-unit == rem, #{divide($value, $rfs-rem-value)}rem, #{$value}px); - } - @else { + } @else { // Calculate the minimum value $value-min: $rfs-base-value + divide(abs($value) - $rfs-base-value, $rfs-factor); @@ -292,8 +287,7 @@ $rfs-mq-property-height: if($rfs-mode == max-media-query, max-height, min-height // Do not print the media query if responsive & non-responsive values are the same @if $val == $fluidVal { #{$property}: $val; - } - @else { + } @else { @include _rfs-rule { #{$property}: if($rfs-mode == max-media-query, $val, $fluidVal); @@ -351,4 +345,4 @@ $rfs-mq-property-height: if($rfs-mode == max-media-query, max-height, min-height @mixin margin-left($value) { @include rfs($value, margin-left); -} \ No newline at end of file +} diff --git a/v2-library/src/scss/utility/_api.scss b/v2-library/src/scss/utility/_api.scss index 62e1d398e3..fba196fa3e 100644 --- a/v2-library/src/scss/utility/_api.scss +++ b/v2-library/src/scss/utility/_api.scss @@ -1,6 +1,7 @@ -// Loop over each breakpoint -@each $breakpoint in map-keys($grid-breakpoints) { +@use 'sass:map'; +// Loop over each breakpoint +@each $breakpoint in map.keys($grid-breakpoints) { // Generate media query if needed @include media-breakpoint-up($breakpoint) { $infix: breakpoint-infix($breakpoint, $grid-breakpoints); @@ -9,7 +10,7 @@ @each $key, $utility in $utilities { // The utility can be disabled with `false`, thus check if the utility is a map first // Only proceed if responsive media queries are enabled or if it's the base media query - @if type-of($utility) == "map" and (map-get($utility, responsive) or $infix == "") { + @if type-of($utility) == "map" and (map.get($utility, responsive) or $infix == "") { @include generate-utility($utility, $infix); } } @@ -18,15 +19,15 @@ // RFS rescaling @media (min-width: $rfs-mq-value) { - @each $breakpoint in map-keys($grid-breakpoints) { + @each $breakpoint in map.keys($grid-breakpoints) { $infix: breakpoint-infix($breakpoint, $grid-breakpoints); - @if (map-get($grid-breakpoints, $breakpoint) < $rfs-breakpoint) { + @if map.get($grid-breakpoints, $breakpoint) < $rfs-breakpoint { // Loop over each utility property @each $key, $utility in $utilities { // The utility can be disabled with `false`, thus check if the utility is a map first // Only proceed if responsive media queries are enabled or if it's the base media query - @if type-of($utility) == "map" and map-get($utility, rfs) and (map-get($utility, responsive) or $infix == "") { + @if type-of($utility) == "map" and map.get($utility, rfs) and (map.get($utility, responsive) or $infix == "") { @include generate-utility($utility, $infix, true); } } @@ -40,7 +41,7 @@ @each $key, $utility in $utilities { // The utility can be disabled with `false`, thus check if the utility is a map first // Then check if the utility needs print styles - @if type-of($utility) == "map" and map-get($utility, print) == true { + @if type-of($utility) == "map" and map.get($utility, print) == true { @include generate-utility($utility, "-print"); } } diff --git a/v2-library/src/scss/utility/_colors.scss b/v2-library/src/scss/utility/_colors.scss index 91e57e41a1..78b70300c7 100644 --- a/v2-library/src/scss/utility/_colors.scss +++ b/v2-library/src/scss/utility/_colors.scss @@ -1,4 +1,4 @@ -@import './variables.scss'; +@import './variables'; :root { // --tutor-disabled-bg: #{$disabled-bg}; diff --git a/v2-library/src/scss/utility/_typography.scss b/v2-library/src/scss/utility/_typography.scss index 0e99f7239e..3125245d7b 100644 --- a/v2-library/src/scss/utility/_typography.scss +++ b/v2-library/src/scss/utility/_typography.scss @@ -1,5 +1,5 @@ // Tutor typography classes -//Typography utlity .text-#{$variable}{...} +// Typography utlity .text-#{$variable}{...} $typographyUtils: ( 'regular-body' 400 16px 162%, 'regular-caption' 400 15px 160%, diff --git a/v2-library/src/scss/utility/_variables.scss b/v2-library/src/scss/utility/_variables.scss index d7d1f25538..08e0aade2f 100644 --- a/v2-library/src/scss/utility/_variables.scss +++ b/v2-library/src/scss/utility/_variables.scss @@ -1,25 +1,25 @@ // Shadows -$shadow-1: 0px 8px 16px rgba(41, 45, 47, 0.08); -$shadow-3: 0px 6px 20px rgba(28, 49, 104, 0.1); +$shadow-1: 0px 8px 16px rgb(41 45 47 / 8%); +$shadow-3: 0px 6px 20px rgb(28 49 104 / 10%); // Colors -$color-white: #ffffff !default; -$color-primary: var(--tutor-color-primary) !default; -$color-success: #24A148 !default; -$color-success-rgb: 36, 161, 72 !default; -$color-warning: #ED9700 !default; -$color-warning-rgb: 237, 151, 0 !default; -$color-danger: #F44337 !default; -$color-danger-rgb: 244, 67, 55 !default; -$color-secondary: #41454F !default; -$color-subdued: #5B616F !default; -$color-hints: #767C8E !default; +$color-white: #fff !default; +$color-primary: var(--tutor-color-primary) !default; +$color-success: #24A148 !default; +$color-success-rgb: 36, 161, 72 !default; +$color-warning: #ED9700 !default; +$color-warning-rgb: 237, 151, 0 !default; +$color-danger: #F44337 !default; +$color-danger-rgb: 244, 67, 55 !default; +$color-secondary: #41454F !default; +$color-subdued: #5B616F !default; +$color-hints: #767C8E !default; // extra color $color-muted: #757c8e; $color-light-gray: #cdcfd5; -$color-gray-2: #FCFCFD; -$color-gray-5: #EFF1F6; +$color-gray-2: #FCFCFD; +$color-gray-5: #EFF1F6; $color-gray-10: #eff1f6; $color-gray-20: #e3e5eb; $border-color-secondary: #E0E2EA; \ No newline at end of file diff --git a/v2-library/tutor-icon/tutor-icon.scss b/v2-library/tutor-icon/tutor-icon.scss index 3616d9e133..5e544bc590 100644 --- a/v2-library/tutor-icon/tutor-icon.scss +++ b/v2-library/tutor-icon/tutor-icon.scss @@ -1,5 +1,5 @@ @font-face { - font-family: 'tutor'; + font-family: tutor; src: url('./fonts/tutor.woff') format('woff'); font-weight: normal; font-style: normal; @@ -7,7 +7,7 @@ } @font-face { - font-family: 'tutor'; + font-family: tutor; src: url('./fonts/tutor-v2.woff') format('woff'); font-weight: normal; font-style: normal; @@ -17,7 +17,7 @@ [class^='tutor-icon-'], [class*=' tutor-icon-'] { /* use !important to prevent issues with browser extensions that change fonts */ - font-family: 'tutor' !important; + font-family: tutor !important; speak: never; font-style: normal; font-weight: normal; @@ -32,1380 +32,1380 @@ /* tutor v2 new icons */ -.tutor-icon-lesson:before { +.tutor-icon-lesson::before { content: "\e019"; } -.tutor-icon-privacy:before { +.tutor-icon-privacy::before { content: '\e100'; } -.tutor-icon-laptop:before { +.tutor-icon-laptop::before { content: '\e101'; } -.tutor-icon-desktop:before { +.tutor-icon-desktop::before { content: '\e102'; } -.tutor-icon-tablet:before { +.tutor-icon-tablet::before { content: '\e103'; } -.tutor-icon-mobile:before { +.tutor-icon-mobile::before { content: '\e104'; } -.tutor-icon-map-pin:before { +.tutor-icon-map-pin::before { content: '\e105'; } -.tutor-icon-api:before { +.tutor-icon-api::before { content: '\e106'; } -.tutor-icon-align-center:before { +.tutor-icon-align-center::before { content: '\e107'; } -.tutor-icon-align-justify:before { +.tutor-icon-align-justify::before { content: '\e108'; } -.tutor-icon-align-left:before { +.tutor-icon-align-left::before { content: '\e109'; } -.tutor-icon-align-right:before { +.tutor-icon-align-right::before { content: '\e110'; } -.tutor-icon-receipt-percent:before { +.tutor-icon-receipt-percent::before { content: '\e111'; } -.tutor-icon-credit-card:before { +.tutor-icon-credit-card::before { content: '\e112'; } -.tutor-icon-change:before { +.tutor-icon-change::before { content: '\e113'; } -.tutor-icon-tag:before { +.tutor-icon-tag::before { content: '\e114'; } -.tutor-icon-subscription:before { +.tutor-icon-subscription::before { content: '\e115'; } -.tutor-icon-mark-light:before { +.tutor-icon-mark-light::before { content: '\e116'; } -.tutor-icon-brand-x-twitter:before { +.tutor-icon-brand-x-twitter::before { content: '\e117'; } -.tutor-icon-book-open-line:before { +.tutor-icon-book-open-line::before { content: '\e118'; } -.tutor-icon-sorting-desc:before { +.tutor-icon-sorting-desc::before { content: '\e119'; } -.tutor-icon-sorting-asc:before { +.tutor-icon-sorting-asc::before { content: '\e120'; } -.tutor-icon-note:before { +.tutor-icon-note::before { content: '\e121'; } -.tutor-icon-add-document:before { +.tutor-icon-add-document::before { content: '\e122'; } -.tutor-icon-topic:before { +.tutor-icon-topic::before { content: '\e123'; } -.tutor-icon-quiz-2:before { +.tutor-icon-quiz-2::before { content: '\e124'; } -.tutor-icon-bundle:before { +.tutor-icon-bundle::before { content: '\e125'; } -.tutor-icon-plus-light:before { +.tutor-icon-plus-light::before { content: '\e126'; } -.tutor-icon-settings-log:before { +.tutor-icon-settings-log::before { content: '\e127'; } -.tutor-icon-key:before { +.tutor-icon-key::before { content: '\e128'; } /* tutor old fonts */ -.tutor-icon-brand-buddypress:before { +.tutor-icon-brand-buddypress::before { content: '\e9e0'; } -.tutor-icon-brand-google-meet:before { +.tutor-icon-brand-google-meet::before { content: '\ea38'; } -.tutor-icon-brand-google-calendar:before { +.tutor-icon-brand-google-calendar::before { content: '\ea39'; } -.tutor-icon-ban:before { +.tutor-icon-ban::before { content: '\ea3b'; } -.tutor-icon-brand-woocommerce:before { +.tutor-icon-brand-woocommerce::before { content: '\ea3c'; } -.tutor-icon-kebab-menu:before { +.tutor-icon-kebab-menu::before { content: '\e900'; } -.tutor-icon-add:before { +.tutor-icon-add::before { content: '\e901'; } -.tutor-icon-add-photo:before { +.tutor-icon-add-photo::before { content: '\e902'; } -.tutor-icon-file-artboard:before { +.tutor-icon-file-artboard::before { content: '\e903'; } -.tutor-icon-calender:before { +.tutor-icon-calender::before { content: '\e904'; } -.tutor-icon-circle-mark:before { +.tutor-icon-circle-mark::before { content: '\e905'; } -.tutor-icon-certificate-portrait:before { +.tutor-icon-certificate-portrait::before { content: '\e906'; } -.tutor-icon-brand-zoom:before { +.tutor-icon-brand-zoom::before { content: '\e907'; } -.tutor-icon-clipboard:before { +.tutor-icon-clipboard::before { content: '\e908'; } -.tutor-icon-code:before { +.tutor-icon-code::before { content: '\e909'; } -.tutor-icon-conversation:before { +.tutor-icon-conversation::before { content: '\e90a'; } -.tutor-icon-trophy-o:before { +.tutor-icon-trophy-o::before { content: '\e90b'; } -.tutor-icon-file-blank-page:before { +.tutor-icon-file-blank-page::before { content: '\e90c'; } -.tutor-icon-download:before { +.tutor-icon-download::before { content: '\e90d'; } -.tutor-icon-drag:before { +.tutor-icon-drag::before { content: '\e90e'; } -.tutor-icon-emoji:before { +.tutor-icon-emoji::before { content: '\e90f'; } -.tutor-icon-file-import:before { +.tutor-icon-file-import::before { content: '\e910'; } -.tutor-icon-gallery:before { +.tutor-icon-gallery::before { content: '\e911'; } -.tutor-icon-trash-can:before { +.tutor-icon-trash-can::before { content: '\e912'; } -.tutor-icon-spectacles:before { +.tutor-icon-spectacles::before { content: '\e913'; } -.tutor-icon-graduate-student:before { +.tutor-icon-graduate-student::before { content: '\e914'; } -.tutor-icon-grid-o:before { +.tutor-icon-grid-o::before { content: '\e915'; } -.tutor-icon-user-group:before { +.tutor-icon-user-group::before { content: '\e916'; } -.tutor-icon-home-o:before { +.tutor-icon-home-o::before { content: '\e917'; } -.tutor-icon-down:before { +.tutor-icon-down::before { content: '\e918'; } -.tutor-icon-left:before { +.tutor-icon-left::before { content: '\e919'; } -.tutor-icon-right:before { +.tutor-icon-right::before { content: '\e91a'; } -.tutor-icon-up:before { +.tutor-icon-up::before { content: '\e91b'; } -.tutor-icon-interactive:before { +.tutor-icon-interactive::before { content: '\e91c'; } -.tutor-icon-level:before { +.tutor-icon-level::before { content: '\e91d'; } -.tutor-icon-times:before { +.tutor-icon-times::before { content: '\e91e'; } -.tutor-icon-magnifying-glass:before { +.tutor-icon-magnifying-glass::before { content: '\e91f'; } -.tutor-icon-hamburger-o:before { +.tutor-icon-hamburger-o::before { content: '\e920'; } -.tutor-icon-mortarboard-o:before { +.tutor-icon-mortarboard-o::before { content: '\e921'; } -.tutor-icon-next:before { +.tutor-icon-next::before { content: '\e922'; } -.tutor-icon-badge-percent:before { +.tutor-icon-badge-percent::before { content: '\e923'; } -.tutor-icon-book-open-o:before { +.tutor-icon-book-open-o::before { content: '\e924'; } -.tutor-icon-pencil:before { +.tutor-icon-pencil::before { content: '\e925'; } -.tutor-icon-previous:before { +.tutor-icon-previous::before { content: '\e926'; } -.tutor-icon-user-professor:before { +.tutor-icon-user-professor::before { content: '\e927'; } -.tutor-icon-qa:before { +.tutor-icon-qa::before { content: '\e928'; } -.tutor-icon-receipt-line:before { +.tutor-icon-receipt-line::before { content: '\e929'; } -.tutor-icon-refund-o:before { +.tutor-icon-refund-o::before { content: '\e92a'; } -.tutor-icon-page-review:before { +.tutor-icon-page-review::before { content: '\e92b'; } -.tutor-icon-save-line:before { +.tutor-icon-save-line::before { content: '\e92c'; } -.tutor-icon-page-search:before { +.tutor-icon-page-search::before { content: '\e92d'; } -.tutor-icon-share-nodes:before { +.tutor-icon-share-nodes::before { content: '\e92e'; } -.tutor-icon-spinner:before { +.tutor-icon-spinner::before { content: '\e92f'; } -.tutor-icon-mortarboard:before { +.tutor-icon-mortarboard::before { content: '\e930'; } -.tutor-icon-user-student:before { +.tutor-icon-user-student::before { content: '\e931'; } -.tutor-icon-badge-percent-o:before { +.tutor-icon-badge-percent-o::before { content: '\e932'; } -.tutor-icon-money-bag:before { +.tutor-icon-money-bag::before { content: '\e933'; } -.tutor-icon-badge-star:before { +.tutor-icon-badge-star::before { content: '\e934'; } -.tutor-icon-update:before { +.tutor-icon-update::before { content: '\e935'; } -.tutor-icon-upload-file:before { +.tutor-icon-upload-file::before { content: '\e936'; } -.tutor-icon-upload-o:before { +.tutor-icon-upload-o::before { content: '\e937'; } -.tutor-icon-upload:before { +.tutor-icon-upload::before { content: '\e938'; } -.tutor-icon-add-group:before { +.tutor-icon-add-group::before { content: '\e939'; } -.tutor-icon-add-image:before { +.tutor-icon-add-image::before { content: '\e93a'; } -.tutor-icon-add-member:before { +.tutor-icon-add-member::before { content: '\e93b'; } -.tutor-icon-angle-double-left:before { +.tutor-icon-angle-double-left::before { content: '\e93c'; } -.tutor-icon-angle-double-right:before { +.tutor-icon-angle-double-right::before { content: '\e93d'; } -.tutor-icon-angle-down:before { +.tutor-icon-angle-down::before { content: '\e93e'; } -.tutor-icon-angle-left:before { +.tutor-icon-angle-left::before { content: '\e93f'; } -.tutor-icon-angle-right:before { +.tutor-icon-angle-right::before { content: '\e940'; } -.tutor-icon-angle-up:before { +.tutor-icon-angle-up::before { content: '\e941'; } -.tutor-icon-ruler:before { +.tutor-icon-ruler::before { content: '\e942'; } -.tutor-icon-assignment:before { +.tutor-icon-assignment::before { content: '\e943'; } -.tutor-icon-paperclip:before { +.tutor-icon-paperclip::before { content: '\e944'; } -.tutor-icon-volume:before { +.tutor-icon-volume::before { content: '\e945'; } -.tutor-icon-authorized:before { +.tutor-icon-authorized::before { content: '\e946'; } -.tutor-icon-trophy:before { +.tutor-icon-trophy::before { content: '\e947'; } -.tutor-icon-background:before { +.tutor-icon-background::before { content: '\e948'; } -.tutor-icon-book-open:before { +.tutor-icon-book-open::before { content: '\e949'; } -.tutor-icon-book:before { +.tutor-icon-book::before { content: '\e94a'; } -.tutor-icon-box-open:before { +.tutor-icon-box-open::before { content: '\e94b'; } -.tutor-icon-browser:before { +.tutor-icon-browser::before { content: '\e94c'; } -.tutor-icon-bullet-point:before { +.tutor-icon-bullet-point::before { content: '\e94d'; } -.tutor-icon-calender-bold:before { +.tutor-icon-calender-bold::before { content: '\e94e'; } -.tutor-icon-calender-line:before { +.tutor-icon-calender-line::before { content: '\e94f'; } -.tutor-icon-camera:before { +.tutor-icon-camera::before { content: '\e950'; } -.tutor-icon-cart-bold:before { +.tutor-icon-cart-bold::before { content: '\e951'; } -.tutor-icon-cart-line:before { +.tutor-icon-cart-line::before { content: '\e952'; } -.tutor-icon-ribbon:before { +.tutor-icon-ribbon::before { content: '\e953'; } -.tutor-icon-certificate-landscape:before { +.tutor-icon-certificate-landscape::before { content: '\e954'; } -.tutor-icon-slider-horizontal:before { +.tutor-icon-slider-horizontal::before { content: '\e955'; } -.tutor-icon-chart-pie:before { +.tutor-icon-chart-pie::before { content: '\e956'; } -.tutor-icon-circle-info:before { +.tutor-icon-circle-info::before { content: '\e957'; } -.tutor-icon-clock-bold:before { +.tutor-icon-clock-bold::before { content: '\e958'; } -.tutor-icon-clock-line:before { +.tutor-icon-clock-line::before { content: '\e959'; } -.tutor-icon-coding:before { +.tutor-icon-coding::before { content: '\e95a'; } -.tutor-icon-coins:before { +.tutor-icon-coins::before { content: '\e95b'; } -.tutor-icon-mortarboard-o:before { +.tutor-icon-mortarboard-o::before { content: '\e95c'; } -.tutor-icon-comment:before { +.tutor-icon-comment::before { content: '\e95d'; } -.tutor-icon-buildings:before { +.tutor-icon-buildings::before { content: '\e95e'; } -.tutor-icon-clock-line-o:before { +.tutor-icon-clock-line-o::before { content: '\e95f'; } -.tutor-icon-copy:before { +.tutor-icon-copy::before { content: '\e960'; } -.tutor-icon-export:before { +.tutor-icon-export::before { content: '\e961'; } -.tutor-icon-import:before { +.tutor-icon-import::before { content: '\e962'; } -.tutor-icon-brand-learndash:before { +.tutor-icon-brand-learndash::before { content: '\e963'; } -.tutor-icon-brand-learnpress:before { +.tutor-icon-brand-learnpress::before { content: '\e964'; } -.tutor-icon-circle-times-line:before { +.tutor-icon-circle-times-line::before { content: '\e965'; } -.tutor-icon-circle-times-bold:before { +.tutor-icon-circle-times-bold::before { content: '\e966'; } -.tutor-icon-times-o:before { +.tutor-icon-times-o::before { content: '\e967'; } -.tutor-icon-crown:before { +.tutor-icon-crown::before { content: '\e968'; } -.tutor-icon-slider-vertical:before { +.tutor-icon-slider-vertical::before { content: '\e969'; } -.tutor-icon-dashboard:before { +.tutor-icon-dashboard::before { content: '\e96a'; } -.tutor-icon-trash-can-bold:before { +.tutor-icon-trash-can-bold::before { content: '\e96b'; } -.tutor-icon-trash-can-line:before { +.tutor-icon-trash-can-line::before { content: '\e96c'; } -.tutor-icon-color-palette:before { +.tutor-icon-color-palette::before { content: '\e96d'; } -.tutor-icon-external-link:before { +.tutor-icon-external-link::before { content: '\e96e'; } -.tutor-icon-badge-discount:before { +.tutor-icon-badge-discount::before { content: '\e96f'; } -.tutor-icon-badge-dollar:before { +.tutor-icon-badge-dollar::before { content: '\e970'; } -.tutor-icon-text-add:before { +.tutor-icon-text-add::before { content: '\e971'; } -.tutor-icon-document-text:before { +.tutor-icon-document-text::before { content: '\e972'; } -.tutor-icon-dollar-slot:before { +.tutor-icon-dollar-slot::before { content: '\e973'; } -.tutor-icon-door-open:before { +.tutor-icon-door-open::before { content: '\e974'; } -.tutor-icon-caret-up:before { +.tutor-icon-caret-up::before { content: '\e975'; } -.tutor-icon-download-bold:before { +.tutor-icon-download-bold::before { content: '\e976'; } -.tutor-icon-sort:before { +.tutor-icon-sort::before { content: '\e977'; } -.tutor-icon-drop:before { +.tutor-icon-drop::before { content: '\e978'; } -.tutor-icon-hourglass-o:before { +.tutor-icon-hourglass-o::before { content: '\e979'; } -.tutor-icon-earth:before { +.tutor-icon-earth::before { content: '\e97a'; } -.tutor-icon-pencil-o:before { +.tutor-icon-pencil-o::before { content: '\e97b'; } -.tutor-icon-edit:before { +.tutor-icon-edit::before { content: '\e97c'; } -.tutor-icon-edit-o:before { +.tutor-icon-edit-o::before { content: '\e97d'; } -.tutor-icon-edit-square:before { +.tutor-icon-edit-square::before { content: '\e97e'; } -.tutor-icon-open-book-o:before { +.tutor-icon-open-book-o::before { content: '\e97f'; } -.tutor-icon-envelope:before { +.tutor-icon-envelope::before { content: '\e980'; } -.tutor-icon-time-expired:before { +.tutor-icon-time-expired::before { content: '\e981'; } -.tutor-icon-eye-bold:before { +.tutor-icon-eye-bold::before { content: '\e982'; } -.tutor-icon-eye-line:before { +.tutor-icon-eye-line::before { content: '\e983'; } -.tutor-icon-bookmark-bold:before { +.tutor-icon-bookmark-bold::before { content: '\e984'; } -.tutor-icon-bookmark-line:before { +.tutor-icon-bookmark-line::before { content: '\e985'; } -.tutor-icon-hourglass:before { +.tutor-icon-hourglass::before { content: '\e986'; } -.tutor-icon-filter-dollar:before { +.tutor-icon-filter-dollar::before { content: '\e987'; } -.tutor-icon-filter:before { +.tutor-icon-filter::before { content: '\e988'; } -.tutor-icon-folder:before { +.tutor-icon-folder::before { content: '\e989'; } -.tutor-icon-grade:before { +.tutor-icon-grade::before { content: '\e98a'; } -.tutor-icon-grade-book:before { +.tutor-icon-grade-book::before { content: '\e98b'; } -.tutor-icon-grid-bold:before { +.tutor-icon-grid-bold::before { content: '\e98c'; } -.tutor-icon-grid-line:before { +.tutor-icon-grid-line::before { content: '\e98d'; } -.tutor-icon-hand-holding-dollar:before { +.tutor-icon-hand-holding-dollar::before { content: '\e98e'; } -.tutor-icon-heart-bold:before { +.tutor-icon-heart-bold::before { content: '\e98f'; } -.tutor-icon-home:before { +.tutor-icon-home::before { content: '\e990'; } -.tutor-icon-hamburger-menu:before { +.tutor-icon-hamburger-menu::before { content: '\e991'; } -.tutor-icon-light-bulb:before { +.tutor-icon-light-bulb::before { content: '\e992'; } -.tutor-icon-image-landscape:before { +.tutor-icon-image-landscape::before { content: '\e993'; } -.tutor-icon-images:before { +.tutor-icon-images::before { content: '\e994'; } -.tutor-icon-image-portrait:before { +.tutor-icon-image-portrait::before { content: '\e995'; } -.tutor-icon-add-image-o:before { +.tutor-icon-add-image-o::before { content: '\e996'; } -.tutor-icon-import-export:before { +.tutor-icon-import-export::before { content: '\e997'; } -.tutor-icon-import-o:before { +.tutor-icon-import-o::before { content: '\e998'; } -.tutor-icon-flag:before { +.tutor-icon-flag::before { content: '\e999'; } -.tutor-icon-circle-info-o:before { +.tutor-icon-circle-info-o::before { content: '\e99a'; } -.tutor-icon-ribbon-o:before { +.tutor-icon-ribbon-o::before { content: '\e99b'; } -.tutor-icon-instructor:before { +.tutor-icon-instructor::before { content: '\e99c'; } -.tutor-icon-copy-text:before { +.tutor-icon-copy-text::before { content: '\e99d'; } -.tutor-icon-eye-slash-line:before { +.tutor-icon-eye-slash-line::before { content: '\e99e'; } -.tutor-icon-certificate-landscape-o:before { +.tutor-icon-certificate-landscape-o::before { content: '\e99f'; } -.tutor-icon-layer:before { +.tutor-icon-layer::before { content: '\e9a0'; } -.tutor-icon-link:before { +.tutor-icon-link::before { content: '\e9a1'; } -.tutor-icon-clipboard-list:before { +.tutor-icon-clipboard-list::before { content: '\e9a2'; } -.tutor-icon-lock-bold:before { +.tutor-icon-lock-bold::before { content: '\e9a3'; } -.tutor-icon-lock-line:before { +.tutor-icon-lock-line::before { content: '\e9a4'; } -.tutor-icon-user-bold:before { +.tutor-icon-user-bold::before { content: '\e9a5'; } -.tutor-icon-manual:before { +.tutor-icon-manual::before { content: '\e9a6'; } -.tutor-icon-circle-mark-o:before { +.tutor-icon-circle-mark-o::before { content: '\e9a7'; } -.tutor-icon-mark:before { +.tutor-icon-mark::before { content: '\e9a8'; } -.tutor-icon-mark-unread:before { +.tutor-icon-mark-unread::before { content: '\e9a9'; } -.tutor-icon-file-star:before { +.tutor-icon-file-star::before { content: '\e9aa'; } -.tutor-icon-file-text:before { +.tutor-icon-file-text::before { content: '\e9ab'; } -.tutor-icon-arrow-right-left:before { +.tutor-icon-arrow-right-left::before { content: '\e9ac'; } -.tutor-icon-media-manager:before { +.tutor-icon-media-manager::before { content: '\e9ad'; } -.tutor-icon-meeting:before { +.tutor-icon-meeting::before { content: '\e9ae'; } -.tutor-icon-microphone:before { +.tutor-icon-microphone::before { content: '\e9af'; } -.tutor-icon-minus:before { +.tutor-icon-minus::before { content: '\e9b0'; } -.tutor-icon-minus-o:before { +.tutor-icon-minus-o::before { content: '\e9b1'; } -.tutor-icon-refund:before { +.tutor-icon-refund::before { content: '\e9b2'; } -.tutor-icon-move:before { +.tutor-icon-move::before { content: '\e9b3'; } -.tutor-icon-slider-h:before { +.tutor-icon-slider-h::before { content: '\e9b4'; } -.tutor-icon-slider-v:before { +.tutor-icon-slider-v::before { content: '\e9b5'; } -.tutor-icon-archive:before { +.tutor-icon-archive::before { content: '\e9b6'; } -.tutor-icon-important-bold:before { +.tutor-icon-important-bold::before { content: '\e9b7'; } -.tutor-icon-important-line:before { +.tutor-icon-important-line::before { content: '\e9b8'; } -.tutor-icon-open-envelope:before { +.tutor-icon-open-envelope::before { content: '\e9b9'; } -.tutor-icon-message-unread:before { +.tutor-icon-message-unread::before { content: '\e9ba'; } -.tutor-icon-double-mark:before { +.tutor-icon-double-mark::before { content: '\e9bb'; } -.tutor-icon-bell-bold:before { +.tutor-icon-bell-bold::before { content: '\e9bc'; } -.tutor-icon-bell-line:before { +.tutor-icon-bell-line::before { content: '\e9bd'; } -.tutor-icon-text-width:before { +.tutor-icon-text-width::before { content: '\e9be'; } -.tutor-icon-order-down:before { +.tutor-icon-order-down::before { content: '\e9bf'; } -.tutor-icon-order-up:before { +.tutor-icon-order-up::before { content: '\e9c0'; } -.tutor-icon-ordering-a-z:before { +.tutor-icon-ordering-a-z::before { content: '\e9c1'; } -.tutor-icon-ordering-z-a:before { +.tutor-icon-ordering-z-a::before { content: '\e9c2'; } -.tutor-icon-paste:before { +.tutor-icon-paste::before { content: '\e9c3'; } -.tutor-icon-play-line:before { +.tutor-icon-play-line::before { content: '\e9c4'; } -.tutor-icon-plus-o:before { +.tutor-icon-plus-o::before { content: '\e9c5'; } -.tutor-icon-plus:before { +.tutor-icon-plus::before { content: '\e9c6'; } -.tutor-icon-plus-square:before { +.tutor-icon-plus-square::before { content: '\e9c7'; } -.tutor-icon-eye-slash-bold:before { +.tutor-icon-eye-slash-bold::before { content: '\e9c8'; } -.tutor-icon-print:before { +.tutor-icon-print::before { content: '\e9c9'; } -.tutor-icon-purchase-mark:before { +.tutor-icon-purchase-mark::before { content: '\e9ca'; } -.tutor-icon-puzzle:before { +.tutor-icon-puzzle::before { content: '\e9cb'; } -.tutor-icon-qr-code:before { +.tutor-icon-qr-code::before { content: '\e9cc'; } -.tutor-icon-question:before { +.tutor-icon-question::before { content: '\e9cd'; } -.tutor-icon-circle-question-mark:before { +.tutor-icon-circle-question-mark::before { content: '\e9ce'; } -.tutor-icon-quiz:before { +.tutor-icon-quiz::before { content: '\e9cf'; } -.tutor-icon-quiz-attempt:before { +.tutor-icon-quiz-attempt::before { content: '\e9d0'; } -.tutor-icon-quiz-o:before { +.tutor-icon-quiz-o::before { content: '\e9d1'; } -.tutor-icon-receipt-bold:before { +.tutor-icon-receipt-bold::before { content: '\e9d2'; } -.tutor-icon-redo:before { +.tutor-icon-redo::before { content: '\e9d3'; } -.tutor-icon-refresh:before { +.tutor-icon-refresh::before { content: '\e9d4'; } -.tutor-icon-refresh-o:before { +.tutor-icon-refresh-o::before { content: '\e9d5'; } -.tutor-icon-report-time:before { +.tutor-icon-report-time::before { content: '\e9d6'; } -.tutor-icon-save-bold:before { +.tutor-icon-save-bold::before { content: '\e9d7'; } -.tutor-icon-search:before { +.tutor-icon-search::before { content: '\e9d8'; } -.tutor-icon-paper-plane:before { +.tutor-icon-paper-plane::before { content: '\e9d9'; } -.tutor-icon-gear:before { +.tutor-icon-gear::before { content: '\e9da'; } -.tutor-icon-shape:before { +.tutor-icon-shape::before { content: '\e9db'; } -.tutor-icon-share:before { +.tutor-icon-share::before { content: '\e9dc'; } -.tutor-icon-minimize:before { +.tutor-icon-minimize::before { content: '\e9dd'; } -.tutor-icon-shorting-bullet:before { +.tutor-icon-shorting-bullet::before { content: '\e9de'; } -.tutor-icon-circle-notch:before { +.tutor-icon-circle-notch::before { content: '\e9df'; } -.tutor-icon-signout:before { +.tutor-icon-signout::before { content: '\e9e1'; } -.tutor-icon-rocket:before { +.tutor-icon-rocket::before { content: '\e9e2'; } -.tutor-icon-bullhorn:before { +.tutor-icon-bullhorn::before { content: '\e9e3'; } -.tutor-icon-star-bold:before { +.tutor-icon-star-bold::before { content: '\e9e4'; } -.tutor-icon-star-half-bold:before { +.tutor-icon-star-half-bold::before { content: '\e9e5'; } -.tutor-icon-star-line:before { +.tutor-icon-star-line::before { content: '\e9e6'; } -.tutor-icon-stopwatch:before { +.tutor-icon-stopwatch::before { content: '\e9e7'; } -.tutor-icon-brush:before { +.tutor-icon-brush::before { content: '\e9e8'; } -.tutor-icon-circle-mark-line:before { +.tutor-icon-circle-mark-line::before { content: '\e9e9'; } -.tutor-icon-undo:before { +.tutor-icon-undo::before { content: '\e9ea'; } -.tutor-icon-university:before { +.tutor-icon-university::before { content: '\e9eb'; } -.tutor-icon-unlock-line:before { +.tutor-icon-unlock-line::before { content: '\e9ec'; } -.tutor-icon-caret-down:before { +.tutor-icon-caret-down::before { content: '\e9ed'; } -.tutor-icon-user-line:before { +.tutor-icon-user-line::before { content: '\e9ee'; } -.tutor-icon-user-graduate:before { +.tutor-icon-user-graduate::before { content: '\e9ef'; } -.tutor-icon-verify-id:before { +.tutor-icon-verify-id::before { content: '\e9f0'; } -.tutor-icon-video-camera:before { +.tutor-icon-video-camera::before { content: '\e9f1'; } -.tutor-icon-video-camera-o:before { +.tutor-icon-video-camera-o::before { content: '\e9f2'; } -.tutor-icon-wallet:before { +.tutor-icon-wallet::before { content: '\e9f3'; } -.tutor-icon-brand-facebook:before { +.tutor-icon-brand-facebook::before { content: '\e9f4'; } -.tutor-icon-brand-zoom-o:before { +.tutor-icon-brand-zoom-o::before { content: '\e9f5'; } -.tutor-icon-circle-warning-outline:before { +.tutor-icon-circle-warning-outline::before { content: '\e9f6'; } -.tutor-icon-website:before { +.tutor-icon-website::before { content: '\e9f7'; } -.tutor-icon-circle-half:before { +.tutor-icon-circle-half::before { content: '\e9f8'; } -.tutor-icon-zoom-in:before { +.tutor-icon-zoom-in::before { content: '\e9f9'; } -.tutor-icon-zoom-out:before { +.tutor-icon-zoom-out::before { content: '\e9fa'; } -.tutor-icon-brand-github:before { +.tutor-icon-brand-github::before { content: '\e9fb'; } -.tutor-icon-brand-google:before { +.tutor-icon-brand-google::before { content: '\e9fc'; } -.tutor-icon-brand-google-drive:before { +.tutor-icon-brand-google-drive::before { content: '\e9fd'; } -.tutor-icon-brand-html5-bold:before { +.tutor-icon-brand-html5-bold::before { content: '\e9fe'; } -.tutor-icon-brand-html5-line:before { +.tutor-icon-brand-html5-line::before { content: '\e9ff'; } -.tutor-icon-brand-instagram:before { +.tutor-icon-brand-instagram::before { content: '\ea00'; } -.tutor-icon-brand-linkedin:before { +.tutor-icon-brand-linkedin::before { content: '\ea01'; } -.tutor-icon-brand-myspace:before { +.tutor-icon-brand-myspace::before { content: '\ea02'; } -.tutor-icon-brand-paid-membersip-pro:before { +.tutor-icon-brand-paid-membersip-pro::before { content: '\ea03'; } -.tutor-icon-brand-reddit:before { +.tutor-icon-brand-reddit::before { content: '\ea04'; } -.tutor-icon-brand-skype:before { +.tutor-icon-brand-skype::before { content: '\ea05'; } -.tutor-icon-brand-snapchat:before { +.tutor-icon-brand-snapchat::before { content: '\ea06'; } -.tutor-icon-brand-soundcloud:before { +.tutor-icon-brand-soundcloud::before { content: '\ea07'; } -.tutor-icon-brand-spotify:before { +.tutor-icon-brand-spotify::before { content: '\ea08'; } -.tutor-icon-brand-tumblr:before { +.tutor-icon-brand-tumblr::before { content: '\ea09'; } -.tutor-icon-brand-twitter:before { +.tutor-icon-brand-twitter::before { content: '\ea0a'; } -.tutor-icon-brand-vimeo-bold:before { +.tutor-icon-brand-vimeo-bold::before { content: '\ea0b'; } -.tutor-icon-brand-vimeo-line:before { +.tutor-icon-brand-vimeo-line::before { content: '\ea0c'; } -.tutor-icon-brand-yelp:before { +.tutor-icon-brand-yelp::before { content: '\ea0d'; } -.tutor-icon-brand-youtube-bold:before { +.tutor-icon-brand-youtube-bold::before { content: '\ea0e'; } -.tutor-icon-brand-youtube-line:before { +.tutor-icon-brand-youtube-line::before { content: '\ea0f'; } -.tutor-icon-grade-o:before { +.tutor-icon-grade-o::before { content: '\ea10'; } -.tutor-icon-file-ai:before { +.tutor-icon-file-ai::before { content: '\ea11'; } -.tutor-icon-file-archive:before { +.tutor-icon-file-archive::before { content: '\ea12'; } -.tutor-icon-file-audio:before { +.tutor-icon-file-audio::before { content: '\ea13'; } -.tutor-icon-file-avi:before { +.tutor-icon-file-avi::before { content: '\ea14'; } -.tutor-icon-file-compress:before { +.tutor-icon-file-compress::before { content: '\ea15'; } -.tutor-icon-file-css:before { +.tutor-icon-file-css::before { content: '\ea16'; } -.tutor-icon-file-csv:before { +.tutor-icon-file-csv::before { content: '\ea17'; } -.tutor-icon-file-dbf:before { +.tutor-icon-file-dbf::before { content: '\ea18'; } -.tutor-icon-file-doc:before { +.tutor-icon-file-doc::before { content: '\ea19'; } -.tutor-icon-file-document:before { +.tutor-icon-file-document::before { content: '\ea1a'; } -.tutor-icon-file-dwg:before { +.tutor-icon-file-dwg::before { content: '\ea1b'; } -.tutor-icon-file-exe:before { +.tutor-icon-file-exe::before { content: '\ea1c'; } -.tutor-icon-file-fla:before { +.tutor-icon-file-fla::before { content: '\ea1d'; } -.tutor-icon-file-html:before { +.tutor-icon-file-html::before { content: '\ea1e'; } -.tutor-icon-image-file:before { +.tutor-icon-image-file::before { content: '\ea1f'; } -.tutor-icon-file-iso:before { +.tutor-icon-file-iso::before { content: '\ea20'; } -.tutor-icon-file-json:before { +.tutor-icon-file-json::before { content: '\ea21'; } -.tutor-icon-file-js:before { +.tutor-icon-file-js::before { content: '\ea22'; } -.tutor-icon-file-jpg:before { +.tutor-icon-file-jpg::before { content: '\ea23'; } -.tutor-icon-file-mp3:before { +.tutor-icon-file-mp3::before { content: '\ea24'; } -.tutor-icon-file-mp4:before { +.tutor-icon-file-mp4::before { content: '\ea25'; } -.tutor-icon-file-pdf:before { +.tutor-icon-file-pdf::before { content: '\ea26'; } -.tutor-icon-file-png:before { +.tutor-icon-file-png::before { content: '\ea27'; } -.tutor-icon-file-ppt:before { +.tutor-icon-file-ppt::before { content: '\ea28'; } -.tutor-icon-file-psd:before { +.tutor-icon-file-psd::before { content: '\ea29'; } -.tutor-icon-file-rtf:before { +.tutor-icon-file-rtf::before { content: '\ea2a'; } -.tutor-icon-file-spreadsheet:before { +.tutor-icon-file-spreadsheet::before { content: '\ea2b'; } -.tutor-icon-file-svg:before { +.tutor-icon-file-svg::before { content: '\ea2c'; } -.tutor-icon-text-file:before { +.tutor-icon-text-file::before { content: '\ea2d'; } -.tutor-icon-file-txt:before { +.tutor-icon-file-txt::before { content: '\ea2e'; } -.tutor-icon-video-file:before { +.tutor-icon-video-file::before { content: '\ea2f'; } -.tutor-icon-file-xls:before { +.tutor-icon-file-xls::before { content: '\ea30'; } -.tutor-icon-file-xml:before { +.tutor-icon-file-xml::before { content: '\ea31'; } -.tutor-icon-file-zip:before { +.tutor-icon-file-zip::before { content: '\ea32'; } -.tutor-icon-circle-info-bold:before { +.tutor-icon-circle-info-bold::before { content: '\ea33'; } -.tutor-icon-warning:before { +.tutor-icon-warning::before { content: '\ea36'; } -.tutor-icon-shortcode:before { +.tutor-icon-shortcode::before { content: '\ea37'; }