미디어위키:Mobile.css
CABAL WIKI
참고: 설정을 저장한 후에 바뀐 점을 확인하기 위해서는 브라우저의 캐시를 새로 고쳐야 합니다.
- 파이어폭스 / 사파리: Shift 키를 누르면서 새로 고침을 클릭하거나, Ctrl-F5 또는 Ctrl-R을 입력 (Mac에서는 ⌘-R)
- 구글 크롬: Ctrl-Shift-R키를 입력 (Mac에서는 ⌘-Shift-R)
- 인터넷 익스플로러 / 엣지: Ctrl 키를 누르면서 새로 고침을 클릭하거나, Ctrl-F5를 입력.
- 오페라: Ctrl-F5를 입력.
@media screen and (max-width: 768px) {
/* 📌 목차 스타일 + 겹침 해제 */
#toc, .toc {
float: none !important;
clear: both !important;
position: relative !important;
width: 100% !important;
margin: 1.5em 0 !important;
padding: 12px !important;
background: #f9f9f9 !important;
border: 1px solid #ccc !important;
box-sizing: border-box !important;
z-index: 1 !important;
}
/* 📌 목차 바로 아래 요소 띄우기 (다양한 상황 대응) */
#toc + *,
.toc + *,
#toc ~ h2,
.toc ~ h2,
#toc ~ p,
.toc ~ p {
margin-top: 1.5em !important;
clear: both !important;
display: block !important;
}
/* 📌 float 요소 전반 초기화 (겹침 차단용) */
.thumb, .infobox, .navbox, .wikitable, table {
float: none !important;
clear: both !important;
display: block !important;
width: 100% !important;
margin: 1.2em 0 !important;
box-sizing: border-box;
}
/* 📌 폰트 사이즈 및 리스트 정리 */
body {
font-size: 14px !important;
}
ul, ol {
padding-left: 1.2em !important;
}
li {
line-height: 1.6em !important;
word-break: break-word;
}
/* 📌 사이드바 감추기 */
#mw-panel, #site-navigation, .sidebar {
display: none !important;
}
}