-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
106 lines (91 loc) · 2.3 KB
/
styles.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
body {
margin: 0;
padding: 0;
background: #000;
font-family: "Georgia", serif;
}
/*
The gallery container.
- Fills the browser window.
- Renders its contents in 3D.
- Has a gradient mask to fade out slides at the left and right edges.
*/
#gallery {
position: absolute;
width: 100%;
height: 100%;
-webkit-perspective: 600px;
overflow: hidden;
-webkit-mask-image: -webkit-gradient(linear, left top, right top, color-stop(0, rgba(0,0,0,.2)), color-stop(.1, rgba(0,0,0,1)), color-stop(.9, rgba(0,0,0,1)), color-stop(1, rgba(0,0,0,.2)) );
}
/*
Images within the gallery.
- Add a reflection below the image.
- Fade the reflection out gradually towards the bottom.
- Make the image resize with its containing div.
- Hide the image initially.
*/
#gallery img {
cursor: pointer;
-webkit-box-reflect:
below
0
-webkit-gradient(
linear,
left top,
left bottom,
color-stop(0, rgba(255, 255, 255, 0)),
color-stop(.5, rgba(255, 255, 255, .3)),
color-stop(1, rgba(255, 255, 255, .3))
);
max-width: inherit;
max-height: inherit;
display: none;
}
/*
Divs wrapped around the gallery images and reflections.
- Add some bottom padding to allow for the reflection.
- Position the div below the gallery bottom so the reflection is partially hidden.
- Give the div a black background to prevent other reflections leaking through.
*/
#gallery div {
position: absolute;
padding-bottom: 400px;
bottom: -300px;
background: #000;
}
/*
The current slide caption.
- Position it below the slide.
- Centre it horizontally.
- Give it a font that's remarkably similar to the real thing. :)
*/
#caption {
position: absolute;
z-index: 2;
bottom: 75px;
width: 100%;
color: #fff;
text-align: center;
font-family: "Lucida Grande", sans-serif;
font-size: 12px;
font-weight: bold;
}
/*
Loading text.
- Position in the centre of the gallery container
- Hide by default
*/
#loading {
position: absolute;
z-index: 1;
bottom: 50%;
width: 100%;
color: #ffc;
text-align: center;
font-family: "Georgia", serif;
font-size: 36px;
letter-spacing: .1em;
opacity: 0;
filter: alpha(opacity=0);
}