3 The following rules are the styles that are consistant between themes.
4 Avoid changing this area to maintain compatability with future versions of ColorBox.
6 #colorbox, #cboxLoadedContent
{-webkit-box-sizing: content-box
;-moz-box-sizing: content-box
;box-sizing: content-box
;}
7 #colorbox, #cboxOverlay
, #cboxWrapper
{position:absolute
; top:0; left:0; z-index:4999; overflow:hidden
;}
8 #cboxOverlay{position:fixed
; width:100%; height:100%;}
9 #cboxMiddleLeft, #cboxBottomLeft
{clear:left
;}
10 #cboxContent{position:relative
; overflow:visible
;}
11 #cboxLoadedContent{overflow:auto
;}
12 #cboxLoadedContent iframe
{display:block
; width:100%; height:100%; border:0;}
14 #cboxLoadingOverlay, #cboxLoadingGraphic
{position:absolute
; top:0; left:0; width:100%;}
15 #cboxPrevious, #cboxNext
, #cboxClose
, #cboxSlideshow
{cursor:pointer
;}
16 .cboxPhoto{float:left
; margin:auto
; border:0; display:block
;}
17 .cboxIframe{width:100%; height:100%; display:block
; border:0;}
20 ColorBox example user style
21 The following rules are ordered and tabbed in a way that represents the
22 order/nesting of the generated HTML, so that the structure easier to understand.
24 #cboxOverlay{background:#fff;}
27 #cboxContent{margin-top:32px;}
28 #cboxLoadedContent{background:#000; padding:1px;}
29 #cboxLoadingGraphic{background:url
(images/loading.gif) center center no-repeat
;}
30 #cboxLoadingOverlay{background:#000;}
31 #cboxTitle{position:absolute
; top:-22px; left:0; color:#000;}
32 #cboxCurrent{position:absolute
; top:-22px; right:205px; text-indent:-9999px;}
33 #cboxSlideshow, #cboxPrevious
, #cboxNext
, #cboxClose
{text-indent:-9999px; width:20px; height:20px; position:absolute
; top:-20px; background:url
(images/controls.png) 0 0 no-repeat
;}
34 #cboxPrevious{background-position:0px 0px; right:44px;}
35 #cboxPrevious:hover
{background-position:0px -25px;}
36 #cboxNext{background-position:-25px 0px; right:22px;}
37 #cboxNext:hover
{background-position:-25px -25px;}
38 #cboxClose{background-position:-50px 0px; right:0;}
39 #cboxClose:hover
{background-position:-50px -25px;}
40 .cboxSlideshow_on #cboxPrevious, .cboxSlideshow_off #cboxPrevious{right:66px;}
41 .cboxSlideshow_on #cboxSlideshow{background-position:-100px 0px; right:44px;}
42 .cboxSlideshow_on #cboxSlideshow:hover{background-position:-100px -25px;}
43 .cboxSlideshow_off #cboxSlideshow{background-position:-75px 0px; right:44px;}
44 .cboxSlideshow_off #cboxSlideshow:hover{background-position:-75px -25px;}