diff --git a/modules/admin/tpl/css/admin.css b/modules/admin/tpl/css/admin.css index 0401708ee..63286d95e 100644 --- a/modules/admin/tpl/css/admin.css +++ b/modules/admin/tpl/css/admin.css @@ -169,7 +169,7 @@ to{-o-transform:rotate(360deg)} .x>.xin>.body{zoom:1;padding:0 20px 0 200px} .x>.xin>.body.wide{padding:0 20px 0 60px} .x>.xin>.body:after{content:"";display:block;clear:both} -.x>.xin>.body>.content{width:100%;padding:1px 0 0 0;float:right;margin:0 0 30px -100%} +.x>.xin>.body>.content{width:100%;padding:1px 0 0 0;float:right;margin:0 0 30px -100%;outline:none} .x>.xin>.body>.content>*:first-child{margin-top:0} .x>.xin>.body>.gnb{width:180px;position:fixed;top:73px;left:10px} .x>.xin>.body.wide>.gnb{width:36px} @@ -197,6 +197,9 @@ to{-o-transform:rotate(360deg)} .x>.xin>.header>.account>ul>li>a:hover, .x>.xin>.header>.account>ul>li>a:focus{text-decoration:underline} .x>.xin>.header>.account .lang+#lang{position:absolute;top:20px;left:auto;right:0;min-width:0} +.x>.xin>.header>.account .lang+#lang a:focus, +.x>.xin>.header>.account .lang+#lang a:hover{background:none;color:#333} +.x>.xin>.header>.account .lang+#lang .x_active>a{color:#fff;background:#0081c2 -webkit-linear-gradient(top, #0088cc, #0077b3);background:#0081c2 -moz-linear-gradient(top, #0088cc, #0077b3);background:#0081c2 -o-linear-gradient(top, #0088cc, #0077b3)} @media all and (max-width:480px){ .x>.xin>.header>.site{margin-top:0} } diff --git a/modules/admin/tpl/css/admin.min.css b/modules/admin/tpl/css/admin.min.css index 25c463f4c..e0ad925dc 100644 --- a/modules/admin/tpl/css/admin.min.css +++ b/modules/admin/tpl/css/admin.min.css @@ -169,7 +169,7 @@ to{-o-transform:rotate(360deg)} .x>.xin>.body{zoom:1;padding:0 20px 0 200px} .x>.xin>.body.wide{padding:0 20px 0 60px} .x>.xin>.body:after{content:"";display:block;clear:both} -.x>.xin>.body>.content{width:100%;padding:1px 0 0 0;float:right;margin:0 0 30px -100%} +.x>.xin>.body>.content{width:100%;padding:1px 0 0 0;float:right;margin:0 0 30px -100%;outline:none} .x>.xin>.body>.content>*:first-child{margin-top:0} .x>.xin>.body>.gnb{width:180px;position:fixed;top:73px;left:10px} .x>.xin>.body.wide>.gnb{width:36px} @@ -197,6 +197,9 @@ to{-o-transform:rotate(360deg)} .x>.xin>.header>.account>ul>li>a:hover, .x>.xin>.header>.account>ul>li>a:focus{text-decoration:underline} .x>.xin>.header>.account .lang+#lang{position:absolute;top:20px;left:auto;right:0;min-width:0} +.x>.xin>.header>.account .lang+#lang a:focus, +.x>.xin>.header>.account .lang+#lang a:hover{background:none;color:#333} +.x>.xin>.header>.account .lang+#lang .x_active>a{color:#fff;background:#0081c2 -webkit-linear-gradient(top, #0088cc, #0077b3);background:#0081c2 -moz-linear-gradient(top, #0088cc, #0077b3);background:#0081c2 -o-linear-gradient(top, #0088cc, #0077b3)} @media all and (max-width:480px){ .x>.xin>.header>.site{margin-top:0} } diff --git a/modules/admin/tpl/js/admin.js b/modules/admin/tpl/js/admin.js index 02e408d1f..c1be1dcfb 100644 --- a/modules/admin/tpl/js/admin.js +++ b/modules/admin/tpl/js/admin.js @@ -136,6 +136,19 @@ jQuery(function($){ $xBody.addClass('wide'); reflow(); }); +// Default Language Selection + $('.x #lang') + .mouseleave(function(){ + $(this).hide(); + }) + .focusout(function(){ + var $this = $(this); + setTimeout(function(){ + if(!$this.find('a:focus').length){ + $this.mouseleave(); + } + }, 0); + }); // Check All $('.x th>input[type="checkbox"]') .change(function() { diff --git a/modules/admin/tpl/js/admin.min.js b/modules/admin/tpl/js/admin.min.js index 02e408d1f..c1be1dcfb 100644 --- a/modules/admin/tpl/js/admin.min.js +++ b/modules/admin/tpl/js/admin.min.js @@ -136,6 +136,19 @@ jQuery(function($){ $xBody.addClass('wide'); reflow(); }); +// Default Language Selection + $('.x #lang') + .mouseleave(function(){ + $(this).hide(); + }) + .focusout(function(){ + var $this = $(this); + setTimeout(function(){ + if(!$this.find('a:focus').length){ + $this.mouseleave(); + } + }, 0); + }); // Check All $('.x th>input[type="checkbox"]') .change(function() {