MediaWiki:Common.css: Difference between revisions

From SCA Lochac
Jump to navigation Jump to search
(Created page with "→‎CSS placed here will be applied to all skins: →‎section-based ol numbering: .mw-content-text ol { counter-reset: section; list-style-type: none; } .mw-content-text...")
 
No edit summary
Line 2: Line 2:


/* section-based ol numbering*/
/* section-based ol numbering*/
.mw-content-text ol {
div.mw-content-text ol {
   counter-reset: section;
   counter-reset: section;
   list-style-type: none;
   list-style-type: none;
}
}
.mw-content-text li:before {
div.mw-content-text li:before {
   list-style-type: none;
   list-style-type: none;
   counter-increment: section;
   counter-increment: section;
   content: counters(section, ".") ". ";
   content: counters(section, ".") ". ";
}
}

Revision as of 04:07, 11 April 2018

/* CSS placed here will be applied to all skins */

/* section-based ol numbering*/
div.mw-content-text ol {
  counter-reset: section;
  list-style-type: none;
}
div.mw-content-text li:before {
  list-style-type: none;
  counter-increment: section;
  content: counters(section, ".") ". ";
}