-
-
-
-
-
-
{{ avatar.name }}
-
{{ avatar.description }}
-
-
-
-
-
- {{ tags.text }}
- {{ tags.total }}
-
-
-
-
- {{ archives.text }}
- {{ archives.total }}
-
-
-
+
+
+
@@ -56,114 +19,14 @@ const { hasBlogExtract, tags, archives } = useBlogExtract()
top: calc(var(--vp-nav-height) + 2rem);
display: none;
width: 270px;
- margin: 2rem 1rem 0 2rem;
+ margin: 2rem 1px 0 2rem;
text-align: center;
}
-.blog-aside-wrapper img {
- width: 60%;
- margin: auto;
-
- object-fit: cover;
-}
-
-.blog-aside-wrapper h3 {
- margin-top: 1.5rem;
- font-size: 16px;
- font-weight: 600;
-}
-
-.avatar-profile {
- padding: 24px 20px;
- margin-bottom: 24px;
- background-color: var(--vp-c-bg);
- border-radius: 8px;
- box-shadow: var(--vp-shadow-1);
- transition: var(--t-color);
- transition-property: background-color, color, box-shadow, transform;
- transform: scale(1);
-}
-
-.avatar-profile:hover {
- box-shadow: var(--vp-shadow-2);
- transform: scale(1.002);
-}
-
-.avatar-profile h3,
-.avatar-profile p {
- color: var(--vp-c-text-1);
- transition: color var(--t-color);
-}
-
-.avatar-profile .circle img {
- overflow: hidden;
- border-radius: 50%;
-}
-
-.blog-nav {
- padding: 0;
- text-align: left;
-}
-
-.nav-link {
- display: flex;
- align-items: center;
- justify-content: flex-start;
- padding: 10px 14px 10px 20px;
- margin-bottom: 20px;
- font-size: 14px;
- font-weight: 500;
- color: var(--vp-c-text-1);
- background-color: var(--vp-c-bg);
- border-radius: 8px;
- box-shadow: var(--vp-shadow-1);
- transition: var(--t-color);
- transition-property: background-color, color, box-shadow, transform;
- transform: scale(1);
-}
-
-.nav-link:hover {
- box-shadow: var(--vp-shadow-2);
- transform: scale(1.002);
-}
-
-.nav-link:hover,
-.nav-link.active {
- color: var(--vp-c-brand-1);
-}
-
-.nav-link .text {
- flex: 1;
- min-width: 0;
- padding-right: 14px;
-}
-
-.nav-link .total {
- padding-right: 8px;
- color: var(--vp-c-text-3);
- transition: color var(--t-color);
-}
-
-.nav-link .icon {
- width: 1em;
- height: 1em;
- font-size: 1.2em;
- color: var(--vp-c-text-3);
- transition: color var(--t-color);
-}
-
-.nav-link .icon-logo {
- margin-right: 10px;
- color: var(--vp-c-brand-1);
-}
-
@media (min-width: 768px) {
- .blog-aside-wrapper {
- margin: 2rem 1rem 2rem 1.25rem;
- }
-
.blog-aside-wrapper {
display: block;
+ margin: 2rem 1rem 2rem 1.5rem;
}
}
diff --git a/theme/src/client/components/BlogNav.vue b/theme/src/client/components/BlogNav.vue
new file mode 100644
index 00000000..58865af3
--- /dev/null
+++ b/theme/src/client/components/BlogNav.vue
@@ -0,0 +1,129 @@
+
+
+
+
+
+
+ {{ tags.text }}
+ {{ tags.total }}
+
+
+
+
+ {{ archives.text }}
+ {{ archives.total }}
+
+
+
+
+
+
diff --git a/theme/src/client/components/BlogProfile.vue b/theme/src/client/components/BlogProfile.vue
new file mode 100644
index 00000000..9fc643fd
--- /dev/null
+++ b/theme/src/client/components/BlogProfile.vue
@@ -0,0 +1,61 @@
+
+
+
+
+
+
+
+
+
{{ avatar.name }}
+
{{ avatar.description }}
+
+
+
+
+
diff --git a/theme/src/client/components/PageMeta.vue b/theme/src/client/components/PageMeta.vue
index f6f8bda4..3cdd7934 100644
--- a/theme/src/client/components/PageMeta.vue
+++ b/theme/src/client/components/PageMeta.vue
@@ -1,19 +1,22 @@
@@ -57,10 +60,10 @@ const hasMeta = computed(() => readingTime.value.times || tags.value.length || c
{{ page.title }}
-
+
{{ readingTime.words }}
- {{ readingTime.times }}
+ {{ readingTime.time }}
@@ -142,6 +145,7 @@ const hasMeta = computed(() => readingTime.value.times || tags.value.length || c
display: inline-block;
padding: 3px 5px;
margin-right: 6px;
+ font-size: 12px;
line-height: 1;
color: var(--vp-tag-color);
background-color: var(--vp-tag-bg-color);
diff --git a/theme/src/client/components/PostItem.vue b/theme/src/client/components/PostItem.vue
index 78a0b84c..517919ce 100644
--- a/theme/src/client/components/PostItem.vue
+++ b/theme/src/client/components/PostItem.vue
@@ -34,15 +34,15 @@ const createTime = computed(() =>
-
- {{ post.title }}
-
TOP
+
+ {{ post.title }}
+
@@ -68,7 +68,7 @@ const createTime = computed(() =>
{{ createTime }}
-
+
@@ -85,12 +85,12 @@ const createTime = computed(() =>
.post-item .sticky {
display: inline-block;
padding: 3px 6px;
- margin-left: 0.5rem;
+ margin-right: 0.5rem;
font-size: 13px;
font-weight: 600;
line-height: 1;
color: var(--vp-c-text-2);
- background-color: var(--vp-c-default-soft);
+ background-color: var(--vp-c-brand-soft);
border-radius: 4px;
transition: var(--t-color);
transition-property: color, background-color;
@@ -129,15 +129,19 @@ const createTime = computed(() =>
.post-item:hover {
box-shadow: var(--vp-shadow-2);
}
-}
-@media (min-width: 960px) {
- .post-item {
- margin-left: 0;
+ .post-item .post-meta {
+ margin-bottom: 0;
}
- .post-item h3 {
- font-size: 20px;
+ .post-item .excerpt {
+ margin-top: 24px;
+ }
+}
+
+@media (min-width: 1200px) {
+ .post-item {
+ margin-left: 0;
}
}
@@ -173,6 +177,7 @@ const createTime = computed(() =>
display: inline-block;
padding: 3px 5px;
margin-right: 6px;
+ font-size: 12px;
line-height: 1;
color: var(--vp-tag-color);
background-color: var(--vp-tag-bg-color);
diff --git a/theme/src/client/components/PostList.vue b/theme/src/client/components/PostList.vue
index b4d89e59..63624459 100644
--- a/theme/src/client/components/PostList.vue
+++ b/theme/src/client/components/PostList.vue
@@ -49,7 +49,6 @@ const {