]> cat aescling's git repositories - mastodon.git/commitdiff
ReFix font-weight of <strong> element for CJK fonts (#5920)
authorLynx Kotoura <admin@sanin.link>
Thu, 7 Dec 2017 20:35:19 +0000 (05:35 +0900)
committerEugen Rochko <eugen@zeonfederated.com>
Thu, 7 Dec 2017 20:35:19 +0000 (21:35 +0100)
Also apply to Japanese and Korean.
Fix font-weight in landing pages.

app/javascript/styles/mastodon/about.scss
app/javascript/styles/mastodon/variables.scss

index 56b4dcfb96f3a37bf889915af78aae0c0dac9781..e45fc03d3c4ad13a40dbebc164ad8995a4d6ad8b 100644 (file)
@@ -19,7 +19,7 @@
     display: inline;
     margin: 0;
     padding: 0;
-    font-weight: 500;
+    font-weight: 700;
     background: transparent;
     font-family: inherit;
     font-size: inherit;
         font-weight: 500;
         font-size: 32px;
         line-height: 48px;
-
-        @each $lang in $cjk-langs {
-          &:lang(#{$lang}) {
-            font-weight: 700;
-          }
-        }
       }
     }
 
index 0abb8d5eae228122f516c384959d4d4d5e10db4d..dcc2857ff6b294b5d3865b97821704765e6e2c5b 100644 (file)
@@ -29,4 +29,4 @@ $ui-secondary-color: $classic-secondary-color !default;        // Lightest
 $ui-highlight-color: $classic-highlight-color !default;        // Vibrant
 
 // Language codes that uses CJK fonts
-$cjk-langs: zh-CN, zh-HK, zh-TW;
+$cjk-langs: ja, ko, zh-CN, zh-HK, zh-TW;