Skip to content

Commit b714302

Browse files
committed
style(compatibility): badge, button, link styles and home page content
1 parent 584a443 commit b714302

File tree

4 files changed

+14
-16
lines changed

4 files changed

+14
-16
lines changed

app/components/partial/Badge.vue

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,17 +45,20 @@ const tip = computed(() => {
4545
.badge {
4646
display: inline-flex;
4747
align-items: center;
48-
border: 1px solid var(--c-border);
49-
border-color: color-mix(in srgb, currentcolor 10%, transparent);
48+
border: 1px solid var(--c-bg-soft);
5049
border-radius: 4px;
51-
background-color: var(--c-bg-3);
52-
background-color: color-mix(in srgb, currentcolor 5%, transparent);
53-
font-size: 0.9em;
50+
background-color: var(--c-bg-2);
51+
font-size: 0.875em;
5452
line-height: normal;
5553
vertical-align: text-bottom;
56-
color: color-mix(in srgb, currentcolor 80%, transparent);
5754
transition: color 0.2s;
5855
56+
@supports (color: color-mix(in srgb, transparent, transparent)) {
57+
border-color: color-mix(in srgb, currentcolor 10%, transparent);
58+
background-color: color-mix(in srgb, currentcolor 5%, transparent);
59+
color: color-mix(in srgb, currentcolor 80%, transparent);
60+
}
61+
5962
&[href]:hover {
6063
color: var(--c-text);
6164
}

app/components/partial/Button.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ defineProps<ButtonProps>()
2727
.button {
2828
display: inline-block;
2929
padding: 0.4em 0.6em;
30-
border: 1px solid var(--c-border);
30+
border: 1px solid var(--c-bg-soft);
3131
border-radius: 0.5em;
3232
box-shadow: 0 2px 0.5em var(--ld-shadow);
3333
background-color: var(--c-bg-1);

app/components/partial/Link.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ const tip = computed(() => (isExtLink(props.to) && getDomain(props.to)) || decod
1717

1818
<style lang="scss" scoped>
1919
.z-link {
20+
padding: 0 0.1em;
2021
background: linear-gradient(var(--c-primary-soft), var(--c-primary-soft)) no-repeat center bottom / 100% 0.1em;
2122
color: var(--c-primary);
2223
transition: all 0.2s;

app/pages/home.vue

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,18 +30,14 @@ const appConfig = useAppConfig()
3030
<ZField label="介绍">
3131
<p>
3232
<!-- eslint-disable-next-line vue/singleline-html-element-content-newline -->
33-
<ZLink to="https://github.com/xiyou-linuxer">西邮&thinsp;Linux&thinsp;兴趣小组</ZLink>
34-
成员,Windows 11 和 Arch Linux 用户。
33+
<ZLink to="https://github.com/xiyou-linuxer">西邮&thinsp;Linux&thinsp;兴趣小组</ZLink>成员,Windows 11 和 Arch Linux 用户。
3534
</p>
3635
</ZField>
3736

3837
<ZField label="近期活动">
3938
<p>
40-
7 月完善
4139
<!-- eslint-disable-next-line vue/singleline-html-element-content-newline -->
42-
<ZLink to="https://wiki.cooo.site/">西邮Wiki</ZLink>,8 月使用 Nuxt Content 重构了
43-
<!-- eslint-disable-next-line vue/singleline-html-element-content-newline -->
44-
<ZLink to="https://blog.zhilu.cyou/">个人博客</ZLink>,近期持续开发中。
40+
7 月完善<ZLink to="https://wiki.cooo.site/">西邮Wiki</ZLink>,8 月使用 Nuxt Content 重构了<ZLink to="https://blog.zhilu.cyou/">个人博客</ZLink>,近期持续开发中。
4541
</p>
4642
</ZField>
4743

@@ -57,10 +53,8 @@ const appConfig = useAppConfig()
5753
isYangs
5854
</ZBadge>
5955
等众多朋友为个人主页提供帮助。<br>
60-
主页开源在
6156
<!-- eslint-disable-next-line vue/singleline-html-element-content-newline -->
62-
<ZLink to="https://github.com/L33Z22L11/homepage-v5" icon="ph:github-logo-duotone">L33Z22L11/homepage-v5</ZLink>
63-
上。
57+
主页开源在<ZLink to="https://github.com/L33Z22L11/homepage-v5" icon="ph:github-logo-duotone">L33Z22L11/homepage-v5</ZLink>上。
6458
</p>
6559
<p>
6660
欢迎使用、参考样式:<br>

0 commit comments

Comments
 (0)