diff --git a/doc/user/sass/book.scss b/doc/user/sass/book.scss index 05b4c22d7..eb109d36c 100644 --- a/doc/user/sass/book.scss +++ b/doc/user/sass/book.scss @@ -1,6 +1,7 @@ @charset "utf-8"; @import "normalize"; +@import "colorbox"; * { box-sizing: border-box; diff --git a/doc/user/sass/colorbox.css b/doc/user/sass/colorbox.css new file mode 100644 index 000000000..f3a9900d2 --- /dev/null +++ b/doc/user/sass/colorbox.css @@ -0,0 +1,42 @@ +#colorbox, #cboxOverlay, #cboxWrapper{position:absolute;top:0;left:0;z-index:9999;overflow:hidden;-webkit-transform:translate3d(0,0,0);} +#cboxWrapper{max-width:none;} +#cboxOverlay{position:fixed;width:100%;height:100%;} +#cboxMiddleLeft, #cboxBottomLeft{clear:left;} +#cboxContent{position:relative;} +#cboxLoadedContent{overflow:auto;-webkit-overflow-scrolling:touch;} +#cboxTitle{margin:0;} +#cboxLoadingOverlay, #cboxLoadingGraphic{position:absolute;top:0;left:0;width:100%;height:100%;} +#cboxPrevious, #cboxNext, #cboxClose, #cboxSlideshow{cursor:pointer;} +.cboxPhoto{float:left;margin:auto;border:0;display:block;max-width:none;-ms-interpolation-mode:bicubic;} +.cboxIframe{width:100%;height:100%;display:block;border:0;padding:0;margin:0;} +#colorbox, #cboxContent, #cboxLoadedContent{box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;} +#cboxOverlay{background:#000;opacity:0.9;filter:alpha(opacity = 90);} +#colorbox{outline:0;} +#cboxTopLeft{width:14px;height:14px;background:url(colorbox-images/controls.png) no-repeat 0 0;} +#cboxTopCenter{height:14px;background:url(colorbox-images/border.png) repeat-x top left;} +#cboxTopRight{width:14px;height:14px;background:url(colorbox-images/controls.png) no-repeat -36px 0;} +#cboxBottomLeft{width:14px;height:43px;background:url(colorbox-images/controls.png) no-repeat 0 -32px;} +#cboxBottomCenter{height:43px;background:url(colorbox-images/border.png) repeat-x bottom left;} +#cboxBottomRight{width:14px;height:43px;background:url(colorbox-images/controls.png) no-repeat -36px -32px;} +#cboxMiddleLeft{width:14px;background:url(colorbox-images/controls.png) repeat-y -175px 0;} +#cboxMiddleRight{width:14px;background:url(colorbox-images/controls.png) repeat-y -211px 0;} +#cboxContent{background:#fff;overflow:visible;} +.cboxIframe{background:#fff;} +#cboxError{padding:50px;border:1px solid #ccc;} +#cboxLoadedContent{margin-bottom:5px;} +#cboxLoadingOverlay{background:url(colorbox-images/loading_background.png) no-repeat center center;} +#cboxLoadingGraphic{background:url(colorbox-images/loading.gif) no-repeat center center;} +#cboxTitle{position:absolute;bottom:-25px;left:0;text-align:center;width:100%;font-weight:bold;color:#7C7C7C;} +#cboxCurrent{position:absolute;bottom:-25px;left:58px;font-weight:bold;color:#7C7C7C;} +#cboxPrevious, #cboxNext, #cboxSlideshow, #cboxClose{border:0;padding:0;margin:0;overflow:visible;position:absolute;bottom:-29px;background:url(colorbox-images/controls.png) no-repeat 0px 0px;width:23px;height:23px;text-indent:-9999px;} +#cboxPrevious:active, #cboxNext:active, #cboxSlideshow:active, #cboxClose:active{outline:0;} +#cboxPrevious{left:0px;background-position:-51px -25px;} +#cboxPrevious:hover{background-position:-51px 0px;} +#cboxNext{left:27px;background-position:-75px -25px;} +#cboxNext:hover{background-position:-75px 0px;} +#cboxClose{right:0;background-position:-100px -25px;} +#cboxClose:hover{background-position:-100px 0px;} +.cboxSlideshow_on #cboxSlideshow{background-position:-125px 0px;right:27px;} +.cboxSlideshow_on #cboxSlideshow:hover{background-position:-150px 0px;} +.cboxSlideshow_off #cboxSlideshow{background-position:-150px -25px;right:27px;} +.cboxSlideshow_off #cboxSlideshow:hover{background-position:-125px 0px;} \ No newline at end of file diff --git a/doc/user/static/colorbox-images/border.png b/doc/user/static/colorbox-images/border.png new file mode 100644 index 000000000..c1cd1a2a4 Binary files /dev/null and b/doc/user/static/colorbox-images/border.png differ diff --git a/doc/user/static/colorbox-images/controls.png b/doc/user/static/colorbox-images/controls.png new file mode 100644 index 000000000..259130cd5 Binary files /dev/null and b/doc/user/static/colorbox-images/controls.png differ diff --git a/doc/user/static/colorbox-images/loading.gif b/doc/user/static/colorbox-images/loading.gif new file mode 100644 index 000000000..dba33c816 Binary files /dev/null and b/doc/user/static/colorbox-images/loading.gif differ diff --git a/doc/user/static/colorbox-images/loading_background.png b/doc/user/static/colorbox-images/loading_background.png new file mode 100644 index 000000000..23a336b39 Binary files /dev/null and b/doc/user/static/colorbox-images/loading_background.png differ diff --git a/doc/user/static/jquery.colorbox-min.js b/doc/user/static/jquery.colorbox-min.js new file mode 100644 index 000000000..c02c9eb89 --- /dev/null +++ b/doc/user/static/jquery.colorbox-min.js @@ -0,0 +1,6 @@ +/*! + Colorbox 1.6.3 + license: MIT + http://www.jacklmoore.com/colorbox +*/ +(function(t,e,i){function n(i,n,o){var r=e.createElement(i);return n&&(r.id=Z+n),o&&(r.style.cssText=o),t(r)}function o(){return i.innerHeight?i.innerHeight:t(i).height()}function r(e,i){i!==Object(i)&&(i={}),this.cache={},this.el=e,this.value=function(e){var n;return void 0===this.cache[e]&&(n=t(this.el).attr("data-cbox-"+e),void 0!==n?this.cache[e]=n:void 0!==i[e]?this.cache[e]=i[e]:void 0!==X[e]&&(this.cache[e]=X[e])),this.cache[e]},this.get=function(e){var i=this.value(e);return t.isFunction(i)?i.call(this.el,this):i}}function h(t){var e=W.length,i=(A+t)%e;return 0>i?e+i:i}function a(t,e){return Math.round((/%/.test(t)?("x"===e?E.width():o())/100:1)*parseInt(t,10))}function s(t,e){return t.get("photo")||t.get("photoRegex").test(e)}function l(t,e){return t.get("retinaUrl")&&i.devicePixelRatio>1?e.replace(t.get("photoRegex"),t.get("retinaSuffix")):e}function d(t){"contains"in x[0]&&!x[0].contains(t.target)&&t.target!==v[0]&&(t.stopPropagation(),x.focus())}function c(t){c.str!==t&&(x.add(v).removeClass(c.str).addClass(t),c.str=t)}function g(e){A=0,e&&e!==!1&&"nofollow"!==e?(W=t("."+te).filter(function(){var i=t.data(this,Y),n=new r(this,i);return n.get("rel")===e}),A=W.index(_.el),-1===A&&(W=W.add(_.el),A=W.length-1)):W=t(_.el)}function u(i){t(e).trigger(i),ae.triggerHandler(i)}function f(i){var o;if(!G){if(o=t(i).data(Y),_=new r(i,o),g(_.get("rel")),!$){$=q=!0,c(_.get("className")),x.css({visibility:"hidden",display:"block",opacity:""}),I=n(se,"LoadedContent","width:0; height:0; overflow:hidden; visibility:hidden"),b.css({width:"",height:""}).append(I),j=T.height()+k.height()+b.outerHeight(!0)-b.height(),D=C.width()+H.width()+b.outerWidth(!0)-b.width(),N=I.outerHeight(!0),z=I.outerWidth(!0);var h=a(_.get("initialWidth"),"x"),s=a(_.get("initialHeight"),"y"),l=_.get("maxWidth"),f=_.get("maxHeight");_.w=Math.max((l!==!1?Math.min(h,a(l,"x")):h)-z-D,0),_.h=Math.max((f!==!1?Math.min(s,a(f,"y")):s)-N-j,0),I.css({width:"",height:_.h}),J.position(),u(ee),_.get("onOpen"),O.add(F).hide(),x.focus(),_.get("trapFocus")&&e.addEventListener&&(e.addEventListener("focus",d,!0),ae.one(re,function(){e.removeEventListener("focus",d,!0)})),_.get("returnFocus")&&ae.one(re,function(){t(_.el).focus()})}var p=parseFloat(_.get("opacity"));v.css({opacity:p===p?p:"",cursor:_.get("overlayClose")?"pointer":"",visibility:"visible"}).show(),_.get("closeButton")?B.html(_.get("close")).appendTo(b):B.appendTo("
"),w()}}function p(){x||(V=!1,E=t(i),x=n(se).attr({id:Y,"class":t.support.opacity===!1?Z+"IE":"",role:"dialog",tabindex:"-1"}).hide(),v=n(se,"Overlay").hide(),L=t([n(se,"LoadingOverlay")[0],n(se,"LoadingGraphic")[0]]),y=n(se,"Wrapper"),b=n(se,"Content").append(F=n(se,"Title"),R=n(se,"Current"),P=t('