mirror of
https://gitee.com/wot-design-uni/wot-design-uni.git
synced 2025-12-08 01:58:52 +08:00
refactor: ♻️ 赞助商样式更新
This commit is contained in:
parent
50a286fb5f
commit
9f54ef0313
@ -1,7 +1,7 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: weisheng
|
* @Author: weisheng
|
||||||
* @Date: 2025-09-21 17:13:45
|
* @Date: 2025-09-21 17:13:45
|
||||||
* @LastEditTime: 2025-09-21 19:53:54
|
* @LastEditTime: 2025-09-21 22:57:29
|
||||||
* @LastEditors: weisheng
|
* @LastEditors: weisheng
|
||||||
* @Description:
|
* @Description:
|
||||||
* @FilePath: /wot-design-uni/docs/.vitepress/theme/components/AsideSponsors.vue
|
* @FilePath: /wot-design-uni/docs/.vitepress/theme/components/AsideSponsors.vue
|
||||||
@ -24,12 +24,12 @@ const goldSponsors = computed(() => {
|
|||||||
|
|
||||||
// 判断金牌赞助数量是否为奇数
|
// 判断金牌赞助数量是否为奇数
|
||||||
const isGoldSponsorsOdd = computed(() => {
|
const isGoldSponsorsOdd = computed(() => {
|
||||||
return (goldSponsors.value?.items?.length||0) % 2 === 1
|
return (goldSponsors.value?.items?.length || 0) % 2 === 1
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div class="VPDocAsideSponsors">
|
<div class="VPDocAsideSponsors">
|
||||||
<a class="sponsors-aside-text" href="/reward/sponsor">赞助位</a>
|
<a class="sponsors-aside-text" href="/reward/sponsor">赞助位</a>
|
||||||
<div class="VPSponsors vp-sponsor aside">
|
<div class="VPSponsors vp-sponsor aside">
|
||||||
<!-- 超级赞助:一行一个 -->
|
<!-- 超级赞助:一行一个 -->
|
||||||
@ -83,7 +83,7 @@ const isGoldSponsorsOdd = computed(() => {
|
|||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
@ -96,6 +96,12 @@ const isGoldSponsorsOdd = computed(() => {
|
|||||||
color: var(--vp-c-gray-1);
|
color: var(--vp-c-gray-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.vp-sponsor-grid-image {
|
||||||
|
max-width: 120px;
|
||||||
|
max-height: 72px !important;
|
||||||
|
filter: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
a.sponsors-aside-text {
|
a.sponsors-aside-text {
|
||||||
color: var(--vp-c-text-3);
|
color: var(--vp-c-text-3);
|
||||||
display: block;
|
display: block;
|
||||||
|
|||||||
@ -7,7 +7,7 @@ interface Props {
|
|||||||
}
|
}
|
||||||
|
|
||||||
withDefaults(defineProps<Props>(), {
|
withDefaults(defineProps<Props>(), {
|
||||||
title: '超级赞助',
|
title: '铂金赞助商',
|
||||||
})
|
})
|
||||||
|
|
||||||
const { data } = useAdSponsor()
|
const { data } = useAdSponsor()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user