mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-22 18:07:31 -07:00
feat: 💄 style swiper
This commit is contained in:
parent
15b099f3fd
commit
e6cb4270f6
2 changed files with 19 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "calckey",
|
"name": "calckey",
|
||||||
"version": "12.118.1-calc.12.7",
|
"version": "12.118.1-calc.12.8",
|
||||||
"codename": "aqua",
|
"codename": "aqua",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|
|
@ -36,7 +36,7 @@
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div v-else class="tl _block">
|
<div v-else class="tl _block">
|
||||||
<swiper :modules="[Pagination]" :pagination="{ dynamicBullets: true, }">
|
<swiper :modules="[Pagination]" :pagination="{ dynamicBullets: true, }" :space-between="20">
|
||||||
<swiper-slide>
|
<swiper-slide>
|
||||||
<XTimeline
|
<XTimeline
|
||||||
ref="tl"
|
ref="tl"
|
||||||
|
@ -293,6 +293,8 @@ definePageMetadata(
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.cmuxhskf {
|
.cmuxhskf {
|
||||||
|
--swiper-theme-color: var(--accent);
|
||||||
|
|
||||||
> .new {
|
> .new {
|
||||||
position: sticky;
|
position: sticky;
|
||||||
top: calc(var(--stickyTop, 0px) + 16px);
|
top: calc(var(--stickyTop, 0px) + 16px);
|
||||||
|
@ -316,5 +318,20 @@ definePageMetadata(
|
||||||
border-radius: var(--radius);
|
border-radius: var(--radius);
|
||||||
overflow: clip;
|
overflow: clip;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
> .swiper-pagination {
|
||||||
|
position: fixed;
|
||||||
|
margin-bottom: 100px;
|
||||||
|
z-index: 99999;
|
||||||
|
background-color: var(--panelHighlight);
|
||||||
|
padding: 0.5rem 1rem;
|
||||||
|
border-radius: 999px;
|
||||||
|
color: var(--accent);
|
||||||
|
}
|
||||||
|
|
||||||
|
> .swiper-pagination-bullet-active {
|
||||||
|
background: var(--accent, var(--panel));
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
Loading…
Reference in a new issue