Skip to content

Commit 03123d5

Browse files
committed
Add hover state for sidebar items
1 parent a70fdb3 commit 03123d5

3 files changed

Lines changed: 10 additions & 0 deletions

File tree

_sass/_colors.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
--nav-bg: #f6fbfe;
1111
--nav-text: #666666;
1212
--nav-selected: #d9edf7;
13+
--nav-hover: #eef6fb;
1314
--brand-color: #f6fbfe;
1415
--page-header: #888888;
1516
--inline-code-color: #393318;
@@ -30,6 +31,7 @@
3031
--nav-bg: #202225;
3132
--nav-text: #cccccc;
3233
--nav-selected: #535353;
34+
--nav-hover: #3a3d42;
3335
--brand-color: #000000;
3436
--page-header: #999999;
3537
--inline-code-color: #FFFFFF;

_sass/_dark-mode.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ h4 {
4141
background-color: var(--nav-selected) !important;
4242
}
4343

44+
#nav-tree .item:not(.selected):hover {
45+
background-color: var(--nav-hover) !important;
46+
}
47+
4448
#nav-tree .selected a {
4549
color: var(--content-color) !important;
4650
text-shadow: none !important;

navtree.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@
3939
text-shadow: 0px 1px 1px rgba(0, 0, 0, 0.25);
4040
}
4141

42+
#nav-tree .item:not(.selected):hover {
43+
background-color: var(--nav-hover, #eef6fb);
44+
}
45+
4246
#nav-tree img {
4347
margin:0px;
4448
padding:0px;

0 commit comments

Comments
 (0)