mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/WikiEditor
synced 2024-11-13 18:36:57 +00:00
7721909f9f
* Code clean up in preparation for enabling linting in the future * Update code to use latest code conventions and best practices: - Make use of jQuery.Event (e.g. no need to check both e.keyCode and e.which) - jQuery: .size() -> .length - jQuery: (where appropiate) .attr() -> .prop() Setting properties like 'checked' via attr() has been deprecated in jQuery. - Whitespace - Single quotes instead of double quotes - Use literal keys in object literals instead of strings - Pass mediaWiki to closure, use mw. locally instead of "mediaWiki" global directly. - Fix indentation - Brackets around if, else and for bodies - Strict comparison to 0, null, false, true etc. - Fix missing radix parameter in parseInt - Use local $ instead of global $ - Use `foo || bar` instead of `foo ? foo : bar` - Variable scope hoisting - Double/redundant variable declarations - ['foo'] is better written in dot notation - New line at EOF - Consistency in jQuery construction: Tag name for element creation $( '<div>' ) Valid html for html parsing $( '<div foo="bar"></div>' ) - Fix regex escape warnings per JSLint/JSHint. Do escape ][, don't escape >< - .. * Add .jshintrc / .jshintignore * Updated most files, but not all. Too much at once. Change-Id: I445639b25a9688b3cdf9e5449e3d31cbcfa9c7ae
68 lines
1.3 KiB
CSS
68 lines
1.3 KiB
CSS
/**
|
|
* CSS for WikiEditor Dialogs jQuery plugin
|
|
*/
|
|
|
|
.wikiEditor-toolbar-dialog table {
|
|
margin-top: 0.75em;
|
|
}
|
|
|
|
.wikiEditor-toolbar-dialog table td {
|
|
padding: 0.5em;
|
|
height: 3em;
|
|
overflow: visible;
|
|
}
|
|
|
|
/* Put suggestions (default z-index 99) on top of dialogs (z-index 1002) */
|
|
div.suggestions {
|
|
z-index: 1099;
|
|
}
|
|
|
|
.wikiEditor-toolbar-dialog table td {
|
|
padding: 0 !important;
|
|
}
|
|
|
|
.wikiEditor-toolbar-dialog .ui-dialog-content fieldset {
|
|
border: none !important;
|
|
margin: 0 !important;
|
|
padding: 0 !important;
|
|
}
|
|
|
|
.wikiEditor-toolbar-dialog .ui-widget-header {
|
|
border-bottom:1px solid #6bc8f3 !important;
|
|
}
|
|
|
|
.wikiEditor-toolbar-dialog .ui-dialog-content input[type=text] {
|
|
-moz-box-sizing: border-box;
|
|
-ms-box-sizing: border-box;
|
|
-webkit-box-sizing: border-box;
|
|
-khtml-box-sizing: border-box;
|
|
}
|
|
|
|
.wikiEditor-toolbar-dialog .ui-dialog-content input[type="radio"],
|
|
.wikiEditor-toolbar-dialog .ui-dialog-content input[type="checkbox"] {
|
|
margin-left: 0;
|
|
}
|
|
|
|
.wikiEditor-toolbar-dialog .ui-dialog-titlebar-close {
|
|
padding: 0;
|
|
}
|
|
body .wikiEditor-toolbar-dialog .ui-dialog-titlebar-close {
|
|
right: 0.9em;
|
|
}
|
|
|
|
.wikieditor-toolbar-field-wrapper {
|
|
padding: 0 0 25px 0;
|
|
}
|
|
|
|
.wikieditor-toolbar-floated-field-wrapper {
|
|
float: left;
|
|
margin-right: 2em;
|
|
}
|
|
|
|
.wikieditor-toolbar-dialog-hint {
|
|
color: #999999;
|
|
}
|
|
|
|
.wikiEditor-toolbar-dialog {
|
|
border: none;
|
|
} |