Skip to content

Commit 60c5cf9

Browse files
authored
Fix carousel alignment issue (#691)
1 parent 192dc62 commit 60c5cf9

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

web/samples_index/web/styles.scss

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -403,17 +403,17 @@ a {
403403
// Carousel Container
404404
.slider-container {
405405
position: relative;
406-
margin: -80px auto -60px auto;
406+
margin: 12px auto 24px auto;
407407
width: 800px;
408-
height: 600px;
408+
height: 500px;
409409
max-width: 95%;
410410
@media screen and (max-width: $mobile-width) {
411-
margin: -80px 4px -60px 4px;
411+
margin: 12px 4px;
412412
}
413413

414414
.bullet-container {
415415
position: absolute;
416-
bottom: 80px;
416+
bottom: 0;
417417
width: 100%;
418418
display: flex;
419419
align-items: center;
@@ -432,7 +432,7 @@ a {
432432
background-color: black;
433433
opacity: 0.2;
434434
cursor: pointer;
435-
transition: 40ms ease;
435+
transition: 200ms ease;
436436

437437
&.active {
438438
opacity: 1;
@@ -445,10 +445,10 @@ a {
445445
left: 50%;
446446
top: 50%;
447447
width: 70%;
448-
height: 60%;
448+
height: 85%;
449449
transform: translate(-50%, -50%);
450450
@media screen and (max-width: $mobile-width) {
451-
width: 100%
451+
width: 100%;
452452
}
453453

454454
.slider-single {

0 commit comments

Comments
 (0)