1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-22 05:03:16 +02:00

Add ol.list-group with psuedo-element numbers

This commit is contained in:
Mark Otto
2021-02-12 10:51:18 -08:00
committed by Mark Otto
parent 844aab4295
commit defce83027
2 changed files with 55 additions and 0 deletions

View File

@@ -12,6 +12,19 @@
@include border-radius($list-group-border-radius);
}
// stylelint-disable selector-no-qualifying-type
ol.list-group {
list-style-type: none;
counter-reset: section;
> li::before {
// Increments only this instance of the section counter
content: counters(section, ".") ". ";
counter-increment: section;
}
}
// stylelint-enable selector-no-qualifying-type
// Interactive list items
//