diff options
author | Mark Otto <markdotto@gmail.com> | 2021-02-12 21:51:18 +0300 |
---|---|---|
committer | Mark Otto <otto@github.com> | 2021-03-11 09:04:32 +0300 |
commit | defce830276d04238350c2b738b1d02197c6e37d (patch) | |
tree | 4fbb1e67fb26ce66fa9a5e5c3c38aae4b0c8fb22 /scss/_list-group.scss | |
parent | 844aab4295bc929f7c38cf558fee4a80e5494d6d (diff) |
Add ol.list-group with psuedo-element numbers
Diffstat (limited to 'scss/_list-group.scss')
-rw-r--r-- | scss/_list-group.scss | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/scss/_list-group.scss b/scss/_list-group.scss index 7e23b8e0c0..ecacb05f28 100644 --- a/scss/_list-group.scss +++ b/scss/_list-group.scss @@ -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 // |