1
1
/*
2
- ColorBox Core Style:
2
+ Colorbox Core Style:
3
3
The following CSS is consistent between example themes and should not be altered.
4
4
*/
5
5
# colorbox , # cboxOverlay , # cboxWrapper {position : absolute; top : 0 ; left : 0 ; z-index : 9999 ; overflow : hidden;}
6
6
# cboxOverlay {position : fixed; width : 100% ; height : 100% ;}
7
7
# cboxMiddleLeft , # cboxBottomLeft {clear : left;}
8
8
# cboxContent {position : relative;}
9
- # cboxLoadedContent {overflow : auto;}
9
+ # cboxLoadedContent {overflow : auto; -webkit-overflow-scrolling : touch; }
10
10
# cboxTitle {margin : 0 ;}
11
11
# cboxLoadingOverlay , # cboxLoadingGraphic {position : absolute; top : 0 ; left : 0 ; width : 100% ; height : 100% ;}
12
12
# cboxPrevious , # cboxNext , # cboxClose , # cboxSlideshow {cursor : pointer;}
13
- .cboxPhoto {float : left; margin : auto; border : 0 ; display : block; max-width : none;}
13
+ .cboxPhoto {float : left; margin : auto; border : 0 ; display : block; max-width : none; -ms-interpolation-mode : bicubic; }
14
14
.cboxIframe {width : 100% ; height : 100% ; display : block; border : 0 ;}
15
- # colorbox , # cboxContent , # cboxLoadedContent {box-sizing : content-box;}
15
+ # colorbox , # cboxContent , # cboxLoadedContent {box-sizing : content-box; -moz-box-sizing : content-box; -webkit-box-sizing : content-box; }
16
16
17
17
/*
18
18
User Style:
19
- Change the following styles to modify the appearance of ColorBox . They are
19
+ Change the following styles to modify the appearance of Colorbox . They are
20
20
ordered & tabbed in a way that represents the nesting of the generated HTML.
21
21
*/
22
22
# cboxOverlay {background : url (images/overlay.png) repeat 0 0 ;}
23
- # colorbox {}
23
+ # colorbox {outline : 0 ; }
24
24
# cboxTopLeft {width : 21px ; height : 21px ; background : url (images/controls.png) no-repeat -101px 0 ;}
25
25
# cboxTopRight {width : 21px ; height : 21px ; background : url (images/controls.png) no-repeat -130px 0 ;}
26
26
# cboxBottomLeft {width : 21px ; height : 21px ; background : url (images/controls.png) no-repeat -101px -29px ;}
35
35
# cboxLoadedContent {margin-bottom : 28px ;}
36
36
# cboxTitle {position : absolute; bottom : 4px ; left : 0 ; text-align : center; width : 100% ; color : # 949494 ;}
37
37
# cboxCurrent {position : absolute; bottom : 4px ; left : 58px ; color : # 949494 ;}
38
+ # cboxLoadingOverlay {background : url (images/loading_background.png) no-repeat center center;}
39
+ # cboxLoadingGraphic {background : url (images/loading.gif) no-repeat center center;}
40
+
41
+ /* these elements are buttons, and may need to have additional styles reset to avoid unwanted base styles */
42
+ # cboxPrevious , # cboxNext , # cboxSlideshow , # cboxClose {border : 0 ; padding : 0 ; margin : 0 ; overflow : visible; width : auto; background : none; }
43
+
44
+ /* avoid outlines on :active (mouseclick), but preserve outlines on :focus (tabbed navigating) */
45
+ # cboxPrevious : active , # cboxNext : active , # cboxSlideshow : active , # cboxClose : active {outline : 0 ;}
46
+
38
47
# cboxSlideshow {position : absolute; bottom : 4px ; right : 30px ; color : # 0092ef ;}
39
48
# cboxPrevious {position : absolute; bottom : 0 ; left : 0 ; background : url (images/controls.png) no-repeat -75px 0 ; width : 25px ; height : 25px ; text-indent : -9999px ;}
40
49
# cboxPrevious : hover {background-position : -75px -25px ;}
41
50
# cboxNext {position : absolute; bottom : 0 ; left : 27px ; background : url (images/controls.png) no-repeat -50px 0 ; width : 25px ; height : 25px ; text-indent : -9999px ;}
42
51
# cboxNext : hover {background-position : -50px -25px ;}
43
- # cboxLoadingOverlay {background : url (images/loading_background.png) no-repeat center center;}
44
- # cboxLoadingGraphic {background : url (images/loading.gif) no-repeat center center;}
45
52
# cboxClose {position : absolute; bottom : 0 ; right : 0 ; background : url (images/controls.png) no-repeat -25px 0 ; width : 25px ; height : 25px ; text-indent : -9999px ;}
46
53
# cboxClose : hover {background-position : -25px -25px ;}
47
54
59
66
.cboxIE # cboxMiddleLeft ,
60
67
.cboxIE # cboxMiddleRight {
61
68
filter : progid:DXImageTransform.Microsoft.gradient(startColorstr=#00FFFFFF, endColorstr=#00FFFFFF);
62
- }
63
-
64
- /*
65
- The following provides PNG transparency support for IE6
66
- Feel free to remove this and the /ie6/ directory if you have dropped IE6 support.
67
- */
68
- .cboxIE6 # cboxTopLeft {background : url (images/ie6/borderTopLeft.png);}
69
- .cboxIE6 # cboxTopCenter {background : url (images/ie6/borderTopCenter.png);}
70
- .cboxIE6 # cboxTopRight {background : url (images/ie6/borderTopRight.png);}
71
- .cboxIE6 # cboxBottomLeft {background : url (images/ie6/borderBottomLeft.png);}
72
- .cboxIE6 # cboxBottomCenter {background : url (images/ie6/borderBottomCenter.png);}
73
- .cboxIE6 # cboxBottomRight {background : url (images/ie6/borderBottomRight.png);}
74
- .cboxIE6 # cboxMiddleLeft {background : url (images/ie6/borderMiddleLeft.png);}
75
- .cboxIE6 # cboxMiddleRight {background : url (images/ie6/borderMiddleRight.png);}
76
-
77
- .cboxIE6 # cboxTopLeft ,
78
- .cboxIE6 # cboxTopCenter ,
79
- .cboxIE6 # cboxTopRight ,
80
- .cboxIE6 # cboxBottomLeft ,
81
- .cboxIE6 # cboxBottomCenter ,
82
- .cboxIE6 # cboxBottomRight ,
83
- .cboxIE6 # cboxMiddleLeft ,
84
- .cboxIE6 # cboxMiddleRight {
85
- _behavior : expression(this.src = this .src ? this .src : this.currentStyle.backgroundImage.split('"' )[1 ], this.style.background = "none" , this.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src=" + this.src + ", sizingMethod='scale')" );
86
- }
69
+ }
0 commit comments