Skip to content

Commit

Permalink
Merge pull request #566 from rishabdev2997/main
Browse files Browse the repository at this point in the history
feat: Implemented border when hover
  • Loading branch information
SableRaf authored Oct 16, 2024
2 parents 7b7bad5 + b6b0803 commit fbf36c4
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions src/components/Sidebar.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
.title {
font-size: var(--text-reduced);
padding-top: 20px;
text-wrap: pretty;
overflow-wrap: break-word;
}

.toggleButton {
Expand All @@ -50,6 +50,7 @@
flex-grow: 1;
position: relative;
overflow-y: auto;
padding-top: 1rem;
& ul li h4 {
text-wrap: pretty;
}
Expand Down Expand Up @@ -110,20 +111,28 @@
}

.tocItem {
margin-bottom: 1rem;

& a {
font-family: var(--font);
text-overflow: ellipsis;
color: var(--processing-blue-dark);
border-left: 4px solid transparent;
display: flex;
align-items: center;
padding: 3px 0.75rem;
transition: color 0.3s, border-left-color 0.3s;

&:hover {
color: var(--processing-blue-mid);
border-left-color: var(--processing-blue-mid);
}

}

& h4 {
font-size: var(--text-regular);
color: inherit;
&:hover {
color: inherit;
}
margin: 0;
}
}

0 comments on commit fbf36c4

Please sign in to comment.