0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-12-05 17:24:20 +01:00
Bootstrap/site/content/docs/5.1/examples/list-groups/list-groups.css
Julien Déramond 520cc8de92
Docs: group together reusable CSS for examples in a single stylesheet (#35649)
* Docs: group together examples reusable CSS in a stylesheet

* Use pointer-events utility in sidebars example

* Remove @import and move the content into _default/examples.html. Handle 2 sorts of dividers

* Remove footers.css extra css declaration

* Fix modals example

* Review: remove .b-example-hr

Co-authored-by: Gaël Poupard <ffoodd@users.noreply.github.com>
2022-01-19 13:27:57 +02:00

49 lines
940 B
CSS

.opacity-50 { opacity: .5; }
.opacity-75 { opacity: .75; }
.list-group {
width: auto;
max-width: 460px;
margin: 4rem auto;
}
.form-check-input:checked + .form-checked-content {
opacity: .5;
}
.form-check-input-placeholder {
pointer-events: none;
border-style: dashed;
}
[contenteditable]:focus {
outline: 0;
}
.list-group-checkable {
display: grid;
gap: .5rem;
border: 0;
}
.list-group-checkable .list-group-item {
cursor: pointer;
border-radius: .5rem;
}
.list-group-item-check {
position: absolute;
clip: rect(0, 0, 0, 0);
pointer-events: none;
}
.list-group-item-check:hover + .list-group-item {
background-color: var(--bs-light);
}
.list-group-item-check:checked + .list-group-item {
color: #fff;
background-color: var(--bs-blue);
}
.list-group-item-check[disabled] + .list-group-item,
.list-group-item-check:disabled + .list-group-item {
pointer-events: none;
filter: none;
opacity: .5;
}