mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 18:39:52 +00:00
57960a73bd
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 |
||
---|---|---|
.docs | ||
demos | ||
maintenance | ||
modules | ||
.csslintrc | ||
.gitignore | ||
.gitreview | ||
.jshintignore | ||
.jshintrc | ||
ApiVisualEditor.php | ||
AUTHORS.txt | ||
CODING.md | ||
LICENSE.txt | ||
README.txt | ||
VisualEditor.hooks.php | ||
VisualEditor.i18n.php | ||
VisualEditor.php | ||
VisualEditorMessagesModule.php |
VisualEditor provides a visual editor for wiki pages. It is written in JavaScript and runs in a web browser. It uses the Parsoid parser to convert wikitext documents to annotated HTML which the VisualEditor is able to load, modify and emit back to Parsoid at which point it is converted back into wikitext. For more information about these projects, check out the wiki: * http://www.mediawiki.org/wiki/VisualEditor * http://www.mediawiki.org/wiki/Parsoid