Compare commits
4 commits
main
...
patrickhla
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1bc2bff1bf | ||
|
|
35b6242a85 | ||
|
|
020a8c4336 | ||
|
|
6f9d8d7080 |
2 changed files with 18 additions and 1 deletions
|
|
@ -83,6 +83,12 @@
|
|||
border-top-width: $list-group-border-width;
|
||||
}
|
||||
}
|
||||
|
||||
// Explicit override to allow numbers to show when using an <ol>
|
||||
ol > & {
|
||||
display: list-item;
|
||||
list-style-position: inside;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -20,6 +20,18 @@ The most basic list group is an unordered list with list items and the proper cl
|
|||
</ul>
|
||||
{{< /example >}}
|
||||
|
||||
When the `.list-group` class is applied to an `<ol>` ordered list, list item numbers are also shown.
|
||||
|
||||
{{< example >}}
|
||||
<ol class="list-group">
|
||||
<li class="list-group-item">Cras justo odio</li>
|
||||
<li class="list-group-item">Dapibus ac facilisis in</li>
|
||||
<li class="list-group-item">Morbi leo risus</li>
|
||||
<li class="list-group-item">Porta ac consectetur ac</li>
|
||||
<li class="list-group-item">Vestibulum at eros</li>
|
||||
</ol>
|
||||
{{< /example >}}
|
||||
|
||||
## Active items
|
||||
|
||||
Add `.active` to a `.list-group-item` to indicate the current active selection.
|
||||
|
|
@ -254,7 +266,6 @@ And if you want `<label>`s as the `.list-group-item` for large hit areas, you ca
|
|||
</div>
|
||||
{{< /example >}}
|
||||
|
||||
|
||||
## JavaScript behavior
|
||||
|
||||
Use the tab JavaScript plugin—include it individually or through the compiled `bootstrap.js` file—to extend our list group to create tabbable panes of local content.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue