Browse files

Switch stylesheet by language.

  • Loading branch information...
1 parent fa299f1 commit 26f36234a5feb6eddb61cb738a093f9719983e2c @nob committed Mar 16, 2013
View
1 wp-content/themes/scrollider/css/layout.css
@@ -535,7 +535,6 @@ INDEX
}
.has-slider #featured header h1 {
font-size: 2.2em;
- font-family: "F+UD-筑紫明朝 E";
}
.has-slider #featured .flex-control-nav {
display: block;
View
32 wp-content/themes/scrollider/english.css
@@ -0,0 +1,32 @@
+/*-------------------------------------------------------------------------------------------*/
+/* Stylesheet for English language */
+/*-------------------------------------------------------------------------------------------*/
+/* 1. Fonts */
+body {
+ font-family: "Open Sans", sans-serif;
+}
+h1,h2,h3,h4,h5,h6 {
+ font-family: "Merriweather", sans-serif;
+}
+#navigation {
+ font-family: "Merriweather", sans-serif;
+}
+.has-slider #featured header h1 {
+ font-family: "Merriweather", sans-serif;
+}
+
+/* 2. Header main navi */
+#menu-item-209,
+#menu-item-113,
+#menu-item-114,
+#menu-item-112,
+#menu-item-98 {
+ display: none;
+}
+#menu-item-214,
+#menu-item-210,
+#menu-item-211,
+#menu-item-212,
+#menu-item-213 {
+ display: list-item;
+}
View
7 wp-content/themes/scrollider/header.php
@@ -26,7 +26,12 @@
<?php woo_meta(); ?>
<link rel="stylesheet" type="text/css" href="<?php bloginfo( 'stylesheet_url' ); ?>" media="screen" />
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
-<script type="text/javascript" src="http://webfont.fontplus.jp/accessor/script/fontplus.js?YL8mWMKXSGE%3D" charset="utf-8"></script>
+<?php if (qtrans_getLanguage() == 'en') { // English ver ?>
+ <link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/english.css">
+<?php } else { ?>
+ <link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/japanese.css">
+ <script type="text/javascript" src="http://webfont.fontplus.jp/accessor/script/fontplus.js?YL8mWMKXSGE%3D" charset="utf-8"></script>
+<?php } ?>
<?php
wp_head();
woo_head();
View
32 wp-content/themes/scrollider/japanese.css
@@ -0,0 +1,32 @@
+/*-------------------------------------------------------------------------------------------*/
+/* Stylesheet for Japanese language */
+/*-------------------------------------------------------------------------------------------*/
+/* 1. Fonts */
+body {
+ font-family: "F+UD-ニューロダン M";
+}
+h1,h2,h3,h4,h5,h6 {
+ font-family: "F+UD-ニューロダン M";
+}
+#navigation {
+ font-family: "F+UD-ニューロダン M";
+}
+.has-slider #featured header h1 {
+ font-family: "F+UD-筑紫明朝 E";
+}
+
+/* 2. Header menu */
+#menu-item-209,
+#menu-item-113,
+#menu-item-114,
+#menu-item-112,
+#menu-item-98 {
+ display: list-item;
+}
+#menu-item-214,
+#menu-item-210,
+#menu-item-211,
+#menu-item-212,
+#menu-item-213 {
+ display: none;
+}
View
12 wp-content/themes/scrollider/style.css
@@ -296,10 +296,6 @@ body {
font-size: 1.2em;
line-height: 1.618;
color: #9e9e9e;
- /*
- font-family: "Open Sans", sans-serif;
- */
- font-family: "F+UD-ニューロダン M";
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
text-rendering: optimizeLegibility;
@@ -350,10 +346,6 @@ h3,
h4,
h5,
h6 {
- /*
- font-family: "Merriweather", sans-serif;
- */
- font-family: "F+UD-ニューロダン M";
color: #4a4a4a;
margin: 0 0 .618em;
}
@@ -547,10 +539,6 @@ ul.nav li.li.current-menu-item ul li.li.current-menu-item a {
clear: both;
margin-bottom: 1em;
display: none;
- /*
- font-family: "Merriweather", sans-serif;
- */
- font-family: "F+UD-ニューロダン M";
font-size: 1.1em;
font-weight: bold;
padding: 0;

0 comments on commit 26f3623

Please sign in to comment.