diff --git a/modules/ext.wikiEditor.css b/modules/ext.wikiEditor.css index 30a27326..60b5dced 100644 --- a/modules/ext.wikiEditor.css +++ b/modules/ext.wikiEditor.css @@ -15,15 +15,10 @@ form#editform { .wikiEditor-ui textarea#wpTextbox1 { border: none; padding: 0; - margin: -1px; line-height: 1.5em; resize: vertical; } -.wikiEditor-ui .wikiEditor-ui-text > textarea#wpTextbox1 { - margin: 0; -} - /* Hide vanilla MediaWiki's "Editing help" link, as we provide it in the toolbar */ .editButtons .editHelp, .editButtons .mw-editButtons-pipe-separator { diff --git a/modules/jquery.wikiEditor.css b/modules/jquery.wikiEditor.css index b2011bd6..cabe6a94 100644 --- a/modules/jquery.wikiEditor.css +++ b/modules/jquery.wikiEditor.css @@ -3,24 +3,23 @@ */ .wikiEditor-ui { - float: left; position: relative; clear: both; width: 100%; background-color: #E0EEf7; - border: 1px solid silver; - -moz-box-sizing: border-box; - -webkit-box-sizing: border-box; - box-sizing: border-box; } .wikiEditor-ui textarea { width: 100%; + border: 0; } .wikiEditor-ui textarea:focus { outline: none; } -.wikiEditor-ui .wikiEditor-ui-text { - line-height: 0; +.wikiEditor-ui .wikiEditor-ui-clear { + clear: both; +} +.wikiEditor-ui .wikiEditor-ui-view { + border: 1px solid silver; } .wikiEditor-ui .wikiEditor-ui-top { position: relative; @@ -43,13 +42,11 @@ float: left; width: 100%; background-color: white; - margin-top: -1px; - border-bottom: 1px solid silver; } .wikiEditor-ui-tabs { float: left; height: 2.5em; - margin-left: -1px; + margin-right: -1px; background-color: white; border-left: 1px solid silver; border-top: 1px solid silver; diff --git a/modules/jquery.wikiEditor.js b/modules/jquery.wikiEditor.js index 0b874098..d29b53cb 100644 --- a/modules/jquery.wikiEditor.js +++ b/modules/jquery.wikiEditor.js @@ -518,15 +518,16 @@ if ( !context || typeof context === 'undefined' ) { .append( $( '
' ).addClass( 'wikiEditor-ui-tabs' ).hide() ) .append( $( '
' ).addClass( 'wikiEditor-ui-buttons' ) ) ) - .before( $( '
' ) ); + .before( $( '
' ).addClass( 'wikiEditor-ui-clear' ) ); // Get references to some of the newly created containers context.$controls = context.$ui.find( '.wikiEditor-ui-buttons' ).hide(); context.$buttons = context.$ui.find( '.wikiEditor-ui-buttons' ); context.$tabs = context.$ui.find( '.wikiEditor-ui-tabs' ); // Clear all floating after the UI - context.$ui.after( $( '
' ) ); + context.$ui.after( $( '
' ).addClass( 'wikiEditor-ui-clear' ) ); // Attach a right container context.$wikitext.append( $( '
' ).addClass( 'wikiEditor-ui-right' ) ); + context.$wikitext.append( $( '
' ).addClass( 'wikiEditor-ui-clear' ) ); // Attach a top container to the left pane context.$wikitext.find( '.wikiEditor-ui-left' ).prepend( $( '
' ).addClass( 'wikiEditor-ui-top' ) ); // Setup the intial view diff --git a/modules/jquery.wikiEditor.toolbar.css b/modules/jquery.wikiEditor.toolbar.css index 1791d345..29c1f590 100644 --- a/modules/jquery.wikiEditor.toolbar.css +++ b/modules/jquery.wikiEditor.toolbar.css @@ -4,7 +4,6 @@ .wikiEditor-ui-toolbar { position: relative; - width: 100%; } /* Expandable Sections */ .wikiEditor-ui-toolbar .sections {