forked from barnabycolby/MMM-Carousel
-
-
Notifications
You must be signed in to change notification settings - Fork 14
/
MMM-Carousel.css
134 lines (113 loc) · 2.02 KB
/
MMM-Carousel.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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
body {
overflow: visible;
margin-bottom: 0;
height: calc(100% - 60px);
}
.region.bottom {
bottom: 60px;
}
.zoom50 {
zoom: 0.5;
}
.zoom75 {
zoom: 0.75;
}
.zoom125 {
zoom: 1.25;
}
.zoom150 {
zoom: 1.5;
}
.zoom175 {
zoom: 1.75;
}
.zoom200 {
zoom: 2;
}
/* Next and Previous arrow */
.control {
position: absolute;
bottom: 0;
width: 150px;
height: 150px;
z-index: 55;
}
.control label {
z-index: 0;
display: none;
text-align: center;
line-height: 50px;
position: relative;
width: 50px;
height: 50px;
left: 33%; /* Center in .control div: this.width / .control.width; */
top: 33%; /* Center in .control div: this.height / .control.height;; */
font-size: 50px;
color: #fff;
cursor: pointer !important;
opacity: 0;
}
.next {
right: -60px;
}
.previous {
left: -60px;
}
/* Slider Pagger */
.slider-pagination {
position: absolute;
bottom: 15px;
width: 100%;
left: 0;
text-align: center;
z-index: 1000;
}
.slider-pagination label {
width: 10px;
height: 10px;
border-radius: 50%;
display: inline-block;
background: rgb(255 255 255 / 20%);
margin: 0 2px;
border: solid 1px rgb(255 255 255 / 40%);
cursor: pointer !important;
}
/* Show button when you hover near */
.control:hover {
cursor: pointer !important;
}
.control:hover label {
opacity: 0.2;
cursor: pointer !important;
}
.mmm-carousel-current-page {
background: rgba(255 255 255 / 100%) !important;
}
.mmm-carousel-paused .slider-pagination label {
border-color: black;
background: rgba(0 0 0 / 20%);
}
.mmm-carousel-paused .mmm-carousel-current-page {
background: rgba(0 0 0 / 100%) !important;
}
/* Hide actual radio buttons */
.slide-radio {
position: absolute;
bottom: -200px;
left: -200px;
visibility: hidden;
}
/* Slider Pagger arrow event */
.mmm-carousel-available {
display: block !important;
z-index: 100 !important;
}
.mmm-carousel-container {
overflow: visible !important;
position: absolute;
height: 60px;
bottom: -60px;
width: 100%;
left: 0;
z-index: 50;
}