fix(theme): change sponsor link class name to bypass adblock (#866) (#867)

pull/868/head
Joaquín Sánchez 2 years ago committed by GitHub
parent a689f6b6d3
commit e33955e769
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -39,9 +39,9 @@ defineProps<{
</div> </div>
</div> </div>
</div> </div>
<div v-if="member.sponsor" class="sponsor"> <div v-if="member.sponsor" class="sp">
<VPLink class="sponsor-link" :href="member.sponsor" no-icon> <VPLink class="sp-link" :href="member.sponsor" no-icon>
<VPIconHeart class="sponsor-icon" /> Sponsor <VPIconHeart class="sp-icon" /> Sponsor
</VPLink> </VPLink>
</div> </div>
</article> </article>
@ -186,7 +186,7 @@ defineProps<{
height: 56px; height: 56px;
} }
.sponsor-link { .sp-link {
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
@ -199,14 +199,14 @@ defineProps<{
transition: color 0.25s, background-color 0.25s; transition: color 0.25s, background-color 0.25s;
} }
.sponsor-link:hover, .sp-link:hover,
.sponsor-link:focus { .sp-link:focus {
outline: none; outline: none;
color: var(--vp-c-text-dark-1); color: var(--vp-c-text-dark-1);
background-color: var(--vp-c-sponsor); background-color: var(--vp-c-sponsor);
} }
.sponsor-icon { .sp-icon {
margin-right: 8px; margin-right: 8px;
width: 16px; width: 16px;
height: 16px; height: 16px;

Loading…
Cancel
Save