210713 UIUX WebDesign jQuery 연습_6_3(index.html -> main.css)

ITisIT210·2021년 7월 17일
0

jQuery

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

/* header 영역 */
#header {
    width: 100%;
    background: #fff;
    border-bottom:3px solid #B5121B;
}

#header .inner {
    height: 150px;
    position: relative;
}

#header h1 {
    /* padding: 35px 0px 45px; */
    position: absolute;
    left: 50%;
    top: 35px;
    transform: translateX(-50%);
}

#header .gnb {
    position: absolute;
    width: 1000px;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
}

#header .gnb > li {
    width: calc(100% / 5);
    float: left;
}

#header .gnb > li > a {
    padding: 10px 0px 10px;
    display: block;
    text-align: center;
    font-family: "Arial Black";
    font-size: 20px;
}

#header .gnb > li:hover > a {
    color: #B5121B;
}

/* dp2 영역 */
#header .gnb > li:hover > .dp2 {
    background: rgba(0,0,0,0.3);
}

#header .gnb .dp2 {
    padding: 15px 0px;
    height: 200px;
    transition: background 0.5s;
}

#header .gnb .dp2 li a {
    padding: 3px 0px;
    display: block;
    font-size: 14px;
    text-align: center;
    color: #FFF;
}

#header .gnb .dp2 li a:hover {
    color: #FF0;
}

#header .dp2_bg {
    width: 100%;
    height: 200px;
    background: #B5121B;
    position:absolute;
    left: 0px;
    top: 150px;
}

/* main_visual 영역 */
#main_visual {
    height: 480px;
    text-align: center;
}

/* contents 영역 */
#contents h2 {
    padding-bottom: 20px;
    font-size: 40px;
    font-family: "Arial Black";
}

#contents span {
    color: #b5121b;
}

#contents .comment {
    padding-bottom: 50px;
    font-size: 20px;
}

/* menu 영역 */
#contents .menu {
    padding: 150px 0px;
    height: 850px;
    text-align: center;
}

#contents .new li {
    width: calc(100% / 3);
    height: 400px;
    float: left;
    position: relative;
    overflow: hidden;
}

#contents .new li img {
    width: 100%;
}

#contents .new li span {
    padding: 20px 30px;
    width: 100%;
    color: #fff;
    background: rgba(181, 18, 27, 0.8);
    display: block;
    transition: transform 0.5s;
    transform: translateY(100px); 
    position: absolute;
    left: 0px;
    bottom: 0px;
}

#contents .new li:hover span {
    transform: translateY(0);
}

/* franchise 영역 */
#contents .franchise {
    margin: 0px auto;
    padding: 80px 0px;
    max-width: 1920px;
    height: 500px;
    background: url("../images/store_bg.png") no-repeat right -65px;
}

#contents .franchise .comment {
    position: relative;
}

#contents .franchise .comment::before {
    content: "";
    width: 370px;
    height: 15px;
    background: #B5121B;
    position: absolute;
    left: -5px;
    top: 15px;
    opacity: 0.15;
    transform: skewX(-10deg); 
}

#contents .franchise .desc {
    margin-bottom: 30px;
    color: #888;
}

#contents .franchise .btn_franchise a {
    margin-right: 10px;
    padding: 10px 40px;
    display: inline-block;
    font-size: 20px;
    color: #B5121B;
    border: 1px solid #B5121B;
    transition: background 0.3s;
}

#contents .franchise .btn_franchise a:hover {
    color: #fff;
    background: #B5121B;
}

/* sns 영역 */
#contents .sns {
    padding: 150px 0px;
    text-align: center;
}

#contents .sns ul li {
    width: calc(100%/5);
    float: left;
    transition: opacity 0.5s;
}

#contents .sns ul li:hover {
    opacity: 0.7;
}

#contents .sns ul li img {
    width: 100%;
    display: block;
}

/* footer 영역 */
#footer {
    padding: 70px 0px;
    background: url("../images/bg_footer.gif");
}

#footer .inner {
    text-align: center;
}

#footer .footer_link li {
    padding: 0px 10px;
    display: inline-block;
}

#footer .footer_link li a {
    color: #fff;
}

#footer address, #footer .copy {
    padding-top: 20px;
    clear: both;
    color: rgba(255,255,255,0.5);
    white-space: pre;
}

/* gotop 영역 */
.gotop {
    position: fixed;
    left: 50%;
    bottom: 50px;
    transform: translateX(700px);
}
profile
Engineering is the closest thing to magic that exists in the world.

0개의 댓글