Commit graph

10 commits

Author SHA1 Message Date
Siebrand Mazeland 06f3e09e21 CSS cleanup.
Change-Id: I9ab92becb4d7bbff91448a504457f69c8179b010
2012-09-28 01:28:50 -07:00
Timo Tijhof 7721909f9f WikiEditor: Linting and conventions
* 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
2012-07-17 13:27:27 -07:00
Amir E. Aharoni 7cea0eb810 RTL fix for special characters insertion links.
Added @noflip, because it's explicitly rtl. Without it, it becomes ltr.

Change-Id: Ifda0894d8745faea2dc18e4efed3a3dfa52239d8
2012-03-29 10:10:23 +02:00
Roan Kattouw 7464078c73 (bug 27502) Monospace text too small 2011-02-19 15:02:14 +00:00
Trevor Parscal 2c4ea9d393 Improved on r79973 re-resolves #25724 after #80057 re-broke it. Aparently Opera was choking on, and ignoring the following CSS rule after, a CSS rule that ended in "background-image: url(some url here) !important;" Removing the "!important" part fixed the problem, and in this case it didn't seem to be needed anyways. So much for unicorn tears... 2011-01-11 23:55:39 +00:00
Trevor Parscal 1ed22372ab Removed more IE6 stuff. 2011-01-11 23:44:53 +00:00
Trevor Parscal 81bb906c99 Removed RTL rules and IE6 stuff from toolbar css, ResourceLoader uses CSSJanus to auto-flip the rules, and IE6 is blacklisted anyways. 2011-01-11 23:41:23 +00:00
Trevor Parscal 47d4852f07 Resolved #25724 using evil black magic and unicorn tears. 2011-01-10 23:32:52 +00:00
Trevor Parscal d35fddbda6 Added embed tags to CSS image URLs 2010-09-16 22:57:22 +00:00
Trevor Parscal a9c45c88e0 Lots of refactoring. This still does not work! But it's getting close. 2010-09-15 22:40:50 +00:00
Renamed from modules/wikiEditor.toolbar.css (Browse further)