Skip to content

Commit b5f4b8f

Browse files
Adjust sidebar title styles (#2315)
* Adjust sidebar title styles * make important
1 parent e32658e commit b5f4b8f

File tree

3 files changed

+10
-14
lines changed

3 files changed

+10
-14
lines changed

src/components/SidebarSectionDropdown/SidebarSectionDropdown.module.css

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
top: var(--ifm-navbar-height);
77
z-index: 100;
88
font-family: var(--ifm-font-family-base);
9-
box-shadow: 0 2px 4px rgb(0 0 0 / 10%);
10-
backdrop-filter: blur(8px);
119
border-right: 1px solid var(--ifm-toc-border-color);
1210
}
1311

@@ -22,7 +20,7 @@
2220
font-size: 2rem;
2321
font-weight: 500;
2422
line-height: 1.3;
25-
color: var(--ifm-color-emphasis-600);
23+
color: var(--ifm-color-emphasis-1000);
2624
white-space: nowrap;
2725
text-align: left;
2826
width: var(--doc-sidebar-width);
@@ -31,7 +29,7 @@
3129
align-items: center;
3230
cursor: pointer;
3331
user-select: none;
34-
padding: 0.8rem 2.4rem;
32+
padding: 1rem 2.4rem !important;
3533
margin: 0;
3634
background: var(--ifm-background-color);
3735
transition: all 0.2s ease-in-out;
@@ -48,7 +46,6 @@
4846

4947
.sectionItem:hover {
5048
background: var(--ifm-hover-overlay);
51-
color: var(--ifm-navbar-link-hover-color, var(--ifm-color-primary));
5249
}
5350

5451
.label {
@@ -79,7 +76,7 @@
7976
font-size: 2rem;
8077
font-weight: 500;
8178
line-height: 1.3;
82-
color: var(--ifm-color-emphasis-600);
79+
color: var(--ifm-color-emphasis-1000);
8380
white-space: nowrap;
8481
text-align: left;
8582
padding: 0;
@@ -96,14 +93,14 @@
9693
box-shadow: 0 6px 16px rgb(0 0 0 / 15%);
9794
backdrop-filter: blur(8px);
9895
margin-top: 0.3rem;
99-
padding-bottom: 1rem;
96+
padding-bottom: 0.4rem;
10097
z-index: 100;
10198
width: 100%;
10299
min-width: 180px;
103100
}
104101

105102
.menuItem {
106-
padding: 0.6rem 2rem;
103+
padding: 0.6rem 2rem 1rem;
107104
font-size: 1.5rem;
108105
font-weight: 400;
109106
cursor: pointer;
@@ -128,7 +125,7 @@
128125
font-weight: 500;
129126
line-height: 1.4;
130127
color: var(--ifm-color-emphasis-700);
131-
margin: 0.2rem 0;
128+
margin-bottom: 0.2rem;
132129
}
133130

134131
.menuItem:hover {
@@ -166,7 +163,6 @@
166163

167164
[data-theme='dark'] .sectionItem:hover {
168165
background: var(--ifm-hover-overlay) !important;
169-
color: var(--ifm-navbar-link-hover-color, var(--ifm-color-primary)) !important;
170166
}
171167

172168
[data-theme='dark'] .dropdown {
@@ -176,7 +172,7 @@
176172
}
177173

178174
[data-theme='dark'] .title {
179-
color: var(--ifm-color-emphasis-600) !important;
175+
color: var(--ifm-color-emphasis-800) !important;
180176
}
181177

182178
[data-theme='dark'] .label {

src/components/SidebarVersionDropdown/SidebarVersionDropdown.module.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
position: relative;
33
font-family: var(--ifm-font-family-base);
44
border-bottom: 1px solid var(--ifm-toc-border-color);
5-
padding: 0.4rem 0;
5+
padding: 0.2rem 0 !important;
66
}
77

88
.versionItem {

src/components/SubNavBar/SubNavBar.module.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
font-size: 2rem;
2424
font-weight: 500;
2525
line-height: 1.3;
26-
color: var(--ifm-color-emphasis-600);
26+
color: var(--ifm-color-emphasis-1000);
2727
white-space: nowrap;
2828
border-right: 1px solid var(--ifm-toc-border-color);
2929
width: var(--doc-sidebar-width);
@@ -131,7 +131,7 @@
131131
}
132132

133133
[data-theme='dark'] .sectionHeading {
134-
color: var(--ifm-color-emphasis-600);
134+
color: var(--ifm-color-emphasis-800);
135135
border-right-color: var(--ifm-color-emphasis-300);
136136
}
137137

0 commit comments

Comments
 (0)