MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 156: | Line 156: | ||
} | } | ||
/* Limit the number of subheadings to | /* Limit the number of subheadings to one level */ | ||
#toc | #toc ul ul { | ||
display: none; | display: none; | ||
} | } | ||
#toc | #toc > ul > li > ul { | ||
display: block; | display: block; | ||
} | } | ||
/* Add ellipsis (...) for hidden | /* Add ellipsis (...) for hidden second-level subheadings */ | ||
#toc li.tochidden:after { | #toc li.tochidden:after { | ||
content: ' ...'; /* You can customize the ellipsis as needed */ | content: ' ...'; /* You can customize the ellipsis as needed */ | ||
color: #888; /* Adjust the color as needed */ | color: #888; /* Adjust the color as needed */ | ||
} | } | ||
Revision as of 17:12, 6 March 2024
/* CSS placed here will be applied to all skins */
/* Don't number the table of contents. Currently numbering is applied manually to the heading title */
.tocnumber {
display:none
}
.toclimit-2 .toclevel-1 ul
/* Preferred ordered list styles (to match the old PDF BDMs) */
div ol {
list-style-type:decimal
}
div ol ol {
list-style-type:lower-alpha
}
div ol ol ol {
list-style-type:lower-roman
}
div ol ol ol ol {
list-style-type:disc
}
div ol ol ol ol ol {
list-style:none
}
/* Custom "alpha" list style */
div.alpha_list ol {
list-style-type:lower-alpha
}
div.alpha_list ol ol {
list-style-type:lower-roman
}
div.alpha_list ol ol ol {
list-style-type:decimal
}
div.alpha_list ol ol ol ol {
list-style-type:disc
}
div.alpha_list ol ol ol ol ol {
list-style:none
}
/* Not sure what these are for */
div#mydiv ol ol ol ol {
list-style-type:decimal
}
div ol ol ol ol ol > li {
counter-increment:section
}
div ol ol ol ol ol > li:before {
content: "(" counter(section, decimal) ") "
}
div ol ol ol ol ol ol {
list-style:none;
margin:0;
padding:0
}
div ol ol ol ol ol ol > li {
counter-increment:subsection
}
div ol ol ol ol ol ol > li:before {
content:counter(subsection, disc)" "
}
/* Change page sections to DelDOT orange */
h2 {
/* color:#fe9901; This is the DelDOT website button orange */
color:#F47920; /* Got this orange from the Restore the Corridor website */
} /* (xxx.x) */
h5, h6 {
font-style: italic; /* Most skins don't do this. It matches the PDF BDM */
}
/* Adds some space between paragraphs */
.mw-body-content p {
margin: 0.75em 0;
}
/* List styling for reports */
.deldotreport ol {
counter-reset: section;
list-style-type: none;
}
.deldotreport ol li::before {
counter-increment: section;
content: counter(section, upper-roman) ". ";
}
.deldotreport ol li > ol li::before {
counter-increment: section;
content: counters(section,".") " ";
}
/* End styling for reports */
/* Styling for the Main Page */
body.page-Main_Page h1 {
display: none; /* Don't show the title ("Main Page") of the main page */
}
/* Apply flex-box to screens (not print) */
@media screen {
.main-flexcontainer {
margin-top: 20px;
display: flex;
flex-wrap: wrap;
}
.main-flexbox {
border: 1px solid #CCC;
padding: 0 1em 1em;
margin: 0 10px 20px;
box-shadow: 0 2px 2px rgba(0,0,0,0.1);
}
.main-flexbox ul {
list-style: none;
line-height: 2;
margin-left: 0.5em;
}
/* End styling for the Main Page */
/* Site wide edits here */
body #p-coll-print_export {display:none}
#footer { display: none; }
body { font-size: larger; }
/* Float Table of Contents to the right */
#toc {
float: right;
margin:0 0 1em 1em;
position:fixed;
top:150px;
right:10px;
max-height: 1%; /* Adjust the maximum height as needed */
overflow-y: scroll;
}
/* Limit the number of subheadings to one level */
#toc ul ul {
display: none;
}
#toc > ul > li > ul {
display: block;
}
/* Add ellipsis (...) for hidden second-level subheadings */
#toc li.tochidden:after {
content: ' ...'; /* You can customize the ellipsis as needed */
color: #888; /* Adjust the color as needed */
}