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(){ this.simple_drop_down = function(){
// simple dropdown menu // simple dropdown menu
if( !$('.sdm').children('.sdm_o').length > 0 ){ var $sdm = $('.sdm');
return; if( $sdm.find('.sdm_o') ){
} else { $sdm.find('a').andSelf().on({
$('.sdm').hover(function(){ mouseenter: function(){
$(this).stop(1,1).addClass('thmc2 thmtxt'); $(this).addClass('thmc2 thmtxt');
}, function(){ },
$(this).stop(1,1).removeClass('thmc2 thmtxt'); mouseleave: function(){
$(this).removeClass('thmc2 thmtxt');
}
}); });
} }
}; };
this.simple_tab = function(){ this.simple_tab = function(){
// tab // tab

View File

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

View File

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

View File

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

View File

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