Skip to content

Commit f850655

Browse files
committed
Update: 主题
1 parent 8ce9e24 commit f850655

File tree

13 files changed

+72
-14
lines changed

13 files changed

+72
-14
lines changed

package/App.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ pre > code {
4141
font-family: "JetBrains Mono", $fontFamily;
4242
}
4343

44+
:not(pre) > code {
45+
font-family: "JetBrains Mono", $fontFamily;
46+
}
47+
4448
#app {
4549
position: relative;
4650
width: 100vw;

package/components/NanoContainer/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
}
7272
setTimeout(() => {
7373
loading.value = false;
74-
}, 1000);
74+
}, 1200);
7575
});
7676
resizeObserver.value.observe(htmlEl);
7777
});

package/components/NanoFooter/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<footer
3-
class="relative shrink-0 w-full h-[var(--footer-size)] overflow-hidden"
3+
class="relative shrink-0 w-full h-[var(--footer-size)]"
44
un-border="t-solid t-1px t-[var(--footer-border-color)]"
55
un-flex="~ items-center justify-between shrink-0"
66
style="background: var(--footer-bg);"

package/components/NanoHeader/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<header
3-
class="relative shrink-0 w-full h-[var(--header-size)] overflow-hidden"
3+
class="relative shrink-0 w-full h-[var(--header-size)]"
44
un-flex="~ justify-between"
55
style="--s: var(--header-size); background: var(--header-bg)"
66
>

package/components/NanoHeaderTopNav/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
</nav>
1717
<NanoPopup
1818
:ref="el => popups[index] = el"
19-
class="px-2 py-1 top-[var(--header-size)] left-0"
19+
class="z-999 py-1 top-[var(--header-size)] left-0"
2020
>
2121
<div
2222
v-for="subNav in nav.items"

package/components/NanoLoading/index.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@
2929
overflow: hidden;
3030
background-color: #e6dcdc;
3131
32+
@media screen and (max-width: 768px) {
33+
max-width: 10em;
34+
}
35+
3236
&::before {
3337
content: '';
3438
display: block;

package/components/NanoMain/index.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<div
3-
class="relative grow z-2 h-full bg-white min-w-0 vp-doc"
3+
class="relative grow z-2 h-full bg-white min-w-0"
44
>
55
<!--content area-->
66
<div class="relative w-full h-full">
@@ -12,7 +12,7 @@
1212
>
1313
<article
1414
ref="article"
15-
class="px-10 py-6 VPDoc text-4"
15+
class="px-10 py-6 vp-doc text-4"
1616
:class="[ 'w-full' ]"
1717
style="white-space: wrap;"
1818
>

package/components/NanoPopup/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<div
3-
class="absolute [display:none] z-100 min-w-40 bg-white shadow-2xl"
3+
class="absolute [display:none] min-w-40 bg-white shadow-2xl"
44
:class="{ 'block!': visible }"
55
un-border="~ .25 solid rounded-2 [#B9BDC9]"
66
>

package/components/NanoSidebarDir/index.vue

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,16 @@
4040
@click.stop
4141
>
4242
<NanoSidebarDirTree
43+
v-if="store.sidebar.length"
4344
:key="key"
4445
:list="store.sidebar"
4546
/>
47+
<div
48+
v-else
49+
class="text-gray-4 text-3.25 select-none px-1"
50+
>
51+
暂无目录...
52+
</div>
4653
</div>
4754
</OverlayScrollbarsComponent>
4855
</div>

package/theme/light/variables/content.scss

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ $fontFamily: "微软雅黑", "Helvetica Neue", Helvetica, "PingFang SC", "Hiragi
22

33
// article content style
44
@mixin content {
5-
article.VPDoc {
5+
article.vp-doc {
66
table {
77
tr {
88
background: transparent !important;
@@ -52,6 +52,10 @@ $fontFamily: "微软雅黑", "Helvetica Neue", Helvetica, "PingFang SC", "Hiragi
5252

5353
ul, ol {
5454
padding-left: 2em;
55+
56+
li {
57+
margin: 1em 0;
58+
}
5559
}
5660

5761
:not(pre) > code {
@@ -73,11 +77,18 @@ $fontFamily: "微软雅黑", "Helvetica Neue", Helvetica, "PingFang SC", "Hiragi
7377
cursor: none !important;
7478
}
7579

80+
.vp-code-group {
81+
> .tabs {
82+
margin-left: 0;
83+
margin-right: 0;
84+
}
85+
}
86+
7687
blockquote > p {
7788
font-size: 1em !important;
7889
}
7990

80-
a {
91+
a, a > code {
8192
color: #008cff;
8293
text-decoration: underline;
8394

0 commit comments

Comments
 (0)