-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.css
103 lines (100 loc) · 2.43 KB
/
index.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
@import url("https://fonts.googleapis.com/css?family=Hind:400,700");
html, body {
font-family: 'Hind', sans-serif;
margin: 0;
padding: 0;
/* background-color: #d9e2fd; */
width: 100%;
height: 100%;
}
img {
max-width: 100%;
height: auto;
display: block;
}
h3 {
text-align: center;
font-size: 10px;
font-weight: 400;
margin-bottom: 0;
}
.carousel-wrapper {
position: relative;
width: 90%;
height: 50%;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background-color: #FFFFFF;
background-image: linear-gradient(#FFFFFF 50%, #FFFFFF 50%, #F0F3FC 50%);
box-shadow: 0px 12px 39px -19px rgba(0, 0, 0, 0.75);
overflow: hidden;
}
.carousel-wrapper .carousel {
position: absolute;
top: 50%;
transform: translateY(-50%);
width: 100%;
height: auto;
}
.carousel-wrapper .carousel .carousel-cell {
padding: 10px;
background-color: #FFFFFF;
width: 20%;
height: auto;
min-width: 120px;
margin: 0 20px;
transition: transform 500ms ease;
}
.carousel-wrapper .carousel .carousel-cell .more {
display: block;
opacity: 0;
margin: 5px 0 15px 0;
text-align: center;
font-size: 10px;
color: black;
text-decoration: none;
transition: opacity 300ms ease;
}
.carousel-wrapper .carousel .carousel-cell .more:hover, .carousel-wrapper .carousel .carousel-cell .more:active, .carousel-wrapper .carousel .carousel-cell .more:visited, .carousel-wrapper .carousel .carousel-cell .more:focus {
color: black;
text-decoration: none;
}
.carousel-wrapper .carousel .carousel-cell .line {
position: absolute;
width: 2px;
height: 0;
background-color: black;
left: 50%;
margin: 5px 0 0 -1px;
transition: height 300ms ease;
display: block;
}
.carousel-wrapper .carousel .carousel-cell .price {
position: absolute;
font-weight: 700;
margin: 45px auto 0 auto;
left: 50%;
transform: translate(-50%);
opacity: 0;
transition: opacity 300ms ease 300ms;
}
.carousel-wrapper .carousel .carousel-cell .price sup {
top: 2px;
position: absolute;
}
.carousel-wrapper .carousel .carousel-cell.is-selected {
transform: scale(1.2);
}
.carousel-wrapper .carousel .carousel-cell.is-selected .line {
height: 35px;
}
.carousel-wrapper .carousel .carousel-cell.is-selected .price, .carousel-wrapper .carousel .carousel-cell.is-selected .more {
opacity: 1;
}
.carousel-wrapper .flickity-page-dots {
display: none;
}
.carousel-wrapper .flickity-viewport, .carousel-wrapper .flickity-slider {
overflow: visible;
}