Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Otto <markdotto@gmail.com>2021-02-12 21:51:18 +0300
committerMark Otto <otto@github.com>2021-03-11 09:04:32 +0300
commitdefce830276d04238350c2b738b1d02197c6e37d (patch)
tree4fbb1e67fb26ce66fa9a5e5c3c38aae4b0c8fb22 /scss/_list-group.scss
parent844aab4295bc929f7c38cf558fee4a80e5494d6d (diff)
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 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
//