mediawiki-extensions-Visual.../modules/ve/ce
Timo Tijhof 57960a73bd Add .csslintrc file and fix remaining warnings
Adding a fairly loose .csslintrc file so that our code
passes it.

The following options cause warnings in our code and have been
disabled for now:

* adjoining-classes
  > Don't use adjoining classes.
  > .ve-ui-widget-disabled.ve-ui-textInputWidget textarea:focus {

* box-sizing
  > The box-sizing property isn't supported in IE6 and IE7.
  > box-sizing: border-box;

* box-model
  > Using width with border can sometimes make elements larger than you expect.
  > border: solid 1px #ccc;
  > Using width with padding can sometimes make elements larger than you expect.
  > padding: 0 0.75em 0 0.75em;
  > Using width with border-right can sometimes make elements larger than you expect.
  > border-right: 1px solid #eee;

* fallback-colors
  > Fallback background-color (hex or RGB) should precede RGBA background-color.
  > background-color: rgba(104,171,255,0.1);

* important
  > Use of !important
  > position: relative !important;

* outline-none
  > Outlines shouldn't be hidden unless other visual changes are made.
  > .ve-ce-documentNode[contenteditable="true"]:focus {

* qualified-headings
  > Heading (h1) should not be qualified.
  > .ve-ce-branchNode h1:empty:before,

* universal-selector
  > The universal selector (*) is known to be slow.
  > .ve-ce-protectedNode * {

* unqualified-attributes
  > Unqualified attribute selectors are known to be slow.
  > .ve-ce-documentNode[contenteditable="true"]:focus {

Fixes made:
* modules/ve/ce/styles/ve.ce.Surface.css:
 [L66:C2] margin can't be used with display: inline.
* modules/ve/ui/styles/ve.ui.css: Unknown @ rule: @-ms-keyframes
 Internet Explorer < 10 doesn't support keyframes. IE10+ supports
 the standard property. I don't think ms-keyframes ever existed
 http://caniuse.com/css-animation. ms-transform did exist
 http://caniuse.com/transform.

Change-Id: I728a48e489c079e1c94a506bb00c245de9551eb6
2013-06-05 11:07:00 +00:00
..
annotations Consistent use of mw in HTML classes, and data element and annotation types 2013-05-28 13:49:56 +01:00
nodes Merge "Store DM nodes in InternalList" 2013-06-04 17:06:24 +00:00
styles Add .csslintrc file and fix remaining warnings 2013-06-05 11:07:00 +00:00
ve.ce.Annotation.js ve.Element refactor 2013-05-14 19:47:32 +00:00
ve.ce.AnnotationFactory.js Rename ve.NodeFactory to ve.NamedClassFactory 2013-04-09 12:05:05 -07:00
ve.ce.BranchNode.js Introduction of setup and teardown events for ve.ce.View nodes 2013-05-14 19:47:40 +00:00
ve.ce.ContentBranchNode.js ve.Element refactor 2013-05-14 19:47:32 +00:00
ve.ce.Document.js Merge "Store multi byte characters as one element" 2013-05-25 09:00:49 +00:00
ve.ce.DomRange.js DomRange makes more sense as a name for this class (cause it is not rangy specific). 2013-03-05 12:18:59 -08:00
ve.ce.FocusableNode.js ve.ui.Context: Add embedding feature 2013-05-16 11:23:59 -07:00
ve.ce.js Store multi byte characters as one element 2013-05-25 00:50:11 +02:00
ve.ce.LeafNode.js Introduction of setup and teardown events for ve.ce.View nodes 2013-05-14 19:47:40 +00:00
ve.ce.Node.js Refactor HTML attribute preservation 2013-05-17 20:57:33 -07:00
ve.ce.NodeFactory.js Rename ve.NodeFactory to ve.NamedClassFactory 2013-04-09 12:05:05 -07:00
ve.ce.ProtectedNode.js Clear phantoms on teardown in ProtectedNode 2013-05-26 12:23:55 +02:00
ve.ce.RelocatableNode.js ve.ce.ProtectedNode 2013-05-07 00:08:48 +00:00
ve.ce.ResizableNode.js jshint: Fix trailing comma 2013-06-05 13:00:49 +02:00
ve.ce.Surface.js A fix for arrow movements in RTL wikis. 2013-05-28 14:50:20 -04:00
ve.ce.SurfaceObserver.js Merge "Store multi byte characters as one element" 2013-05-25 09:00:49 +00:00
ve.ce.View.js Remove resize handles on surface teardown 2013-05-24 22:19:18 +02:00