MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
No edit summary Tag: Reverted |
No edit summary |
||
| (5 intermediate revisions by the same user not shown) | |||
| Line 102: | Line 102: | ||
margin-left: inherit; /* Automatically align lists under headers */ | margin-left: inherit; /* Automatically align lists under headers */ | ||
padding-left: 20px; | padding-left: 20px; | ||
} | |||
a:link, | |||
a:visited, | |||
a:active { | |||
text-decoration: underline !important; | |||
color: #3399ff !important; /* Light blue */ | |||
} | |||
a.external, | |||
a.mw-redirect { | |||
text-decoration: underline !important; | |||
color: #3399ff !important; | |||
} | } | ||
Latest revision as of 15:37, 29 August 2025
/* CSS placed here will be applied to all skins */
/*https://m.mediawiki.org/wiki/Manual:Remove_Tabs*/
/*remove: Discussion Tab*/
#ca-talk { display: none !important; }
/*remove history and view source*/
#ca-history { display: none !important;}
#ca-viewsource { display: none !important; }
/*Note: # is the target and it is not a comment. Romove Tools menu on the left bar.
This is a solution for hiding the tool menu for non-loging user is here: https://www.mediawiki.org/wiki/Topic:Wevi20ue9t8ugub2.
To UNHIDE the Tool menu: Add comment to the following line (using forward slash and asterisk #p-tb { display: none} and close asterisk and forward slash), and in LocalSetting.php comment this line: #require_once "$IP/extensions/HideSidebar/HideSidebar.php"; it will remove the tools for all users including login.
To HIDE the Tool Menu, Uncomment the following line and leave it like this: #p-tb { display: none}. And In LocalSetting.php, UNcomment this line: require_once "$IP/extensions/HideSidebar/HideSidebar.php"*/
/*#p-tb { display: none}*/
/*Koh: Fonts */
element { color: #5a7425; font-size: 13px; font-family: Verdana; }
body { color: #5a7425; font-size: 13px; font-family: Verdana; }
/*Koh: Header Numbering*/
/* General Reset for Headings */
body {
counter-reset: h2counter;
}
/* Top-level headers (== Header ==) */
h2 {
counter-reset: h3counter;
font-weight: bold;
font-size: 1.5em; /* 2 points larger than subheading1 */
margin-left: 0; /* No indentation for top-level headers */
font-family: Helvetica, Arial, sans-serif !important; /* Use Helvetica, fallback to Arial or sans-serif */
}
h2 .mw-headline::before {
counter-increment: h2counter;
content: counter(h2counter) ". ";
}
/* Subheading1 (=== Subheader ===) */
h3 {
counter-reset: h4counter;
font-size: 1.3em; /* Base size for subheading1 */
margin-left: 20px; /* Indent subheading1 */
}
h3 .mw-headline::before {
counter-increment: h3counter;
content: counter(h2counter) "." counter(h3counter) ". ";
}
/* Subheading2 (==== Subheader ===) */
h4 {
font-size: 1.2em; /* Slightly smaller than subheading1 */
margin-left: 40px; /* Further indented */
}
h4 .mw-headline::before {
counter-increment: h4counter;
content: counter(h2counter) "." counter(h3counter) "." counter(h4counter) ". ";
}
/* Ensure paragraphs align dynamically with the header level */
h2 + p {
margin-left: 0; /* Align with top-level headers */
}
h3 + p {
margin-left: 20px; /* Align paragraphs with Subheading1 */
}
h4 + p {
margin-left: 40px; /* Align paragraphs with Subheading2 */
}
/* Lists under headers and paragraphs */
h3 + p + ul, h3 + ul, h4 + p + ul, h4 + ul,
h3 + p + ol, h3 + ol, h4 + p + ol, h4 + ol {
margin-left: inherit; /* Align lists with respective headers */
padding-left: 20px;
}
/* Sublist alignment for ordered and unordered lists */
h3 + ul > li, h4 + ul > li, h3 + ol > li, h4 + ol > li {
margin-left: 20px; /* Ensure first-level list alignment */
text-indent: 0; /* Prevent overlap */
}
h3 + ul > li > ul, h4 + ul > li > ul, h3 + ol > li > ol, h4 + ol > li > ol {
margin-left: 20px; /* Proper indentation for nested lists */
padding-left: 20px;
}
/* Dynamic alignment for subsequent paragraphs and lists under headers */
h2 ~ p, h3 ~ p, h4 ~ p {
margin-left: inherit; /* Automatically inherit alignment */
text-indent: 0;
}
h2 ~ ul, h3 ~ ul, h4 ~ ul, h2 ~ ol, h3 ~ ol, h4 ~ ol {
margin-left: inherit; /* Automatically align lists under headers */
padding-left: 20px;
}
a:link,
a:visited,
a:active {
text-decoration: underline !important;
color: #3399ff !important; /* Light blue */
}
a.external,
a.mw-redirect {
text-decoration: underline !important;
color: #3399ff !important;
}