mirror of
https://github.com/papercss/papercss
synced 2024-05-06 15:56:42 +02:00
ensure that collapsible style does not affect inputs and labels inside collapsible-body
This commit is contained in:
parent
7e02a85c28
commit
df96751517
10
dist/paper.css
vendored
10
dist/paper.css
vendored
|
@ -1320,20 +1320,20 @@ table.table-alternating tbody tr:nth-of-type(even) {
|
|||
overflow: hidden;
|
||||
padding: 0 0.75rem;
|
||||
}
|
||||
.collapsible input {
|
||||
.collapsible > input {
|
||||
display: none;
|
||||
}
|
||||
.collapsible input:checked + label {
|
||||
.collapsible > input:checked + label {
|
||||
color: #41403e;
|
||||
color: var(--primary);
|
||||
}
|
||||
.collapsible input[id^=collapsible]:checked ~ div.collapsible-body {
|
||||
.collapsible > input[id^=collapsible]:checked ~ div.collapsible-body {
|
||||
margin: 0;
|
||||
max-height: 960px;
|
||||
opacity: 1;
|
||||
padding: 0.75rem;
|
||||
}
|
||||
.collapsible label {
|
||||
.collapsible > label {
|
||||
color: #41403e;
|
||||
color: var(--primary);
|
||||
border-bottom-color: #41403e;
|
||||
|
@ -1346,7 +1346,7 @@ table.table-alternating tbody tr:nth-of-type(even) {
|
|||
padding: 0.75rem;
|
||||
text-align: center;
|
||||
}
|
||||
.collapsible label:hover {
|
||||
.collapsible > label:hover {
|
||||
color: #41403e;
|
||||
color: var(--muted);
|
||||
cursor: pointer;
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
padding: 0 0.75rem;
|
||||
}
|
||||
|
||||
input {
|
||||
> input {
|
||||
display: none;
|
||||
|
||||
&:checked + label {
|
||||
|
@ -36,7 +36,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
label {
|
||||
> label {
|
||||
@include color('color', 'primary');
|
||||
@include color('border-bottom-color', 'muted-light');
|
||||
border-bottom-style: solid;
|
||||
|
|
Loading…
Reference in a new issue