|
5 | 5 | @use '@Core/scss/mixins' as *; |
6 | 6 |
|
7 | 7 | .tutor-upcoming-lesson-card { |
| 8 | + background-color: $tutor-surface-l1; |
8 | 9 | padding: $tutor-spacing-6; |
9 | 10 | border: 1px solid $tutor-border-idle; |
10 | 11 | border-radius: $tutor-radius-2xl; |
11 | 12 |
|
12 | 13 | &:hover { |
13 | 14 | background-color: $tutor-surface-l1-hover; |
14 | | - @include tutor-breakpoint-up(sm) { |
15 | | - .tutor-upcoming-lesson-card-live-tag-badge { |
16 | | - opacity: 0; |
17 | | - visibility: hidden; |
18 | | - } |
19 | | - .tutor-upcoming-lesson-card-action { |
20 | | - opacity: 1; |
21 | | - visibility: visible; |
22 | | - pointer-events: auto; |
23 | | - } |
24 | | - } |
| 15 | + @include tutor-breakpoint-up(sm) { |
| 16 | + .tutor-upcoming-lesson-card-live-tag-badge { |
| 17 | + opacity: 0; |
| 18 | + visibility: hidden; |
| 19 | + } |
| 20 | + .tutor-upcoming-lesson-card-action { |
| 21 | + opacity: 1; |
| 22 | + visibility: visible; |
| 23 | + pointer-events: auto; |
| 24 | + } |
| 25 | + } |
25 | 26 | } |
26 | 27 |
|
27 | 28 | &:focus-within { |
28 | | - @include tutor-breakpoint-up(sm) { |
29 | | - .tutor-upcoming-lesson-card-live-tag-badge { |
30 | | - opacity: 0; |
31 | | - visibility: hidden; |
32 | | - } |
33 | | - .tutor-upcoming-lesson-card-action { |
34 | | - opacity: 1; |
35 | | - visibility: visible; |
36 | | - pointer-events: auto; |
37 | | - } |
38 | | - } |
| 29 | + @include tutor-breakpoint-up(sm) { |
| 30 | + .tutor-upcoming-lesson-card-live-tag-badge { |
| 31 | + opacity: 0; |
| 32 | + visibility: hidden; |
| 33 | + } |
| 34 | + .tutor-upcoming-lesson-card-action { |
| 35 | + opacity: 1; |
| 36 | + visibility: visible; |
| 37 | + pointer-events: auto; |
| 38 | + } |
| 39 | + } |
39 | 40 | } |
40 | 41 |
|
41 | 42 | &-header { |
|
54 | 55 | @include tutor-flex-center; |
55 | 56 | } |
56 | 57 |
|
57 | | - &-live-tag { |
58 | | - position: relative; |
59 | | - |
| 58 | + &-live-tag { |
| 59 | + position: relative; |
60 | 60 |
|
61 | | - &-badge { |
62 | | - @include tutor-flex(row, center, center); |
63 | | - opacity: 1; |
64 | | - visibility: visible; |
65 | | - z-index: $tutor-z-positive; |
66 | | - @include tutor-transition((opacity, visibility)); |
67 | | - } |
68 | | - } |
| 61 | + &-badge { |
| 62 | + @include tutor-flex(row, center, center); |
| 63 | + opacity: 1; |
| 64 | + visibility: visible; |
| 65 | + z-index: $tutor-z-positive; |
| 66 | + @include tutor-transition((opacity, visibility)); |
| 67 | + } |
| 68 | + } |
69 | 69 |
|
70 | | - &-action { |
71 | | - @include tutor-flex(row, center, center); |
72 | | - position: absolute; |
73 | | - top: 0; |
74 | | - right: 0; |
75 | | - opacity: 0; |
76 | | - visibility: hidden; |
77 | | - pointer-events: none; |
78 | | - z-index: $tutor-z-dropdown; |
79 | | - @include tutor-transition((opacity, visibility)); |
| 70 | + &-action { |
| 71 | + @include tutor-flex(row, center, center); |
| 72 | + position: absolute; |
| 73 | + top: 0; |
| 74 | + right: 0; |
| 75 | + opacity: 0; |
| 76 | + visibility: hidden; |
| 77 | + pointer-events: none; |
| 78 | + z-index: $tutor-z-dropdown; |
| 79 | + @include tutor-transition((opacity, visibility)); |
80 | 80 |
|
81 | | - &:hover { |
82 | | - color: $tutor-text-primary-inverse; |
83 | | - } |
84 | | - } |
| 81 | + &:hover { |
| 82 | + color: $tutor-text-primary-inverse; |
| 83 | + } |
| 84 | + } |
85 | 85 |
|
86 | 86 | &-title { |
87 | 87 | @include tutor-typography('small', 'medium', 'primary', 'body'); |
88 | 88 | margin: 0 0 $tutor-spacing-5 0; |
89 | 89 |
|
90 | 90 | @include tutor-breakpoint-down(sm) { |
91 | | - color: $tutor-text-brand; |
92 | | - } |
| 91 | + color: $tutor-text-brand; |
| 92 | + } |
93 | 93 | } |
94 | 94 |
|
95 | 95 | &-course { |
|
0 commit comments