안녕하세요! 직접만든 index.css를 basic테마 head에 적용시키는법궁금합니다!

안녕하세요! 직접만든 index.css를 basic테마 head에 적용시키는법궁금합니다!

QA

안녕하세요! 직접만든 index.css를 basic테마 head에 적용시키는법궁금합니다!

답변 1

본문

3717575498_1556523478.5609.png

 

theme/baisic/head.php 소스입니다!

 

 

<link rel="stylesheet" href="<?php echo G5_THEME_CSS_URL ?>/index.css?ver=<?php echo G5_JS_VER?>"> 으로 index.css 파일을 불러왔습니다!

 

근데... 웹으로확인하면 

3717575498_1556523584.608.png

 

이런식으로 뒤죽박죽으로 나옵니다...

 

콘솔오류는 나지않아 불러오는거같은데... index.css 소스가 이상한건지 궁금합니다..

이상하다면 어떻게 고쳐야하는지 궁금합니다..

 

 

--index.css 소스입니다.

 

/* 헤더 */
header {
    margin: 0 auto;
}

/* 헤더탑 */
header > .hd-top {
    position: relative;
}

header > .hd-top > form {
    position: absolute;
    top: 50%;
    left: 00%;
    transform: translateY(-50%);
}

header > .hd-top > form > input {
    width: 400px;
    height: 30px;
    outline: 0;
    border: 1px solid #efefef;
    border-radius: 5px;
    padding-left: 10px;
    color: black;
}

header > .hd-top > form > input::placeholder {
    color: #999;
}

header > .hd-top > form > button {
    position: absolute;
    top: 0;
    left: auto;
    right: 0;
    border-bottom-right-radius: 5px;
    border-top-right-radius: 5px;
    width: 35px;
    height: 35px;
    background-color: #3577ff;
    outline: 0;
    border: 0;
}

header > .hd-top > form > button > i {
    color: white;
    font-size: 16px;
}

header > .hd-top > h1 {
    display: block;
    margin: 0 auto;
    width: 100px;
    line-height: 50px;
}

header > .hd-top > ul {
    position: absolute;
    left: auto;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
}

header > .hd-top > ul > li > a {
    display: block;
    padding: 20px;
}

/* 헤더 바텀 */
header > .hd-bottom {
    padding: 20px;
    position: relative;
}

header > .hd-bottom > .menu-ico {
    width: 50px;
    height: 30px;
    position: relative;
    cursor: pointer;
    margin-left: 50px;
    left: 4%;
}

header > .hd-bottom > .menu-ico > div {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: #ccc;
    border-radius: 5px;
}

header > .hd-bottom > .menu-ico[data-ico-now-animating="Y"] > div {
    background-color: #3577ff;
}

header > .hd-bottom > .menu-ico > div:nth-child(2) {
    top: 40%;
    transition: visibility 0s 0.6s;
}

header > .hd-bottom > .menu-ico > div:nth-child(3) {
    top: 80%;
}

header > .hd-bottom > .menu-ico.active > div:nth-child(2) {
    visibility: hidden;
    transition: visibility 0s;
}

header > .hd-bottom > .menu-ico > div:nth-child(1),
header > .hd-bottom > .menu-ico > div:nth-child(3) {
    transition: top 0.3s 0.3s, transform 0.3s 0s;
}

header > .hd-bottom > .menu-ico.active > div:nth-child(1),
header > .hd-bottom > .menu-ico.active > div:nth-child(3) {
    top: 40%;
    transform: rotate(45deg);
    transition: top 0.3s, transform 0.3s 0.3s;
}

header > .hd-bottom > .menu-ico.active > div:nth-child(3) {
    transform: rotate(-45deg);
}

header > .hd-bottom > ul {
    position: absolute;
    top: 0;
    left: 50%;
    margin: 0 -20px;
    transform: translateX(-50%);
}

header > .hd-bottom > ul > li {
    padding: 0 20px;
    color: #666;
}

header > .hd-bottom > ul > li:first-child {
    color: #3577ff;
}

header > .hd-bottom > ul > li > a {
    display: block;
    padding: 20px;
    font-weight: 600;
}

/* 섹션1 */
.section-1 {
    position: relative;
}

.my-1 {
    background-color: black;
}

