MediaWiki:Common.css
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Press Ctrl-F5.
/* CSS placed here will be applied to all skins */
/* a class that will keep a header from appearing in the TOC on the page */
.noautonum .tocnumber {
display: none;
}
/* so that the tagline will show in all skins */
#siteSub {
display:block;
font-weight:normal;
font-size:normal;
}
/* so that columns won't spread all the way across the page */
/* see Books of the Bibles entry */
div#columns {
max-width: 450px;
}
/* enlarge text size */
body {
font-size: 115%;
}
/* creating class to have padding between table columns */
.table-padding td {
padding: 25px;
}
/* creating class to have padding between table columns, right side only */
.table-padding-right td {
padding: 25px;
}
/* for expand/collapse */
.mw-collapsible .mw-collapsible-toggle {
float:left; !important
font-weight: bold;
background-color: #ffff00;
margin-left:25px;
}
/* 5/15/24: text in <pre> does not wrap on Reading mode in Edge browser, and assume in others and extends past right margin; but doesn't work; the only thing that works is max-width: 80% which is good to limit the whitespace block, but on read mode it just extends off the page... none of these worked:
overflow: visible;
nowrap: normal;
max-width: 80%;
display: inline-block;
white-space: normal;
*/
/* per chatgitp 6/5/24: */
pre, .preformatted {
white-space: pre-wrap; /* Allows wrapping of text */
max-width: 100%; /* Ensures preformatted text does not exceed the width of the container */
overflow-x: auto; /* Adds horizontal scroll if the text is too wide */
word-wrap: break-word; /* Ensures long words are broken */
}
/* looks better w/ pre set to smaller width than page, but on read mode it still spills off right margin*/
pre {
max-width: 80%;
}
/* for readability of blog posts, setting max width on blog namespace; however, it losess side margins on small screen, so needs fix */
/* note: using
margin: 0 auto; /* Center the content */
/* centers the content on wide mode but forces text on small screens to the edge of left margin */
@media screen and (min-width: 850px) {
.ns-3000 #bodyContent {
max-width: 850px; /* Adjust the value as needed */
margin: 0 auto; /* Center the content */
}