Admin dashboard portlet width. 1280px over and under.

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9551 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ChanMyeong 2011-10-11 01:51:37 +00:00
parent 78613c0ce1
commit 7206aff619
2 changed files with 13 additions and 1 deletions

View file

@ -301,6 +301,9 @@ body.modalContainer{_height:100%;_width:100%} /* IE6 only */
.x .dashboard .portlet{float:left;width:48%;margin-right:1em}
.x .dashboard .portlet:nth-of-type(odd){float:left;width:49%;margin-right:0}
.x .dashboard .portlet:nth-of-type(even){float:right;width:49%;margin-right:0}
@media only all and (min-width:1280px){
.x .dashboard .portlet{float:left !important;width:32% !important;margin-right:1em !important}
}
/* Single Column*/
.x .single{position:relative;float:none;width:auto;margin-left:-230px}
/* Search */

View file

@ -87,7 +87,16 @@ jQuery(function($){
});
// Display the dashboard in two column
$('.dashboard>.section>.portlet:odd').after('<br style="clear:both" />');
$(window).resize(function(){
if($(document).width() < 1280){
$('.dashboard>.section>br').remove();
$('.dashboard>.section>.portlet:odd').after('<br style="clear:both" />');
} else {
$('.dashboard>.section>br').remove();
$('.dashboard>.section>.portlet:eq(2),.dashboard>.section>.portlet:eq(5)').after('<br style="clear:both" />');
}
});
$(window).resize();
// Popup list : 'Move to site' and 'Site map'