Skip to content

Commit 07c8f8a

Browse files
committed
adjusted text to fit on smaller screens
1 parent c197a6e commit 07c8f8a

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

.vitepress/theme/components/Banner.vue

+14-14
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@ function dismiss() {
3131
<span class="vt-date"> · 19-21 May 2025</span>
3232
<a target="_blank" class="vt-primary-action"
3333
href="https://vueconf.us/?utm_source=vuejs&utm_content=top_banner">
34-
Register Now
34+
Register
3535
</a>
3636
</p>
3737
<button @click="dismiss">
3838
<VTIconPlus class="close" />
3939
</button>
4040
<p class="vt-banner-text vt-coupon">
41-
<span class="vt-text-primary">Use code</span> VUEJSDOCS
42-
<span class="vt-text-primary">to get $200 off!</span>
41+
<span class="vt-text-primary">Use</span> VUEJSDOCS
42+
<span class="vt-text-primary"> $200 off</span>
4343
</p>
4444
</div>
4545
</template>
@@ -85,7 +85,7 @@ button {
8585
position: absolute;
8686
right: 0;
8787
top: 0;
88-
padding: 20px 10px;
88+
padding: 10px 10px;
8989
}
9090
9191
.close {
@@ -111,7 +111,7 @@ button {
111111
border-radius: 5px;
112112
font-size: 14px;
113113
text-decoration: none;
114-
margin: 0 20px;
114+
margin: 0 10px;
115115
font-weight: bold;
116116
}
117117
@@ -125,23 +125,16 @@ button {
125125
font-size: 14px;
126126
}
127127
128-
.vt-tagline {
129-
display: none;
130-
}
128+
131129
}
132130
133131
@media (max-width: 780px) {
134132
.vt-tagline {
135133
display: none;
136134
}
137-
138-
.vt-coupon {
139-
display: none;
140-
}
141-
142135
.vt-primary-action {
143136
margin: 0 10px;
144-
padding: 5px 8px;
137+
padding: 5px 5px;
145138
}
146139
147140
.vt-time-now {
@@ -150,8 +143,15 @@ button {
150143
}
151144
152145
@media (max-width: 560px) {
146+
147+
.vt-tagline {
148+
display: none;
149+
}
153150
.vt-place {
154151
display: none;
155152
}
153+
.vt-date {
154+
display: none;
155+
}
156156
}
157157
</style>

0 commit comments

Comments
 (0)