Skip to content

Commit 28798b7

Browse files
committed
[IM] Upgrade colorbox
1 parent d4fbd0c commit 28798b7

File tree

3 files changed

+300
-479
lines changed

3 files changed

+300
-479
lines changed

public/css/250-jquery-colorbox.css

+16-33
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
/*
2-
ColorBox Core Style:
2+
Colorbox Core Style:
33
The following CSS is consistent between example themes and should not be altered.
44
*/
55
#colorbox, #cboxOverlay, #cboxWrapper{position:absolute; top:0; left:0; z-index:9999; overflow:hidden;}
66
#cboxOverlay{position:fixed; width:100%; height:100%;}
77
#cboxMiddleLeft, #cboxBottomLeft{clear:left;}
88
#cboxContent{position:relative;}
9-
#cboxLoadedContent{overflow:auto;}
9+
#cboxLoadedContent{overflow:auto; -webkit-overflow-scrolling: touch;}
1010
#cboxTitle{margin:0;}
1111
#cboxLoadingOverlay, #cboxLoadingGraphic{position:absolute; top:0; left:0; width:100%; height:100%;}
1212
#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;}
1414
.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;}
1616

1717
/*
1818
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
2020
ordered & tabbed in a way that represents the nesting of the generated HTML.
2121
*/
2222
#cboxOverlay{background:url(images/overlay.png) repeat 0 0;}
23-
#colorbox{}
23+
#colorbox{outline:0;}
2424
#cboxTopLeft{width:21px; height:21px; background:url(images/controls.png) no-repeat -101px 0;}
2525
#cboxTopRight{width:21px; height:21px; background:url(images/controls.png) no-repeat -130px 0;}
2626
#cboxBottomLeft{width:21px; height:21px; background:url(images/controls.png) no-repeat -101px -29px;}
@@ -35,13 +35,20 @@
3535
#cboxLoadedContent{margin-bottom:28px;}
3636
#cboxTitle{position:absolute; bottom:4px; left:0; text-align:center; width:100%; color:#949494;}
3737
#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+
3847
#cboxSlideshow{position:absolute; bottom:4px; right:30px; color:#0092ef;}
3948
#cboxPrevious{position:absolute; bottom:0; left:0; background:url(images/controls.png) no-repeat -75px 0; width:25px; height:25px; text-indent:-9999px;}
4049
#cboxPrevious:hover{background-position:-75px -25px;}
4150
#cboxNext{position:absolute; bottom:0; left:27px; background:url(images/controls.png) no-repeat -50px 0; width:25px; height:25px; text-indent:-9999px;}
4251
#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;}
4552
#cboxClose{position:absolute; bottom:0; right:0; background:url(images/controls.png) no-repeat -25px 0; width:25px; height:25px; text-indent:-9999px;}
4653
#cboxClose:hover{background-position:-25px -25px;}
4754

@@ -59,28 +66,4 @@
5966
.cboxIE #cboxMiddleLeft,
6067
.cboxIE #cboxMiddleRight {
6168
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+
}

public/js/230-jquery-ui-position-1.8.13.js

-252
This file was deleted.

0 commit comments

Comments
 (0)