Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

General: Add hover effect for sidebar-card-medium #9663

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@if (sidebarType === 'inExam') {
<div
id="test-sidebar-card-medium"
class="pointer rounded-3 col-12 px-1 pt-2 pb-1 border-5 highlight-card bg-module"
class="pointer rounded-3 col-12 px-1 pt-2 pb-1 border-5 highlight-card bg-module hover-effect"
[ngClass]="{ 'bg-selected border-selected': itemSelected }"
(click)="emitPageChangeForExam()"
>
Expand All @@ -10,7 +10,7 @@
} @else {
<div
id="test-sidebar-card-medium"
class="pointer rounded-3 col-12 px-1 py-2 border-start border-5 highlight-card bg-module"
class="pointer rounded-3 col-12 px-1 py-2 border-start border-5 highlight-card bg-module hover-effect"
[ngClass]="{
'border-success': sidebarItem?.difficulty === DifficultyLevel.EASY,
'border-warning': sidebarItem?.difficulty === DifficultyLevel.MEDIUM,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@
border-color: var(--module-bg) !important;
}

.hover-effect {
&:hover {
background-color: var(--hover-slightly-darker-body-bg);
}
}

.bg-selected {
background-color: var(--sidebar-card-selected-bg);

Expand Down