mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-14 18:42:30 +03:00
Add ol.list-group with psuedo-element numbers
This commit is contained in:
@@ -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
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user