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 {-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:#000;}
27 #cboxTopLeft{width:14px; height:14px; background:url
(images/controls.png) 0 0 no-repeat
;}
28 #cboxTopCenter{height:14px; background:url
(images/border.png) top left repeat-x
;}
29 #cboxTopRight{width:14px; height:14px; background:url
(images/controls.png) -36px 0 no-repeat
;}
30 #cboxBottomLeft{width:14px; height:43px; background:url
(images/controls.png) 0 -32px no-repeat
;}
31 #cboxBottomCenter{height:43px; background:url
(images/border.png) bottom left repeat-x
;}
32 #cboxBottomRight{width:14px; height:43px; background:url
(images/controls.png) -36px -32px no-repeat
;}
33 #cboxMiddleLeft{width:14px; background:url
(images/controls.png) -175px 0 repeat-y
;}
34 #cboxMiddleRight{width:14px; background:url
(images/controls.png) -211px 0 repeat-y
;}
35 #cboxContent{background:#fff;}
36 #cboxLoadedContent{margin-bottom:5px;}
37 #cboxLoadingOverlay{background:url
(images/loading_background.png) center center no-repeat
;}
38 #cboxLoadingGraphic{background:url
(images/loading.gif) center center no-repeat
;}
39 #cboxTitle{position:absolute
; bottom:-25px; left:0; text-align:center
; width:100%; font-weight:bold
; color:#7C7C7C;}
40 #cboxCurrent{position:absolute
; bottom:-25px; left:58px; font-weight:bold
; color:#7C7C7C;}
42 #cboxPrevious, #cboxNext
, #cboxClose
, #cboxSlideshow
{position:absolute
; bottom:-29px; background:url
(images/controls.png) 0px 0px no-repeat
; width:23px; height:23px; text-indent:-9999px;}
43 #cboxPrevious{left:0px; background-position: -51px -25px;}
44 #cboxPrevious.hover
{background-position:-51px 0px;}
45 #cboxNext{left:27px; background-position:-75px -25px;}
46 #cboxNext.hover
{background-position:-75px 0px;}
47 #cboxClose{right:0; background-position:-100px -25px;}
48 #cboxClose.hover
{background-position:-100px 0px;}
50 .cboxSlideshow_on #cboxSlideshow{background-position:-150px -25px; right:27px;}
51 .cboxSlideshow_on #cboxSlideshow.hover{background-position:-150px 0px;}
52 .cboxSlideshow_off #cboxSlideshow{background-position:-125px -25px; right:27px;}
53 .cboxSlideshow_off #cboxSlideshow.hover{background-position:-125px 0px;}