summaryrefslogtreecommitdiffstats
path: root/js/yui3/resize-proxy
diff options
context:
space:
mode:
authorDave Lawrence <dlawrence@mozilla.com>2012-12-04 22:13:12 +0100
committerDave Lawrence <dlawrence@mozilla.com>2012-12-04 22:13:12 +0100
commit1ee605864f227d40cc83e798dc117ad8e01acb64 (patch)
tree42cc3ff5007202fad4932941b477ac96d5ea0643 /js/yui3/resize-proxy
parentb061ce481380dfd01f85ea84ef700eb7589433e3 (diff)
downloadbugzilla-1ee605864f227d40cc83e798dc117ad8e01acb64.tar.gz
bugzilla-1ee605864f227d40cc83e798dc117ad8e01acb64.tar.xz
Bug 818091 - Install a full copy of YUI3 into the js directory for use with new extensions/projects
Diffstat (limited to 'js/yui3/resize-proxy')
-rw-r--r--js/yui3/resize-proxy/assets/resize-base-core.css247
-rw-r--r--js/yui3/resize-proxy/assets/skins/night/arrows.pngbin0 -> 258 bytes
-rw-r--r--js/yui3/resize-proxy/assets/skins/sam/arrows.pngbin0 -> 258 bytes
-rw-r--r--js/yui3/resize-proxy/resize-proxy-min.js7
4 files changed, 254 insertions, 0 deletions
diff --git a/js/yui3/resize-proxy/assets/resize-base-core.css b/js/yui3/resize-proxy/assets/resize-base-core.css
new file mode 100644
index 000000000..5b4676972
--- /dev/null
+++ b/js/yui3/resize-proxy/assets/resize-base-core.css
@@ -0,0 +1,247 @@
+/*
+YUI 3.7.3 (build 5687)
+Copyright 2012 Yahoo! Inc. All rights reserved.
+Licensed under the BSD License.
+http://yuilibrary.com/license/
+*/
+.yui3-resize,.yui3-resize-wrapper {
+ z-index: 0;
+ zoom: 1;
+}
+
+.yui3-resize-handle {
+ position: absolute;
+ display: block;
+ z-index: 100;
+ zoom: 1;
+}
+
+.yui3-resize-proxy {
+ position: absolute;
+ border: 1px dashed #000;
+ position: absolute;
+ z-index: 10000;
+}
+
+.yui3-resize-hidden-handles .yui3-resize-handle {
+ opacity: 0;
+ filter: alpha(opacity=0);
+}
+
+.yui3-resize-handle-t,
+.yui3-resize-handle-b {
+ width: 100%;
+ left: 0;
+ height: 6px;
+}
+
+.yui3-resize-handle-l,
+.yui3-resize-handle-r {
+ height: 100%;
+ top: 0;
+ width: 6px;
+}
+
+.yui3-resize-handle-t {
+ cursor: n-resize;
+ top: 0;
+}
+
+.yui3-resize-handle-b {
+ cursor: s-resize;
+ bottom: 0;
+}
+
+.yui3-resize-handle-l {
+ cursor: w-resize;
+ left: 0;
+}
+
+.yui3-resize-handle-r {
+ cursor: e-resize;
+ right: 0;
+}
+
+.yui3-resize-handle-inner {
+ position: absolute;
+ zoom: 1;
+}
+
+/* Smartphones (portrait and landscape) -----------
+Adding larger hit-area ':after' objects to handles
+*/
+@media only screen
+and (min-device-width : 320px)
+and (max-device-width : 480px) {
+/* Styles */
+ .yui3-resize-handle-inner:after {
+ content: "";
+ width: 40px;
+ height: 40px;
+ position: absolute;
+ }
+
+ .yui3-resize-handle-inner-r,
+ .yui3-resize-handle-inner-l,
+ .yui3-resize-handle-inner-t,
+ .yui3-resize-handle-inner-b,
+ .yui3-resize-handle-inner-tr,
+ .yui3-resize-handle-inner-br,
+ .yui3-resize-handle-inner-tl,
+ .yui3-resize-handle-inner-bl {
+ overflow: visible !important;
+ }
+
+ .yui3-resize-handle-inner-r:after {
+ top: -12px;
+ right: 0;
+ }
+ .yui3-resize-handle-inner-l:after {
+ top: -12px;
+ left: 0;
+ }
+ .yui3-resize-handle-inner-t:after {
+ top: 0;
+ left: -12px;
+ }
+ .yui3-resize-handle-inner-b:after {
+ bottom: 0;
+ left: -12px;
+ }
+ .yui3-resize-handle-inner-tr:after {
+ top: 0;
+ right: 0;
+ }
+ .yui3-resize-handle-inner-br:after {
+ bottom: 0;
+ right: 0;
+ }
+ .yui3-resize-handle-inner-tl:after {
+ top: 0;
+ left: 0;
+ }
+ .yui3-resize-handle-inner-bl:after {
+ bottom: 0;
+ left: 0;
+ }
+}
+
+/* iPads (portrait and landscape) -----------
+Adding larger hit-area ':after' objects to handles
+*/
+@media only screen
+and (min-device-width : 768px)
+and (max-device-width : 1024px) {
+/* Styles */
+ .yui3-resize-handle-inner:after {
+ content: "";
+ width: 30px;
+ height: 30px;
+ position: absolute;
+ }
+
+ .yui3-resize-handle-inner-r,
+ .yui3-resize-handle-inner-l,
+ .yui3-resize-handle-inner-t,
+ .yui3-resize-handle-inner-b,
+ .yui3-resize-handle-inner-tr,
+ .yui3-resize-handle-inner-br,
+ .yui3-resize-handle-inner-tl,
+ .yui3-resize-handle-inner-bl {
+ overflow: visible !important;
+ }
+
+ .yui3-resize-handle-inner-r:after {
+ top: -6px;
+ right: 0;
+ }
+ .yui3-resize-handle-inner-l:after {
+ top: -6px;
+ left: 0;
+ }
+ .yui3-resize-handle-inner-t:after {
+ top: 0;
+ left: -6px;
+ }
+ .yui3-resize-handle-inner-b:after {
+ bottom: 0;
+ left: -6px;
+ }
+ .yui3-resize-handle-inner-tr:after {
+ top: 0;
+ right: 0;
+ }
+ .yui3-resize-handle-inner-br:after {
+ bottom: 0;
+ right: 0;
+ }
+ .yui3-resize-handle-inner-tl:after {
+ top: 0;
+ left: 0;
+ }
+ .yui3-resize-handle-inner-bl:after {
+ bottom: 0;
+ left: 0;
+ }
+}
+
+.yui3-resize-handle-inner-t,
+.yui3-resize-handle-inner-b {
+ margin-left: -8px;
+ left: 50%;
+}
+
+.yui3-resize-handle-inner-l,
+.yui3-resize-handle-inner-r {
+ margin-top: -8px;
+ top: 50%;
+}
+
+.yui3-resize-handle-inner-t {
+ top: -4px;
+}
+
+.yui3-resize-handle-inner-b {
+ bottom: -4px;
+}
+
+.yui3-resize-handle-inner-l {
+ left: -4px;
+}
+
+.yui3-resize-handle-inner-r {
+ right: -4px;
+}
+
+.yui3-resize-handle-tr,
+.yui3-resize-handle-br,
+.yui3-resize-handle-tl,
+.yui3-resize-handle-bl {
+ height: 15px;
+ width: 15px;
+ z-index: 200;
+}
+
+.yui3-resize-handle-tr {
+ cursor: ne-resize;
+ top: 0;
+ right: 0;
+}
+
+.yui3-resize-handle-tl {
+ cursor: nw-resize;
+ top: 0;
+ left: 0;
+}
+
+.yui3-resize-handle-br {
+ cursor: se-resize;
+ bottom: 0;
+ right: 0;
+}
+
+.yui3-resize-handle-bl {
+ cursor: sw-resize;
+ bottom: 0;
+ left: 0;
+} \ No newline at end of file
diff --git a/js/yui3/resize-proxy/assets/skins/night/arrows.png b/js/yui3/resize-proxy/assets/skins/night/arrows.png
new file mode 100644
index 000000000..2942681f4
--- /dev/null
+++ b/js/yui3/resize-proxy/assets/skins/night/arrows.png
Binary files differ
diff --git a/js/yui3/resize-proxy/assets/skins/sam/arrows.png b/js/yui3/resize-proxy/assets/skins/sam/arrows.png
new file mode 100644
index 000000000..2942681f4
--- /dev/null
+++ b/js/yui3/resize-proxy/assets/skins/sam/arrows.png
Binary files differ
diff --git a/js/yui3/resize-proxy/resize-proxy-min.js b/js/yui3/resize-proxy/resize-proxy-min.js
new file mode 100644
index 000000000..009faee8d
--- /dev/null
+++ b/js/yui3/resize-proxy/resize-proxy-min.js
@@ -0,0 +1,7 @@
+/*
+YUI 3.7.3 (build 5687)
+Copyright 2012 Yahoo! Inc. All rights reserved.
+Licensed under the BSD License.
+http://yuilibrary.com/license/
+*/
+YUI.add("resize-proxy",function(e,t){function d(){d.superclass.constructor.apply(this,arguments)}var n="activeHandleNode",r="cursor",i="dragCursor",s="host",o="parentNode",u="proxy",a="proxyNode",f="resize",l="resize-proxy",c="wrapper",h=e.ClassNameManager.getClassName,p=h(f,u);e.mix(d,{NAME:l,NS:u,ATTRS:{proxyNode:{setter:e.one,valueFn:function(){return e.Node.create(this.PROXY_TEMPLATE)}}}}),e.extend(d,e.Plugin.Base,{PROXY_TEMPLATE:'<div class="'+p+'"></div>',initializer:function(){var e=this;e.afterHostEvent("resize:start",e._afterResizeStart),e.beforeHostMethod("_resize",e._beforeHostResize),e.afterHostMethod("_resizeEnd",e._afterHostResizeEnd)},destructor:function(){var e=this;e.get(a).remove(!0)},_afterHostResizeEnd:function(e){var t=this,n=e.dragEvent.target;n.actXY=[],t._syncProxyUI(),t.get(a).hide()},_afterResizeStart:function(){var e=this;e._renderProxy()},_beforeHostResize:function(t){var n=this,r=this.get(s);return r._handleResizeAlignEvent(t.dragEvent),n._syncProxyUI(),new e.Do.Prevent},_renderProxy:function(){var e=this,t=this.get(s),n=e.get(a);n.inDoc()||t.get(c).get(o).append(n.hide())},_syncProxyUI:function(){var e=this,t=this.get(s),o=t.info,u=t.get(n),f=e.get(a),l=u.getStyle(r);f.show().setStyle(r,l),t.delegate.dd.set(i,l),f.sizeTo(o.offsetWidth,o.offsetHeight),f.setXY([o.left,o.top])}}),e.namespace("Plugin"),e.Plugin.ResizeProxy=d},"3.7.3",{requires:["plugin","resize-base"]});