Skip to content

Commit a7add70

Browse files
Merge pull request #47 from kir-rescomp/dev
add side-bar menu stylesheet
2 parents bb33632 + 6a6cc68 commit a7add70

File tree

2 files changed

+63
-0
lines changed

2 files changed

+63
-0
lines changed

docs/stylesheets/side_bar_menu.css

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
/* Clean, contemporary design with subtle animations */
2+
.md-sidebar--primary {
3+
background: #f6f6f8;
4+
border-right: 1px solid #c3cbdb;
5+
}
6+
7+
[data-md-color-scheme="slate"] .md-sidebar--primary {
8+
background: #1a1b26;
9+
border-right: 1px solid #2f3241;
10+
}
11+
12+
.md-nav__item {
13+
margin: 2px 12px;
14+
position: relative;
15+
}
16+
17+
.md-nav__link {
18+
border-radius: 6px;
19+
padding: 5px 5px;
20+
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
21+
display: flex;
22+
align-items: center;
23+
gap: 8px;
24+
}
25+
26+
/* Add subtle dot indicator */
27+
.md-nav__link::before {
28+
content: '';
29+
width: 6px;
30+
height: 6px;
31+
border-radius: 50%;
32+
background: transparent;
33+
transition: all 0.3s ease;
34+
}
35+
36+
.md-nav__link:hover::before {
37+
background: #6366f1;
38+
box-shadow: 0 0 8px rgba(99, 102, 241, 0.6);
39+
}
40+
41+
.md-nav__link:hover {
42+
background: rgba(99, 102, 241, 0.08);
43+
padding-left: 18px;
44+
}
45+
46+
.md-nav__link--active {
47+
background: rgba(99, 102, 241, 0.12);
48+
color: #2a2ca8 !important;
49+
font-weight: 600;
50+
padding-left: 18px;
51+
}
52+
53+
.md-nav__link--active::before {
54+
background: #8190d4;
55+
box-shadow: 0 0 12px rgba(109, 156, 231, 0.8);
56+
animation: pulse 2s infinite;
57+
}
58+
59+
@keyframes pulse {
60+
0%, 100% { opacity: 1; }
61+
50% { opacity: 0.4; }
62+
}

mkdocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,3 +124,4 @@ extra_css:
124124
- stylesheets/extra.css
125125
- stylesheets/cards.css
126126
- stylesheets/colors.css
127+
- stylesheets/side_bar_menu.css

0 commit comments

Comments
 (0)