forked from juizi-com/volto-EmblaCarousel
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcarousel-base.css
More file actions
65 lines (56 loc) · 924 Bytes
/
carousel-base.css
File metadata and controls
65 lines (56 loc) · 924 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
.embla {
overflow: hidden;
position: relative;
}
.embla__viewport {
overflow: hidden;
width: 100%;
}
.embla__container {
display: flex;
user-select: none;
-webkit-touch-callout: none;
-webkit-tap-highlight-color: transparent;
margin-left: -10px;
}
.embla__slide {
position: relative;
padding-left: 10px;
}
.embla__prev,
.embla__next {
position: absolute;
top: 50%;
transform: translateY(-50%);
background: rgba(0, 0, 0, 0.6);
color: #fff;
border: none;
padding: 0.5rem 1rem;
font-size: 1.5rem;
cursor: pointer;
z-index: 2;
}
.embla__prev {
left: 0.5rem;
}
.embla__next {
right: 0.5rem;
}
.embla__nav {
display: flex;
justify-content: center;
margin-top: 1rem;
gap: 0.5rem;
}
.embla__dot {
width: 12px;
height: 12px;
border-radius: 50%;
background: #bbb;
border: none;
cursor: pointer;
padding: 0;
}
.embla__dot.is-selected {
background: #333;
}