mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-27 04:06:51 +00:00
Merge changes Ic189011e,I7617a35b
* changes: Make references dialog scroll Make fieldset layout icons optional
This commit is contained in:
commit
03127491b2
|
@ -14,11 +14,11 @@
|
|||
*
|
||||
* @constructor
|
||||
* @param {Object} [config] Config options
|
||||
* @cfg {string} [icon=''] Symbolic icon name
|
||||
* @cfg {string} [icon] Symbolic icon name
|
||||
*/
|
||||
ve.ui.FieldsetLayout = function VeUiFieldsetLayout( config ) {
|
||||
// Config initialization
|
||||
config = ve.extendObject( { 'icon': 'window' }, config );
|
||||
config = config || {};
|
||||
|
||||
// Parent constructor
|
||||
ve.ui.Layout.call( this, config );
|
||||
|
@ -27,8 +27,13 @@ ve.ui.FieldsetLayout = function VeUiFieldsetLayout( config ) {
|
|||
ve.ui.LabeledElement.call( this, this.$$( '<legend>' ), config );
|
||||
|
||||
// Initialization
|
||||
this.$label.addClass( 've-ui-icon-' + config.icon );
|
||||
this.$.append( this.$label ).addClass( 've-ui-fieldsetLayout' );
|
||||
if ( config.icon ) {
|
||||
this.$.addClass( 've-ui-fieldsetLayout-decorated' );
|
||||
this.$label.addClass( 've-ui-icon-' + config.icon );
|
||||
}
|
||||
this.$
|
||||
.addClass( 've-ui-fieldsetLayout' )
|
||||
.append( this.$label );
|
||||
};
|
||||
|
||||
/* Inheritance */
|
||||
|
|
|
@ -133,6 +133,7 @@
|
|||
|
||||
.ve-ui-mwReferenceDialog-body {
|
||||
padding: 2em;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.ve-ui-mwReferenceDialog-toolbar {
|
||||
|
|
|
@ -31,8 +31,11 @@
|
|||
|
||||
.ve-ui-fieldsetLayout > legend.ve-ui-labeledElement-label {
|
||||
font-size: 1.5em;
|
||||
padding-left: 1.75em;
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
|
||||
.ve-ui-fieldsetLayout-decorated > legend.ve-ui-labeledElement-label {
|
||||
padding-left: 1.75em;
|
||||
background-position: left center;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue