Mobile.css: 두 판 사이의 차이
CABAL WIKI
편집 요약 없음 |
편집 요약 없음 |
||
| 12번째 줄: | 12번째 줄: | ||
} | } | ||
/* 📌 목차 | /* 📌 목차 스타일 */ | ||
#toc, .toc { | #toc, .toc { | ||
float: none !important; | float: none !important; | ||
position: | position: relative !important; | ||
display: block !important; | display: block !important; | ||
clear: both !important; | |||
width: 100% !important; | width: 100% !important; | ||
max-width: 100% !important; | max-width: 100% !important; | ||
margin: 1em 0 !important; | margin: 1em 0 !important; | ||
padding: | padding: 12px !important; | ||
background: # | background: #f8f8f8 !important; | ||
border: 1px solid #ccc !important; | border: 1px solid #ccc !important; | ||
font-size: 14px !important; | font-size: 14px !important; | ||
box-sizing: border-box; | box-sizing: border-box !important; | ||
z-index: 1 !important; | z-index: 1 !important; | ||
} | } | ||
/* 📌 목차 리스트 줄바꿈 */ | /* 📌 목차 아래 첫 문단 강제 띄우기 (두 가지 선택자 모두 필요) */ | ||
.mw-parser-output > #toc + *, | |||
.mw-parser-output > .toc + * { | |||
margin-top: 1em !important; | |||
clear: both !important; | |||
display: block !important; | |||
} | |||
/* 📌 목차 안 리스트 줄바꿈 */ | |||
#toc li, .toc li { | #toc li, .toc li { | ||
line-height: 1.6em; | line-height: 1.6em; | ||
| 34번째 줄: | 43번째 줄: | ||
} | } | ||
/* 📌 infobox | /* 📌 infobox, 표, 이미지, navbox 줄바꿈 */ | ||
.infobox, table.infobox { | .infobox, table.infobox, | ||
.thumb, .navbox, .wikitable, table { | |||
width: 100% !important; | width: 100% !important; | ||
float: none !important; | float: none !important; | ||
clear: both !important; | |||
display: block !important; | display: block !important; | ||
margin: 1em 0 !important; | margin: 1em 0 !important; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
} | } | ||
| 54번째 줄: | 56번째 줄: | ||
/* 📌 리스트 들여쓰기 */ | /* 📌 리스트 들여쓰기 */ | ||
ul, ol { | ul, ol { | ||
padding-left: 1.2em; | padding-left: 1.2em !important; | ||
} | } | ||
li { | li { | ||
line-height: 1.6em; | line-height: 1.6em !important; | ||
word-break: break-word; | word-break: break-word; | ||
} | } | ||
| 69번째 줄: | 71번째 줄: | ||
#mw-panel, #site-navigation, .sidebar { | #mw-panel, #site-navigation, .sidebar { | ||
display: none !important; | display: none !important; | ||
} | } | ||
} | } | ||
2025년 7월 25일 (금) 06:36 판
/* ===================== */
/* 📱 Timeless 모바일 최적화 패키지 */
/* 위치: MediaWiki:Mobile.css */
/* ===================== */
@media screen and (max-width: 768px) {
/* 📌 본문 여백 최소화 */
.mw-body, .mw-body-content, .mw-parser-output {
padding: 10px !important;
margin: 0 !important;
}
/* 📌 목차 스타일 */
#toc, .toc {
float: none !important;
position: relative !important;
display: block !important;
clear: both !important;
width: 100% !important;
max-width: 100% !important;
margin: 1em 0 !important;
padding: 12px !important;
background: #f8f8f8 !important;
border: 1px solid #ccc !important;
font-size: 14px !important;
box-sizing: border-box !important;
z-index: 1 !important;
}
/* 📌 목차 아래 첫 문단 강제 띄우기 (두 가지 선택자 모두 필요) */
.mw-parser-output > #toc + *,
.mw-parser-output > .toc + * {
margin-top: 1em !important;
clear: both !important;
display: block !important;
}
/* 📌 목차 안 리스트 줄바꿈 */
#toc li, .toc li {
line-height: 1.6em;
word-break: break-word;
}
/* 📌 infobox, 표, 이미지, navbox 줄바꿈 */
.infobox, table.infobox,
.thumb, .navbox, .wikitable, table {
width: 100% !important;
float: none !important;
clear: both !important;
display: block !important;
margin: 1em 0 !important;
box-sizing: border-box;
}
/* 📌 리스트 들여쓰기 */
ul, ol {
padding-left: 1.2em !important;
}
li {
line-height: 1.6em !important;
word-break: break-word;
}
/* 📌 전체 폰트 크기 축소 */
body {
font-size: 14px !important;
}
/* 📌 사이드바 감추기 */
#mw-panel, #site-navigation, .sidebar {
display: none !important;
}
}