210730 UIUX WebDesign jQuery 연습_14_5(index.html -> main.css)

ITisIT210·2021년 7월 31일
0

jQuery

목록 보기
141/142
post-thumbnail
@charset "utf-8";

/* header */
#header {}
#header .inner {
    height: 100px;
    position: relative;
    z-index: 99999;
}

#header h1 {
    position: absolute;
    left: 0px;
    top: 50px;
}

/* gnb */
#header .gnb {
    position: absolute;
    left: 300px;
    top: 38px;
}

#header .gnb > li {
    float: left;
    position: relative;
}

#header .gnb > li > a {
    padding: 10px 30px;
    display: block;
    font-size: 20px;
    color: #666;
}

#header .gnb > li:hover:before {
    width: 100%;
}

#header .gnb > li > a {
    padding:10px 35px;
    display:block;
    font-size: 20px;
    color: #666;
}

/* depth2 */
#header .gnb .depth2 {
    padding: 80px 0px 80px 35px;
    position: absolute;
    display: none;
    height: 200px;
    left: 0px;
    top: 0px;
}

#header .gnb .depth2 li a {
    padding: 3px 0px;
    display: block;
    color: #999;
    text-align: center;
}

#header .gnb .depth2 li a:hover {
    color: #0082dc;
}

#header .gnb .depth3 {
    display: none;
}

/* util */
#header .util {
    position: absolute;
    right: 0px;
    top: 50px;
}

#header .util li {
    margin-left: 20px;
    float: left;
}

#header .util li:nth-child(1) {
    margin-left: 0px;
    display: block;
    width: 26px;
    height: 26px;
    background: url("../images/ico_login.png") no-repeat center center;
    text-indent: -99999px;
    cursor: pointer;
}

#header .util li.btnSearch a {
    display: block;
    width: 26px;
    height: 26px;
    background: url("../images/ico_search.png") no-repeat center center;
    text-indent: -99999px;
}

#header .util li.btnSearch a.on {
    background: url("../images/ico_close.png") no-repeat center center;
}

/* searchBox */
#header .searchBox {
    padding-top: 50px;
    width: 100%;
    height: 150px;
    text-align: center;
    background: #fff;
    position: absolute; /* body를 기준으로 하는 position */
    left: 0px;
    z-index: 999;
}

#header .searchBox input[type="text"] {
    padding: 5px;
    width: 500px;
    height: 50px;
    font-family: "Noto Sans KR";
    font-size: 20px;
    border-bottom: 3px solid #000;
    cursor: pointer;
}

#header .searchBox input[type="submit"] {
    width: 50px;
    height: 50px;
    text-indent: -99999px;
    border-bottom: 3px solid #000;
    background: url("../images/search.png") no-repeat center center;
    cursor: pointer;
}

/* depth2_bg */
#header .depth2_bg {
    width: 100%;
    height: 200px;
    background: #fff;
    border-top: 1px solid #eee;
    display: none;
    position: absolute;
    left: 0px;
    z-index: 99;
}

#header.fix {
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #ddd;
    position: fixed;
    left: 0px;
    top: 0px;
    z-index: 99999999;
}

/* mainSlide */
#mainSlide {
    height: 750px;
    position: relative;
    z-index: 1;
}

#mainSlide .ms li {
    height: 750px;
}

#mainSlide .ms .ms1 {
    background: url("../images/slide_01.jpg") no-repeat center top;
}

#mainSlide .ms .ms2 {
    background: url("../images/slide_02.jpg") no-repeat center top;
}

#mainSlide .ms .ms3 {
    background: url("../images/slide_03.jpg") no-repeat center top;
}

#mainSlide h2 {
    padding: 200px 0px 50px;
    font-family: "Noto Serif KR";
    font-size: 60px;
    letter-spacing: -2px;
    color: #fff;
}

#mainSlide .btnMore a {
    font-weight: 600;
    color: #fff;
    border-bottom: 3px solid #fff;
}

