forked from Pagawa/PgwSlideshow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pgwslideshow.css
210 lines (185 loc) · 4.99 KB
/
pgwslideshow.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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
/**
* PgwSlideshow - Version 2.0
*
* Copyright 2014, Jonathan M. Piat
* http://pgwjs.com - http://pagawa.com
*
* Released under the GNU GPLv3 license - http://opensource.org/licenses/gpl-3.0
*/
.pgwSlideshow {
width: 100%;
background: #333;
display: none;
}
.pgwSlideshow a{
color: #fff;
}
.pgwSlideshow .ps-current {
text-align: center;
position: relative;
min-height: 150px;
overflow: hidden;
}
.pgwSlideshow .ps-current > ul > li {
text-align: center;
width: 100%;
z-index: 1;
opacity: 0;
display: block;
}
.pgwSlideshow .ps-current > ul > li img {
display: block;
max-width: 100%;
margin: auto;
}
.pgwSlideshow .ps-caption {
background: rgba(0, 0, 0, 0.5);
filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#99000000', endColorstr='#99000000');
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#99000000', endColorstr='#99000000')";
text-align: left;
font-size: 1rem;
color: #fff;
position: absolute;
left: 0px;
bottom: 0px;
width: 100%;
padding: 10px;
display: none;
}
.pgwSlideshow .ps-caption span {
padding: 7px;
display: inline-block;
}
.pgwSlideshow .ps-list {
border-top: 1px solid #555;
box-shadow: 0 10px 10px -5px #333 inset;
background: #555;
overflow: hidden;
position: relative;
}
.pgwSlideshow .ps-list ul {
position: relative;
list-style: none;
margin: 0;
padding: 0;
left: 0;
}
.pgwSlideshow .ps-list li {
float: left;
}
.pgwSlideshow .ps-list li .ps-item {
display: block;
margin: 15px 8px;
opacity: 0.6;
filter: alpha(opacity=60);
}
.pgwSlideshow .ps-list li img {
display: block;
border: 1px solid #777;
width: 80px;
height: 80px;
}
.pgwSlideshow .ps-list li .ps-item.ps-selected {
float: left;
opacity: 1;
border: 4px solid #fff;
overflow: hidden;
}
.pgwSlideshow .ps-list li .ps-item.ps-selected img {
margin: -4px;
}
.pgwSlideshow .ps-prevIcon {
border-color:transparent #fff transparent;
border-style: solid;
border-width: 10px 10px 10px 0;
display: block;
}
.pgwSlideshow .ps-nextIcon {
border-color:transparent #fff transparent;
border-style: solid;
border-width: 10px 0 10px 10px;
display: block;
}
.pgwSlideshow .ps-current .ps-prev {
background: rgba(0, 0, 0, 0.5);
filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#99000000', endColorstr='#99000000');
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#99000000', endColorstr='#99000000')";
border: 1px solid #777;
border-left: 0;
border-radius: 0 4px 4px 0;
position: absolute;
padding: 20px 20px 20px 15px;
left: 0;
top: 45%;
cursor: pointer;
}
.pgwSlideshow .ps-current .ps-next {
background: rgba(0, 0, 0, 0.5);
filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#99000000', endColorstr='#99000000');
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#99000000', endColorstr='#99000000')";
border: 1px solid #777;
border-right: 0;
border-radius: 4px 0 0 4px;
position: absolute;
padding: 20px 15px 20px 20px;
right: 0;
top: 45%;
cursor: pointer;
}
.pgwSlideshow .ps-list .ps-prev {
background: rgba(0, 0, 0, 0.5);
filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#bb000000', endColorstr='#bb000000');
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#bb000000', endColorstr='#bb000000')";
border: 1px solid #777;
border-left: 0;
border-radius: 0 4px 4px 0;
padding: 20px 15px 20px 12px;
cursor: pointer;
position: absolute;
left: 0;
top: 25px;
z-index: 1000;
display: none;
}
.pgwSlideshow .ps-list .ps-next {
background: rgba(0, 0, 0, 0.5);
filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#bb000000', endColorstr='#bb000000');
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#bb000000', endColorstr='#bb000000')";
border: 1px solid #777;
border-right: 0;
border-radius: 4px 0 0 4px;
padding: 20px 12px 20px 15px;
cursor: pointer;
position: absolute;
right: 0;
top: 25px;
z-index: 1000;
display: none;
}
/*
* The media-queries are not used because IE8 doesn't support them.
*/
.pgwSlideshow.narrow .ps-list li img {
width: 60px;
height: 60px;
}
.pgwSlideshow.narrow .ps-current .ps-prev {
padding: 15px 15px 15px 12px;
top: 40%;
}
.pgwSlideshow.narrow .ps-current .ps-next {
padding: 15px 12px 15px 15px;
top: 40%;
}
.pgwSlideshow.narrow .ps-list .ps-prev {
padding: 15px 12px 15px 10px;
top: 20px;
}
.pgwSlideshow.narrow .ps-list .ps-next {
padding: 15px 10px 15px 12px;
top: 20px;
}
.pgwSlideshow.narrow .ps-caption {
font-size: 0.8rem;
padding: 8px;
}