--- /dev/null
+{
+ "rules": {
+ "color-hex-case": [ "lower" ]
+ }
+}
module.exports = function ( grunt ) {
grunt.loadNpmTasks( 'grunt-contrib-copy' );
grunt.loadNpmTasks( 'grunt-contrib-jshint' );
+ grunt.loadNpmTasks( 'grunt-stylelint' );
grunt.loadNpmTasks( 'grunt-contrib-watch' );
grunt.loadNpmTasks( 'grunt-banana-checker' );
grunt.loadNpmTasks( 'grunt-jscs' );
api: 'includes/api/i18n/',
installer: 'includes/installer/i18n/'
},
+ stylelint: {
+ options: {
+ syntax: 'less'
+ },
+ src: '{resources/src/*,{mw-config,tests}/**}/*.{css,less}'
+ },
watch: {
files: [
- '.js*',
+ '.{stylelintrc,jscsrc,jshintignore,jshintrc}',
'**/*',
'!{docs,extensions,node_modules,skins,vendor}/**'
],
return !!( process.env.MW_SERVER && process.env.MW_SCRIPT_PATH );
} );
- grunt.registerTask( 'lint', [ 'jshint', 'jscs', 'jsonlint', 'banana' ] );
+ grunt.registerTask( 'lint', [ 'jshint', 'jscs', 'jsonlint', 'banana', 'stylelint' ] );
grunt.registerTask( 'qunit', [ 'assert-mw-env', 'karma:main' ] );
grunt.registerTask( 'test', [ 'lint' ] );
}
#main {
- border: 1px solid #D0D0D0;
+ border: 1px solid #d0d0d0;
background: #fff;
margin: 0.5em;
}
"grunt-jscs": "2.8.0",
"grunt-jsonlint": "1.0.7",
"grunt-karma": "0.12.2",
+ "grunt-stylelint": "0.2.0",
"karma": "0.13.22",
"karma-chrome-launcher": "0.2.2",
"karma-firefox-launcher": "0.1.7",
"karma-qunit": "0.1.9",
- "qunitjs": "1.22.0"
+ "qunitjs": "1.22.0",
+ "stylelint-config-wikimedia": "0.1.0"
}
}
}
.suggestions-result-current {
- background-color: #4C59A6;
+ background-color: #4c59a6;
color: white;
}
span.updatedmarker {
color: black;
- background-color: #00FF00;
+ background-color: #00ff00;
}
div.gallerybox {
.catlinks li {
display: inline-block;
line-height: 1.25em;
- border-left: 1px solid #AAA;
+ border-left: 1px solid #aaa;
margin: 0.125em 0;
padding: 0 0.5em;
zoom: 1;
div.mw-warning-with-logexcerpt {
padding: 3px;
margin-bottom: 3px;
- border: 2px solid #2F6FAB;
+ border: 2px solid #2f6fab;
clear: both;
}
/* red links; see bug 36276 */
a.new {
- color: #BA0000;
+ color: #ba0000;
}
/* Plainlinks - this can be used to switch
}
.editOptions {
- background-color: #F0F0F0;
+ background-color: #f0f0f0;
border: 1px solid silver;
border-top: none;
padding: 1em 1em 1.5em 1em;
}
fieldset#mw-searchoptions div.divider {
clear: both;
- border-bottom: 1px solid #DDDDDD;
+ border-bottom: 1px solid #ddd;
padding-top: 0.5em;
margin-bottom: 0.5em;
}
div#mw-search-interwiki {
float: right;
width: 18em;
- border: 1px solid #AAAAAA;
+ border: 1px solid #aaa;
margin-top: 2ex;
}
div#mw-search-interwiki li {
text-align: left;
padding: 0.15em 0.15em 0.2em 0.2em;
background-color: #ececec;
- border-top: 1px solid #BBBBBB;
+ border-top: 1px solid #bbb;
}
span.searchalttitle {
font-size: 95%;
th,
td,
table {
- border: 1px solid #D0DBB3;
+ border: 1px solid #d0dbb3;
border-collapse: collapse;
margin: 0;
}
}
th {
- background-color: #F1F7E2;
+ background-color: #f1f7e2;
font-weight: bold;
}
}
.mw-notification-type-warn {
- border-color: #F5BE00; /* yellow */
- background-color: #FFFFE8;
+ border-color: #f5be00; /* yellow */
+ background-color: #ffffe8;
}
.mw-notification-type-error {
- border-color: #EB3941; /* red */
- background-color: #FFF8F8;
+ border-color: #eb3941; /* red */
+ background-color: #fff8f8;
}