Projet

Général

Profil

Paste
Télécharger (4,01 ko) Statistiques
| Branche: | Révision:

root / drupal7 / sites / all / modules / colorbox / styles / default / colorbox_style.css @ b433176d

1
/**
2
 * Colorbox Core Style:
3
 * The following CSS is consistent between example themes and should not be altered.
4
 */
5
#colorbox,
6
#cboxOverlay,
7
#cboxWrapper {
8
  position: absolute;
9
  top: 0;
10
  left: 0;
11
  z-index: 9999;
12
  overflow: hidden;
13
}
14
#cboxOverlay {
15
  position: fixed;
16
  width: 100%;
17
  height: 100%;
18
}
19
#cboxMiddleLeft,
20
#cboxBottomLeft {
21
  clear: left;
22
}
23
#cboxContent {
24
  position: relative;
25
}
26
#cboxLoadedContent {
27
  overflow: auto;
28
  -webkit-overflow-scrolling: touch;
29
}
30
#cboxTitle {
31
  margin: 0;
32
}
33
#cboxLoadingOverlay,
34
#cboxLoadingGraphic {
35
  position: absolute;
36
  top: 0;
37
  left: 0;
38
  width: 100%;
39
  height: 100%;
40
}
41
/**
42
 * These elements are buttons, and may need to have additional
43
 * styles reset to avoid unwanted base styles.
44
 */
45
#cboxPrevious,
46
#cboxNext,
47
#cboxClose,
48
#cboxSlideshow {
49
  border: 0;
50
  padding: 0;
51
  margin: 0;
52
  overflow: visible;
53
  width: auto;
54
  background: none;
55
  cursor: pointer;
56
}
57
/**
58
 * Avoid outlines on :active (mouseclick),
59
 * but preserve outlines on :focus (tabbed navigating)
60
 */
61
#cboxPrevious:active,
62
#cboxNext:active,
63
#cboxClose:active,
64
#cboxSlideshow:active {
65
  outline: 0;
66
}
67
.cboxPhoto {
68
  float: left;
69
  margin: auto;
70
  border: 0;
71
  display: block;
72
  max-width: 100%;
73
  max-height: 100%;
74
}
75
.cboxIframe {
76
  width: 100%;
77
  height: 100%;
78
  display: block;
79
  border: 0;
80
}
81
/* Reset box sizing to content-box if theme is using border-box. */
82
#colorbox,
83
#cboxContent,
84
#cboxLoadedContent {
85
  -moz-box-sizing: content-box;
86
  -webkit-box-sizing: content-box;
87
  box-sizing: content-box;
88
}
89

    
90
/**
91
 * Colorbox module default style:
92
 * The styles are ordered & tabbed in a way that represents
93
 * the nesting of the generated HTML.
94
 */
95
#cboxOverlay {
96
  background: #000;
97
}
98
#colorbox {
99
  outline: 0;
100
}
101
#cboxWrapper {
102
  background: #fff;
103
  -moz-border-radius: 5px;
104
  -webkit-border-radius: 5px;
105
  border-radius: 5px;
106
}
107
#cboxTopLeft {
108
  width: 15px;
109
  height: 15px;
110
}
111
#cboxTopCenter {
112
  height: 15px;
113
}
114
#cboxTopRight {
115
  width: 15px;
116
  height: 15px;
117
}
118
#cboxBottomLeft {
119
  width: 15px;
120
  height: 10px;
121
}
122
#cboxBottomCenter {
123
  height: 10px;
124
}
125
#cboxBottomRight {
126
  width: 15px;
127
  height: 10px;
128
}
129
#cboxMiddleLeft {
130
  width: 15px;
131
}
132
#cboxMiddleRight {
133
  width: 15px;
134
}
135
#cboxContent {
136
  background: #fff;
137
  overflow: hidden;
138
}
139
#cboxError {
140
  padding: 50px;
141
  border: 1px solid #ccc;
142
}
143
#cboxLoadedContent {
144
  margin-bottom: 28px;
145
}
146
#cboxTitle {
147
  position: absolute;
148
  background: rgba(255, 255, 255, 0.7);
149
  bottom: 28px;
150
  left: 0;
151
  color: #535353;
152
  width: 100%;
153
  padding: 4px 6px;
154
  -moz-box-sizing: border-box;
155
  -webkit-box-sizing: border-box;
156
  box-sizing: border-box;
157
}
158
#cboxCurrent {
159
  position: absolute;
160
  bottom: 4px;
161
  left: 60px;
162
  color: #949494;
163
}
164
.cboxSlideshow_on #cboxSlideshow {
165
  position: absolute;
166
  bottom: 0px;
167
  right: 30px;
168
  background: url(images/controls.png) no-repeat -75px -50px;
169
  width: 25px;
170
  height: 25px;
171
  text-indent: -9999px;
172
}
173
.cboxSlideshow_on #cboxSlideshow:hover {
174
  background-position: -101px -50px;
175
}
176
.cboxSlideshow_off #cboxSlideshow {
177
  position: absolute;
178
  bottom: 0px;
179
  right: 30px;
180
  background: url(images/controls.png) no-repeat -25px -50px;
181
  width: 25px;
182
  height: 25px;
183
  text-indent: -9999px;
184
}
185
.cboxSlideshow_off #cboxSlideshow:hover {
186
  background-position: -49px -50px;
187
}
188
#cboxPrevious {
189
  position: absolute;
190
  bottom: 0;
191
  left: 0;
192
  background: url(images/controls.png) no-repeat -75px 0px;
193
  width: 25px;
194
  height: 25px;
195
  text-indent: -9999px;
196
}
197
#cboxPrevious:hover {
198
  background-position: -75px -25px;
199
}
200
#cboxNext {
201
  position: absolute;
202
  bottom: 0;
203
  left: 27px;
204
  background: url(images/controls.png) no-repeat -50px 0px;
205
  width: 25px;
206
  height: 25px;
207
  text-indent: -9999px;
208
}
209
#cboxNext:hover {
210
  background-position: -50px -25px;
211
}
212
#cboxLoadingOverlay {
213
  background: #fff;
214
}
215
#cboxLoadingGraphic {
216
  background: url(images/loading_animation.gif) no-repeat center center;
217
}
218
#cboxClose {
219
  position: absolute;
220
  bottom: 0;
221
  right: 0;
222
  background: url(images/controls.png) no-repeat -25px 0px;
223
  width: 25px;
224
  height: 25px;
225
  text-indent: -9999px;
226
}
227
#cboxClose:hover {
228
  background-position: -25px -25px;
229
}