미디어위키:Common.css
CABAL WIKI
참고: 설정을 저장한 후에 바뀐 점을 확인하기 위해서는 브라우저의 캐시를 새로 고쳐야 합니다.
- 파이어폭스 / 사파리: Shift 키를 누르면서 새로 고침을 클릭하거나, Ctrl-F5 또는 Ctrl-R을 입력 (Mac에서는 ⌘-R)
- 구글 크롬: Ctrl-Shift-R키를 입력 (Mac에서는 ⌘-Shift-R)
- 인터넷 익스플로러 / 엣지: Ctrl 키를 누르면서 새로 고침을 클릭하거나, Ctrl-F5를 입력.
- 오페라: Ctrl-F5를 입력.
/* ===== 커스터마이징된 목차 위치 ===== */
#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;
}