/* Arrows */
#mainSlide .slick-prev, #mainSlide .slick-next {
    width: 100px;
    height: 100px;
    font-size: 0px;
    line-height: 0;
    display: block;
    border: 1px solid #fff;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    z-index: 999;
    transform: translate(0, -50%);
    transition: opacity 0.5s;
    opacity: .5;
    cursor: pointer;
    outline: none;
}

#mainSlide .slick-prev:hover, #mainSlide .slick-prev:focus, #mainSlide .slick-next:hover, #mainBanner .slick-next:focus {
    opacity: 1;
}

#mainSlide .slick-prev {
    left: 100px;
    background: url('../images/btn_arrow_prev.png') no-repeat center center;
}

#mainSlide .slick-next {
    right: 100px;
    background: url('../images/btn_arrow_next.png') no-repeat center center;
}

/* Dots */
#mainSlide .slick-dots {
    margin: 0px;
    padding: 0px;
    width: 100%;
    display: block;
    position: absolute;
    left: 50%;
    /* bottom: 30px; */
    top: 100px;
    transform: translateX(-600px);
}

#mainSlide .slick-dots li {
    margin: 0px;
    padding: 0px;
    width: 100px;
    height: 3px;
    display: inline-block;
    background: #fff;
    position: relative;
    opacity: 0.2;
    cursor: pointer;
}

#mainSlide .slick-dots li button {
    padding: 5px;
    display: block;
    color: transparent;
    background: transparent;
    border: 0;
    cursor: pointer;
    outline: none;
}

#mainSlide .slick-dots li.slick-active {
    opacity: 1;
    color: #000;
}

/* contents */
#contents h3 {
    margin-bottom: 45px;
    font-size: 40px;
    font-weight: 600;
    font-family: "EB Garamond";
}

/* now */
#now {
    padding:150px 0px;
}

#now h2 { 
    margin-bottom: 45px;
    font-size: 40px;
    font-weight: 600;
    font-family: "EB Garamond";
    text-align: center;
}

#now .now_list li { 
    margin-left: 20px;
    width: calc((100% - 60px) / 4);
    height: 412px;
    float: left;
    position: relative;
    overflow: hidden;
    transition: transform 0.5s;
}

#now .now_list li:first-child { 
    margin-left: 0px; 
}

#now .now_list li img { 
    width: 100%;
}

#now .now_list li .over_txt { 
    padding: 10px 30px;
    width: 100%;
    height: 100%; 
    border-top: 3px solid #F00;
    background: rgba(0,0,0,0.7);
    position: absolute;
    left: 0px;
    top: 450px;
    transition: top 0.5s;
}

#now .now_list li:hover .over_txt { 
    top: 150px;
}

#now .now_list li h3 { 
    padding-bottom: 10px;
    font-size: 18px;
    letter-spacing: -1px;
    word-break: keep-all;
    display: inline-block;
}

#now .now_list li p.sns_sort { 
    padding: 20px 0px 10px;
    font-weight: 600;
    text-transform: uppercase;
    color: #bea36b;
}

#now .now_list li a { 
    height: 100%;
    display: block;
    color: #fff;
}

#now .now_list li p.more { 
    position: relative;
}

#now .now_list li p.more:after { 
    content: '';
    width: 5px;
    height: 5px;
    border-top: 1px solid #fff;
    border-right: 1px solid #fff;
    position: absolute;
    left: 45px;
    top: 11px;
    transform: rotate(45deg);
}

#now h4 { 
    margin-top: 50px;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
}

#now .comment { 
    padding-bottom: 30px;
    text-align: center;
    color: #999;
}

#now .sns { 
    text-align: center;
}

#now .sns li { 
    padding: 0px 5px;
    display: inline-block;
}

/* shoppingEvent */
#shoppingEvent {
    margin-bottom: 150px;
    padding: 150px 0px 0px;
    background: #eee;
}

