Skip to content

Commit 6d62e7a

Browse files
committed
added to sidebar too
1 parent 61cb222 commit 6d62e7a

File tree

2 files changed

+29
-2
lines changed

2 files changed

+29
-2
lines changed

docusaurus/src/css/imports/components/main-section.css

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,35 @@
77
border: 1px solid var(--ifm-color-emphasis-300);
88
border-radius: 1rem 0 0 1rem;
99
padding: 1rem 0.5rem !important;
10+
position: relative;
1011
}
12+
13+
.menu::after {
14+
content: '';
15+
position: fixed;
16+
display: block;
17+
width: calc(var(--doc-sidebar-width));
18+
height: 2rem;
19+
border-color: var(--ifm-color-emphasis-300);
20+
border-style: solid;
21+
border-width: 1px 0 0 1px;
22+
border-radius: 1rem 0 0 0;
23+
top: calc(var(--ifm-navbar-height));
24+
left: 2rem;
25+
z-index: 2;
26+
}
27+
28+
.menu::before {
29+
content: '';
30+
position: fixed;
31+
width: 1rem;
32+
height: 10rem;
33+
background: var(--ifm-background-surface-color);
34+
top: calc(var(--ifm-navbar-height) - 9rem);
35+
left: 2rem;
36+
z-index: 1;
37+
}
38+
1139
}
1240

1341
@media (max-width: 1200px){

docusaurus/src/theme/DocRoot/Layout/Main/styles.module.css

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,10 @@
3232
display: block;
3333
width: calc(100% - var(--doc-sidebar-width) - 2rem - 2rem - 1px);
3434
height: 2rem;
35-
clip-path: inset(0 0 1rem 0);
3635
border-color: var(--ifm-color-emphasis-300);
3736
border-style: solid;
3837
border-width: 1px 1px 0 0;
39-
border-radius: 0 1rem 1rem 0;
38+
border-radius: 0 1rem 0 0;
4039
top: calc(var(--ifm-navbar-height));
4140
z-index: 2;
4241
}

0 commit comments

Comments
 (0)