feat(style): change pagination swiper styles
This commit is contained in:
@@ -1,10 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="aspect-w-4 aspect-h-3">
|
<div class="aspect-w-4 aspect-h-3">
|
||||||
<swiper
|
<swiper
|
||||||
:style="{
|
|
||||||
'--swiper-navigation-color': '#fff',
|
|
||||||
'--swiper-pagination-color': '#fff',
|
|
||||||
}"
|
|
||||||
:lazy="true"
|
:lazy="true"
|
||||||
:pagination="pagination"
|
:pagination="pagination"
|
||||||
:navigation="true"
|
:navigation="true"
|
||||||
@@ -80,7 +76,7 @@ export default {
|
|||||||
dynamicBullets: true,
|
dynamicBullets: true,
|
||||||
},
|
},
|
||||||
modules: [Pagination],
|
modules: [Pagination],
|
||||||
onTouchMove, // ← вот это добавь
|
onTouchMove,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -8,6 +8,16 @@ html, body, #app {
|
|||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
html {
|
||||||
|
--swiper-pagination-color: var(--color-primary);
|
||||||
|
--swiper-pagination-bullet-inactive-color: var(--color-base-content);
|
||||||
|
}
|
||||||
|
|
||||||
|
.swiper-pagination-bullets {
|
||||||
|
border-radius: var(--radius-selector);
|
||||||
|
padding: 5px 0;
|
||||||
|
}
|
||||||
|
|
||||||
#app {
|
#app {
|
||||||
position: relative;
|
position: relative;
|
||||||
padding-top: var(--tg-content-safe-area-inset-top);
|
padding-top: var(--tg-content-safe-area-inset-top);
|
||||||
|
|||||||
Reference in New Issue
Block a user