build: Enforce stylelints on fonts
authorJames D. Forrester <jforrester@wikimedia.org>
Thu, 19 May 2016 15:06:59 +0000 (16:06 +0100)
committerJforrester <jforrester@wikimedia.org>
Thu, 19 May 2016 16:25:00 +0000 (16:25 +0000)
* Font families should be quoted unless keywords (''Times'' not 'Times')
* Font weights should be named where possible ('bold' not '700')

Change-Id: I20194c2998efb71db4da5ea79234a81dc90b55ea

.stylelintrc
mw-config/config-cc.css
resources/src/mediawiki.skinning/elements.css
resources/src/mediawiki.special/mediawiki.special.userlogin.signup.css

index ca0af95..e8e1567 100644 (file)
@@ -9,5 +9,8 @@
                "declaration-bang-space-before": [ "always" ],
                "declaration-colon-space-after": [ "always" ],
                "declaration-colon-space-before": [ "never" ],
+
+               "font-family-name-quotes": [ "single-unless-keyword" ],
+               "font-weight-notation": [ "named-where-possible" ]
        }
 }
index 29dc80c..f9c6117 100644 (file)
@@ -5,7 +5,7 @@
 body {
        margin: 0;
        background: #eee;
-       font-family: Verdana;
+       font-family: 'Verdana';
        color: #333;
 }
 
index f267784..7b0b071 100644 (file)
@@ -195,7 +195,7 @@ pre, code, tt, kbd, samp, .mw-code {
         * Some browsers will render the monospace text too small, namely Firefox, Chrome and Safari.
         * Specifying any valid, second value will trigger correct behavior without forcing a different font.
         */
-       font-family: monospace, Courier;
+       font-family: monospace, 'Courier';
 }
 
 code {
index 0998d4c..87cdb02 100644 (file)
@@ -45,7 +45,7 @@ div.mw-createacct-benefits-container h2 {
        margin: 0;
        padding: 0;
        color: #252525;
-       font-family: "Linux Libertine", Georgia, Times, serif;
+       font-family: 'Linux Libertine', 'Georgia', 'Times', serif;
        font-weight: normal;
        font-size: 2.2em;
        line-height: 1.2;