Update OOjs UI to v0.1.0-pre (073f37e258)
authorJames D. Forrester <jforrester@wikimedia.org>
Mon, 15 Sep 2014 15:00:27 +0000 (08:00 -0700)
committerJames D. Forrester <jforrester@wikimedia.org>
Mon, 15 Sep 2014 15:00:27 +0000 (08:00 -0700)
New changes:
073f37e Improve FieldLayout help popup appearance

Change-Id: I6f201a99f40a8504a4c42d8f2220a3a7319a6025

resources/lib/oojs-ui/images/icons/help-rtl.png [new file with mode: 0644]
resources/lib/oojs-ui/oojs-ui-apex.css
resources/lib/oojs-ui/oojs-ui-minerva.css
resources/lib/oojs-ui/oojs-ui.js
resources/lib/oojs-ui/oojs-ui.svg.css

diff --git a/resources/lib/oojs-ui/images/icons/help-rtl.png b/resources/lib/oojs-ui/images/icons/help-rtl.png
new file mode 100644 (file)
index 0000000..a5a0a66
Binary files /dev/null and b/resources/lib/oojs-ui/images/icons/help-rtl.png differ
index c4daa62..c4fbb47 100644 (file)
@@ -1,12 +1,12 @@
 /*!
- * OOjs UI v0.1.0-pre (bd008e8aed)
+ * OOjs UI v0.1.0-pre (073f37e258)
  * https://www.mediawiki.org/wiki/OOjs_UI
  *
  * Copyright 2011–2014 OOjs Team and other contributors.
  * Released under the MIT license
  * http://oojs.mit-license.org
  *
- * Date: 2014-09-11T23:10:10Z
+ * Date: 2014-09-15T15:00:24Z
  */
 /*
  * Blank theme mixins.
 .oo-ui-fieldLayout > .oo-ui-popupButtonWidget > .oo-ui-popupWidget > .oo-ui-popupWidget-popup {
   z-index: 1;
 }
+.oo-ui-fieldLayout .oo-ui-fieldLayout-help {
+  float: right;
+}
+.oo-ui-fieldLayout .oo-ui-fieldLayout-help-content {
+  padding: 0.5em 0.75em;
+}
 .oo-ui-fieldLayout:last-child {
   margin-bottom: 0;
 }
index 801dfc6..fa8efee 100644 (file)
@@ -1,12 +1,12 @@
 /*!
- * OOjs UI v0.1.0-pre (bd008e8aed)
+ * OOjs UI v0.1.0-pre (073f37e258)
  * https://www.mediawiki.org/wiki/OOjs_UI
  *
  * Copyright 2011–2014 OOjs Team and other contributors.
  * Released under the MIT license
  * http://oojs.mit-license.org
  *
- * Date: 2014-09-11T23:10:10Z
+ * Date: 2014-09-15T15:00:24Z
  */
 /*
  * Blank theme mixins.
 .oo-ui-fieldLayout > .oo-ui-popupButtonWidget > .oo-ui-popupWidget > .oo-ui-popupWidget-popup {
   z-index: 1;
 }
+.oo-ui-fieldLayout .oo-ui-fieldLayout-help {
+  float: right;
+}
+.oo-ui-fieldLayout .oo-ui-fieldLayout-help-content {
+  padding: 0.5em 0.75em;
+}
 .oo-ui-fieldLayout:last-child {
   margin-bottom: 0;
 }
index ea086a1..1583fec 100644 (file)
@@ -1,12 +1,12 @@
 /*!
- * OOjs UI v0.1.0-pre (bd008e8aed)
+ * OOjs UI v0.1.0-pre (073f37e258)
  * https://www.mediawiki.org/wiki/OOjs_UI
  *
  * Copyright 2011–2014 OOjs Team and other contributors.
  * Released under the MIT license
  * http://oojs.mit-license.org
  *
- * Date: 2014-09-11T23:10:10Z
+ * Date: 2014-09-15T15:00:24Z
  */
 ( function ( OO ) {
 
@@ -6429,15 +6429,19 @@ OO.ui.FieldLayout = function OoUiFieldLayout( field, config ) {
        if ( config.help ) {
                this.popupButtonWidget = new OO.ui.PopupButtonWidget( {
                        $: this.$,
+                       classes: [ 'oo-ui-fieldLayout-help' ],
                        framed: false,
-                       icon: 'info',
-                       title: config.help
+                       icon: 'info'
                } );
 
-               this.popupButtonWidget.getPopup().$body.append( this.$( '<span>' ).text( config.help ) );
+               this.popupButtonWidget.getPopup().$body.append(
+                       this.$( '<div>' )
+                               .text( config.help )
+                               .addClass( 'oo-ui-fieldLayout-help-content' )
+               );
                this.$help = this.popupButtonWidget.$element;
        } else {
-               this.$help = this.$( '<div>' );
+               this.$help = this.$( [] );
        }
 
        // Events
index 61e7f39..aca127a 100644 (file)
@@ -1,12 +1,12 @@
 /*!
- * OOjs UI v0.1.0-pre (bd008e8aed)
+ * OOjs UI v0.1.0-pre (073f37e258)
  * https://www.mediawiki.org/wiki/OOjs_UI
  *
  * Copyright 2011–2014 OOjs Team and other contributors.
  * Released under the MIT license
  * http://oojs.mit-license.org
  *
- * Date: 2014-09-11T23:10:10Z
+ * Date: 2014-09-15T15:00:24Z
  */
 /*
  * Blank theme mixins.