Skip to content

Commit e9d44ba

Browse files
committed
(style) - Adjust style for CarouselSwiper
1 parent 4bb0899 commit e9d44ba

File tree

1 file changed

+34
-11
lines changed

1 file changed

+34
-11
lines changed

mobile/src/components/ui/CarouselSwiper.vue

Lines changed: 34 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -33,22 +33,40 @@ const props = defineProps({
3333
.swiper {
3434
width: 100%;
3535
height: 500px;
36+
padding-bottom: 38px;
3637
border-radius: 12px;
38+
border: 1px solid var(--app-beige-line);
39+
background: var(--app-grey-light);
3740
box-shadow: var(--app-shadow-light);
3841
42+
@media (prefers-color-scheme: dark) {
43+
background: var(--app-dark-contrast);
44+
}
45+
3946
.callout {
4047
position: absolute;
4148
top: 0;
4249
}
4350
4451
.swiper-zoom-container {
45-
border-radius: 12px;
46-
background: var(--app-white);
47-
border: 1px solid var(--app-beige-line);
52+
border-radius: 12px 12px 0 0;
53+
}
54+
}
4855
49-
@media (prefers-color-scheme: dark) {
50-
background: var(--app-dark-contrast);
51-
}
56+
.swiper-pagination {
57+
display: flex;
58+
align-items: center;
59+
justify-content: center;
60+
bottom: 0 !important;
61+
height: 38px;
62+
background: var(--app-white);
63+
box-shadow: rgba(0, 0, 0, 0.24) 0 3px 8px;
64+
border: none !important;
65+
z-index: 0;
66+
67+
@media (prefers-color-scheme: dark) {
68+
background: var(--app-light-contrast);
69+
border: 4px solid var(--app-dark-contrast);
5270
}
5371
}
5472
@@ -58,23 +76,28 @@ const props = defineProps({
5876
display: flex;
5977
flex-direction: column;
6078
justify-content: center;
61-
height: 44px;
62-
width: 44px;
79+
height: 48px;
80+
width: 48px;
6381
border-radius: 44px;
6482
background: var(--app-primary);
65-
box-shadow: var(--app-shadow-light);
83+
border: 4px solid var(--app-white);
6684
6785
@media (prefers-color-scheme: dark) {
6886
background: var(--app-white);
69-
border: 2px solid var(--app-dark-contrast);
87+
border: 4px solid var(--app-light-contrast);
88+
}
89+
90+
&:active {
91+
transition: 140ms ease-in-out;
92+
transform: scale(0.94) !important;
7093
}
7194
7295
&:after {
7396
font-size: 20px !important;
7497
font-weight: bolder;
7598
7699
@media (prefers-color-scheme: dark) {
77-
color: var(--app-primary);
100+
color: var(--app-primary);
78101
}
79102
}
80103

0 commit comments

Comments
 (0)