Skip to content

Commit aa44752

Browse files
committed
Update: 主题样式更新
1 parent ea1f1bb commit aa44752

File tree

4 files changed

+19
-17
lines changed

4 files changed

+19
-17
lines changed

package/App.vue

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,15 @@
66
>
77
<slot name="homePage">
88
<div class="w-80vw max-w-800px mb-12vh h-a flex-center flex-col rounded-xl py-10">
9-
<div class="relative w-60 h-60 max-w-80vw max-h-80vw" @click="goPage(aboutMePath)">
9+
<div
10+
class="relative w-60 h-60 max-w-80vw max-h-80vw"
11+
style="filter: drop-shadow(0 0 16px rgba(0,0,0,.36));"
12+
@click="goPage(aboutMePath)"
13+
>
1014
<img class="w-full w-full rounded-sm cursor-pointer" :src="logo" alt=""/>
1115
</div>
1216
<div class="text-6 line-height-8 my-2 select-none">
13-
<strong class="font-800 text-white">{{ name }}</strong>
17+
<strong class="text-white">{{ name }}</strong>
1418
</div>
1519
<div class="text-4 line-height-4 mb-2 select-none">
1620
<span class="text-gray-3">{{ motto }}</span>
@@ -22,7 +26,7 @@
2226
<a
2327
v-for="v in links"
2428
:key="v.link"
25-
class="h-10 w-10 line-height-10 rounded-full hover:bg-[rgba(255,255,255,.12)]"
29+
class="h-10 w-10 line-height-10 rounded-full bg-transparent hover:bg-[rgba(255,255,255,.12)] transition-colors duration-240 ease-in-out"
2630
un-text="center white 6"
2731
:href="v.link"
2832
target="_blank"

package/components/NanoContainer/index.vue

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,20 +35,20 @@
3535
const loading = ref(true);
3636
3737
const windowStyle = computed(() => {
38-
if (ctl.onlyFullscreen || ctl.fullscreen) {
38+
if (!ctl.onlyFullscreen && !ctl.fullscreen) {
3939
return {
40-
width: '100vw',
41-
height: '100vh',
42-
top: '0',
43-
left: '0'
44-
};
45-
} else {
46-
return {
4740
width: '90vw',
4841
height: '90vh',
4942
top: '5vh',
5043
left: '5vw'
5144
};
45+
} else {
46+
return {
47+
width: '100vw',
48+
height: '100vh',
49+
top: '0',
50+
left: '0'
51+
};
5252
}
5353
});
5454

package/store/controller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { defineStore } from 'pinia';
33
export const controllerStore = defineStore('controller', {
44
state: () => ({
55
onlyFullscreen: false,
6-
fullscreen: false,
6+
fullscreen: true,
77
allowDrag: true,
88
hideLeftSidebar: false,
99
hideRightSidebar: false,

package/theme/light/variables/content.scss

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
$fontFamily: "微软雅黑", "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
2-
31
// article content style
42
@mixin content {
53
article.vp-doc {
@@ -59,9 +57,9 @@ $fontFamily: "微软雅黑", "Helvetica Neue", Helvetica, "PingFang SC", "Hiragi
5957
}
6058

6159
:not(pre) > code {
62-
font-size: .875em !important;
63-
margin: 0 .2em !important;
64-
padding: .12em .5em !important;
60+
font-size: 1em !important;
61+
margin: 0 .1em !important;
62+
padding: .05em .5em !important;
6563
}
6664

6765
pre > code {

0 commit comments

Comments
 (0)