Default layout bug fix.

git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@12361 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ChanMyeong 2012-12-10 05:48:22 +00:00
parent 495a1c4c3d
commit 3111578628
5 changed files with 24 additions and 22 deletions

View file

@ -25,10 +25,11 @@ input[type=radio]{margin:0}
.header{position:relative;z-index:2;margin:15px 0}
.body{position:relative;z-index:1;margin:15px 0;zoom:1}
.body:after{content:"";display:block;clear:both}
.body.sub>.lnb{display:none}
@media all and (min-width:980px){
.body.sub{padding-left:220px}
.body.sub>.content{width:100%;clear:both}
.body.sub>.lnb{float:left;width:200px;position:relative;left:-220px}
.body.sub>.content{float:right;width:100%}
.body.sub>.lnb{display:block;float:left;width:200px;position:relative;left:-220px;margin-right:-200px}
}
.content{outline:0}
.footer{margin:15px 0}
@ -59,7 +60,7 @@ input[type=radio]{margin:0}
.account{position:absolute;right:0;bottom:5px;z-index:2;margin:0}
/* Visual */
.visual{display:block;position:relative;width:100%;overflow:hidden;margin:0 0 20px 0;border-radius:5px;overflow:hidden}
.body.sub>.visual{float:right;margin-left:-100%}
.body.sub>.visual{float:right}
.visual>.list{position:relative;z-index:1;width:100%;zoom:1}
.visual>.list.count1{width:100%;left:0}
.visual>.list.count2{width:200%;left:0}

View file

@ -49,6 +49,19 @@
<!-- /GNB -->
</header>
<div class="body main"|cond="$layout_info->LAYOUT_TYPE=='MAIN_PAGE'" class="body sub"|cond="$layout_info->LAYOUT_TYPE=='SUB_PAGE'">
<!-- LNB -->
<nav class="lnb" cond="$layout_info->LAYOUT_TYPE == 'SUB_PAGE'">
<h2 loop="$GNB->list=>$key1,$val1" cond="$val1['selected']"><a href="{$val1['href']}" target="_blank"|cond="$val1['open_window']=='Y'">{$val1['link']}</a></h2>
<ul loop="$GNB->list=>$key1,$val1" cond="$val1['selected'] && $val1['list']" class="x_nav x_nav-tabs x_nav-stacked">
<li loop="$val1['list']=>$key2,$val2" class="x_active"|cond="$val2['selected']"><a href="{$val2['href']}" target="_blank"|cond="$val2['open_window']=='Y'">{$val2['link']}</a>
<ul cond="$val2['list']">
<li loop="$val2['list']=>$key3,$val3" class="x_active"|cond="$val3['selected']"><a href="{$val3['href']}" target="_blank"|cond="$val3['open_window']=='Y'">{$val3['link']}</a>
</li>
</ul>
</li>
</ul>
</nav>
<!-- /LNB -->
<!-- VISUAL | DEFAULT -->
<div class="visual" cond="!$layout_info->VISUAL_IMAGE_1 && !$layout_info->VISUAL_IMAGE_2 && !$layout_info->VISUAL_IMAGE_3 && $layout_info->VISUAL_USE=='YES'">
<div class="list">
@ -92,19 +105,6 @@
<button type="button" class="next"><i></i>&rsaquo;</button>
</div>
<!-- /VISUAL -->
<!-- LNB -->
<nav class="lnb" cond="$layout_info->LAYOUT_TYPE == 'SUB_PAGE'">
<h2 loop="$GNB->list=>$key1,$val1" cond="$val1['selected']"><a href="{$val1['href']}" target="_blank"|cond="$val1['open_window']=='Y'">{$val1['link']}</a></h2>
<ul loop="$GNB->list=>$key1,$val1" cond="$val1['selected'] && $val1['list']" class="x_nav x_nav-tabs x_nav-stacked">
<li loop="$val1['list']=>$key2,$val2" class="x_active"|cond="$val2['selected']"><a href="{$val2['href']}" target="_blank"|cond="$val2['open_window']=='Y'">{$val2['link']}</a>
<ul cond="$val2['list']">
<li loop="$val2['list']=>$key3,$val3" class="x_active"|cond="$val3['selected']"><a href="{$val3['href']}" target="_blank"|cond="$val3['open_window']=='Y'">{$val3['link']}</a>
</li>
</ul>
</li>
</ul>
</nav>
<!-- /LNB -->
<!-- CONTENT -->
<div class="content" id="content">
{$content}