mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 03:32:00 +09:00
Clean up admin i18n css
<html> element has the lang attribute as a default. so, we can clean up
css files.
<html> 요소는 lang 속성을 가지고 있습니다. 이를 이용하면 css 파일을 정리할 수 있습니다.
{$lang_type} 에 따른 css 를 불러오도록 HTMLDisplayHandler.php 에 정의되어 있지만, 한국어, 영어
외에는 파일이 존재하지 않습니다. (일본어도 _ja.css 파일은 부재) 언어별로 파일을 만들지 않아도 충분히 표현할 수 있기
때문에 이를 하나의 파일로 합칩니다.
This commit is contained in:
parent
25de7998c2
commit
fab9e43c16
7 changed files with 33 additions and 20 deletions
|
|
@ -394,7 +394,6 @@ class HTMLDisplayHandler
|
||||||
if(Context::get('module') == 'admin' || strpos(Context::get('act'), 'Admin') > 0)
|
if(Context::get('module') == 'admin' || strpos(Context::get('act'), 'Admin') > 0)
|
||||||
{
|
{
|
||||||
Context::loadFile(array('./modules/admin/tpl/css/admin.css', '', '', 10), true);
|
Context::loadFile(array('./modules/admin/tpl/css/admin.css', '', '', 10), true);
|
||||||
Context::loadFile(array("./modules/admin/tpl/css/admin_{$lang_type}.css", '', '', 10), true);
|
|
||||||
Context::loadFile(array("./modules/admin/tpl/css/admin.iefix.css", '', 'ie', 10), true);
|
Context::loadFile(array("./modules/admin/tpl/css/admin.iefix.css", '', 'ie', 10), true);
|
||||||
Context::loadFile('./modules/admin/tpl/js/admin.js', true);
|
Context::loadFile('./modules/admin/tpl/js/admin.js', true);
|
||||||
Context::loadFile(array('./modules/admin/tpl/css/admin.bootstrap.css', '', '', 1), true);
|
Context::loadFile(array('./modules/admin/tpl/css/admin.bootstrap.css', '', '', 1), true);
|
||||||
|
|
|
||||||
|
|
@ -2389,3 +2389,36 @@ html[lang="mn"] .x .g11n.active>[disabled],
|
||||||
height: 1px;
|
height: 1px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* language specific styles */
|
||||||
|
/* English admin_en.css */
|
||||||
|
html:lang(en) body>.x,
|
||||||
|
html:lang(en) .x table,
|
||||||
|
html:lang(en) .x input,
|
||||||
|
html:lang(en) .x textarea,
|
||||||
|
html:lang(en) .x select,
|
||||||
|
html:lang(en) .x button{font-family:Arial,Helvetica,sans-serif}
|
||||||
|
@media all and (max-width:980px){
|
||||||
|
html:lang(en) body>.x,
|
||||||
|
html:lang(en) .x table,
|
||||||
|
html:lang(en) .x input,
|
||||||
|
html:lang(en) .x textarea,
|
||||||
|
html:lang(en) .x select,
|
||||||
|
html:lang(en) .x button{font-family:sans-serif}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Korean admin_ko.css */
|
||||||
|
html:lang(ko) body>.x,
|
||||||
|
html:lang(ko) .x table,
|
||||||
|
html:lang(ko) .x input,
|
||||||
|
html:lang(ko) .x textarea,
|
||||||
|
html:lang(ko) .x select,
|
||||||
|
html:lang(ko) .x button{font-family:'나눔고딕',NanumGothic,'맑은 고딕','Apple SD Gothic Neo','돋움',Dotum,Arial,Helvetica,sans-serif}
|
||||||
|
|
||||||
|
/* Japanese admin_jp.css */
|
||||||
|
html:lang(ja) body>.x,
|
||||||
|
html:lang(ja) .x table,
|
||||||
|
html:lang(ja) .x input,
|
||||||
|
html:lang(ja) .x textarea,
|
||||||
|
html:lang(ja) .x select,
|
||||||
|
html:lang(ja) .x button{font-family:'ヒラギノ角ゴ Pro W3','Hiragino Kaku Gothic Pro','メイリオ',Meiryo,'MS Pゴシック',sans-serif}
|
||||||
|
|
@ -1,5 +0,0 @@
|
||||||
@charset "utf-8";
|
|
||||||
body>.x,.x table,.x input,.x textarea,.x select,.x button{font-family:Arial,Helvetica,sans-serif}
|
|
||||||
@media all and (max-width:980px){
|
|
||||||
body>.x,.x table,.x input,.x textarea,.x select,.x button{font-family:sans-serif}
|
|
||||||
}
|
|
||||||
|
|
@ -1,5 +0,0 @@
|
||||||
@charset "utf-8";
|
|
||||||
body>.x,.x table,.x input,.x textarea,.x select,.x button{font-family:'ヒラギノ角ゴ Pro W3','Hiragino Kaku Gothic Pro','メイリオ',Meiryo,'MS Pゴシック',sans-serif}
|
|
||||||
@media all and (max-width:980px){
|
|
||||||
body>.x,.x table,.x input,.x textarea,.x select,.x button{font-family:'ヒラギノ角ゴ Pro W3','Hiragino Kaku Gothic Pro','メイリオ',Meiryo,'MS Pゴシック',sans-serif}
|
|
||||||
}
|
|
||||||
|
|
@ -1,5 +0,0 @@
|
||||||
@charset "utf-8";
|
|
||||||
body>.x,.x table,.x input,.x textarea,.x select,.x button{font-family:나눔고딕,NanumGothic,돋움,Dotum,Arial,Helvetica,sans-serif}
|
|
||||||
@media all and (max-width:980px){
|
|
||||||
body>.x,.x table,.x input,.x textarea,.x select,.x button{font-family:sans-serif}
|
|
||||||
}
|
|
||||||
|
|
@ -1,7 +1,5 @@
|
||||||
<load target="../../admin/tpl/css/admin.bootstrap.css" />
|
<load target="../../admin/tpl/css/admin.bootstrap.css" />
|
||||||
<load target="../../admin/tpl/css/admin.css" />
|
<load target="../../admin/tpl/css/admin.css" />
|
||||||
<load cond="$lang_type=='ko'" target="../../admin/tpl/css/admin_ko.css" />
|
|
||||||
<load cond="$lang_type=='en'" target="../../admin/tpl/css/admin_en.css" />
|
|
||||||
<load target="../../admin/tpl/js/admin.js" />
|
<load target="../../admin/tpl/js/admin.js" />
|
||||||
<load target="js/generate_code.js" />
|
<load target="js/generate_code.js" />
|
||||||
<load target="../../admin/tpl/js/jquery.tmpl.js" />
|
<load target="../../admin/tpl/js/jquery.tmpl.js" />
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,5 @@
|
||||||
<load target="../../admin/tpl/css/admin.bootstrap.css" />
|
<load target="../../admin/tpl/css/admin.bootstrap.css" />
|
||||||
<load target="../../admin/tpl/css/admin.css" />
|
<load target="../../admin/tpl/css/admin.css" />
|
||||||
<load cond="$lang_type=='ko'" target="../../admin/tpl/css/admin_ko.css" />
|
|
||||||
<load cond="$lang_type=='en'" target="../../admin/tpl/css/admin_en.css" />
|
|
||||||
<load target="css/widget.css" />
|
<load target="css/widget.css" />
|
||||||
<load target="../../admin/tpl/js/admin.js" />
|
<load target="../../admin/tpl/js/admin.js" />
|
||||||
<load target="../../admin/tpl/js/jquery.tmpl.js" />
|
<load target="../../admin/tpl/js/jquery.tmpl.js" />
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue