Newer
Older
Fredrik Jonsson
committed
/**
Fredrik Jonsson
committed
* Colorbox Core Style:
Fredrik Jonsson
committed
* The following CSS is consistent between example themes and should not be altered.
*/
#colorbox,
#cboxOverlay,
#cboxWrapper {
Fredrik Jonsson
committed
position: absolute;
top: 0;
left: 0;
z-index: 9999;
overflow: hidden;
}
#cboxOverlay {
position: fixed;
width: 100%;
height: 100%;
}
#cboxMiddleLeft,
#cboxBottomLeft {
Fredrik Jonsson
committed
clear: left;
}
#cboxContent {
position: relative;
}
#cboxLoadedContent {
overflow: auto;
Fredrik Jonsson
committed
-webkit-overflow-scrolling: touch;
Fredrik Jonsson
committed
}
#cboxTitle {
margin: 0;
}
#cboxLoadingOverlay,
#cboxLoadingGraphic {
Fredrik Jonsson
committed
position: absolute;
top: 0;
left: 0;
width: 100%;
Fredrik Jonsson
committed
height: 100%;
Fredrik Jonsson
committed
}
Fredrik Jonsson
committed
/**
* These elements are buttons, and may need to have additional
* styles reset to avoid unwanted base styles.
*/
#cboxPrevious,
#cboxNext,
#cboxClose,
#cboxSlideshow {
Fredrik Jonsson
committed
border: 0;
padding: 0;
margin: 0;
overflow: visible;
width: auto;
background: none;
Fredrik Jonsson
committed
cursor: pointer;
}
Fredrik Jonsson
committed
/**
* Avoid outlines on :active (mouseclick),
* but preserve outlines on :focus (tabbed navigating)
*/
#cboxPrevious:active,
#cboxNext:active,
#cboxClose:active,
#cboxSlideshow:active {
Fredrik Jonsson
committed
outline: 0;
}
Fredrik Jonsson
committed
.cboxPhoto {
float: left;
margin: auto;
border: 0;
display: block;
Fredrik Jonsson
committed
}
.cboxIframe {
width: 100%;
height: 100%;
display: block;
border: 0;
}
Fredrik Jonsson
committed
/* Reset box sizing to content-box if theme is using border-box. */
#colorbox,
#cboxContent,
#cboxLoadedContent {
Fredrik Jonsson
committed
-moz-box-sizing: content-box;
Fredrik Jonsson
committed
-webkit-box-sizing: content-box;
Fredrik Jonsson
committed
box-sizing: content-box;
Fredrik Jonsson
committed
}
Fredrik Jonsson
committed
Fredrik Jonsson
committed
/**
* Colorbox module Stockholm syndrome style:
* The styles are ordered & tabbed in a way that represents
* the nesting of the generated HTML.
*/
Fredrik Jonsson
committed
#cboxOverlay {
background: #000;
}
#colorbox {
background: #fff url(images/bg_tab.png) center bottom repeat-x;
-moz-box-shadow: 3px 3px 16px #333;
-webkit-box-shadow: 3px 3px 16px #333;
box-shadow: 3px 3px 16px #333;
Fredrik Jonsson
committed
-moz-border-radius-bottomleft: 9px;
-moz-border-radius-bottomright: 9px;
-webkit-border-bottom-left-radius: 9px;
-webkit-border-bottom-right-radius: 9px;
border-bottom-left-radius: 9px;
border-bottom-right-radius: 9px;
Fredrik Jonsson
committed
outline: 0;
Fredrik Jonsson
committed
}
#colorbox,
#colorbox div {
Fredrik Jonsson
committed
overflow: visible; /* Required by the close button. */
Fredrik Jonsson
committed
}
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
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
#cboxWrapper {
-moz-border-radius-bottomleft: 9px;
-moz-border-radius-bottomright: 9px;
-webkit-border-bottom-left-radius: 9px;
-webkit-border-bottom-right-radius: 9px;
border-bottom-left-radius: 9px;
border-bottom-right-radius: 9px;
}
#cboxTopLeft {
width: 0;
height: 0;
}
#cboxTopCenter {
height: 0;
}
#cboxTopRight {
width: 0;
height: 0;
}
#cboxBottomLeft {
width: 15px;
height: 10px;
}
#cboxBottomCenter {
height: 10px;
}
#cboxBottomRight {
width: 15px;
height: 10px;
}
#cboxMiddleLeft {
width: 0;
}
#cboxMiddleRight {
width: 0;
}
#cboxContent {
background: #fff;
overflow: hidden;
margin-bottom: 28px;
}
#cboxError {
padding: 50px;
border: 1px solid #ccc;
}
/* @codingStandardsIgnoreLine */
#cboxLoadedContent {
}
#cboxTitle {
left: 0;
height: 38px;
color: #313131;
padding: 0 140px 0 15px;
display: table-cell !important;
vertical-align: middle;
float: none !important;
}
#cboxCurrent {
position: absolute;
bottom: -26px;
right: 80px;
color: #313131;
border-left: 1px solid #313131;
padding: 0 0 0 15px;
}
/* Slideshow not implemented. */
.cboxSlideshow_on #cboxSlideshow {
display: none;
}
/* @codingStandardsIgnoreLine */
.cboxSlideshow_on #cboxSlideshow:hover {
}
.cboxSlideshow_off #cboxSlideshow {
display: none;
}
/* @codingStandardsIgnoreLine */
.cboxSlideshow_off #cboxSlideshow:hover {
}
#cboxPrevious {
position: absolute;
bottom: -26px;
right: 45px;
background: url(images/controls.png) no-repeat 0 -48px;
width: 21px;
height: 15px;
text-indent: -9999px;
}
#cboxPrevious:hover {
background-position: 0 -111px;
}
#cboxNext {
position: absolute;
bottom: -26px;
right: 15px;
background: url(images/controls.png) no-repeat 0 -29px;
width: 21px;
height: 15px;
text-indent: -9999px;
}
#cboxNext:hover {
background-position: 0 -92px;
}
#cboxLoadingOverlay {
background: #e6e6e6;
}
#cboxLoadingGraphic {
background: url(images/loading_animation.gif) no-repeat center center;
}
#cboxClose {
position: absolute;
top: -10px;
right: -10px;
background: url(images/controls.png) no-repeat 0 0;