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, #cboxOverlay
, #cboxWrapper
{position:absolute
; top:0; left:0; z-index:9999; overflow:hidden
;}
7 #cboxOverlay{position:fixed
; width:100%; height:100%;}
8 #cboxMiddleLeft, #cboxBottomLeft
{clear:left
;}
9 #cboxContent{position:relative
; overflow:hidden
;}
10 #cboxLoadedContent{overflow:auto
;}
11 #cboxLoadedContent iframe
{display:block
; width:100%; height:100%; border:0;}
13 #cboxLoadingOverlay, #cboxLoadingGraphic
{position:absolute
; top:0; left:0; width:100%;}
14 #cboxPrevious, #cboxNext
, #cboxClose
, #cboxSlideshow
{cursor:pointer
;}
17 ColorBox example user style
18 The following rules are ordered and tabbed in a way that represents the
19 order/nesting of the generated HTML, so that the structure easier to understand.
21 #cboxOverlay{background:#fff;}
24 #cboxTopLeft{width:25px; height:25px; background:url
(images/border1.png) 0 0 no-repeat
;}
25 #cboxTopCenter{height:25px; background:url
(images/border1.png) 0 -50px repeat-x
;}
26 #cboxTopRight{width:25px; height:25px; background:url
(images/border1.png) -25px 0 no-repeat
;}
27 #cboxBottomLeft{width:25px; height:25px; background:url
(images/border1.png) 0 -25px no-repeat
;}
28 #cboxBottomCenter{height:25px; background:url
(images/border1.png) 0 -75px repeat-x
;}
29 #cboxBottomRight{width:25px; height:25px; background:url
(images/border1.png) -25px -25px no-repeat
;}
30 #cboxMiddleLeft{width:25px; background:url
(images/border2.png) 0 0 repeat-y
;}
31 #cboxMiddleRight{width:25px; background:url
(images/border2.png) -25px 0 repeat-y
;}
32 #cboxContent{background:#fff;}
33 #cboxLoadedContent{margin-bottom:20px;}
34 #cboxTitle{position:absolute
; bottom:0px; left:0; text-align:center
; width:100%; color:#999;}
35 #cboxCurrent{position:absolute
; bottom:0px; left:100px; color:#999;}
36 #cboxSlideshow{position:absolute
; bottom:0px; right:42px; color:#444;}
37 #cboxPrevious{position:absolute
; bottom:0px; left:0; color:#444;}
38 #cboxNext{position:absolute
; bottom:0px; left:63px; color:#444;}
39 #cboxLoadingOverlay{background:url
(images/loading.gif) 5px 5px no-repeat
#fff;}
40 #cboxClose{position:absolute
; bottom:0; right:0; display:block
; color:#444;}
43 The following fixes png-transparency for IE6.
44 It is also necessary for png-transparency in IE7 & IE8 to avoid 'black halos' with the fade transition
46 Since this method does not support CSS background-positioning, it is incompatible with CSS sprites.
47 Colorbox preloads navigation hover classes to account for this.
49 !! Important Note: AlphaImageLoader src paths are relative to the HTML document,
50 while regular CSS background images are relative to the CSS document.
52 /* 2010-02-19 18:15:26 LS
53 * Corrected paths for Vanilla JQuery plugin
55 .cboxIE #cboxTopLeft{background:transparent
; filter: progid:DXImageTransform
.Microsoft
.AlphaImageLoader
(src
=../../../extensions
/JQuery
/plugins
/colorbox
/images
/internet_explorer
/borderTopLeft
.png
, sizingMethod
='scale');}
56 .cboxIE #cboxTopCenter{background:transparent
; filter: progid:DXImageTransform
.Microsoft
.AlphaImageLoader
(src
=../../../extensions
/JQuery
/plugins
/colorbox
//images
/internet_explorer
/borderTopCenter
.png
, sizingMethod
='scale');}
57 .cboxIE #cboxTopRight{background:transparent
; filter: progid:DXImageTransform
.Microsoft
.AlphaImageLoader
(src
=../../../extensions
/JQuery
/plugins
/colorbox
//images
/internet_explorer
/borderTopRight
.png
, sizingMethod
='scale');}
58 .cboxIE #cboxBottomLeft{background:transparent
; filter: progid:DXImageTransform
.Microsoft
.AlphaImageLoader
(src
=../../../extensions
/JQuery
/plugins
/colorbox
/images
/internet_explorer
/borderBottomLeft
.png
, sizingMethod
='scale');}
59 .cboxIE #cboxBottomCenter{background:transparent
; filter: progid:DXImageTransform
.Microsoft
.AlphaImageLoader
(src
=../../../extensions
/JQuery
/plugins
/colorbox
/images
/internet_explorer
/borderBottomCenter
.png
, sizingMethod
='scale');}
60 .cboxIE #cboxBottomRight{background:transparent
; filter: progid:DXImageTransform
.Microsoft
.AlphaImageLoader
(src
=../../../extensions
/JQuery
/plugins
/colorbox
/images
/internet_explorer
/borderBottomRight
.png
, sizingMethod
='scale');}
61 .cboxIE #cboxMiddleLeft{background:transparent
; filter: progid:DXImageTransform
.Microsoft
.AlphaImageLoader
(src
=../../../extensions
/JQuery
/plugins
/colorbox
/images
/internet_explorer
/borderMiddleLeft
.png
, sizingMethod
='scale');}
62 .cboxIE #cboxMiddleRight{background:transparent
; filter: progid:DXImageTransform
.Microsoft
.AlphaImageLoader
(src
=../../../extensions
/JQuery
/plugins
/colorbox
/images
/internet_explorer
/borderMiddleRight
.png
, sizingMethod
='scale');}