-
Notifications
You must be signed in to change notification settings - Fork 69
/
fixes.scss
36 lines (32 loc) · 989 Bytes
/
fixes.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// Fix hardcoded background color of the Nav component.
// Needs to be a color that matches --vp-c-bg but with partial opacity (for the glass effect).
@media (min-width: 960px) {
:root.dark .VPNav.no-sidebar,
:root.dark .VPNavBar.has-sidebar .content {
background-color: hsl(220 14% 13% / 0.7);
}
}
// Fix enormous line-height of navbar items
.VPNavBarMenu .VPNavBarMenuLink {
min-height: var(--vp-nav-height-mobile);
line-height: 1.32;
@media (min-width: 960px) {
min-height: var(--vp-nav-height-desktop);
}
}
// Don't clip text in the outline
.VPDocAsideOutline .outline-link {
white-space: normal;
text-overflow: initial;
padding: 5px 0;
font-size: 13px;
line-height: 18px;
}
// removes default color, border and background-color transition
.VPNavBarAppearance button.VPSwitch {
transition: none;
}
// removes default background-color transition but keeps transform
button.VPSwitch span.check {
transition: background-color 0s, transform 0.25s;
}