Skip to content

Commit a671438

Browse files
committed
unify sidebar-link sizes
1 parent d77fbcb commit a671438

File tree

2 files changed

+19
-8
lines changed

2 files changed

+19
-8
lines changed

docs/.vuepress/theme/components/Breadcrumbs.vue

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ nav
5050
5151
@media (min-width: $MQMobile)
5252
padding: 1.5rem 0
53-
margin: 0 2.5em
53+
margin: 0 2.5rem
5454
5555
&.fixed
5656
position fixed
@@ -61,12 +61,18 @@ nav
6161
display flex
6262
.breadcrumb
6363
margin-right: 0.5em
64+
color: $sidebarTextColor;
65+
opacity: 0.5;
66+
font-weight 600
67+
transition: opacity 0.5s;
6468
&:not(:first-child)::before
6569
margin-right: 0.5em
6670
content "/"
6771
font-family inherit
6872
font-size inherit
6973
7074
&:last-child
71-
cursor default
75+
&:hover
76+
opacity 1
77+
color: $accentColor
7278
</style>

docs/.vuepress/theme/styles/sidebar.styl

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,11 @@ ul > li > a.sidebar-link {
33
font-weight: 500;
44
}
55

6-
ul.sidebar-links > li > a {
7-
color: inherit;
8-
}
9-
106
header.navbar .nav-links {
117
display: none;
128
}
139

14-
.sidebar {
10+
#app .sidebar {
1511
.nav-links {
1612
display: block !important;
1713

@@ -20,8 +16,17 @@ header.navbar .nav-links {
2016
}
2117
}
2218

23-
.sidebar-heading {
19+
.sidebar-group-items {
20+
font-size: 1em !important;
21+
22+
> li .sidebar-link {
23+
font-size: 0.95em !important;
24+
}
25+
}
26+
27+
> .sidebar-links > li > a.sidebar-link, .sidebar-heading {
2428
font-weight: bold !important;
29+
font-size: 1em;
2530
}
2631

2732
.sidebar-group.is-sub-group a.sidebar-link {

0 commit comments

Comments
 (0)