.my-1 .item {
    height: 600px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.my-1 > .owl-nav {
    margin-top: 0 !important;
}

.my-1 > .owl-nav > .owl-prev,
.my-1 > .owl-nav > .owl-next {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    border-radius: 50% !important;
    background-color: transparent !important;
    font-size: 5rem !important;
    padding: 0px 20px 0px 15px !important;
}

.my-1 > .owl-nav > .owl-prev:active,
.my-1 > .owl-nav > .owl-next:active {
    color: #afafaf !important;
    transform: translateY(-45%);
}

.my-1 > .owl-nav > .owl-next {
    left: auto;
    right: 0;
    padding: 0px 15px 0px 20px !important;
}

.my-1 > .owl-nav > .owl-next > i::before {
    content: "\f0da"
}

.my-1 > .owl-nav > .owl-prev > i::before {
    content: "\f0d9";
}

.my-1 > .owl-dots {
    position: absolute;
    bottom: 3%;
    left: 0;
    width: 100%;
}

.my-1 > .owl-dots > .owl-dot > span {
    border-radius: 50% !important;
    margin: 0 7px !important;
    padding: 2px !important;
    display: block;
    background-color: white !important;
}

.my-1 > .owl-dots > .owl-dot.active > span {
    background-color: #3577ff !important;
}


.talk-box {
    position: absolute;
    width: 300px;
    height: 400px;
    background-color: #5982d5;
    z-index: 99;
    top: 50%;
    left: calc(50% - 600px);
    transform: translateY(-50%);
}

.reservation {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 5%;
}

.reservation input {
    outline: 0;
    border: 0;
    height: 30px;
    padding: 0 10px;
}

.reservation > .re-1 > input {
    width: 250px;
}

.reservation > ul {
    margin: 0 -10% 0 0;
    margin-top: 30px;
}

.reservation > ul > .re-2 {
    float: left;
    width: 50%;
}

.reservation > ul > .re-2 > input {
    width: calc(80% - 20px);
}

.reservation > ul > .re-3 {
    float: right;
    width: 50%;
}

.reservation > ul > .re-3 > input {
    width: calc(80% - 20px);
}

.reservation > .re-4 {
    margin-top: 30px;
}

.reservation > .re-4 > input {
    width: 250px;
}

.re-1 > div,
.re-2 > div,
.re-3 > div,
.re-4 > div {
    font-size: 14px;
    margin-bottom: 5px;
}

.reservation > .re-5 > li:first-child {
    width: 20%;
    font-size: 14px;
}

.reservation > .re-5 > li:nth-child(2) {
    width: 64%;
}

.reservation > .re-5 > li:nth-child(2) > input[id="a"] {
    position: relative;
    top: -6px;
    border: 2px solid blue;
    background-color: white;
    border-radius: 0;
    color: white;
}

.reservation > .re-5 > li:nth-child(2) > label[for="a"] {
    position: relative;
    top: -16px;
    font-size: 14px;
}

.reservation > .re-5 > li:nth-child(2) > input[id="b"] {
    position: relative;
    top: -6px;
}

.reservation > .re-5 > li:nth-child(2) > label[for="b"] {
    position: relative;
    top: -16px;
    font-size: 14px;
}

.reservation > a {
    display: block;
    margin-top: 10px;
}

/* 섹션 2 */
.section-2 {
    margin-top: 30px;
}

.section-2 > h3 {
    font-size: 30px;
    line-height: 30px;
    margin-bottom: 10px;
}

.section-2 > ul {
    margin-left: -10px;
    margin-right: -10px;
}


.section-2 > ul > .cell {
    width: 50%;
    padding-left: 10px;
    padding-right: 10px;
}

.section-2 > ul > li > div {
    display: block;
    width: 600px;
    height: 400px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.section-2 > ul > .cell > .img-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .7);
    z-index: 1;
    transition: background-color .2s;
}

.section-2 > ul > .cell > .img-box:hover::before {
    background-color: rgba(0, 0, 0, 0.3);
}

.section-2 > ul > li:first-child > div > img {
    width: 120%;
    margin-left: -60px
}

.section-2 > ul > .cell > .img-box > img {
    transition: transform .2s;
}

.section-2 > ul > .cell > .img-box:hover > img {
    transform: scale(1.1);
}

.section-2 > ul > .cell > .img-box > .sub-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #afafaf;
    font-size: 1.3rem;
    font-weight: 200;
    padding: 0.4rem;
    z-index: 5;
}

.section-2 > ul > .cell > .img-box > .sub-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 3px;
}

.section-2 > ul > .cell > .img-box > .sub-text > span {
    color: #fff;
}

.section-2 > ul > .cell > .img-box > .line-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid #666;
    transition: border-color .3s;
    width: 200px;
    height: 200px;
    z-index: 1;
}

.section-2 > ul > .cell:hover > .img-box > .line-box {
    border-color: #777;
}

.section-2 > ul > .cell:hover > .img-box > .line-box > div {
    border: 1px solid white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    width: 100%;
    height: 100%;
    transition: width 1s, height 1s;
    z-index: 100;
}

.section-2 > ul > .cell > .img-box > .line-box > div:first-child {
    width: 0;
    border-left: 0;
    border-right: 0;
}

.section-2 > ul > .cell:hover > .img-box > .line-box > div:first-child {
    width: 100%;
}

.section-2 > ul > .cell > .img-box > .line-box > div:last-child {
    height: 0;
    border-top: 0;
    border-bottom: 0;
}

.section-2 > ul > .cell:hover > .img-box > .line-box > div:last-child {
    height: 100%;
}

/* 섹션 3 */
.section-3 {
    width: 100%;
    height: 400px;
    background-color: #3577ff;
    margin-top: 30px;
}

.section-3 > .con {
    padding-top: 1px;
}

.section-3 > .con > h3 {
    font-size: 30px;
    line-height: 30px;
    margin-bottom: 10px;
    color: white;
    margin-top: 30px;
}

.section-3 > .con > ul {
    width: 1100px;
    margin: 0 auto;
}

.section-3 > .con > ul > li {
    width: 33.3333%;
    padding: 10px;
}

.section-3 > .con > ul > li:last-child {
    
}

 

 

 

 

 

이 질문에 댓글 쓰기 :

답변 1

답변을 작성하시기 전에 로그인 해주세요.
QA 내용 검색
질문등록
전체 46
© SIRSOFT
현재 페이지 제일 처음으로