mirror of
https://github.com/papercss/papercss
synced 2024-06-26 09:20:15 +02:00
52 lines
1.3 KiB
Plaintext
52 lines
1.3 KiB
Plaintext
@import './colors.less';
|
|
|
|
.collapsible {
|
|
display: flex;
|
|
flex-direction: column;
|
|
&:nth-of-type(1) {
|
|
border-top: 1px solid @muted-light;
|
|
}
|
|
|
|
.collapsible-body {
|
|
max-height: 0px;
|
|
opacity: 0;
|
|
overflow: hidden;
|
|
padding: 0rem 0.75rem;
|
|
margin:0;
|
|
background-color: lighten(@white-dark,80%);
|
|
border-bottom: 1px solid @muted-light;
|
|
transition: max-height 0.25s ease, padding 0.25s ease, opacity 0.25s ease;
|
|
-webkit-transition: max-height 0.25s ease, padding 0.25s ease, opacity 0.25s ease;
|
|
-o-transition: max-height 0.25s ease, padding 0.25s ease, opacity 0.25s ease;
|
|
-moz-transition: max-height 0.25s ease, padding 0.25s ease, opacity 0.25s ease;
|
|
}
|
|
|
|
input {
|
|
display: none;
|
|
}
|
|
|
|
label {
|
|
display: inline-block;
|
|
margin: 0 0 -1px;
|
|
padding: 0.75rem 0.75rem;
|
|
font-weight: 600;
|
|
text-align: center;
|
|
color: @primary;
|
|
border-bottom: 1px solid @muted-light;
|
|
}
|
|
|
|
label:hover {
|
|
color: @muted;
|
|
cursor: pointer;
|
|
}
|
|
input:checked+label {
|
|
color: @primary;
|
|
}
|
|
input[id ^="collapsible"]:checked ~ div.collapsible-body {
|
|
opacity: 1;
|
|
max-height: 960px;
|
|
padding: 0.75rem 0.75rem;
|
|
margin: 0;
|
|
}
|
|
}
|