Mobile.css: 두 판 사이의 차이
CABAL WIKI
(새 문서: @media screen and (max-width: 768px) { →모바일 목차 스타일: #toc, .toc { float: none !important; position: static !important; width: 100% !important; max-width: 100% !important; background: #f9f9f9 !important; padding: 10px !important; font-size: 14px !important; border: 1px solid #ccc !important; margin: 1em auto !important; } →목차 내 리스트: #toc li, .toc li { line-height: 1.6em; word-break: break-w...) |
편집 요약 없음 |
||
23번째 줄: | 23번째 줄: | ||
body { | body { | ||
font-size: 14px !important; | font-size: 14px !important; | ||
} | |||
} | |||
@media screen and (max-width: 768px) { | |||
/* 목차가 겹치지 않도록 block 처리 및 줄바꿈 */ | |||
#toc, .toc { | |||
float: none !important; | |||
position: static !important; | |||
display: block !important; | |||
clear: both !important; | |||
width: 100% !important; | |||
max-width: 100% !important; | |||
background: #f9f9f9 !important; | |||
padding: 10px !important; | |||
border: 1px solid #ccc !important; | |||
margin: 1em 0 !important; | |||
z-index: 1 !important; | |||
box-sizing: border-box; | |||
} | |||
/* 목차 안 항목도 줄바꿈 및 가독성 확보 */ | |||
#toc li, .toc li { | |||
line-height: 1.6em; | |||
word-break: break-word; | |||
} | |||
/* 인포박스도 100% 폭으로 */ | |||
.infobox, table.infobox { | |||
width: 100% !important; | |||
float: none !important; | |||
margin: 1em 0 !important; | |||
display: block !important; | |||
clear: both !important; | |||
box-sizing: border-box; | |||
} | |||
/* 목차 뒤 요소가 겹치지 않도록 */ | |||
.mw-parser-output > :not(#toc):not(.toc):first-child { | |||
clear: both !important; | |||
} | } | ||
} | } |
2025년 7월 25일 (금) 06:31 판
@media screen and (max-width: 768px) { /* 모바일 목차 스타일 */ #toc, .toc { float: none !important; position: static !important; width: 100% !important; max-width: 100% !important; background: #f9f9f9 !important; padding: 10px !important; font-size: 14px !important; border: 1px solid #ccc !important; margin: 1em auto !important; } /* 목차 내 리스트 */ #toc li, .toc li { line-height: 1.6em; word-break: break-word; } /* 전체 폰트 크기 축소 */ body { font-size: 14px !important; } } @media screen and (max-width: 768px) { /* 목차가 겹치지 않도록 block 처리 및 줄바꿈 */ #toc, .toc { float: none !important; position: static !important; display: block !important; clear: both !important; width: 100% !important; max-width: 100% !important; background: #f9f9f9 !important; padding: 10px !important; border: 1px solid #ccc !important; margin: 1em 0 !important; z-index: 1 !important; box-sizing: border-box; } /* 목차 안 항목도 줄바꿈 및 가독성 확보 */ #toc li, .toc li { line-height: 1.6em; word-break: break-word; } /* 인포박스도 100% 폭으로 */ .infobox, table.infobox { width: 100% !important; float: none !important; margin: 1em 0 !important; display: block !important; clear: both !important; box-sizing: border-box; } /* 목차 뒤 요소가 겹치지 않도록 */ .mw-parser-output > :not(#toc):not(.toc):first-child { clear: both !important; } }