etc./Tistory

[Tistory] 본문 상단 이미지를 없애는 방법

2023. 7. 4. 15:16

🔨 상단 이미지 제거

 

/* article-header */
.article-header {
    /* position: absolute;
    top: 0;
    left: 50%;
    width: 100vw;
    height: 400px;
    margin-left: -50vw;
    padding: 0 20px;
    background-size: cover;
    background-position: 50% 50%; */
    background-image: none!important;
}

/* .article-header:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
} */

.article-header .inner-header {
    max-width: 1020px;
    margin: 0 auto;
    /* color: #fff; */
    margin-bottom: 45px; 
    padding-bottom: 20px; 
    border-bottom: 1px solid #d3d3d3;
}

/* .article-header .box-meta {
    position: absolute;
    bottom: 56px;
    width: 100%;
    max-width: 780px;
    z-index: 2;
} */
#tt-body-page .main {
    padding-top: 40px;
}
@media screen and (max-width: 1060px) {
    #tt-body-page .main {
        padding-top: 40px;
    }
}

 

🔨 제목 폰트 크기 수정

 

.article-header .title-article {
    display: block;
    width: 100%;
    max-width: 760px;
    /* margin: 0 0 33px 0; */
    font-size: 25px;
    font-weight: 400;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
    word-break: keep-all;
}

 

 

🔨 상단 수정/삭제 추가 --------------------

 

                          <span>
                            <s_ad_div >
                              <b>|</b>
                              <a class="s_ad_div" href="">수정</a>
                              <b>|</b>
                              <a class="s_ad_div" href="#" onclick="">삭제</a>
                            </s_ad_div>
                          </span>
ㅇㅇ
더보기

HTML에 style 안 쓰려고 분리하려고 했더니 디테일이 쉽지 않네... 

우선은 이런 상태로 둬야겠다.

 

 

 

🔨 본문 넓게 설정

 

/* area-main */
.area-main {
    width: 100%;
    max-width: 800px;
}