#shoppingEvent .inner {
    /* height: 1010px; */
}

#shoppingEvent .event {
    width: 1800px;
    position: relative;
}

#shoppingEvent .event li {
    margin-right: 30px;
}

#shoppingEvent .event li img {
    width: 100%;
}

#shoppingEvent .event li dt {
    padding: 20px 0px 10px;
    font-size: 20px;
    font-weight: 600;
}

#shoppingEvent .event li dd {
    color: #666;
}

/* Arrows */
#shoppingEvent .slick-prev, #shoppingEvent .slick-next {
    width: 20px;
    height: 20px;
    font-size: 0px;
    line-height: 0;
    display: block;
    border-top: 3px solid #000;
    border-right: 3px solid #000;
    border-left: 0px;
    border-bottom: 0px;
    background: transparent;
    position: absolute;
    top: -100px;
    z-index: 999;
    /* transform: translate(0, -50%); */
    transition: opacity 0.5s;
    cursor: pointer;
    outline: none;
}

#shoppingEvent .slick-prev:hover, #shoppingEvent .slick-prev:focus, #shoppingEvent .slick-next:hover, #shoppingEvent .slick-next:focus {
    opacity: 1;
}

#shoppingEvent .slick-prev {
    transform: translateX(1100px) rotate(-135deg);
}

#shoppingEvent .slick-next {
    transform: translateX(1150px) rotate(45deg);
}

/* news */
#shoppingEvent .news {
    margin-top: 100px;
    padding: 50px 50px 0px;
    background: #fff;
}

#shoppingEvent .news .tab {
    width: calc(50% - 25px);
    float: left;
    position: relative;
}

#shoppingEvent .news .tab h4 {
    padding: 8px 20px;
    float: left;
    font-size: 24px;
    font-weight: 600;
    color: #999;
    cursor: pointer;
}

#shoppingEvent .news .tab > li > ul {
    width: 100%;
    height: 0px;
    background: #fff;
    border-top: 1px solid #ccc;
    position: absolute;
    left: 0px;
    top: 50px;
    overflow: hidden;
}

#shoppingEvent .news .tab > li.active > h4 {
    color: #000;
    border: 1px solid #ccc;
}

#shoppingEvent .news .tab > li.active > ul {
    height: 150px;
} 

#shoppingEvent .news .tab > li > ul > li {
    padding-top: 10px;
}

#shoppingEvent .news .tab > li > ul span {
    float: right;
}

#shoppingEvent .news .promotion {
    width: calc(50% - 25px);
    float: right;
}

#shoppingEvent .news .promotion a {
    display: block;
    padding: 50px 0px;
    font-size: 36px;
    font-weight: 600;
    text-align: center;
    color: #fff;
    background: #48bbd6;
}

/* art */
#art {
    padding: 150px 0px;
}

#art h2 {
    margin-bottom: 45px;
    font-size: 40px;
    font-weight: 600;
    font-family: "EB Garamond";
    text-align: center;
}

#art .artList {
    height: 600px;
    position: relative;
}

#art .artList li {
    height: 600px;
    /* position: relative; */
}

#art .artList li.art1::before {
    content: "";
    width: 65%;
    height: 500px;
    background: #005295;
    position: absolute;
    left: 0px;
    top: 0px;
    z-index: -1;
}

#art .artList li.art2::before {
    content: "";
    width: 65%;
    height: 500px;
    background: #215e50;
    position: absolute;
    left: 0px;
    top: 0px;
    z-index: -1;
}

#art .artList li img {
    width: 45%;
    position: absolute;
    right: 0px;
    top: 100px;
}

#art .artList li h4 {
    padding: 100px 0px 30px;
    color: #c5b998;
}

#art .artList li h3 {
    font-size: 40px;
    font-family: "Noto Serif KR";
    color: #fff;
}

