Skip to content

Commit 88cef50

Browse files
committed
style tweaks
1 parent 1a2ded4 commit 88cef50

File tree

5 files changed

+12
-5
lines changed

5 files changed

+12
-5
lines changed

lib/default-theme/Navbar.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@ export default {
4545
margin-right 0.8rem
4646
.site-name
4747
font-size 1.3rem
48+
line-height 2rem
4849
font-weight 600
4950
color $textColor
5051
position relative
51-
top -0.125rem
5252
.links
5353
font-size 0.9rem
5454
position absolute

lib/default-theme/SearchBox.vue

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<template>
22
<div class="search-box">
3-
<input v-model="query"
3+
<input
4+
@input="query = $event.target.value"
5+
:value="query"
46
autocomplete="off"
57
spellcheck="false"
68
@focus="focused = true"

lib/default-theme/Sidebar.vue

+3-1
Original file line numberDiff line numberDiff line change
@@ -155,10 +155,12 @@ function resolveItem (item, pages, base, isNested) {
155155
font-size 1.1em
156156
padding 0.5rem 0 0.5rem 1.5rem
157157
.sidebar-links
158-
margin-top 1rem
158+
margin-top 1.5rem
159159
160160
@media (max-width: $MQMobile)
161161
.sidebar
162162
.nav-links
163163
display block
164+
.sidebar-links
165+
margin-top 1rem
164166
</style>

lib/default-theme/styles/mobile.styl

+2
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ $mobileSidebarWidth = $sidebarWidth * 0.82
2929

3030
// narrow mobile
3131
@media (max-width: $MQMobileNarrow)
32+
h1
33+
font-size 1.9rem
3234
pre, pre[class*="language-"]
3335
margin 0.85rem -1.5rem
3436
border-radius 0

lib/default-theme/styles/theme.styl

+3-2
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ body
3939
top $navbarHeight
4040
left 0
4141
bottom 0
42-
padding 1.5rem 0
4342
box-sizing border-box
4443
border-right 1px solid $borderColor
4544
overflow-y scroll
@@ -88,13 +87,15 @@ strong
8887
h1, h2, h3, h4, h5, h6
8988
font-weight 600
9089
line-height 1.25
91-
.content:not(.custom) &
90+
.content:not(.custom) > &
9291
margin-top (0.5rem - $navbarHeight)
9392
padding-top ($navbarHeight + 1rem)
9493
margin-bottom 0
9594
&:first-child
9695
margin-top -1.5rem
9796
margin-bottom 1rem
97+
+ p
98+
margin-top 2rem
9899
&:hover .header-anchor
99100
opacity: 1
100101

0 commit comments

Comments
 (0)