-
Notifications
You must be signed in to change notification settings - Fork 0
/
carousel.shadow.css
76 lines (62 loc) · 1.02 KB
/
carousel.shadow.css
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
66
67
68
69
70
71
72
73
74
:host {
all: initial;
position: relative;
display: block;
overflow: hidden;
}
:host > div {
width: 100%;
}
.strip {
width: 100%;
position: relative;
display: flex;
flex-flow: row nowrap;
}
::slotted(*) {
flex: 0 0 100%;
margin: 0;
will-change: transform;
}
.previous-slide, .next-slide {
display: flex;
position: absolute;
z-index: 10;
width: 100px;
height: 100%;
align-items: center;
cursor: pointer;
}
.previous-slide svg,
.next-slide svg {
width: 100%;
}
.previous-slide[hidden], .next-slide[hidden] {
display: none;
}
.next-slide {
right: 0;
justify-content: flex-end;
}
.previous-slide svg,
.next-slide svg {
fill: var(--button-color, white);
}
svg.hand .contrast {
fill: var(--button-contrast-color, black);
}
.slide-indicator {
display: flex;
position: absolute;
justify-content: center;
z-index: 10;
bottom: 10%;
width: 100%;
}
.slide-indicator svg {
margin: 0 0.5rem;
cursor: pointer;
}
.slide-indicator svg path {
fill: var(--indicator-color, white);
}