aboutsummaryrefslogtreecommitdiff
path: root/scss/_list-group.scss
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2021-02-12 10:51:18 -0800
committerMark Otto <[email protected]>2021-03-10 22:04:32 -0800
commitdefce830276d04238350c2b738b1d02197c6e37d (patch)
tree4fbb1e67fb26ce66fa9a5e5c3c38aae4b0c8fb22 /scss/_list-group.scss
parent844aab4295bc929f7c38cf558fee4a80e5494d6d (diff)
downloadbootstrap-defce830276d04238350c2b738b1d02197c6e37d.tar.xz
bootstrap-defce830276d04238350c2b738b1d02197c6e37d.zip
Add ol.list-group with psuedo-element numbers
Diffstat (limited to 'scss/_list-group.scss')
-rw-r--r--scss/_list-group.scss13
1 files changed, 13 insertions, 0 deletions
diff --git a/scss/_list-group.scss b/scss/_list-group.scss
index 7e23b8e0c..ecacb05f2 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
//