Skip to content

Commit 5813a35

Browse files
committed
Improve sidebare styles
1 parent 0562371 commit 5813a35

File tree

1 file changed

+52
-11
lines changed

1 file changed

+52
-11
lines changed

docs/src/css/custom.css

Lines changed: 52 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
1-
/* :root {
2-
--ifm-color-primary: #2e8555;
3-
--ifm-color-primary-dark: #29784c;
4-
--ifm-color-primary-darker: #277148;
5-
--ifm-color-primary-darkest: #205d3b;
6-
--ifm-color-primary-light: #33925d;
7-
--ifm-color-primary-lighter: #359962;
8-
--ifm-color-primary-lightest: #3cad6e;
9-
} */
10-
111
:root {
2+
--ifm-color-primary: #006CF0;
3+
--ifm-color-primary-dark: #0049A3;
4+
--ifm-color-primary-darker: #00387D;
5+
--ifm-color-primary-darkest: #002756;
6+
--ifm-color-primary-light: #2984F2;
7+
--ifm-color-primary-lighter: #529BF5;
8+
--ifm-color-primary-lightest: #7AB3F7;
129
--docusaurus-highlighted-code-line-bg: #E8E8F2;
1310
}
1411

@@ -42,4 +39,48 @@
4239

4340
.inlineEdgeHandleSVG {
4441
margin-bottom: -7px;
45-
}
42+
}
43+
44+
45+
.theme-doc-sidebar-item-category-level-1 > .menu__list-item-collapsible {
46+
background-color: transparent;
47+
}
48+
49+
/* Section Title */
50+
.theme-doc-sidebar-item-category-level-1 > .menu__list-item-collapsible > .menu__link {
51+
color: black;
52+
border-top: 1px solid rgba(0, 0, 0, 0.08);
53+
font-weight: bold;
54+
margin: 0.5rem 0;
55+
padding: 1rem 0.5rem 0 0.5rem;
56+
border-radius: 0;
57+
transition: all 0.25s ease;
58+
background-color: transparent;
59+
-webkit-transition: all 0.25s ease;
60+
-moz-transition: all 0.25s ease;
61+
-ms-transition: all 0.25s ease;
62+
-o-transition: all 0.25s ease;
63+
}
64+
65+
[data-theme='dark'] .theme-doc-sidebar-item-category-level-1 > .menu__list-item-collapsible > .menu__link {
66+
color: white;
67+
border-top: 1px solid rgba(255, 255, 255, 0.2);
68+
}
69+
70+
.theme-doc-sidebar-item-category-level-1 > .menu__list-item-collapsible > .menu__link:hover {
71+
color: var(--ifm-color-primary-light);
72+
background-color: transparent;
73+
transition: all 0.25s ease;
74+
-webkit-transition: all 0.25s ease;
75+
-moz-transition: all 0.25s ease;
76+
-ms-transition: all 0.25s ease;
77+
-o-transition: all 0.25s ease;
78+
}
79+
80+
/* Remove top border on the first sidebar section */
81+
.theme-doc-sidebar-item-category-level-1:first-child
82+
> .menu__list-item-collapsible
83+
> .menu__link {
84+
border-top: none;
85+
margin-top: 0;
86+
}

0 commit comments

Comments
 (0)