Skip to content

Commit da7411a

Browse files
committed
feat: improve newsletter component
- Add hover style to the button - Add missing transition settings - Remove double border with footer on dark mode
1 parent aaa20db commit da7411a

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/.vitepress/theme/components/NewsletterSection.vue

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ import { VTLink } from '@vue/theme'
5757
5858
.dark .NewsletterSection {
5959
border-top-color: var(--vt-c-divider-light);
60+
border-bottom-color: transparent;
6061
background: var(--vt-c-bg);
6162
}
6263
@@ -76,6 +77,7 @@ import { VTLink } from '@vue/theme'
7677
font-size: 14px;
7778
font-weight: 500;
7879
color: var(--vt-c-text-2);
80+
transition: color 0.5s;
7981
}
8082
8183
@media (min-width: 375px) {
@@ -139,14 +141,20 @@ import { VTLink } from '@vue/theme'
139141
}
140142
141143
.button {
142-
background-color: var(--vt-c-brand);
143144
border-radius: 4px;
144145
padding: 0 12px;
145146
letter-spacing: .8px;
146147
line-height: 36px;
147148
font-size: 13px;
148149
font-weight: 500;
149150
color: var(--vt-c-text-dark-1);
151+
background-color: var(--vt-c-brand);
152+
transition: background-color .25s;
153+
cursor: pointer;
154+
}
155+
156+
.button:hover {
157+
background-color: var(--vt-c-brand-dark);
150158
}
151159
152160
.help {

0 commit comments

Comments
 (0)