-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflickpic.css
73 lines (63 loc) · 1.39 KB
/
flickpic.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
img {
max-width: 100%;
width: inherit !important;
height: inherit !important;
}
/* external css: flickity.css */
* {
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
body {
height: auto;
width: 100%;
background-color: #000;
color: #fff;
}
.gallery {
background: black;
}
.gallery-cell {
width:80%;
height: width;
/* flex-box, center image in cell */
display: -webkit-box;
display: -webkit-flex;
display: flex;
-webkit-box-pack: center;
-webkit-justify-content: center;
justify-content: center;
-webkit-align-items: center;
align-items: center;
}
.gallery-cell img {
display: block;
max-width: 100%;
max-height: 100%;
/* dim unselected */
opacity: 0.7;
-webkit-transform: scale(0.85);
transform: scale(0.85);
-webkit-filter: blur(5px);
filter: blur(5px);
-webkit-transition: opacity 0.3s, -webkit-transform 0.3s, transform 0.3s, -webkit-filter 0.3s, filter 0.3s;
transition: opacity 0.3s, transform 0.3s, filter 0.3s;
}
/* brighten selected image */
.gallery-cell.is-selected img {
opacity: 1;
-webkit-transform: scale(1);
transform: scale(1);
-webkit-filter: none;
filter: none;
}
@media screen and ( min-width: 768px ) {
.gallery-cell {
height: 400px;
}
}
@media screen and ( min-width: 960px ) {
.gallery-cell {
width: 60%;
}
}