mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/WikiEditor
synced 2024-11-28 10:11:03 +00:00
Merge "Cleanup borders of wikiEditor"
This commit is contained in:
commit
3bd860d220
|
@ -15,15 +15,10 @@ form#editform {
|
||||||
.wikiEditor-ui textarea#wpTextbox1 {
|
.wikiEditor-ui textarea#wpTextbox1 {
|
||||||
border: none;
|
border: none;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
margin: -1px;
|
|
||||||
line-height: 1.5em;
|
line-height: 1.5em;
|
||||||
resize: vertical;
|
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 */
|
/* Hide vanilla MediaWiki's "Editing help" link, as we provide it in the toolbar */
|
||||||
.editButtons .editHelp,
|
.editButtons .editHelp,
|
||||||
.editButtons .mw-editButtons-pipe-separator {
|
.editButtons .mw-editButtons-pipe-separator {
|
||||||
|
|
|
@ -3,24 +3,23 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
.wikiEditor-ui {
|
.wikiEditor-ui {
|
||||||
float: left;
|
|
||||||
position: relative;
|
position: relative;
|
||||||
clear: both;
|
clear: both;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
background-color: #E0EEf7;
|
background-color: #E0EEf7;
|
||||||
border: 1px solid silver;
|
|
||||||
-moz-box-sizing: border-box;
|
|
||||||
-webkit-box-sizing: border-box;
|
|
||||||
box-sizing: border-box;
|
|
||||||
}
|
}
|
||||||
.wikiEditor-ui textarea {
|
.wikiEditor-ui textarea {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
border: 0;
|
||||||
}
|
}
|
||||||
.wikiEditor-ui textarea:focus {
|
.wikiEditor-ui textarea:focus {
|
||||||
outline: none;
|
outline: none;
|
||||||
}
|
}
|
||||||
.wikiEditor-ui .wikiEditor-ui-text {
|
.wikiEditor-ui .wikiEditor-ui-clear {
|
||||||
line-height: 0;
|
clear: both;
|
||||||
|
}
|
||||||
|
.wikiEditor-ui .wikiEditor-ui-view {
|
||||||
|
border: 1px solid silver;
|
||||||
}
|
}
|
||||||
.wikiEditor-ui .wikiEditor-ui-top {
|
.wikiEditor-ui .wikiEditor-ui-top {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
@ -43,13 +42,11 @@
|
||||||
float: left;
|
float: left;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
background-color: white;
|
background-color: white;
|
||||||
margin-top: -1px;
|
|
||||||
border-bottom: 1px solid silver;
|
|
||||||
}
|
}
|
||||||
.wikiEditor-ui-tabs {
|
.wikiEditor-ui-tabs {
|
||||||
float: left;
|
float: left;
|
||||||
height: 2.5em;
|
height: 2.5em;
|
||||||
margin-left: -1px;
|
margin-right: -1px;
|
||||||
background-color: white;
|
background-color: white;
|
||||||
border-left: 1px solid silver;
|
border-left: 1px solid silver;
|
||||||
border-top: 1px solid silver;
|
border-top: 1px solid silver;
|
||||||
|
|
|
@ -518,15 +518,16 @@ if ( !context || typeof context === 'undefined' ) {
|
||||||
.append( $( '<div>' ).addClass( 'wikiEditor-ui-tabs' ).hide() )
|
.append( $( '<div>' ).addClass( 'wikiEditor-ui-tabs' ).hide() )
|
||||||
.append( $( '<div>' ).addClass( 'wikiEditor-ui-buttons' ) )
|
.append( $( '<div>' ).addClass( 'wikiEditor-ui-buttons' ) )
|
||||||
)
|
)
|
||||||
.before( $( '<div style="clear: both;"></div>' ) );
|
.before( $( '<div>' ).addClass( 'wikiEditor-ui-clear' ) );
|
||||||
// Get references to some of the newly created containers
|
// Get references to some of the newly created containers
|
||||||
context.$controls = context.$ui.find( '.wikiEditor-ui-buttons' ).hide();
|
context.$controls = context.$ui.find( '.wikiEditor-ui-buttons' ).hide();
|
||||||
context.$buttons = context.$ui.find( '.wikiEditor-ui-buttons' );
|
context.$buttons = context.$ui.find( '.wikiEditor-ui-buttons' );
|
||||||
context.$tabs = context.$ui.find( '.wikiEditor-ui-tabs' );
|
context.$tabs = context.$ui.find( '.wikiEditor-ui-tabs' );
|
||||||
// Clear all floating after the UI
|
// Clear all floating after the UI
|
||||||
context.$ui.after( $( '<div style="clear: both;"></div>' ) );
|
context.$ui.after( $( '<div>' ).addClass( 'wikiEditor-ui-clear' ) );
|
||||||
// Attach a right container
|
// Attach a right container
|
||||||
context.$wikitext.append( $( '<div>' ).addClass( 'wikiEditor-ui-right' ) );
|
context.$wikitext.append( $( '<div>' ).addClass( 'wikiEditor-ui-right' ) );
|
||||||
|
context.$wikitext.append( $( '<div>' ).addClass( 'wikiEditor-ui-clear' ) );
|
||||||
// Attach a top container to the left pane
|
// Attach a top container to the left pane
|
||||||
context.$wikitext.find( '.wikiEditor-ui-left' ).prepend( $( '<div>' ).addClass( 'wikiEditor-ui-top' ) );
|
context.$wikitext.find( '.wikiEditor-ui-left' ).prepend( $( '<div>' ).addClass( 'wikiEditor-ui-top' ) );
|
||||||
// Setup the intial view
|
// Setup the intial view
|
||||||
|
|
|
@ -4,7 +4,6 @@
|
||||||
|
|
||||||
.wikiEditor-ui-toolbar {
|
.wikiEditor-ui-toolbar {
|
||||||
position: relative;
|
position: relative;
|
||||||
width: 100%;
|
|
||||||
}
|
}
|
||||||
/* Expandable Sections */
|
/* Expandable Sections */
|
||||||
.wikiEditor-ui-toolbar .sections {
|
.wikiEditor-ui-toolbar .sections {
|
||||||
|
|
Loading…
Reference in a new issue