Follow-up r96261: remove the !important again, and then do the script defaults differ...
authorRobin Pepermans <robin@users.mediawiki.org>
Tue, 1 Nov 2011 00:17:37 +0000 (00:17 +0000)
committerRobin Pepermans <robin@users.mediawiki.org>
Tue, 1 Nov 2011 00:17:37 +0000 (00:17 +0000)
includes/resourceloader/ResourceLoaderUserOptionsModule.php
skins/common/shared.css

index 355c43a..4462abe 100644 (file)
@@ -97,7 +97,11 @@ class ResourceLoaderUserOptionsModule extends ResourceLoaderModule {
                        // Underline: 2 = browser default, 1 = always, 0 = never
                        if ( $options['underline'] < 2 ) {
                                $rules[] = "a { text-decoration: " .
-                                       ( $options['underline'] ? 'underline !important' : 'none' ) . "; }";
+                                       ( $options['underline'] ? 'underline' : 'none' ) . "; }";
+                       } else {
+                               # The scripts of these languages are very hard to read with underlines
+                               $rules[] = 'a:lang(ar), a:lang(ckb), a:lang(fa),a:lang(kk-arab), ' .
+                               'a:lang(mzn), a:lang(ps), a:lang(ur) { text-decoration: none; }';
                        }
                        if ( $options['highlightbroken'] ) {
                                $rules[] = "a.new, #quickbar a.new { color: #ba0000; }\n";
index 0f6d9e0..d7bce5a 100644 (file)
@@ -52,17 +52,6 @@ input[dir="rtl"] {
        direction: rtl;
 }
 
-/* The scripts of these languages are very hard to read with underlines */
-[lang="ar"] a,
-[lang="ckb"] a,
-[lang="fa"] a,
-[lang="kk-arab"] a,
-[lang="mzn"] a,
-[lang="ps"] a,
-[lang="ur"] a {
-       text-decoration: none;
-}
-
 /* Default style for semantic tags */
 abbr,
 acronym,