MediaWiki:Common.css: Difference between revisions
Add TOC styles |
Fix TOC and Heading padding |
||
| Line 60: | Line 60: | ||
.page-Main_Page .mw-first-heading { | .page-Main_Page .mw-first-heading { | ||
display: none !important; | display: none !important; | ||
} | |||
/* Give all page titles some breathing room from the top border */ | |||
.firstHeading { | |||
padding-top: 15px !important; | |||
} | } | ||
.page-Main_Page .mw-body-content { | .page-Main_Page .mw-body-content { | ||
| Line 889: | Line 894: | ||
/* --- TOC Styling --- */ | /* --- TOC Styling --- */ | ||
.toc, .mw-parser-output .toc { | #toc, .toc, .mw-parser-output #toc, .mw-parser-output .toc { | ||
background-color: | background-color: #e2d1b4 !important; | ||
border: 1px solid # | border: 1px solid #998363 !important; | ||
padding: | padding: 2px !important; | ||
display: inline-block; | display: inline-block; | ||
color: #2b2b2b; | color: #2b2b2b; | ||
border-radius: | border-radius: 0; | ||
margin-bottom: 15px; | margin-bottom: 15px; | ||
} | } | ||
.toc, | #toc .toctitle, .toc .toctitle, #toc h2, .toc h2 { | ||
background-color: # | background-color: #c7b08d !important; | ||
border-bottom: none !important; | border-bottom: none !important; | ||
text-align: center; | text-align: center; | ||
| Line 907: | Line 910: | ||
font-size: 1.1em !important; | font-size: 1.1em !important; | ||
font-weight: bold !important; | font-weight: bold !important; | ||
margin | margin: 0 !important; | ||
padding: | padding: 6px 15px !important; | ||
color: #4a3c28 !important; | color: #4a3c28 !important; | ||
} | } | ||
.toc ul { | #toc ul, .toc ul { | ||
list-style-type: none !important; | list-style-type: none !important; | ||
padding | padding: 10px 15px !important; | ||
margin: 0 !important; | |||
background-color: #e2d1b4 !important; | |||
} | } | ||
.toc ul ul { | #toc ul ul, .toc ul ul { | ||
padding-left: 1.5em !important; | padding-left: 1.5em !important; | ||
border-left: 1px dotted #a08c6c; | |||
margin-left: 5px !important; | |||
padding-top: 5px; | |||
padding-bottom: 5px; | |||
} | } | ||
.toc li { | #toc li, .toc li { | ||
margin-bottom: 4px !important; | margin-bottom: 4px !important; | ||
font-size: 0. | font-size: 0.95em; | ||
line-height: 1.4; | |||
} | } | ||
.toc a { | #toc a, .toc a { | ||
color: #5a3c21 !important; | color: #5a3c21 !important; | ||
text-decoration: none !important; | text-decoration: none !important; | ||
} | } | ||
.toc a:hover { | #toc a:hover, .toc a:hover { | ||
text-decoration: underline !important; | text-decoration: underline !important; | ||
} | } | ||