diff --git a/layouts/xedition/css/layout.css b/layouts/xedition/css/layout.css index 8f6332573..cc8b9c414 100644 --- a/layouts/xedition/css/layout.css +++ b/layouts/xedition/css/layout.css @@ -222,7 +222,7 @@ a:hover,a:active,a:focus{text-decoration:none} .swiper-button.left { left:20px; } .swiper-button.right { right:20px; } .swiper-button i { width:50px; line-height:50px; text-align:center; font-size:24px; color:#fff; } -.swiper-button button { background:rgba(0,0,0,0.3); cursor:pointer; } +.swiper-button button { background-color:#333; border-radius:50px; background-color:rgba(0,0,0,0.2); cursor:pointer; } .pagination { position: absolute; left: 0; diff --git a/layouts/xedition/js/gnb.mobile.js b/layouts/xedition/js/gnb.mobile.js deleted file mode 100644 index 8888c459d..000000000 --- a/layouts/xedition/js/gnb.mobile.js +++ /dev/null @@ -1,14 +0,0 @@ -(function($) { - $(function(){ - var $gnb = $('.gnb'); - $("#mobile_menu_btn").on('click', function(){ - var isOpened = $(this); - if(isOpened.hasClass('opened')){ - $("#gnb").find(">ul").slideUp(200); - }else{ - $("#gnb").find(">ul:not(:animated)").slideDown(200); - } - isOpened.toggleClass('opened'); - }); - }); -})(jQuery); diff --git a/layouts/xedition/js/gnb.pc.js b/layouts/xedition/js/gnb.pc.js deleted file mode 100644 index 268220412..000000000 --- a/layouts/xedition/js/gnb.pc.js +++ /dev/null @@ -1,36 +0,0 @@ - (function($){ - $(function(){ - var $shrinkHeaderHeight = 300; - var $fixedHeader = $('.fixed_header .header_wrap'); - var $gnb = $('.gnb'); - var $hoverEl = $('.hover'); - var $searchEl = $('.click > a'); - var $searchForm = $('.search_area'); - // Gnb - $gnb.find('>ul>li>a') - .mouseover(function(){ - $gnb.find('>ul>li>ul:visible').hide().parent('li').removeClass('on'); - $(this).next('ul:hidden').stop().fadeIn(200).parent('li').addClass('on') - }) - .focus(function(){ - $(this).mouseover(); - }) - .end() - .mouseleave(function(){ - $gnb.find('>ul>li>ul').hide().parent().removeClass('on') - }); - - $gnb.find('>ul>li>ul>li>a') - .mouseover(function(){ - $gnb.find('>ul>li>ul>li>ul:visible').hide().parent('li').removeClass('on'); - $(this).next('ul:hidden').stop().fadeIn(200).parent('li').addClass('on') - }) - .focus(function(){ - $(this).mouseover(); - }) - .end() - .mouseleave(function(){ - $gnb.find('>ul>li>ul>li>ul').hide().parent().removeClass('on') - }); - }); -})(jQuery); diff --git a/layouts/xedition/js/layout.js b/layouts/xedition/js/layout.js index 6e029563e..b52087088 100644 --- a/layouts/xedition/js/layout.js +++ b/layouts/xedition/js/layout.js @@ -38,6 +38,44 @@ }); $(window).triggerHandler('scroll'); } + // Gnb + if($(document).width() > 480){ + $gnb.find('>ul>li>a') + .mouseover(function(){ + $gnb.find('>ul>li>ul:visible').hide().parent('li').removeClass('on'); + $(this).next('ul:hidden').stop().fadeIn(200).parent('li').addClass('on') + }) + .focus(function(){ + $(this).mouseover(); + }) + .end() + .mouseleave(function(){ + $gnb.find('>ul>li>ul').hide().parent().removeClass('on') + }); + + $gnb.find('>ul>li>ul>li>a') + .mouseover(function(){ + $gnb.find('>ul>li>ul>li>ul:visible').hide().parent('li').removeClass('on'); + $(this).next('ul:hidden').stop().fadeIn(200).parent('li').addClass('on') + }) + .focus(function(){ + $(this).mouseover(); + }) + .end() + .mouseleave(function(){ + $gnb.find('>ul>li>ul>li>ul').hide().parent().removeClass('on') + }); + } + + $("#mobile_menu_btn").on('click', function(){ + var isOpened = $(this); + if(isOpened.hasClass('opened')){ + $("#gnb").find(">ul").slideUp(200); + }else{ + $("#gnb").find(">ul:not(:animated)").slideDown(200); + } + isOpened.toggleClass('opened'); + }); // login popup $hoverEl.on('mouseenter mouseleave focusin focusout',function(e){ e.preventDefault(); diff --git a/layouts/xedition/layout.html b/layouts/xedition/layout.html index d15228740..c77b2d39d 100644 --- a/layouts/xedition/layout.html +++ b/layouts/xedition/layout.html @@ -155,8 +155,6 @@ - -