Skip to content

Commit

Permalink
Fixed hover background for light mode
Browse files Browse the repository at this point in the history
  • Loading branch information
usserwoutV2 committed May 22, 2024
1 parent 8954d71 commit 91702c1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
3 changes: 1 addition & 2 deletions frontend/src/pages/project/Project.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import useCourse from "../../hooks/useCourse"
import useProject from "../../hooks/useProject"
import ScoreCard from "./components/ScoreTab"
import {
CalendarOutlined,
ClockCircleOutlined,
DeleteOutlined, EyeInvisibleOutlined, EyeOutlined,
FileDoneOutlined,
Expand All @@ -25,7 +24,6 @@ import SubmissionsTab from "./components/SubmissionsTab"
import MarkdownTextfield from "../../components/input/MarkdownTextfield"
import useApi from "../../hooks/useApi"
import i18n from "i18next";
import useUser from "../../hooks/useUser";

// dracula, darcula,oneDark,vscDarkPlus | prism, base16AteliersulphurpoolLight, oneLight

Expand Down Expand Up @@ -165,6 +163,7 @@ const Project = () => {

return (
<div style={{ margin: "3rem 0", marginTop: "1rem", width: "100%", paddingBottom: "3rem" }}>

<Card
styles={{
header: {
Expand Down
10 changes: 7 additions & 3 deletions frontend/src/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -260,10 +260,14 @@ html {

.list-item-hover {
cursor: pointer;
transition: background-color 0.3s ease-in-out;
transition: background-color 0.15s ease-in-out;
border-radius: 8px;
}

.list-item-hover:hover {
background-color: #5a5a5a69;
.dark-theme .list-item-hover:hover {
background-color: rgba(255 255 255 / 10%);
}

.light-theme .list-item-hover:hover {
background-color: rgba(0 0 0 / 5%);
}

0 comments on commit 91702c1

Please sign in to comment.