Skip to content

Commit 00938d5

Browse files
authored
feat: optimize styles (#7)
1 parent ceb3d75 commit 00938d5

File tree

5 files changed

+24
-3
lines changed

5 files changed

+24
-3
lines changed

src/components/VPCover.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -106,21 +106,21 @@ const coverStyle = computed(() => {
106106
max-width: 80%;
107107
font-size: clamp(2rem, 1.636rem + 1.82vw, 3rem);
108108
color: var(--vp-c-text-1);
109+
mix-blend-mode: difference;
109110
line-height: 2;
110111
font-weight: 800;
111112
white-space: nowrap;
112113
text-overflow: ellipsis;
113114
overflow: hidden;
114-
filter: drop-shadow(0px 4px 6px var(--vp-c-text-1));
115115
}
116116
.cover .cover-title .description {
117117
max-width: 80%;
118118
font-size: 1.2rem;
119119
color: var(--vp-c-text-2);
120+
mix-blend-mode: difference;
120121
white-space: nowrap;
121122
text-overflow: ellipsis;
122123
overflow: hidden;
123-
filter: drop-shadow(0px 2px 3px var(--vp-c-text-2));
124124
}
125125
126126
.cover.with-cover {

src/layouts/Article.vue

+4-1
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,11 @@ const lastUpdated = computed(() => {
113113
</template>
114114

115115
<style scoped>
116+
.article {
117+
flex-grow: 1;
118+
}
116119
.article .article-tags {
117-
filter: drop-shadow(0px 2px 3px var(--vp-c-text-2));
120+
mix-blend-mode: difference;
118121
}
119122
.article .vp-doc {
120123
padding-top: calc(var(--vp-size-space) * 2);

src/layouts/Page.vue

+6
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,9 @@ const { list } = usePagination()
3636
<slot name="page-bottom" />
3737
</section>
3838
</template>
39+
40+
<style scoped>
41+
.page {
42+
flex-grow: 1;
43+
}
44+
</style>

src/layouts/Tag.vue

+6
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,9 @@ const title = computed(() => {
5454
<slot name="tag-bottom" />
5555
</section>
5656
</template>
57+
58+
<style scoped>
59+
.tag {
60+
flex-grow: 1;
61+
}
62+
</style>

src/styles/public.css

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
#app {
2+
display: flex;
3+
flex-direction: column;
4+
min-height: 100vh;
5+
}
6+
17
.main {
28
margin-left: auto;
39
margin-right: auto;

0 commit comments

Comments
 (0)