Skip to content

Commit 31cf91e

Browse files
committed
fix: 修正官网按钮文案显示
1 parent 6a195f3 commit 31cf91e

1 file changed

Lines changed: 18 additions & 3 deletions

File tree

‎docs/index.vue‎

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515
</div>
1616
<div class="hero-actions">
1717
<a class="primary-action" href="https://github.com/feigeCode/onetcli/releases" target="_blank" rel="noreferrer">
18-
下载 OnetCli
18+
<span>下载 OnetCli</span>
1919
</a>
2020
<a class="secondary-action" :href="withBase('/guide')">
21-
查看文档
21+
<span>查看文档</span>
2222
</a>
2323
</div>
2424
<dl class="hero-metrics">
@@ -125,7 +125,7 @@
125125
<p>macOS、Windows、Linux</p>
126126
</div>
127127
<a class="primary-action" href="https://github.com/feigeCode/onetcli/releases" target="_blank" rel="noreferrer">
128-
前往 GitHub Releases
128+
<span>前往 GitHub Releases</span>
129129
</a>
130130
</div>
131131
</section>
@@ -321,6 +321,12 @@ const structuredData = JSON.stringify(
321321
@apply inline-flex items-center justify-center rounded-full px-5 py-3 text-sm font-medium no-underline transition-all duration-200;
322322
}
323323
324+
.primary-action span,
325+
.secondary-action span {
326+
position: relative;
327+
z-index: 1;
328+
}
329+
324330
.primary-action {
325331
@apply bg-[#18212f] shadow-[0_16px_32px_rgba(24,33,47,0.18)] hover:-translate-y-0.5 hover:bg-[#0f1722];
326332
color: #ffffff;
@@ -330,10 +336,19 @@ const structuredData = JSON.stringify(
330336
&:active {
331337
color: #ffffff;
332338
}
339+
340+
span {
341+
color: #ffffff !important;
342+
text-shadow: 0 1px 1px rgba(0, 0, 0, 0.16);
343+
}
333344
}
334345
335346
.secondary-action {
336347
@apply border border-[#c9d4cb] bg-white/78 text-[#1d4d41] hover:-translate-y-0.5 hover:border-[#9fbaa9] hover:bg-white;
348+
349+
span {
350+
color: #1d4d41;
351+
}
337352
}
338353
339354
.section-block {

0 commit comments

Comments
 (0)