Difference between revisions of "MediaWiki:Common.css"
Jump to navigation
Jump to search
| Line 10: | Line 10: | ||
This should work for any number of list items... | This should work for any number of list items... | ||
| − | + | ||
.numlist ol {counter-reset: cNumlist;} | .numlist ol {counter-reset: cNumlist;} | ||
.numlist li{ display: block; } | .numlist li{ display: block; } | ||
.numlist li::before { content: counters(cNumlist, ".") ". "; counter-increment: cNumlist; } | .numlist li::before { content: counters(cNumlist, ".") ". "; counter-increment: cNumlist; } | ||
| − | + | */ | |
.noautonum .tocnumber { display: none; } | .noautonum .tocnumber { display: none; } | ||
Revision as of 15:42, 24 February 2021
/* DCK 2_23_2021 Added to get multi tiered numbered lists. -----------------------------------------*/
/* Well this was super annoying to figure out...
.numlist is an arbitrary class i choose.
ol is the Ordered List
li is the list item
li:before no idea, stole that code off the interwebs.
So, the space between .numlist and ol says "select all ol items that are decendants of .numlist.
counter-reset: cNumlist--> cNumlist is the arbitrary name of the counter i choose.
This should work for any number of list items...
.numlist ol {counter-reset: cNumlist;}
.numlist li{ display: block; }
.numlist li::before { content: counters(cNumlist, ".") ". "; counter-increment: cNumlist; }
*/
.noautonum .tocnumber { display: none; }
/* Testing 123!
.numlist ol {counter-reset: cNumlist;}
.numlist li{ display: block; }
.numlist li::before { content: counters(cNumlist, ".") ". "; counter-increment: cNumlist; }
*/
.hideList ol{
list-style-type:none;
}
.hideList ol ol{
list-style-type:none;
}
/* Defining an alternative to a Heading format that doesn't get put into the TOC*/
.txtBig {
font-size: 1.5em;
font-family: 'Linux Libertine','Georgia','Times',serif;
font-weight: bold;
border-style: hidden hidden solid hidden;
border-width: 1px;
border-color: #a2a9b1;
}
/* CSS placed here will be applied to all skins */
/*Formatting for Change Table*/
.ChangesTable{
border: 1px solid black;
border-collapse: collapse;
}
.ChangesTable td, th, tr{
border: 1px solid black;
padding:10px;
}
/* CSS for Links -----------------------------------------*/
/* A link that has not been visited */
a:link {
color: blue;
}
/* A link that has been visited */
a:visited {
color: blue;
}
/* A link that is hovered on */
a:hover {
color: red;
}
/* A link that is selected */
a:active {
color: green;
}
/* -----------------------------------------------------*/
/* Header that is red*/
.warning_red {
color: red;
font-size: 20px;
}