Skip to content

Commit c858969

Browse files
chore: update banner
1 parent 252c52b commit c858969

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

.vitepress/theme/components/Banner.vue

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,10 @@ function dismiss() {
2020
}
2121
</script>
2222

23+
2324
<template>
2425
<div class="banner" v-if="open">
25-
<svg style="margin-right: 0.25rem" width="30" height="30" viewBox="0 0 30 30" fill="none"
26+
<svg style="margin-right: 0.5rem" width="20" height="20" viewBox="0 0 30 30" fill="none"
2627
xmlns="http://www.w3.org/2000/svg">
2728
<g>
2829
<path
@@ -66,7 +67,7 @@ function dismiss() {
6667

6768
<style>
6869
html:not(.banner-dismissed) {
69-
--vt-banner-height: 60px;
70+
--vt-banner-height: 30px;
7071
}
7172
</style>
7273

@@ -81,8 +82,7 @@ html:not(.banner-dismissed) {
8182
height: var(--vt-banner-height);
8283
line-height: var(--vt-banner-height);
8384
text-align: center;
84-
font-size: 13px;
85-
font-weight: 600;
85+
font-size: 12px;
8686
color: white;
8787
background: #262626;
8888
display: flex;
@@ -155,7 +155,7 @@ button {
155155
position: absolute;
156156
right: 0;
157157
top: 0;
158-
padding: 20px 10px;
158+
padding: 5px 5px;
159159
}
160160
161161
.close {
@@ -167,7 +167,7 @@ button {
167167
168168
.vt-banner-text {
169169
color: #fff;
170-
font-size: 16px;
170+
font-size: 12px;
171171
}
172172
173173
.vt-main {
@@ -179,12 +179,11 @@ button {
179179
.vt-primary-action {
180180
background: radial-gradient(141.42% 141.42% at 100% 0%, #ffffff80, #fff0), radial-gradient(140.35% 140.35% at 100% 94.74%, #bd34fe, #bd34fe00), radial-gradient(89.94% 89.94% at 18.42% 15.79%, #41d1ff, #41d1ff00);
181181
color: #fff;
182-
padding: 6px 12px;
182+
padding: 4px 8px;
183183
border-radius: 5px;
184-
font-size: 14px;
184+
font-size: 10px;
185185
text-decoration: none;
186-
margin: 0 20px;
187-
font-weight: bold;
186+
margin: 0 10px;
188187
transition: all .2s ease-in-out;
189188
190189
&:hover {
@@ -214,7 +213,7 @@ button {
214213
215214
.vt-primary-action {
216215
margin: 0 10px;
217-
padding: 5px 8px;
216+
padding: 4px 8px;
218217
}
219218
220219
.vt-time-now {

0 commit comments

Comments
 (0)