Created
July 20, 2017 00:00
-
-
Save sokcuri/cf4686ed423fb3bc8a42364db29d982e to your computer and use it in GitHub Desktop.
Carousel Slides for BaeminFresh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<script src="script.js"></script> | |
<script type="text/javascript" href="https://cdnjs.cloudflare.com/ajax/libs/handlebars.js/4.0.10/handlebars.min.js"></script> | |
<link rel="stylesheet" href="style.css"></link> | |
<template id="pd_box"> | |
<a href="https://www.baeminfresh.com/shop/detail.php?hash=HD1C1" ga_id="16628" ga_name="[마더앤찬]국내산 수제 도토리 묵사발 630g"> | |
<div class="thumb_img"> | |
<p><img src="https://cdn.bmf.kr/_data/product/HD1C1/36e98d060cd69f21f587be1802ce1a49.jpg" alt="[마더앤찬]국내산 수제 도토리 묵사발 630g" /></p> | |
<div class="delivery_type_lst"> | |
<div> | |
<ul> | |
<li class="d1"><span>새벽배송</span></li> | |
<li class="d2"><span>전국택배</span></li> | |
</ul> | |
</div> | |
</div> | |
<div class="circle_mask"> </div> | |
</div> | |
<dl> | |
<dt class="prd_tlt">[마더앤찬]국내산 수제 도토리 묵사발 630g</dt> | |
<dd class="prd_description">직접 쑨 국산 수제 묵이라 더욱 쫄깃해요!</dd> | |
<dd class="prd_price"> | |
<span class="n_price">7,500</span> | |
<span class="s_price">7,100<span class="won">원</span></span> | |
</dd> | |
</dl> | |
<div class="badge_area"> | |
<div class="badge launching"><span>론칭특가</span></div> | |
<div class="badge event"><span>이벤트특가</span></div> | |
</div> | |
</a> | |
</template> | |
</head> | |
<body> | |
<div class="pd_content1"> | |
<div class="mtlt"> | |
<h2 class="mtlt_h2"> | |
<img src="https://cdn.bmf.kr/_data/files/category/category_17030000/d4b9fdb70ad303d186b8db2a82255402.png"> | |
</h2> | |
</div> | |
<div class="container"> | |
<div class="viewport"> | |
<div class="box" id="pane1"> | |
<ul class="pd_box_lst"> | |
<li class="pd_box"> | |
<a href="https://www.baeminfresh.com/shop/detail.php?hash=H5365" ga_id="14725" ga_name="[집밥의완성] 골뱅이무침 250g"> | |
<div class="thumb_img"> | |
<p><img src="https://cdn.bmf.kr/_data/product/201702/14/c181ba751f8a57e4583a8a8bbf607515.jpg" alt="[집밥의완성] 골뱅이무침 250g"></p> | |
<div class="delivery_type_lst"> | |
<div> | |
<ul> | |
<li class="d1"><span>새벽배송</span></li> | |
<li class="d2"><span>전국택배</span></li> | |
</ul> | |
</div> | |
</div> | |
<div class="circle_mask"> </div> | |
</div> | |
<dl> | |
<dt class="prd_tlt">[집밥의완성] 골뱅이무침250g</dt> | |
<dd class="prd_description">쫄깃한 골뱅이를 특제 고추장소스에 버무렸어요!</dd> | |
<dd class="prd_price"> | |
<span class="s_price">4,100<span class="won">원</span></span> | |
</dd> | |
</dl> | |
<div class="badge_area"> | |
</div> | |
</a> | |
</li> | |
<li class="pd_box"> | |
<a href="https://www.baeminfresh.com/shop/detail.php?hash=HD1C1" ga_id="16628" ga_name="[마더앤찬]국내산 수제 도토리 묵사발 630g"> | |
<div class="thumb_img"> | |
<p><img src="https://cdn.bmf.kr/_data/product/HD1C1/36e98d060cd69f21f587be1802ce1a49.jpg" alt="[마더앤찬]국내산 수제 도토리 묵사발 630g" /></p> | |
<div class="delivery_type_lst"> | |
<div> | |
<ul> | |
<li class="d1"><span>새벽배송</span></li> | |
<li class="d2"><span>전국택배</span></li> | |
</ul> | |
</div> | |
</div> | |
<div class="circle_mask"> </div> | |
</div> | |
<dl> | |
<dt class="prd_tlt">[마더앤찬]국내산 수제 도토리 묵사발 630g</dt> | |
<dd class="prd_description">직접 쑨 국산 수제 묵이라 더욱 쫄깃해요!</dd> | |
<dd class="prd_price"> | |
<span class="n_price">7,500</span> | |
<span class="s_price">7,100<span class="won">원</span></span> | |
</dd> | |
</dl> | |
<div class="badge_area"> | |
<div class="badge launching"><span>론칭특가</span></div> | |
<div class="badge event"><span>이벤트특가</span></div> | |
</div> | |
</a> | |
</li> | |
<li class="pd_box"> | |
<a href="https://www.baeminfresh.com/shop/detail.php?hash=H83DE" ga_id="16037" ga_name="[남도애꽃] 우엉잡채 150g"> | |
<div class="thumb_img"> | |
<p><img src="https://cdn.bmf.kr/_data/product/H83DE/0b76d1683ba10388332c722ac07ae367.jpg" alt="[남도애꽃] 우엉잡채 150g" /></p> | |
<div class="delivery_type_lst"> | |
<div> | |
<ul> | |
<li class="d1"><span>새벽배송</span></li> | |
<li class="d2"><span>전국택배</span></li> | |
</ul> | |
</div> | |
</div> | |
<div class="circle_mask"> </div> | |
</div> | |
<dl> | |
<dt class="prd_tlt">[남도애꽃] 우엉잡채 150g</dt> | |
<dd class="prd_description">채썰어서 더 아삭아삭한 우엉으로 만든 잡채</dd> | |
<dd class="prd_price"> | |
<span class="n_price">3,900</span> | |
<span class="s_price">3,300<span class="won">원</span></span> | |
</dd> | |
</dl> | |
<div class="badge_area"> | |
<div class="badge event"><span>이벤트특가</span></div> | |
</div> | |
</a> | |
</li> | |
<li class="pd_box"> | |
<a href="https://www.baeminfresh.com/shop/detail.php?hash=H2BDC" ga_id="16456" ga_name="[탐나는밥상] 느타리버섯볶음 200g"> | |
<div class="thumb_img"> | |
<p><img src="https://cdn.bmf.kr/_data/product/H2BDC/2f86b4a25087b212615edac616e0f811.jpg" alt="[탐나는밥상] 느타리버섯볶음 200g" /></p> | |
<div class="delivery_type_lst"> | |
<div> | |
<ul> | |
<li class="d1"><span>새벽배송</span></li> | |
<li class="d2"><span>전국택배</span></li> | |
</ul> | |
</div> | |
</div> | |
<div class="circle_mask"> </div> | |
</div> | |
<dl> | |
<dt class="prd_tlt">[탐나는밥상] 느타리버섯볶음 200g</dt> | |
<dd class="prd_description">야들야들하면서도 쫄깃한 버섯 볶음</dd> | |
<dd class="prd_price"> | |
<span class="n_price">4,000</span> | |
<span class="s_price">3,300<span class="won">원</span></span> | |
</dd> | |
</dl> | |
<div class="badge_area"> | |
<div class="badge event"><span>이벤트특가</span></div> | |
</div> | |
</a> | |
</li> | |
</ul> | |
</div> | |
<div class="box" id="pane2"> | |
<ul class="pd_box_lst"> | |
<li class="pd_box"> | |
<a href="https://wwww.baeminfresh.com/shop/detail.php?hash=H6DE0" ga_id="16045" ga_name="[남도애꽃] 된장깻잎장아찌 100g"> | |
<div class="thumb_img"> | |
<p><img src="https://cdn.bmf.kr/_data/product/H6DE0/bde4e8be15572f1b30781ed6cc051ed0.jpg" alt="[남도애꽃] 된장깻잎장아찌 100g" /></p> | |
<div class="delivery_type_lst"> | |
<div> | |
<ul> | |
<li class="d1"><span>새벽배송</span></li> | |
<li class="d2"><span>전국택배</span></li> | |
</ul> | |
</div> | |
</div> | |
<div class="circle_mask"> </div> | |
</div> | |
<dl> | |
<dt class="prd_tlt">[남도애꽃] 된장깻잎장아찌 100g</dt> | |
<dd class="prd_description">된장에 절여 구수한 맛이 돋보이는 깻잎장아찌</dd> | |
<dd class="prd_price"> | |
<span class="n_price">3,700</span> | |
<span class="s_price">3,300<span class="won">원</span></span> | |
</dd> | |
</dl> | |
<div class="badge_area"> | |
<div class="badge event"><span>이벤트특가</span></div> | |
</div> | |
</a> | |
</li> | |
<li class="pd_box"> | |
<a href="https://www.baeminfresh.com/shop/detail.php?hash=H12A5" ga_id="16404" ga_name="[옹가솜씨] 쪽파어묵볶음 110g"> | |
<div class="thumb_img"> | |
<p><img src="https://cdn.bmf.kr/_data/product/H12A5/87acdbca5bf585a4a3f70649192b6987.jpg" alt="[옹가솜씨] 쪽파어묵볶음 110g" /></p> | |
<div class="delivery_type_lst"> | |
<div> | |
<ul> | |
<li class="d1"><span>새벽배송</span></li> | |
<li class="d2"><span>전국택배</span></li> | |
</ul> | |
</div> | |
</div> | |
<div class="circle_mask"> </div> | |
</div> | |
<dl> | |
<dt class="prd_tlt">[옹가솜씨] 쪽파어묵볶음 110g</dt> | |
<dd class="prd_description">한입에 쏙쏙 들어가는</dd> | |
<dd class="prd_price"> | |
<span class="n_price">3,800</span> | |
<span class="s_price">3,400<span class="won">원</span></span> | |
</dd> | |
</dl> | |
<div class="badge_area"> | |
<div class="badge event"><span>이벤트특가</span></div> | |
</div> | |
</a> | |
</li> | |
<li class="pd_box"> | |
<a href="https://www.baeminfresh.com/shop/detail.php?hash=H83DE" ga_id="16037" ga_name="[남도애꽃] 우엉잡채 150g"> | |
<div class="thumb_img"> | |
<p><img src="https://cdn.bmf.kr/_data/product/H83DE/0b76d1683ba10388332c722ac07ae367.jpg" alt="[남도애꽃] 우엉잡채 150g" /></p> | |
<div class="delivery_type_lst"> | |
<div> | |
<ul> | |
<li class="d1"><span>새벽배송</span></li> | |
<li class="d2"><span>전국택배</span></li> | |
</ul> | |
</div> | |
</div> | |
<div class="circle_mask"> </div> | |
</div> | |
<dl> | |
<dt class="prd_tlt">[남도애꽃] 우엉잡채 150g</dt> | |
<dd class="prd_description">채썰어서 더 아삭아삭한 우엉으로 만든 잡채</dd> | |
<dd class="prd_price"> | |
<span class="n_price">3,900</span> | |
<span class="s_price">3,300<span class="won">원</span></span> | |
</dd> | |
</dl> | |
<div class="badge_area"> | |
<div class="badge event"><span>이벤트특가</span></div> | |
</div> | |
</a> | |
</li> | |
<li class="pd_box"> | |
<a href="https://www.baeminfresh.com/shop/detail.php?hash=H12A5" ga_id="16404" ga_name="[옹가솜씨] 쪽파어묵볶음 110g"> | |
<div class="thumb_img"> | |
<p><img src="https://cdn.bmf.kr/_data/product/H12A5/87acdbca5bf585a4a3f70649192b6987.jpg" alt="[옹가솜씨] 쪽파어묵볶음 110g" /></p> | |
<div class="delivery_type_lst"> | |
<div> | |
<ul> | |
<li class="d1"><span>새벽배송</span></li> | |
<li class="d2"><span>전국택배</span></li> | |
</ul> | |
</div> | |
</div> | |
<div class="circle_mask"> </div> | |
</div> | |
<dl> | |
<dt class="prd_tlt">[옹가솜씨] 쪽파어묵볶음 110g</dt> | |
<dd class="prd_description">한입에 쏙쏙 들어가는</dd> | |
<dd class="prd_price"> | |
<span class="n_price">3,800</span> | |
<span class="s_price">3,400<span class="won">원</span></span> | |
</dd> | |
</dl> | |
<div class="badge_area"> | |
<div class="badge event"><span>이벤트특가</span></div> | |
</div> | |
</a> | |
</li> | |
</ul> | |
</div> | |
<div class="box" id="pane1"> | |
<ul class="pd_box_lst"> | |
<li class="pd_box"> | |
<a href="https://www.baeminfresh.com/shop/detail.php?hash=HD1C1" ga_id="16628" ga_name="[마더앤찬]국내산 수제 도토리 묵사발 630g"> | |
<div class="thumb_img"> | |
<p><img src="https://cdn.bmf.kr/_data/product/HD1C1/36e98d060cd69f21f587be1802ce1a49.jpg" alt="[마더앤찬]국내산 수제 도토리 묵사발 630g" /></p> | |
<div class="delivery_type_lst"> | |
<div> | |
<ul> | |
<li class="d1"><span>새벽배송</span></li> | |
<li class="d2"><span>전국택배</span></li> | |
</ul> | |
</div> | |
</div> | |
<div class="circle_mask"> </div> | |
</div> | |
<dl> | |
<dt class="prd_tlt">[마더앤찬]국내산 수제 도토리 묵사발 630g</dt> | |
<dd class="prd_description">직접 쑨 국산 수제 묵이라 더욱 쫄깃해요!</dd> | |
<dd class="prd_price"> | |
<span class="n_price">7,500</span> | |
<span class="s_price">7,100<span class="won">원</span></span> | |
</dd> | |
</dl> | |
<div class="badge_area"> | |
<div class="badge launching"><span>론칭특가</span></div> | |
<div class="badge event"><span>이벤트특가</span></div> | |
</div> | |
</a> | |
</li> | |
<li class="pd_box"> | |
<a href="https://www.baeminfresh.com/shop/detail.php?hash=H5365" ga_id="14725" ga_name="[집밥의완성] 골뱅이무침 250g"> | |
<div class="thumb_img"> | |
<p><img src="https://cdn.bmf.kr/_data/product/201702/14/c181ba751f8a57e4583a8a8bbf607515.jpg" alt="[집밥의완성] 골뱅이무침 250g"></p> | |
<div class="delivery_type_lst"> | |
<div> | |
<ul> | |
<li class="d1"><span>새벽배송</span></li> | |
<li class="d2"><span>전국택배</span></li> | |
</ul> | |
</div> | |
</div> | |
<div class="circle_mask"> </div> | |
</div> | |
<dl> | |
<dt class="prd_tlt">[집밥의완성] 골뱅이무침250g</dt> | |
<dd class="prd_description">쫄깃한 골뱅이를 특제 고추장소스에 버무렸어요!</dd> | |
<dd class="prd_price"> | |
<span class="s_price">4,100<span class="won">원</span></span> | |
</dd> | |
</dl> | |
<div class="badge_area"> | |
</div> | |
</a> | |
</li> | |
<li class="pd_box"> | |
<a href="https://www.baeminfresh.com/shop/detail.php?hash=H2BDC" ga_id="16456" ga_name="[탐나는밥상] 느타리버섯볶음 200g"> | |
<div class="thumb_img"> | |
<p><img src="https://cdn.bmf.kr/_data/product/H2BDC/2f86b4a25087b212615edac616e0f811.jpg" alt="[탐나는밥상] 느타리버섯볶음 200g" /></p> | |
<div class="delivery_type_lst"> | |
<div> | |
<ul> | |
<li class="d1"><span>새벽배송</span></li> | |
<li class="d2"><span>전국택배</span></li> | |
</ul> | |
</div> | |
</div> | |
<div class="circle_mask"> </div> | |
</div> | |
<dl> | |
<dt class="prd_tlt">[탐나는밥상] 느타리버섯볶음 200g</dt> | |
<dd class="prd_description">야들야들하면서도 쫄깃한 버섯 볶음</dd> | |
<dd class="prd_price"> | |
<span class="n_price">4,000</span> | |
<span class="s_price">3,300<span class="won">원</span></span> | |
</dd> | |
</dl> | |
<div class="badge_area"> | |
<div class="badge event"><span>이벤트특가</span></div> | |
</div> | |
</a> | |
</li> | |
<li class="pd_box"> | |
<a href="https://www.baeminfresh.com/shop/detail.php?hash=H83DE" ga_id="16037" ga_name="[남도애꽃] 우엉잡채 150g"> | |
<div class="thumb_img"> | |
<p><img src="https://cdn.bmf.kr/_data/product/H83DE/0b76d1683ba10388332c722ac07ae367.jpg" alt="[남도애꽃] 우엉잡채 150g" /></p> | |
<div class="delivery_type_lst"> | |
<div> | |
<ul> | |
<li class="d1"><span>새벽배송</span></li> | |
<li class="d2"><span>전국택배</span></li> | |
</ul> | |
</div> | |
</div> | |
<div class="circle_mask"> </div> | |
</div> | |
<dl> | |
<dt class="prd_tlt">[남도애꽃] 우엉잡채 150g</dt> | |
<dd class="prd_description">채썰어서 더 아삭아삭한 우엉으로 만든 잡채</dd> | |
<dd class="prd_price"> | |
<span class="n_price">3,900</span> | |
<span class="s_price">3,300<span class="won">원</span></span> | |
</dd> | |
</dl> | |
<div class="badge_area"> | |
<div class="badge event"><span>이벤트특가</span></div> | |
</div> | |
</a> | |
</li> | |
</ul> | |
</div> | |
</div> | |
<div class="pd_slides_navi"> | |
<a href="#" class="slides_prev" title="이전">이전</a> | |
<a href="#" class="slides_next" title="다음">다음</a> | |
</div><!-- | |
<div class="button"> | |
<button id="left">left</button> | |
<button id="right">right</button> | |
</div>--> | |
</div> | |
</div> | |
</body> | |
</html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Carousel { | |
constructor() { | |
this.currentIndex = 0; | |
this.data = []; | |
} | |
get now() { | |
return this.currentIndex; | |
} | |
add(d) { | |
this.data.push(d); | |
} | |
fetch(n, truncate = true) { | |
let index = this.currentIndex; | |
//n = n % this.data.length; | |
if (truncate && index + n > this.data.length) | |
n = this.data.length - index; | |
for (let i = 0; i < n; i++) { | |
console.log(this.data[(index + i) % this.data.length]) | |
} | |
this.currentIndex = (this.currentIndex + n) % this.data.length; | |
} | |
} | |
carousel = new Carousel(); | |
for (let x of [1,2,3,4,5,6]) { | |
carousel.add(x); | |
} | |
function getLeftPane() { | |
return document.querySelector('.container').children[0]; | |
} | |
function getRightPane() { | |
return document.querySelector('.container').children[2]; | |
} | |
class Template { | |
} | |
function createTemplate() { | |
} | |
class Pane { | |
constructor(preference) { | |
this.container = preference.container; | |
this.container.setAttribute('style', `--slider-width: ${preference.sliderWidth}`); | |
this.viewport = this.container.querySelector('.viewport'); | |
this.registerEvents(); | |
} | |
registerEvents() { | |
this.container.querySelector('.slides_prev').addEventListener('click', this.slidePrev.bind(this)) | |
this.container.querySelector('.slides_next').addEventListener('click', this.slideNext.bind(this)) | |
this.viewport.addEventListener('transitionend', this.transitionEndEvtHandler.bind(this)); | |
} | |
transitionEndEvtHandler(event) { | |
if (this.direction === 'prev') { | |
this.direction = null; | |
this.viewport.insertBefore(this.nextElement, this.prevElement) | |
} | |
else if (this.direction === 'next') { | |
this.direction = null; | |
this.viewport.appendChild(this.prevElement); | |
} | |
} | |
get prevElement() { | |
return this.viewport.firstElementChild; | |
} | |
get nextElement() { | |
return this.viewport.lastElementChild; | |
} | |
get transition() { | |
return this._transition || false; | |
} | |
set transition(bool) { | |
this.viewport.classList[(bool ? 'remove' : 'add')]('noTransition'); | |
this._transition = bool; | |
} | |
get direction() { | |
return this._direction || null; | |
} | |
set direction(value) { | |
let className = ((this._direction || value) === 'prev' ? 'slideLeft' : 'slideRight'); | |
if (value === null) { | |
this.transition = false; | |
this.viewport.classList.remove(className); | |
} else { | |
this.transition = true; | |
this.viewport.classList.add(className); | |
} | |
this._direction = value; | |
} | |
triggerSlide(direction) { | |
if (this.transition) return; | |
this.direction = direction; | |
} | |
slidePrev() { | |
this.triggerSlide('prev'); | |
} | |
slideNext() { | |
this.triggerSlide('next'); | |
} | |
} | |
function registerEvents() { | |
document.querySelector('#left').addEventListener('click', pane.slidePrev.bind(pane)) | |
document.querySelector('#right').addEventListener('click', pane.slideNext.bind(pane)) | |
} | |
document.addEventListener('DOMContentLoaded', () => { | |
window.pane = new Pane({ | |
container: document.querySelector('.pd_content1 .container'), | |
sliderWidth: '980px' | |
}); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@import url('https://fonts.googleapis.com/css?family=Montserrat:400,700'); | |
@font-face { | |
font-family:'Nanum'; | |
font-weight:400; | |
src: url('https://cdn.bmf.kr/font/NanumGothic.eot'); | |
src: url('https://cdn.bmf.kr/font/NanumGothic.eot?#iefix') format('embedded-opentype'), | |
url('https://cdn.bmf.kr/font/NanumGothic.woff') format('woff'), | |
url('https://cdn.bmf.kr/font/NanumGothic.ttf') format('truetype'); | |
} | |
@font-face { | |
font-family:'NanumBold'; | |
font-weight:600; | |
src: url('https://cdn.bmf.kr/font/NanumGothicBold.eot'); | |
src: url('https://cdn.bmf.kr/font/NanumGothicBold.eot?#iefix') format('embedded-opentype'), | |
url('https://cdn.bmf.kr/font/NanumGothicBold.woff') format('woff'), | |
url('https://cdn.bmf.kr/font/NanumGothicBold.ttf') format('truetype'); | |
} | |
@font-face { | |
font-family:'NanumEB'; | |
font-weight:900; | |
src: url('https://cdn.bmf.kr/font/NanumGothicExtraBold.eot'); | |
src: url('https://cdn.bmf.kr/font/NanumGothicExtraBold.eot?#iefix') format('embedded-opentype'), | |
url('https://cdn.bmf.kr/font/NanumGothicExtraBold.woff') format('woff'), | |
url('https://cdn.bmf.kr/font/NanumGothicExtraBold.ttf') format('truetype'); | |
} | |
.box { | |
background: white; | |
width: var(--slider-width); | |
height: 350px; | |
float: left; | |
transition: .5s; | |
position: relative; | |
} | |
.container { | |
width: var(--slider-width); | |
overflow: hidden; | |
} | |
.viewport { | |
margin-left: calc(var(--slider-width) * -1); | |
display: -webkit-inline-box; | |
transition: .5s; | |
} | |
.slideLeft { | |
margin-left: 0px; | |
} | |
.slideRight { | |
margin-left: calc(var(--slider-width) * -2); | |
} | |
.widthX0 { | |
width: 0; | |
} | |
.widthX2 { | |
width: 100; | |
/*transition: none;*/ | |
} | |
.noTransition { | |
transition: none; | |
} | |
.button button { | |
margin-top: 10px; | |
border: 1px solid #aaa; | |
background: white; | |
font-size: 1.2rem; | |
padding: 6px; | |
} | |
.button button:hover { | |
background: #eee; | |
transition: .5s; | |
} | |
.button button:focus { | |
outline: 0; | |
border: 1px solid #739; | |
} | |
.pd_content1 { | |
width: 980px; | |
margin: auto; | |
position: relative; | |
} | |
ul.pd_box_lst { | |
list-style: none; | |
margin: 0; | |
overflow: hidden; | |
padding: 0px; | |
} | |
li.pd_box { | |
position: relative; | |
overflow: visible; | |
float: left; | |
width: 215px; | |
height: 350px; | |
margin: 0 15px 8px; | |
} | |
li.pd_box a { | |
text-decoration: none; | |
} | |
li.pd_box .thumb_img{position: relative; overflow: hidden;height: 215px;} | |
li.pd_box .thumb_img p {margin: 0; height: 300px;} | |
li.pd_box .thumb_img p img {max-width: 100%;} | |
dl dt.prd_tlt{margin-bottom: 5px; font-size: 16px; font-family: "NanumEB", "Malgun Gothic", sans-serif; letter-spacing: -0.07em; color: #000; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;} | |
dl dd.prd_description{font-size: 13px; color: #666; font-family:"Nanum"; width: 100%; margin-bottom: 11px; overflow: hidden; letter-spacing: -0.07em; text-overflow: ellipsis; white-space: nowrap;} | |
.pd_slides_navi{} | |
.pd_slides_navi a{ | |
display: block; width: 28px; height: 52px; text-indent: -3000px; overflow: hidden; position: absolute; top: 257px; | |
background: url(https://cdn.bmf.kr/web/common/btn_prds_thumb_slides_navi.png) no-repeat center center; | |
} | |
.pd_slides_navi a.slides_prev{left: 50%; margin-left: -558px; margin-top: -70px; background-position: left top;} | |
.pd_slides_navi a.slides_next{right: 50%; margin-right: -558px; margin-top: -70px; background-position: right top;} | |
.pd_slides_navi a.slides_prev:hover, .pd_slides_navi a.slides_prev:focus{background-position: left -52px;} | |
.pd_slides_navi a.slides_next:hover, .pd_slides_navi a.slides_next:focus{background-position: right -52px;} | |
.pd_slides_navi { | |
} | |
.pd_box dl { | |
width: 195px; | |
margin: 15px auto; | |
text-align: center; | |
} | |
.pd_box dl * { | |
margin-left: 0; | |
margin-right: 0; | |
} | |
.badge_area { | |
position: relative; | |
height: 24px; | |
text-align: center; | |
font-size: 0; | |
} | |
div.badge { | |
display: inline-block; | |
zoom: 1; | |
margin: 0 3px 0 0; | |
padding: 7px 0 4px; | |
min-width: 52px; | |
height: 11px; | |
line-height: 11px; | |
text-align: center; | |
font-size: 11px; | |
color: #fff; | |
font-family: Dotum, "Nanum", sans-serif; | |
} | |
div.badge.best{background: #fa6565;} | |
div.badge.free{background: #33bdb9} | |
div.badge.gift{background: #f8b500; width: 62px;} | |
div.badge.coupon{background: #fa6565;} | |
div.badge.launching{background: #a974bf;} | |
div.badge.event{background: #a974bf; width: 62px;} | |
div.badge.stock{background: #585c6a; width: 62px;} | |
div.badge.friday{background: #585c6a; width: 62px;} | |
div.badge.finish{background: #333333;} | |
div.badge.soldout{background: #333333;} | |
div.badge.ready{background: #585c6a; width: 62px;} | |
/* 일단 숨김. 고쳐야함 */ | |
/*.badge_area { | |
display: ; | |
}*/ | |
.delivery_type_lst { | |
display: none; | |
top: 0; | |
left: 0; | |
} | |
.best_prds_lst_wrap{background: #eee; } | |
.best_prds_lst{height: 680px; } | |
.brand_prds_lst_wrap{background: #e3d0b1;} | |
.brand_prds_lst{padding-bottom: 60px; background: #e3d0b1; } | |
ul.best_tab_lst{height: 48px; margin: -15px 10px 23px; padding: 0px; font-size:0;line-height: 0;} | |
ul.best_tab_lst li{display: inline-block; zoom:1; *display:inline; float: left; height: 48px; } | |
ul.best_tab_lst li a{display: block; width: 159px; height: 33px; padding-top: 17px; text-align: center; background: #fff; margin-right: 1px; font-family: "NanumBold"; font-size: 15px; line-height: 1.2; color:#777; } | |
ul.best_tab_lst li:first-child a{width: 160px; } | |
ul.best_tab_lst li a.last {margin-right: 0;} | |
ul.best_tab_lst li a:hover, ul.best_tab_lst li a:focus, ul.best_tab_lst li a.now{margin-right: 0; margin-left: -1px; padding-left: 1px; padding-right: 1px;background: #1fcbc7; font-family: "NanumBold", sans-serif; font-size: 15px; color: #fff;} | |
ul.best_tab_lst li:first-child a:hover, ul.best_tab_lst li:first-child a:focus, ul.best_tab_lst li:first-child a.now {margin-left: 0; padding-left: 0;} | |
ul.best_tab_lst li a.last:hover, ul.best_tab_lst li a.last:focus, ul.best_tab_lst li a.last.now {padding-right: 0;} | |
.mtlt{margin: 70px 0 37px; text-align: center; position: relative;} | |
.best_prds_lst .mtlt{margin: 40px 0 42px;} | |
.mtlt h2.mtlt_h2{display: inline-block; zoom:1; *display:inline; font-size: 0; line-height: 0; text-align: center;} | |
.mtlt span.category_name{display: block; margin-bottom: 15px; color: #999; font-size: 16px; text-align: center; font-weight: normal;} | |
.mtlt h2.mtlt_h2 strong{font-family: NanumEB, sans-serif; } | |
.mtlt a{display: inline-block; zoom:1; *display:inline; margin-left: 7px; padding: 2px 4px 2px; border: 1px solid #c3c3c3; font-size: 12px; color: #c3c3c3; position: relative; top: -12px;} | |
.mtlt a:hover, .mtlt a:focus{color: #606060; border: 1px solid #606060;} | |
.btn_more {display: block; margin: 38px auto 0; padding:15px 0 17px; width:958px; font-family:"Nanum"; text-align: center; font-size: 15px; color:#333; border: 1px solid #d7d7d7;} | |
.btn_more span {padding-right: 14px; letter-spacing:0; background: url(https://cdn.bmf.kr/web/main/btn_arr_more.png) no-repeat 100% 5px;} | |
ul.prds_box_lst.col3{overflow: hidden; padding: 0; width:960px; margin-left:10px; } | |
ul.prds_box_lst.col3 li.prd_box{position: relative; overflow: hidden; float: left; width: 304px; height: 429px; margin: 0 24px 10px 0; background: #fff; border-bottom: 1px solid #d7d7d7; } | |
ul.prds_box_lst.col3 li.prd_box.last{float: right; margin: 0; } | |
ul.prds_box_lst.col3 li.prd_box a{display: block; height: 430px;} | |
ul.prds_box_lst.col3 li.prd_box a:hover .thumb_img .delivery_type_lst, ul.prds_box_lst.col3 li.prd_box a:focus .thumb_img .delivery_type_lst{top: 0; left: 0;} | |
ul.prds_box_lst.col3 li.prd_box .thumb_img{position: relative; overflow: hidden;} | |
ul.prds_box_lst.col3 li.prd_box .thumb_img p {height: 300px;} | |
ul.prds_box_lst.col3 li.prd_box .thumb_img p img {max-width: 100%;} | |
ul.prds_box_lst.col3 li.prd_box .thumb_img .delivery_type_lst{top: 306px; left: 0px; height: 304px; } | |
ul.prds_box_lst.col3 li.prd_box dl{ padding: 18px 20px 15px; height: 90px; text-align: left; } | |
ul.prds_box_lst.col3 li.prd_box dd.prd_price{float: right;} | |
ul.prds_box_lst.col3 li.prd_box .badge_area{position: absolute; bottom: 127px; left: 0px; width: 100%; height: 24px; margin: 0 0 10px 10px; font-size: 0;} | |
ul.prds_box_lst.col4{overflow: hidden; padding: 0px;} | |
ul.prds_box_lst.col4 li.prd_box{position: relative; overflow: visible; float: left; width: 215px; height: 350px; margin: 0 15px 8px;} | |
ul.prds_box_lst.col4 li.prd_box a{display: block; height: 345px;} | |
ul.prds_box_lst.col4 li.prd_box a:hover .thumb_img .delivery_type_lst, ul.prds_box_lst.col4 li.prd_box a:focus .thumb_img .delivery_type_lst{top: 0; left: 0;} | |
ul.prds_box_lst.col4 li.prd_box .thumb_img{position: relative; height: 215px; border-radius: 50%; overflow: hidden;} | |
ul.prds_box_lst.col4 li.prd_box .thumb_img p {} | |
ul.prds_box_lst.col4 li.prd_box .thumb_img p img {max-width: 100%; } | |
ul.prds_box_lst.col4 li.prd_box .thumb_img .delivery_type_lst{top: 215px; left: 0px; height: 216px;} | |
ul.prds_box_lst.col4 li.prd_box dl{padding: 18px 10px 12px 10px;} | |
ul.prds_box_lst.col4 li.prd_box dl{text-align: center;} | |
ul.prds_box_lst.col4 li.prd_box dd.prd_price{text-align: center;} | |
ul.prds_box_lst.col4 li.prd_box .badge_area{position: relative; height: 24px; text-align: center; font-size: 0;} | |
div.prds_thumb_slides_wrap{height: 346px; overflow: hidden;} | |
.prds_thumb_slides_navi{} | |
.prds_thumb_slides_navi a{ | |
display: block; width: 28px; height: 52px; text-indent: -3000px; overflow: hidden; position: absolute; top: 257px; | |
background: url(https://cdn.bmf.kr/web/common/btn_prds_thumb_slides_navi.png) no-repeat center center; | |
} | |
.prds_thumb_slides_navi a.slides_prev{left: 50%; margin-left: -558px; background-position: left top;} | |
.prds_thumb_slides_navi a.slides_next{right: 50%; margin-right: -558px; background-position: right top;} | |
.prds_thumb_slides_navi a.slides_prev:hover, .prds_thumb_slides_navi a.slides_prev:focus{background-position: left -52px;} | |
.prds_thumb_slides_navi a.slides_next:hover, .prds_thumb_slides_navi a.slides_next:focus{background-position: right -52px;} | |
div.circle_mask{position: absolute; top: 0; left: 0; background: url(https://cdn.bmf.kr/web/common/circle_mask.png) no-repeat center center; width: 215px; height: 215px;} | |
dl dt.prd_tlt{margin-bottom: 5px; font-size: 16px; font-family: "NanumEB", "Malgun Gothic", sans-serif; letter-spacing: -0.07em; color: #000; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;} | |
dl dd.prd_description{font-size: 13px; color: #666; font-family:"Nanum"; width: 100%; margin-bottom: 11px; overflow: hidden; letter-spacing: -0.07em; text-overflow: ellipsis; white-space: nowrap;} | |
.best_prds_lst dl dt.prd_tlt {font-size: 17px; margin-bottom: 6px;} | |
.best_prds_lst dl dd.prd_description {margin-bottom: 21px;} | |
dl dd.prd_price{font-family: Montserrat, sans-serif;letter-spacing: 0;} | |
dl dd.prd_price span.n_price{text-decoration: line-through; font-size: 14px; color: #888; font-weight: normal; vertical-align: middle;} | |
dl dd.prd_price span.n_price span {color: #888;} | |
dl dd.prd_price span.s_price{ letter-spacing: -0.04em; margin-left: 9px; font-size: 26px; color: #2ac1bc; font-weight:bold; vertical-align: middle; line-height: 1;} | |
dl dd.prd_price span.s_price span.won{font-size: 14px; padding-left: 2px; color: #2ac1bc; font-family: "Nanum", "Malgun Gothic", sans-serif; font-weight:600; position: relative; top: -3px;} | |
.prds_lst_box{height: 670px; background: #fff;} | |
.prds_banner{background: no-repeat center top #fff; height: 140px;} | |
.prds_banner p a{display: block; width: 980px; height: 140px; margin: 0 auto; overflow: hidden; text-indent: -3000px;} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment