forked from gonzomir/paspartou
-
Notifications
You must be signed in to change notification settings - Fork 0
/
paspartou.css
136 lines (116 loc) · 2.46 KB
/
paspartou.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
135
136
#paspartou {
display: none;
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
width: 100%;
height: 100%;
background: url('../images/loading.gif') center no-repeat #000;
z-index: 1000;
transition: all ease 300ms;
}
#paspartou.active {
display: block;
}
#paspartou button {
position: absolute;
top: 50%;
width: 1.5em;
margin-top: -1.25em;
padding-bottom: .1em;
background: #000;
background: rgba(0, 0, 0, .5);
border: 1px solid #000;
border: 1px solid rgba(255, 255, 255, 0);
border-radius: .25em;
color: #fff;
font-family: 'Arial Unicode MS', 'Lucida Sans', Arial, Helvetica, sans-serif;
font-size: 1.5em;
font-weight: bold;
line-height: 2.2em;
text-align: center;
z-index: 2;
cursor: pointer;
transition: all ease 200ms;
}
#paspartou button:hover {
border: 1px solid rgba(255, 255, 255, .5);
box-shadow: 0 0 .25em rgba(255, 255, 255, .5);
}
#paspartou button:active {
box-shadow: inset 0 0 .25em rgba(255, 255, 255, .5);
}
#paspartou #prev {
left: .5em;
}
#paspartou #next {
right: .5em;
}
#paspartou #close {
top: .5em;
right: .5em;
margin: 0;
height: 1.5em;
line-height: 1.4em;
}
#paspartou > div {
display: -webkit-box; /* OLD: Safari, iOS, Android browser, older WebKit browsers. */
display: -moz-box; /* OLD: Firefox (buggy) */
display: -ms-flexbox; /* MID: IE 10 */
display: -webkit-flex; /* NEW, Chrome 21–28, Safari 6.1+ */
display: flex; /* NEW: IE11, Chrome 29+, Opera 12.1+, Firefox 22+ */
width: 100%;
height: 100%;
-webkit-box-align: center; -moz-box-align: center; /* OLD… */
-ms-flex-align: center; /* You know the drill now… */
-webkit-align-items: center;
align-items: center;
-webkit-box-pack: center; -moz-box-pack: center;
-ms-flex-pack: center;
-webkit-justify-content: center;
justify-content: center;
text-align: center;
}
#paspartou > div > div {
width: auto;
height: auto;
max-width: 100%;
max-height: 100%;
text-align: center;
margin: 0 auto;
}
#paspartou img {
width: auto;
height: auto;
max-width: 100%;
max-height: 100%;
max-height: 100vh;
transition: all ease 200ms;
}
#paspartou .hidden {
opacity: 0;
}
#paspartou button.hidden {
cursot: default;
pointer-events: none;
}
#paspartou p {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
margin: 0;
padding: .5em 0;
background: rgba(0, 0, 0, .5);
color: #fff;
transition: all 200ms ease 200ms;
}
#paspartou img.hidden + p {
opacity: 0;
transition: all 200ms ease 0;
}
#paspartou p:empty {
opacity: 0;
}