1 | @import '../../swiper-vars.scss';
|
2 | @at-root {
|
3 | :root {
|
4 | |
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 | }
|
16 | }
|
17 | .swiper-pagination {
|
18 | position: absolute;
|
19 | text-align: center;
|
20 | transition: 300ms opacity;
|
21 | transform: translate3d(0, 0, 0);
|
22 | z-index: 10;
|
23 | &.swiper-pagination-hidden {
|
24 | opacity: 0;
|
25 | }
|
26 | }
|
27 |
|
28 | .swiper-pagination-fraction,
|
29 | .swiper-pagination-custom,
|
30 | .swiper-horizontal > .swiper-pagination-bullets,
|
31 | .swiper-pagination-bullets.swiper-pagination-horizontal {
|
32 | bottom: 10px;
|
33 | left: 0;
|
34 | width: 100%;
|
35 | }
|
36 |
|
37 | .swiper-pagination-bullets-dynamic {
|
38 | overflow: hidden;
|
39 | font-size: 0;
|
40 | .swiper-pagination-bullet {
|
41 | transform: scale(0.33);
|
42 | position: relative;
|
43 | }
|
44 | .swiper-pagination-bullet-active {
|
45 | transform: scale(1);
|
46 | }
|
47 | .swiper-pagination-bullet-active-main {
|
48 | transform: scale(1);
|
49 | }
|
50 | .swiper-pagination-bullet-active-prev {
|
51 | transform: scale(0.66);
|
52 | }
|
53 | .swiper-pagination-bullet-active-prev-prev {
|
54 | transform: scale(0.33);
|
55 | }
|
56 | .swiper-pagination-bullet-active-next {
|
57 | transform: scale(0.66);
|
58 | }
|
59 | .swiper-pagination-bullet-active-next-next {
|
60 | transform: scale(0.33);
|
61 | }
|
62 | }
|
63 | .swiper-pagination-bullet {
|
64 | width: var(--swiper-pagination-bullet-width, var(--swiper-pagination-bullet-size, 8px));
|
65 | height: var(--swiper-pagination-bullet-height, var(--swiper-pagination-bullet-size, 8px));
|
66 | display: inline-block;
|
67 | border-radius: 50%;
|
68 | background: var(--swiper-pagination-bullet-inactive-color, #000);
|
69 | opacity: var(--swiper-pagination-bullet-inactive-opacity, 0.2);
|
70 | @at-root button#{&} {
|
71 | border: none;
|
72 | margin: 0;
|
73 | padding: 0;
|
74 | box-shadow: none;
|
75 | appearance: none;
|
76 | }
|
77 | .swiper-pagination-clickable & {
|
78 | cursor: pointer;
|
79 | }
|
80 |
|
81 | &:only-child {
|
82 | display: none !important;
|
83 | }
|
84 | }
|
85 | .swiper-pagination-bullet-active {
|
86 | opacity: var(--swiper-pagination-bullet-opacity, 1);
|
87 | background: var(--swiper-pagination-color, var(--swiper-theme-color));
|
88 | }
|
89 |
|
90 | .swiper-vertical > .swiper-pagination-bullets,
|
91 | .swiper-pagination-vertical.swiper-pagination-bullets {
|
92 | right: 10px;
|
93 | top: 50%;
|
94 | transform: translate3d(0px, -50%, 0);
|
95 | .swiper-pagination-bullet {
|
96 | margin: var(--swiper-pagination-bullet-vertical-gap, 6px) 0;
|
97 | display: block;
|
98 | }
|
99 | &.swiper-pagination-bullets-dynamic {
|
100 | top: 50%;
|
101 | transform: translateY(-50%);
|
102 | width: 8px;
|
103 | .swiper-pagination-bullet {
|
104 | display: inline-block;
|
105 | transition: 200ms transform, 200ms top;
|
106 | }
|
107 | }
|
108 | }
|
109 | .swiper-horizontal > .swiper-pagination-bullets,
|
110 | .swiper-pagination-horizontal.swiper-pagination-bullets {
|
111 | .swiper-pagination-bullet {
|
112 | margin: 0 var(--swiper-pagination-bullet-horizontal-gap, 4px);
|
113 | }
|
114 | &.swiper-pagination-bullets-dynamic {
|
115 | left: 50%;
|
116 | transform: translateX(-50%);
|
117 | white-space: nowrap;
|
118 | .swiper-pagination-bullet {
|
119 | transition: 200ms transform, 200ms left;
|
120 | }
|
121 | }
|
122 | }
|
123 | .swiper-horizontal.swiper-rtl > .swiper-pagination-bullets-dynamic .swiper-pagination-bullet {
|
124 | transition: 200ms transform, 200ms right;
|
125 | }
|
126 |
|
127 | .swiper-pagination-progressbar {
|
128 | background: rgba(0, 0, 0, 0.25);
|
129 | position: absolute;
|
130 | .swiper-pagination-progressbar-fill {
|
131 | background: var(--swiper-pagination-color, var(--swiper-theme-color));
|
132 | position: absolute;
|
133 | left: 0;
|
134 | top: 0;
|
135 | width: 100%;
|
136 | height: 100%;
|
137 | transform: scale(0);
|
138 | transform-origin: left top;
|
139 | }
|
140 | .swiper-rtl & .swiper-pagination-progressbar-fill {
|
141 | transform-origin: right top;
|
142 | }
|
143 | .swiper-horizontal > &,
|
144 | &.swiper-pagination-horizontal,
|
145 | .swiper-vertical > &.swiper-pagination-progressbar-opposite,
|
146 | &.swiper-pagination-vertical.swiper-pagination-progressbar-opposite {
|
147 | width: 100%;
|
148 | height: 4px;
|
149 | left: 0;
|
150 | top: 0;
|
151 | }
|
152 | .swiper-vertical > &,
|
153 | &.swiper-pagination-vertical,
|
154 | .swiper-horizontal > &.swiper-pagination-progressbar-opposite,
|
155 | &.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite {
|
156 | width: 4px;
|
157 | height: 100%;
|
158 | left: 0;
|
159 | top: 0;
|
160 | }
|
161 | }
|
162 | .swiper-pagination-lock {
|
163 | display: none;
|
164 | }
|