728x90
반응형
탭메뉴
html 마크업
#movie css 편집
위아래 여백 100px 떨어뜨리기
movie 탭 li 편집
반응형 적용하기
media.css 편집
movie_title 사이즈 편집
화면크기 960px
화면크기 768px
ir_su 살리기
reset.css 에서 ir_su 코드 가져오기
밑에 선 가상요소로 넣기
::before로 넣어준다.
active 가상요소 만들기
화면크기600px
.row의 가상요소 만들기
탭메뉴 jquery
script
영화포스터 만들기
swiper 링크 걸기
css, js 링크
html layout 복사해서 붙여넣기
swiper-slide 각 div 안에 이미지 넣기
.movie_chart1 css 편집
css setting
.swiper-slide image 편집
reset.css figure padding 0, margin 0 설정 해주어야한다.
.movie_chart css 편집
상세정보, 예매하기 영역잡기
reset에 class 지정하기
class 지정하여 이미지 넣기
swiper 변경
swiper > parameters에서
breakpoints | object |
복사
붙여넣기
const swiper > let swiper
let 지우고 swiper2 번 변경
swiper2으로 이름 변경
swiper.css 열어서 .swiper 복사
붙여넣고 swiper2 로 이름 변경하기
<html>
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>하이시네마</title>
<link rel="stylesheet" href="./css1/reset.css">
<link rel="stylesheet" href="./css1/swiper.css">
<link rel="stylesheet" href="./css1/style.css">
<link rel="shortcut icon" href="./image/ICON.png">
<link rel="stylesheet" href="./css1/media.css">
</head>
<body>
<header id="header">
<div class="container">
<div class="row">
<div class="header clearfix">
<h1>
<!-- 로고를 클릭하면 홈으로 가도록 링크 -->
<a href="index.html">
<em><img src="./image/logo.png" alt="하이시네마"></em>
<strong><img src="./image/logo_sub.png" alt="하이미디어 영화관"></strong>
</a>
</h1>
<!-- pc nav -->
<nav class="nav">
<ul class="clearfix">
<li><a href="#">영화</a></li>
<li><a href="#">큐레이션</a></li>
<li><a href="#">영화관</a></li>
<li><a href="#">특별관</a></li>
<li><a href="#">스토어</a></li>
<li><a href="#">이벤트</a></li>
<li><a href="#">로그인</a></li>
</ul>
</nav>
<!-- mobile nav -->
<nav id="mNav">
<h2 class="ir_su">모바일 전체 메뉴</h2>
<a href="#" class="ham"><span></span></a>
</nav>
</div><!--//header-->
</div><!--//row-->
</div><!--//container-->
</header>
<section id="banner">
<h2 class="ir_su">배너메뉴 영역</h2>
<div class="container">
<div class="banner_menu">
<div class="row">
<div class="bm_left">
<ul>
<li class="total"><a href="#">전체메뉴</a></li>
<li class="line"><a href="#">필름소사이어티</a></li>
<li><a href="#">클래식소사이어티</a></li>
</ul>
</div>
<div class="bm_right">
<ul>
<li class="line"><a href="#">고객센터</a></li>
<li class="line"><a href="#">멤버쉽</a></li>
<li><a href="#">VIP</a></li>
</ul>
<ul>
<li class="white"><a href="#">상영시간표</a></li>
<li class="purple"><a href="#">빠른예매</a></li>
</ul>
</div>
</div><!--//row-->
</div><!--//container-->
</div>
<div id="banner_slider">
<div class="swiper">
<div class="swiper-wrapper">
<div class="swiper-slide ss1">
<div class="container">
<div class="row">
<h3>도굴</h3>
<p>천만관객 돌파</p>
</div>
</div>
</div>
<div class="swiper-slide ss2">
<div class="container">
<div class="row">
<h3>Inception</h3>
<p>13년만에 돌아온 명작</p>
</div>
</div>
</div>
<div class="swiper-slide ss3">
<div class="container">
<div class="row">
<h3>헬기를 타는 여자</h3>
<p>그녀가 헬기를 타는 이유는?</p>
</div>
</div>
</div>
</div>
<div class="swiper-pagination"></div> <!-- 닷메뉴 -->
<div class="swiper-button-prev"></div>
<div class="swiper-button-next"></div>
</div>
</div>
</section><!--//banner-->
<section id="movie">
<div class="container">
<div class="row">
<h2 class="ir_su">영화 예매</h2>
<div class="movie">
<div class="movie_title">
<ul class="clearfix">
<li class="active"><a href="#">박스오피스</a></li>
<li><a href="#">최신개봉작</a></li>
<li><a href="#">상영예정작</a></li>
<li><a href="#">큐레이션</a></li>
</ul>
</div>
<div class="movie_chart">
<div class="movie_chart1">
<div class="swiper2">
<div class="swiper-wrapper">
<div class="swiper-slide">
<div class="poster">
<figure>
<img src="./image/poster01.jpg" alt="삼진그룹영어토익반">
</figure>
<div class="rank"><strong>1</strong></div>
<div class="mx">
<span class="m ir_pm icon">MX</span>
<span class="b ir_pm icon">Boutique</span>
<span></span>
</div>
</div>
<div class="info">
<h3>
<span class="ir_pm icon all">전체관람가</span>
<strong>삼진그룹</strong>
</h3>
<div class="info_btn">
<a href="#">상세정보</a>
<a href="#">예매하기</a>
</div>
</div>
</div>
<div class="swiper-slide">Slide 2</div>
<div class="swiper-slide">Slide 3</div>
<div class="swiper-slide">Slide 4</div>
<div class="swiper-slide">Slide 5</div>
<div class="swiper-slide">Slide 6</div>
<div class="swiper-slide">Slide 7</div>
<div class="swiper-slide">Slide 8</div>
</div>
</div>
</div>
<div class="movie_chart2"></div>
<div class="movie_chart3"></div>
<div class="movie_chart4"></div>
</div>
</div><!--//movie-->
</div>
</div>
</section>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/swiper@10/swiper-bundle.min.js"></script>
<script>
//탭메뉴
const mBtn = $(".movie_title > ul > li");
const mCont = $(".movie_chart > div");
// mCont를 지우고 첫번째 mCont만 보여준다.
mCont.hide().eq(0).show();
// mBtn 클릭했을 때 이벤트 발생
mBtn.click(function(e){
e.preventDefault();
// 타겟을 변수 지정
let target = $(this);
// 타겟의 인텍스를 만들어서 인덱스라는 변수안에 넣겠다.
let index = target.index();
// 버튼(active)에 리무브 클래스를 지운다.
mBtn.removeClass("active");
// 선택한 아이에게 addclass를 넣어준다.
target.addClass("active");
// 선택한 아이에 맞추서 보여줘라
mCont.hide().eq(index).show();
});
//banner슬라이더
let swiper = new Swiper('.swiper', {
loop: true, //무한반복
pagination: {
el: '.swiper-pagination',
clickable: true, //닷버튼 클릭시 페이지 이동
}, //닷메뉴
navigation: {
nextEl: '.swiper-button-next',
prevEl: '.swiper-button-prev',
}, //이전단추, 다음단추
// autoplay: {
// delay : 3000,
// } //자동재생
swiper = new Swiper('.swiper2', {
// Default parameters
slidesPerView: 4,
spaceBetween: 10,
// Responsive breakpoints
breakpoints: {
320: {
slidesPerView: 2,
spaceBetween: 20
},
480: {
slidesPerView: 3,
spaceBetween: 30
},
640: {
slidesPerView: 4,
spaceBetween: 40
}
}
})
});
</script>
</body>
</html>
<style.css>
@charset "utf-8";
#header{
width: 100%;
border-bottom: 1px solid #c6c6c6;
}
.header .ham{
display: block;
width: 25px;
height: 10px;
/* background-color: rgba(0, 0, 0, 0.3); */
padding: 15px 10px 10px 10px;
}
.header .ham span{
position: relative;
display: block;
width: 25px;
height: 4px;
background-color: #39106a;
}
.header .ham span::before{
content: "";
width: 25px;
height: 4px;
background-color: #39106a;
position: absolute;
top: -7px;
left: 0;
}
.header .ham span::after{
content: "";
width: 25px;
height: 4px;
background-color: #39106a;
position: absolute;
left: 0;
bottom: -7px;
}
#banner{
/* height: 600px; */
/* banner_menu의 기준점 */
position: relative;
}
#banner img{
width: 100%;
}
#mNav{
position: absolute;
right: 14px;
top: 14px;
display: none;
}
.container{
width: 1280px;
/* height: inherit; */
/* container가 감싸고 있기 때문에 하위 태그의 기준점이 됨 */
position: relative;
margin: 0 auto;
}
/* PC에는 필요하지 않지만 모바일크기에 왼쪽,오른쪽 여백 주기 */
.row{
padding: 0 28px;
}
/* header */
.header{}
.header h1{
float: left;
}
.header h1 em{
display: inline-block;
padding: 15px 5px 5px 0;
}
.header h1 em img{
width: 155px;
}
.header h1 strong{
display: block;
position: absolute;
/* container: 기준점 */
left: 195px;
top: 23px;
}
.header h1 strong img{
width: 126px;
}
/* .nav */
.header .nav{
float: right;
}
.header .nav ul{
border-left: 1px solid #c6c6c6;
}
.header .nav ul li{
/* nav 메뉴 옆으로 나열 */
float: left;
width: 103px;
text-align: center;
border-right: 1px solid #c6c6c6;
height: 65px;
line-height: 65px;
}
.header .nav ul li a{
display: block;
font-size: 17px;
color: #444;
}
/* banner_menu */
.banner_menu{
position: absolute;
left: 0;
top: 20px;
width: 100%;
overflow: hidden;
z-index: 10;
}
.banner_menu a{
color: #fff;
transition: all 0.5s;
}
.banner_menu a:hover{
color: #c6c6c6;
}
.banner_menu .bm_left{
float: left;
padding-top: 9px;
}
.banner_menu .bm_left ul{}
.banner_menu .bm_left ul li{
display: inline;
margin-right: 30px;
position: relative;
}
.banner_menu .bm_left ul li.total{
}
.banner_menu .bm_left ul li.total a{
font-size: 12px;
display: inline-block;
border: 1px solid #fff;
padding: 3px 10px;
transition: all 0.3s;
}
.banner_menu .bm_left ul li.total a:hover{
background-color: #fff;
color: #000;
}
.banner_menu ul li.line::after{
content: "";
width: 1px;
height: 14px;
background-color: #fff;
position: absolute;
top: 0;
right: -18px;
}
.banner_menu .bm_left ul li.line{}
.banner_menu .bm_left ul li.line::after{
}
.banner_menu .bm_left ul li a{}
.banner_menu .bm_right{
float: right;
overflow: hidden;
}
.banner_menu .bm_right ul{
float: left;
}
.banner_menu .bm_right ul:nth-of-type(1){
padding-top: 9px;
}
.banner_menu .bm_right ul li{
display: inline;
position: relative;
margin-right: 20px;
}
.banner_menu .bm_right ul li a{}
.banner_menu .bm_right ul li.line{
margin-right: 30px;
}
.banner_menu .bm_right ul li.white{
margin-right: 10px;
}
.banner_menu .bm_right ul li.white a,.banner_menu .bm_right ul li.purple a{
display: inline-block;
width: 80px;
padding: 7px 25px;
background-color: #39106a;
text-align: center;
border: 1px solid #451d76;
}
.banner_menu .bm_right ul li.purple{
margin-right: 0;
}
.banner_menu .bm_right ul li.purple a{
background-color: #fff;
border: 1px solid #39106a;
color: #39106a;
}
/* banner_slider */
#banner_slider{
width: 100%;
height: 600px;
}
#banner_slider .ss1{
background: url(../image/banner2.jpg) no-repeat center center;
background-size: cover;
height: 600px;
}
#banner_slider .ss2{
background: url(../image/banner3.png) no-repeat center center;
background-size: cover;
height: 600px;
}
#banner_slider .ss3{
background: url(../image/banner4.png) no-repeat center center;
background-size: cover;
height: 600px;
}
#banner_slider h3{
font-size: 6vw;
color: #fff;
margin-top: 160px;
font-weight: bold;
}
#banner_slider p{
font-size: 4vw;
color: #dbdbdb;
font-weight: 200;
text-shadow: 2px 2px 2px #000;
}
/* movie */
.movie{
padding: 100px 0;
}
.movie .movie_title{
margin-bottom: 60px;
}
.movie .movie_title ul{
/* li 가운데 정렬 너비값 적용해야함 848px=840+(2px*4) */
margin: 0 auto;
width: 848px;
}
.movie .movie_title ul li{
float: left;
width: 210px;
border: 1px solid #ccc;
text-align: center;
margin-right: -1px;
}
.movie .movie_title ul li a{
display: block;
padding: 15px 0;
font-size: 18px;
font-weight: bold;
letter-spacing: 1px;
}
.movie .movie_title ul li.active{}
.movie .movie_title ul li.active a{
background-color: #39106a;
color: #fff;
}
.movie_chart{
overflow: hidden;
}
.movie_chart > .movie_chart1{}
.movie_chart > .movie_chart1 > .swiper{}
.movie_chart > .movie_chart1 > .swiper > .swiper-wrapper{}
.movie_chart > .movie_chart1 > .swiper > .swiper-wrapper > .swiper-slide{
width: 292px;
margin-right: 18px;
}
.movie_chart .movie_chart1 > .swiper > .swiper-wrapper > .swiper-slide:last-child{margin-right: 0;}
.movie_chart > .movie_chart1 > .swiper > .swiper-wrapper > .swiper-slide >.poster{
position: relative;
}
.movie_chart > .movie_chart1 > .swiper > .swiper-wrapper > .swiper-slide >.poster img{
display: block;
/* width: 100%; */
}
.movie_chart > .movie_chart1 > .swiper > .swiper-wrapper > .swiper-slide >.poster .rank{
position: absolute;
top: 10px;
left: 0;
width: 50px;
height: 50px;
background-color: #38116a;
}
.movie_chart > .movie_chart1 > .swiper > .swiper-wrapper > .swiper-slide >.poster .rank strong{
display: block;
color: #fff;
font-size: 24px;
text-align: center;
line-height: 50px;
}
.movie_chart > .movie_chart1 > .swiper > .swiper-wrapper > .swiper-slide >.poster .mx span{
width: 103px;
height: 25px;
display: block;
}
.movie_chart > .movie_chart1 > .swiper > .swiper-wrapper > .swiper-slide >.poster .mx{
position: absolute;
top: 10px;
right: 10px;
}
.movie_chart > .movie_chart1 > .swiper > .swiper-wrapper > .swiper-slide >.poster .mx .m{
background-position: 0 -75px;
}
.movie_chart > .movie_chart1 > .swiper > .swiper-wrapper > .swiper-slide >.poster .mx .b{
background-position: 0 -100px;
}
.movie_chart > .movie_chart1 > .swiper > .swiper-wrapper > .swiper-slide > .info{
background-color: #fff;
padding: 17px;
border: 1px solid #ccc;
}
.movie_chart > .movie_chart1 > .swiper > .swiper-wrapper > .swiper-slide > .info h3{
color: #333;
font-size: 28px;
font-weight: bold;
}
.movie_chart > .movie_chart1 > .swiper > .swiper-wrapper > .swiper-slide > .info h3 span{
display: inline-block;
width: 29px;
height: 29px;
/* background: url(../image/KakaoTalk_20230706_141256154.png) -88px -125px; */
}
.movie_chart > .movie_chart1 > .swiper > .swiper-wrapper > .swiper-slide > .info h3 span.all{background-position: -87px -125px;}
.movie_chart > .movie_chart1 > .swiper > .swiper-wrapper > .swiper-slide > .info h3 span.a12{background-position: 0px -125px;}
.movie_chart > .movie_chart1 > .swiper > .swiper-wrapper > .swiper-slide > .info h3 span.a15{background-position: -29px -125px;}
.movie_chart > .movie_chart1 > .swiper > .swiper-wrapper > .swiper-slide > .info h3 span.a19{background-position: -58px -125px;}
button
.movie_chart > .movie_chart1 > .swiper > .swiper-wrapper > .swiper-slide > .info h3 strong{}
.movie_chart > .movie_chart1 > .swiper > .swiper-wrapper > .swiper-slide > .info .info_btn{
overflow: hidden;
margin-top: 20px;
}
.movie_chart > .movie_chart1 > .swiper > .swiper-wrapper > .swiper-slide > .info .info_btn a{
display: block;
background-color: #f2f2f2;
padding: 8px 0;
width: 49%;
float: left;
margin-right: 2%;
text-align: center;
font-size: 18px;
border: 1px solid #ccc;
box-sizing: border-box;
}
.movie_chart > .movie_chart1 > .swiper > .swiper-wrapper > .swiper-slide > .info .info_btn a:last-child{
margin-right: 0;
}
<swiper.css>
/**
* Swiper 10.0.3
* Most modern mobile touch slider and framework with hardware accelerated transitions
* https://swiperjs.com
*
* Copyright 2014-2023 Vladimir Kharlampidi
*
* Released under the MIT License
*
* Released on: July 3, 2023
*/
@font-face {
font-family: swiper-icons;
src: url('data:application/font-woff;char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Zo5IPrmUn0hGA0AO8EFTQAA');
font-weight: 400;
font-style: normal
}
:root {
--swiper-theme-color: #007aff
}
:host {
position: relative;
display: block;
margin-left: auto;
margin-right: auto;
z-index: 1
}
.swiper {
margin-left: auto;
margin-right: auto;
position: relative;
overflow: hidden;
overflow: clip;
list-style: none;
padding: 0;
z-index: 1;
display: block
}
.swiper2 {
margin-left: auto;
margin-right: auto;
position: relative;
overflow: hidden;
overflow: clip;
list-style: none;
padding: 0;
z-index: 1;
display: block
}
.swiper-vertical>.swiper-wrapper {
flex-direction: column
}
.swiper-wrapper {
position: relative;
width: 100%;
height: 100%;
z-index: 1;
display: flex;
transition-property: transform;
transition-timing-function: var(--swiper-wrapper-transition-timing-function, initial);
box-sizing: content-box
}
.swiper-android .swiper-slide,
.swiper-ios .swiper-slide,
.swiper-wrapper {
transform: translate3d(0px, 0, 0)
}
.swiper-horizontal {
touch-action: pan-y
}
.swiper-vertical {
touch-action: pan-x
}
.swiper-slide {
flex-shrink: 0;
width: 100%;
height: 100%;
position: relative;
transition-property: transform;
display: block
}
.swiper-slide-invisible-blank {
visibility: hidden
}
.swiper-autoheight,
.swiper-autoheight .swiper-slide {
height: auto
}
.swiper-autoheight .swiper-wrapper {
align-items: flex-start;
transition-property: transform, height
}
.swiper-backface-hidden .swiper-slide {
transform: translateZ(0);
-webkit-backface-visibility: hidden;
backface-visibility: hidden
}
.swiper-3d.swiper-css-mode .swiper-wrapper {
perspective: 1200px
}
.swiper-3d .swiper-wrapper {
transform-style: preserve-3d
}
.swiper-3d {
perspective: 1200px
}
.swiper-3d .swiper-cube-shadow,
.swiper-3d .swiper-slide {
transform-style: preserve-3d
}
.swiper-css-mode>.swiper-wrapper {
overflow: auto;
scrollbar-width: none;
-ms-overflow-style: none
}
.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar {
display: none
}
.swiper-css-mode>.swiper-wrapper>.swiper-slide {
scroll-snap-align: start start
}
.swiper-css-mode.swiper-horizontal>.swiper-wrapper {
scroll-snap-type: x mandatory
}
.swiper-css-mode.swiper-vertical>.swiper-wrapper {
scroll-snap-type: y mandatory
}
.swiper-css-mode.swiper-free-mode>.swiper-wrapper {
scroll-snap-type: none
}
.swiper-css-mode.swiper-free-mode>.swiper-wrapper>.swiper-slide {
scroll-snap-align: none
}
.swiper-css-mode.swiper-centered>.swiper-wrapper::before {
content: '';
flex-shrink: 0;
order: 9999
}
.swiper-css-mode.swiper-centered>.swiper-wrapper>.swiper-slide {
scroll-snap-align: center center;
scroll-snap-stop: always
}
.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child {
margin-inline-start: var(--swiper-centered-offset-before)
}
.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper::before {
height: 100%;
min-height: 1px;
width: var(--swiper-centered-offset-after)
}
.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child {
margin-block-start: var(--swiper-centered-offset-before)
}
.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper::before {
width: 100%;
min-width: 1px;
height: var(--swiper-centered-offset-after)
}
.swiper-3d .swiper-slide-shadow,
.swiper-3d .swiper-slide-shadow-bottom,
.swiper-3d .swiper-slide-shadow-left,
.swiper-3d .swiper-slide-shadow-right,
.swiper-3d .swiper-slide-shadow-top {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
pointer-events: none;
z-index: 10
}
.swiper-3d .swiper-slide-shadow {
background: rgba(0, 0, 0, .15)
}
.swiper-3d .swiper-slide-shadow-left {
background-image: linear-gradient(to left, rgba(0, 0, 0, .5), rgba(0, 0, 0, 0))
}
.swiper-3d .swiper-slide-shadow-right {
background-image: linear-gradient(to right, rgba(0, 0, 0, .5), rgba(0, 0, 0, 0))
}
.swiper-3d .swiper-slide-shadow-top {
background-image: linear-gradient(to top, rgba(0, 0, 0, .5), rgba(0, 0, 0, 0))
}
.swiper-3d .swiper-slide-shadow-bottom {
background-image: linear-gradient(to bottom, rgba(0, 0, 0, .5), rgba(0, 0, 0, 0))
}
.swiper-lazy-preloader {
width: 42px;
height: 42px;
position: absolute;
left: 50%;
top: 50%;
margin-left: -21px;
margin-top: -21px;
z-index: 10;
transform-origin: 50%;
box-sizing: border-box;
border: 4px solid var(--swiper-preloader-color, var(--swiper-theme-color));
border-radius: 50%;
border-top-color: transparent
}
.swiper-watch-progress .swiper-slide-visible .swiper-lazy-preloader,
.swiper:not(.swiper-watch-progress) .swiper-lazy-preloader {
animation: swiper-preloader-spin 1s infinite linear
}
.swiper-lazy-preloader-white {
--swiper-preloader-color: #fff
}
.swiper-lazy-preloader-black {
--swiper-preloader-color: #000
}
@keyframes swiper-preloader-spin {
0% {
transform: rotate(0deg)
}
100% {
transform: rotate(360deg)
}
}
.swiper-virtual .swiper-slide {
-webkit-backface-visibility: hidden;
transform: translateZ(0)
}
.swiper-virtual.swiper-css-mode .swiper-wrapper::after {
content: '';
position: absolute;
left: 0;
top: 0;
pointer-events: none
}
.swiper-virtual.swiper-css-mode.swiper-horizontal .swiper-wrapper::after {
height: 1px;
width: var(--swiper-virtual-size)
}
.swiper-virtual.swiper-css-mode.swiper-vertical .swiper-wrapper::after {
width: 1px;
height: var(--swiper-virtual-size)
}
:root {
--swiper-navigation-size: 44px
}
.swiper-button-next,
.swiper-button-prev {
position: absolute;
top: var(--swiper-navigation-top-offset, 50%);
width: calc(var(--swiper-navigation-size)/ 44 * 27);
height: var(--swiper-navigation-size);
margin-top: calc(0px - (var(--swiper-navigation-size)/ 2));
z-index: 10;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
color: var(--swiper-navigation-color, var(--swiper-theme-color))
}
.swiper-button-next.swiper-button-disabled,
.swiper-button-prev.swiper-button-disabled {
opacity: .35;
cursor: auto;
pointer-events: none
}
.swiper-button-next.swiper-button-hidden,
.swiper-button-prev.swiper-button-hidden {
opacity: 0;
cursor: auto;
pointer-events: none
}
.swiper-navigation-disabled .swiper-button-next,
.swiper-navigation-disabled .swiper-button-prev {
display: none !important
}
.swiper-button-next svg,
.swiper-button-prev svg {
width: 100%;
height: 100%;
object-fit: contain;
transform-origin: center
}
.swiper-rtl .swiper-button-next svg,
.swiper-rtl .swiper-button-prev svg {
transform: rotate(180deg)
}
.swiper-button-prev,
.swiper-rtl .swiper-button-next {
left: var(--swiper-navigation-sides-offset, 10px);
right: auto
}
.swiper-button-next,
.swiper-rtl .swiper-button-prev {
right: var(--swiper-navigation-sides-offset, 10px);
left: auto
}
.swiper-button-lock {
display: none
}
.swiper-button-next:after,
.swiper-button-prev:after {
font-family: swiper-icons;
font-size: var(--swiper-navigation-size);
text-transform: none !important;
letter-spacing: 0;
font-variant: initial;
line-height: 1
}
.swiper-button-prev:after,
.swiper-rtl .swiper-button-next:after {
content: 'prev'
}
.swiper-button-next,
.swiper-rtl .swiper-button-prev {
right: var(--swiper-navigation-sides-offset, 10px);
left: auto
}
.swiper-button-next:after,
.swiper-rtl .swiper-button-prev:after {
content: 'next'
}
.swiper-pagination {
position: absolute;
text-align: center;
transition: .3s opacity;
transform: translate3d(0, 0, 0);
z-index: 10
}
.swiper-pagination.swiper-pagination-hidden {
opacity: 0
}
.swiper-pagination-disabled>.swiper-pagination,
.swiper-pagination.swiper-pagination-disabled {
display: none !important
}
.swiper-horizontal>.swiper-pagination-bullets,
.swiper-pagination-bullets.swiper-pagination-horizontal,
.swiper-pagination-custom,
.swiper-pagination-fraction {
bottom: var(--swiper-pagination-bottom, 8px);
top: var(--swiper-pagination-top, auto);
left: 0;
width: 100%
}
.swiper-pagination-bullets-dynamic {
overflow: hidden;
font-size: 0
}
.swiper-pagination-bullets-dynamic .swiper-pagination-bullet {
transform: scale(.33);
position: relative
}
.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active {
transform: scale(1)
}
.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main {
transform: scale(1)
}
.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev {
transform: scale(.66)
}
.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev {
transform: scale(.33)
}
.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next {
transform: scale(.66)
}
.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next {
transform: scale(.33)
}
.swiper-pagination-bullet {
width: var(--swiper-pagination-bullet-width, var(--swiper-pagination-bullet-size, 8px));
height: var(--swiper-pagination-bullet-height, var(--swiper-pagination-bullet-size, 8px));
display: inline-block;
border-radius: var(--swiper-pagination-bullet-border-radius, 50%);
background: var(--swiper-pagination-bullet-inactive-color, #000);
opacity: var(--swiper-pagination-bullet-inactive-opacity, .2)
}
button.swiper-pagination-bullet {
border: none;
margin: 0;
padding: 0;
box-shadow: none;
-webkit-appearance: none;
appearance: none
}
.swiper-pagination-clickable .swiper-pagination-bullet {
cursor: pointer
}
.swiper-pagination-bullet:only-child {
display: none !important
}
.swiper-pagination-bullet-active {
opacity: var(--swiper-pagination-bullet-opacity, 1);
background: var(--swiper-pagination-color, var(--swiper-theme-color))
}
.swiper-pagination-vertical.swiper-pagination-bullets,
.swiper-vertical>.swiper-pagination-bullets {
right: var(--swiper-pagination-right, 8px);
left: var(--swiper-pagination-left, auto);
top: 50%;
transform: translate3d(0px, -50%, 0)
}
.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet,
.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet {
margin: var(--swiper-pagination-bullet-vertical-gap, 6px) 0;
display: block
}
.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,
.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic {
top: 50%;
transform: translateY(-50%);
width: 8px
}
.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,
.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet {
display: inline-block;
transition: .2s transform, .2s top
}
.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,
.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet {
margin: 0 var(--swiper-pagination-bullet-horizontal-gap, 4px)
}
.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,
.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic {
left: 50%;
transform: translateX(-50%);
white-space: nowrap
}
.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,
.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet {
transition: .2s transform, .2s left
}
.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet {
transition: .2s transform, .2s right
}
.swiper-pagination-fraction {
color: var(--swiper-pagination-fraction-color, inherit)
}
.swiper-pagination-progressbar {
background: var(--swiper-pagination-progressbar-bg-color, rgba(0, 0, 0, .25));
position: absolute
}
.swiper-pagination-progressbar .swiper-pagination-progressbar-fill {
background: var(--swiper-pagination-color, var(--swiper-theme-color));
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
transform: scale(0);
transform-origin: left top
}
.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill {
transform-origin: right top
}
.swiper-horizontal>.swiper-pagination-progressbar,
.swiper-pagination-progressbar.swiper-pagination-horizontal,
.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite,
.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite {
width: 100%;
height: var(--swiper-pagination-progressbar-size, 4px);
left: 0;
top: 0
}
.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,
.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite,
.swiper-pagination-progressbar.swiper-pagination-vertical,
.swiper-vertical>.swiper-pagination-progressbar {
width: var(--swiper-pagination-progressbar-size, 4px);
height: 100%;
left: 0;
top: 0
}
.swiper-pagination-lock {
display: none
}
.swiper-scrollbar {
border-radius: var(--swiper-scrollbar-border-radius, 10px);
position: relative;
-ms-touch-action: none;
background: var(--swiper-scrollbar-bg-color, rgba(0, 0, 0, .1))
}
.swiper-scrollbar-disabled>.swiper-scrollbar,
.swiper-scrollbar.swiper-scrollbar-disabled {
display: none !important
}
.swiper-horizontal>.swiper-scrollbar,
.swiper-scrollbar.swiper-scrollbar-horizontal {
position: absolute;
left: var(--swiper-scrollbar-sides-offset, 1%);
bottom: var(--swiper-scrollbar-bottom, 4px);
top: var(--swiper-scrollbar-top, auto);
z-index: 50;
height: var(--swiper-scrollbar-size, 4px);
width: calc(100% - 2 * var(--swiper-scrollbar-sides-offset, 1%))
}
.swiper-scrollbar.swiper-scrollbar-vertical,
.swiper-vertical>.swiper-scrollbar {
position: absolute;
left: var(--swiper-scrollbar-left, auto);
right: var(--swiper-scrollbar-right, 4px);
top: var(--swiper-scrollbar-sides-offset, 1%);
z-index: 50;
width: var(--swiper-scrollbar-size, 4px);
height: calc(100% - 2 * var(--swiper-scrollbar-sides-offset, 1%))
}
.swiper-scrollbar-drag {
height: 100%;
width: 100%;
position: relative;
background: var(--swiper-scrollbar-drag-bg-color, rgba(0, 0, 0, .5));
border-radius: var(--swiper-scrollbar-border-radius, 10px);
left: 0;
top: 0
}
.swiper-scrollbar-cursor-drag {
cursor: move
}
.swiper-scrollbar-lock {
display: none
}
.swiper-zoom-container {
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
text-align: center
}
.swiper-zoom-container>canvas,
.swiper-zoom-container>img,
.swiper-zoom-container>svg {
max-width: 100%;
max-height: 100%;
object-fit: contain
}
.swiper-slide-zoomed {
cursor: move;
touch-action: none
}
.swiper .swiper-notification {
position: absolute;
left: 0;
top: 0;
pointer-events: none;
opacity: 0;
z-index: -1000
}
.swiper-free-mode>.swiper-wrapper {
transition-timing-function: ease-out;
margin: 0 auto
}
.swiper-grid>.swiper-wrapper {
flex-wrap: wrap
}
.swiper-grid-column>.swiper-wrapper {
flex-wrap: wrap;
flex-direction: column
}
.swiper-fade.swiper-free-mode .swiper-slide {
transition-timing-function: ease-out
}
.swiper-fade .swiper-slide {
pointer-events: none;
transition-property: opacity
}
.swiper-fade .swiper-slide .swiper-slide {
pointer-events: none
}
.swiper-fade .swiper-slide-active,
.swiper-fade .swiper-slide-active .swiper-slide-active {
pointer-events: auto
}
.swiper-cube {
overflow: visible
}
.swiper-cube .swiper-slide {
pointer-events: none;
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
z-index: 1;
visibility: hidden;
transform-origin: 0 0;
width: 100%;
height: 100%
}
.swiper-cube .swiper-slide .swiper-slide {
pointer-events: none
}
.swiper-cube.swiper-rtl .swiper-slide {
transform-origin: 100% 0
}
.swiper-cube .swiper-slide-active,
.swiper-cube .swiper-slide-active .swiper-slide-active {
pointer-events: auto
}
.swiper-cube .swiper-slide-active,
.swiper-cube .swiper-slide-next,
.swiper-cube .swiper-slide-prev {
pointer-events: auto;
visibility: visible
}
.swiper-cube .swiper-cube-shadow {
position: absolute;
left: 0;
bottom: 0px;
width: 100%;
height: 100%;
opacity: .6;
z-index: 0
}
.swiper-cube .swiper-cube-shadow:before {
content: '';
background: #000;
position: absolute;
left: 0;
top: 0;
bottom: 0;
right: 0;
filter: blur(50px)
}
.swiper-cube .swiper-slide-next+.swiper-slide {
pointer-events: auto;
visibility: visible
}
.swiper-cube .swiper-slide-shadow-cube.swiper-slide-shadow-bottom,
.swiper-cube .swiper-slide-shadow-cube.swiper-slide-shadow-left,
.swiper-cube .swiper-slide-shadow-cube.swiper-slide-shadow-right,
.swiper-cube .swiper-slide-shadow-cube.swiper-slide-shadow-top {
z-index: 0;
-webkit-backface-visibility: hidden;
backface-visibility: hidden
}
.swiper-flip {
overflow: visible
}
.swiper-flip .swiper-slide {
pointer-events: none;
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
z-index: 1
}
.swiper-flip .swiper-slide .swiper-slide {
pointer-events: none
}
.swiper-flip .swiper-slide-active,
.swiper-flip .swiper-slide-active .swiper-slide-active {
pointer-events: auto
}
.swiper-flip .swiper-slide-shadow-flip.swiper-slide-shadow-bottom,
.swiper-flip .swiper-slide-shadow-flip.swiper-slide-shadow-left,
.swiper-flip .swiper-slide-shadow-flip.swiper-slide-shadow-right,
.swiper-flip .swiper-slide-shadow-flip.swiper-slide-shadow-top {
z-index: 0;
-webkit-backface-visibility: hidden;
backface-visibility: hidden
}
.swiper-creative .swiper-slide {
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
overflow: hidden;
transition-property: transform, opacity, height
}
.swiper-cards {
overflow: visible
}
.swiper-cards .swiper-slide {
transform-origin: center bottom;
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
overflow: hidden
}
<media.css>
@charset "utf-8";
@media(max-width:1290px){
.container{width: 100%;}
.row{padding: 0 28px;}
.header h1 em{padding: 11px 0 5px 0;}
.header h1 strong{top: 18px;}
.header .nav ul li{width: 93px;}
.header .nav ul li a{font-size: 15px;}
}
@media(max-width:1024px){
.row{padding: 0 24px;}
.header .nav ul li{width: 83px;}
.header .nav ul li a{font-size: 14px;}
}
@media(max-width:960px){
.row{padding: 0 20px;}
.header .nav{display: none;}
#mNav{display: block;}
.header h1{width: 100%;text-align: center;}
.header h1 strong{left: 14px;}
/* banner */
/* left li 2,3번째 지우기 */
.banner_menu .bm_left ul li:nth-of-type(2){display: none;}
.banner_menu .bm_left ul li:nth-of-type(3){display: none;}
/* movie_title */
.movie .movie_title ul{
/* li 너비값으로 자동으로 적용됨 */
width: auto;
}
.movie .movie_title ul li{
width: 25%;
/* 박스는 밑으로 떨어지기 때문에 박스포함해서 25% 적용하기 위해서 */
box-sizing: border-box;
}
}
@media(max-width:768px){
body{background-color: #d9d7e0;}
#header{background-color: #fff;}
.row{padding: 0 16px;}
/* banner */
/* right 첫번째 ul 지우기*/
.banner_menu .bm_right ul:nth-of-type(1){display: none;}
/* movie_title */
#movie .row{
background-color: #fff;
margin: 24px;
padding: 24px;
}
#movie .row .ir_su{
position: static;
width: auto;
height: auto;
line-height: normal;
text-indent: 0px;
font-size: 24px;
margin-bottom: 20px;
}
.movie{padding: 0;}
.movie .movie_title{
margin-bottom: 30px;
}
.movie .movie_title ul{
position: relative;
padding-bottom: 10px;
}
.movie .movie_title ul::before{
position: absolute;
content: "";
left: 0;
bottom: 0;
width: 100%;
height: 2px;
background-color: #ccc;
}
.movie .movie_title ul li{
border: 0;
width: auto;
}
.movie .movie_title ul li a{
padding: 0;
margin-right: 35px;
position: relative;
font-weight: 500;
}
.movie .movie_title ul li.active{}
.movie .movie_title ul li.active a{
background-color: #fff;
color: #222;
}
.movie .movie_title ul li.active a::before{
content: "";
position: absolute;
left: 0;
bottom: -10px;
width: 100%;
height: 4px;
background-color: #39106a;
}
}
@media(max-width:600px){
.row{padding: 0 12px;}
.header h1{text-align: left;}
.header h1 strong{display: none;}
/* banner */
/* white, purple 사이즈 축소 */
.banner_menu .bm_right ul li.white a,
.banner_menu .bm_right ul li.purple a{
width: 60px;
padding: 3px 12px;
white-space: nowrap;
font-size: 13px;
}
/* movie_title */
#movie .container{}
#movie .container::after{
content: "";
position: absolute;
z-index: 10;
right: 0;
top: 0;
width: 8px;
height: 100%;
background-color: #d9d7e0;
}
#movie .row{
margin: 8px;
padding: 16px;
/* 뒷배경 가리기 */
margin-right: 0;
/* 아랫선 박스 끝까지 적용되게함 */
padding-right: 0;
position: relative;
}
#movie .row::after{
position: absolute;
content: "";
top: 0;
right: 0;
width: 24px;
height: 100%;
background-color: #fff;
z-index: 9;
}
#movie .row .ir_su{
font-size: 18px;
margin-bottom: 10px;
}
.movie{}
.movie .movie_title{
margin-bottom: 20px;
}
.movie .movie_title ul{
padding-bottom: 8px;
}
.movie .movie_title ul li a{
font-size: 14px;
}
.movie .movie_title ul li.active a::before{
bottom: -8px;
}
}
@media(max-width:480px){
.row{padding: 0 8px;}
}
@media(max-width:360px){}
728x90
반응형
'☭DEVELOPER > #2 웹개발(자바기반 풀스택)' 카테고리의 다른 글
비주얼 스튜디오 코드 69_파노라마 회사소개02 (0) | 2023.07.07 |
---|---|
비주얼 스튜디오 코드 68_ 하이시네마 탭메뉴_02 (0) | 2023.07.07 |
비주얼 스튜디오 코드 66_ 사이드 닷 메뉴 (0) | 2023.07.06 |
비주얼 스튜디오 코드 65_파노라마 회사 소개 (0) | 2023.07.05 |
비주얼 스튜디오 코드 64_ 하이시네마 웹페이지 03 (0) | 2023.07.05 |