minor update

This commit is contained in:
devin chen 2013-04-03 15:38:59 +08:00 committed by Matt K. Fu
parent d288972035
commit d177fe0369
5 changed files with 20 additions and 9 deletions

View File

@ -1665,15 +1665,18 @@ var orbitDesktop = function(dom){
};
this.simple_drop_down = function(){
// simple dropdown menu
if( !$('.sdm').children('.sdm_o').length > 0 ){
return;
} else {
$('.sdm').hover(function(){
$(this).stop(1,1).addClass('thmc2 thmtxt');
}, function(){
$(this).stop(1,1).removeClass('thmc2 thmtxt');
var $sdm = $('.sdm');
if( $sdm.find('.sdm_o') ){
$sdm.find('a').andSelf().on({
mouseenter: function(){
$(this).addClass('thmc2 thmtxt');
},
mouseleave: function(){
$(this).removeClass('thmc2 thmtxt');
}
});
}
};
this.simple_tab = function(){
// tab

View File

@ -92,7 +92,8 @@
z-index: 9;
left: 0;
top: 60px;
font-size: 15px; }
font-size: 15px;
width: 120px; }
.sdm_o li {
border-top: solid 1px #f2f2f2; }
.sdm_o li:first-child {

View File

@ -58,6 +58,7 @@
left: 0;
top: 60px;
font-size: 15px;
width: 120px;
li {
border-top: solid 1px #f2f2f2;

View File

@ -469,6 +469,8 @@ a:focus {
margin: 0 12px 0 0;
position: relative;
z-index: 9; }
.dtitle .sdm_o {
width: auto; }
.tile {
display: block;

View File

@ -446,6 +446,10 @@ a:focus { outline: none; }
margin: 0 12px 0 0;
position: relative;
z-index: 9;
.sdm_o {
width: auto;
}
}
.tile {
display: block;