#art .artList li .btnMore a {
    /* margin-top: 30px; */
    display: inline-block;
    font-family: "Noto Serif EN";
    font-weight: 600;
    color: #fff;
    border-bottom: 3px solid #fff;
}

/* Arrows */
#art .slick-prev, #art .slick-next {
    width: 10px;
    height: 10px;
    font-size: 0px;
    line-height: 0;
    display: block;
    border-top: 3px solid #fff;
    border-right: 3px solid #fff;
    border-left: 0px;
    border-bottom: 0px;
    background: transparent;
    position: absolute;
    left: 50%;
    bottom: 180px;
    z-index: 999;
    transition: opacity 0.5s;
    cursor: pointer;
    outline: none;
}

#art .slick-prev:hover, #art .slick-prev:focus, #art .slick-next:hover, #art .slick-next:focus {
    opacity: 1;
}

#art .slick-prev {
    transform: translateX(-590px) rotate(-135deg);
}

#art .slick-next {
    transform: translateX(-550px) rotate(45deg);
}

/* Dots */
#art .slick-dots {
    margin: 0px;
    padding: 0px;
    width: 100%;
    display: block;
    position: absolute;
    bottom: 185px;
    transform: translateX(-450px);
}

#art .slick-dots li {
    margin: 0px;
    padding: 0px;
    width: 100px;
    height: 3px;
    display: inline-block;
    background: #fff;
    position: relative;
    opacity: 0.2;
    cursor: pointer;
}

#art .slick-dots li button {
    padding: 5px;
    display: block;
    color: transparent;
    background: transparent;
    border: 0;
    cursor: pointer;
    outline: none;
}

#art .slick-dots li.slick-active {
    opacity: 1;
    color: #000;
}

/* magazine */
#magazine {
    margin-bottom: 150px;
}

#magazine h2 {
    margin-bottom: 45px;
    font-size: 40px;
    font-weight: 600;
    font-family: "EB Garamond";
}

#magazine .allGrid {
    margin: 0px -20px;
}

#magazine .grid {
    padding: 0px 20px;
    width: calc(100% / 4);
    height: 1100px;
    float: left;
}

#magazine .grid:not(:nth-of-type(1)) { /* grid안에서 첫 번째 요소가 아닌 것*/
    border-left: 1px solid #ddd;
}

#magazine .grid img {
    width: 100%;
}

#magazine .mList dt {
    padding: 20px 5px 10px;
    font-size: 20px;
}

#magazine .mList dd {
    margin-bottom: 70px;
    padding: 0px 5px;
    color: #999;
}

#magazine .btnMore {
    text-align: center;
}

#magazine .btnMore a {
    margin-top: 50px;
    display: inline-block;
    font-weight: 600;
    border-bottom: 3px solid #f00;
}

/* footer */
#footer {
    padding: 80px 0px;
    background: #333;
}

#footer .inner {
    height: 120px;
    position: relative;
}

#footer .footerLogo {
    position: absolute;
    left: 0px;
    top: 0px;
}

#footer .footerLink {
    position: absolute;
    left: 250px;
    top: 0px;
}

#footer .footerLink li {
    padding-right: 20px;
    float: left;
}

#footer .footerLink li a {
    color: #999;
}

#footer address {
    color: #666;
    position: absolute;
    left: 250px;
    top: 50px;
}

#footer .copy {
    color: #666;
    position: absolute;
    left: 250px;
    top: 80px;
}

#footer .family {
    padding: 10px;
    width: 200px;
    color: #999;
    background: #333 url("../images/btn_arrow_next.png") no-repeat 150px 0px;
    border: 1px solid #999;
    position: absolute;
    right: 0px;
    top: 0px;
    appearance: none;   /* 브라우저에서 보이던 화살표 사라짐 */
}

/* gotop */
#gotop {
    display: none;
    position: fixed;
    right: 50px;
    bottom: 50px;
}
profile
Engineering is the closest thing to magic that exists in the world.

0개의 댓글