미디어위키:Common.css: 두 판 사이의 차이

    CABAL WIKI
    편집 요약 없음
    (문서를 비움)
    태그: 비우기
    1번째 줄: 1번째 줄:
    /* ===== 커스터마이징된 목차 위치 ===== */
    #toc {
        position: fixed;
        top: 200px;
        left: 30px;
        width: 250px;
        max-height: 70vh;
        overflow: auto;
        padding: 10px 15px;
        background: #fff;
        border: 1px solid #ccc;
        border-radius: 8px;
        font-size: 0.85em;    /* 글씨 더 작게 */
        z-index: 1000;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    }


    /* ===== 목차 글자 줄바꿈 방지 ===== */
    #toc .toctext {
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 200px;  /* 필요하면 조절 */
    }
    /* ===== 본문은 여백 조정 없이 중앙 정렬 유지 ===== */
    #mw-content-text {
        margin-left: auto !important;
        margin-right: auto !important;
    }
    /* ===== 모바일 대응: 기본 위치로 복귀 ===== */
    @media screen and (max-width: 768px) {
        #toc {
            position: static !important;
            width: auto;
            border: none;
            box-shadow: none;
            padding: 0;
            margin-top: 1em;
        }
    }
    /* ===== 링크 색상 빨강 ===== */
    .mw-linktitles-auto {
        color: #e74c3c !important;
        font-weight: bold;
        text-decoration: underline dashed;
    }

    2025년 7월 18일 (금) 10:44 판