mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-29 08:34:54 +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
49 lines
924 B
CSS
49 lines
924 B
CSS
/*!
|
|
* VisualEditor UserInterface styles.
|
|
*
|
|
* @copyright 2011-2013 VisualEditor Team and others; see AUTHORS.txt
|
|
* @license The MIT License (MIT); see LICENSE.txt
|
|
*/
|
|
|
|
/*csslint vendor-prefix:false */
|
|
|
|
@-webkit-keyframes ve-ui-zoom-in {
|
|
from { -webkit-transform: scale(0.5); }
|
|
to { -webkit-transform: scale(1); }
|
|
}
|
|
|
|
@-moz-keyframes ve-ui-zoom-in {
|
|
from { -moz-transform: scale(0.5); }
|
|
to { -moz-transform: scale(1); }
|
|
}
|
|
|
|
@-o-keyframes ve-ui-zoom-in {
|
|
from { -o-transform: scale(0.5); }
|
|
to { -o-transform: scale(1); }
|
|
}
|
|
|
|
@keyframes ve-ui-zoom-in {
|
|
from { transform: scale(0.5); }
|
|
to { transform: scale(1); }
|
|
}
|
|
|
|
@-webkit-keyframes ve-ui-fade-in {
|
|
from { opacity: 0; }
|
|
to { opacity: 1; }
|
|
}
|
|
|
|
@-moz-keyframes ve-ui-fade-in {
|
|
from { opacity: 0; }
|
|
to { opacity: 1; }
|
|
}
|
|
|
|
@-o-keyframes ve-ui-fade-in {
|
|
from { opacity: 0; }
|
|
to { opacity: 1; }
|
|
}
|
|
|
|
@keyframes ve-ui-fade-in {
|
|
from { opacity: 0; }
|
|
to { opacity: 1; }
|
|
}
|