MediaWiki: Common.css: различия между версиями 🔗
Материал из VEDA Wiki
Sphynkx (обсуждение | вклад) Нет описания правки |
Sphynkx (обсуждение | вклад) Нет описания правки |
||
Строка 18: | Строка 18: | ||
content: counter(serial-number)'. '; /* Display the counter with finishing dot and space*/ | content: counter(serial-number)'. '; /* Display the counter with finishing dot and space*/ | ||
} | } | ||
Версия от 21:52, 27 июля 2022
/* CSS placed here will be applied to all skins */
.tocnumber { display: none; } /* swithoff enumarating of heading in TOC: https://www.mediawiki.org/wiki/Manual:Table_of_contents#Auto-numbering */
/* http://mariusmateoc.com/blog/automatic-serial-number-row-in-html-table/ */
.css-serial {
counter-reset: serial-number; /* Set the serial number counter to 0 */
}
.css-serial td:first-child:before {
counter-increment: serial-number; /* Increment the serial number counter */
content: counter(serial-number); /* Display the counter */
}
.css-serial-sep {
counter-reset: serial-number; /* Set the serial number counter to 0 */
}
.css-serial-sep td:first-child:before {
counter-increment: serial-number; /* Increment the serial number counter */
content: counter(serial-number)'. '; /* Display the counter with finishing dot and space*/
}