-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCarousel.module.css
More file actions
78 lines (71 loc) · 2.03 KB
/
Carousel.module.css
File metadata and controls
78 lines (71 loc) · 2.03 KB
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
75
76
77
78
.carousel {
--src-carousel-background-color: var(--src-color-04);
--src-carousel-border-color: var(--src-color-01);
--src-carousel-next-background-color: transparent;
--src-carousel-next-background-color-hover: rgba(0, 0, 0, 0.2);
--src-carousel-next-color: rgba(255, 255, 255, 0.8);
--src-carousel-next-color-hover: rgba(255, 255, 255, 1);
--src-carousel-previous-background-color: transparent;
--src-carousel-previous-background-color-hover: rgba(0, 0, 0, 0.2);
--src-carousel-previous-color: rgba(255, 255, 255, 0.8);
--src-carousel-previous-color-hover: rgba(255, 255, 255, 1);
align-items: center;
background-color: var(--src-carousel-background-color);
border: 1px solid var(--src-carousel-border-color);
border-radius: 5px;
box-shadow: 0 5px 8px 0 rgba(0, 0, 0, 0.12);
display: flex;
flex-direction: row;
height: auto;
justify-content: center;
overflow: hidden;
position: relative;
width: 100%;
}
.carousel > .content {
display: flex;
flex-direction: row;
height: 100%;
width: 100%;
}
.carousel > .content > img {
height: auto;
object-fit: contain;
width: 100%;
}
.carousel > .next {
align-items: center;
background-color: var(--src-carousel-next-background-color);
color: var(--src-carousel-next-color);
display: flex;
flex-direction: row;
height: 100%;
justify-content: center;
padding: 40px;
position: absolute;
right: 0px;
top: 0px;
}
.carousel > .next:hover {
background-color: var(--src-carousel-next-background-color-hover);
color: var(--src-carousel-next-color-hover);
cursor: pointer;
}
.carousel > .previous {
align-items: center;
background-color: var(--src-carousel-previous-background-color);
color: var(--src-carousel-previous-color);
display: flex;
flex-direction: row;
height: 100%;
justify-content: center;
left: 0px;
padding: 40px;
position: absolute;
top: 0px;
}
.carousel > .previous:hover {
background-color: var(--src-carousel-previous-background-color-hover);
color: var(--src-carousel-previous-color-hover);
cursor: pointer;
}