mirror of
https://bitbucket.org/bellord13/kit.git
synced 2026-11-13 19:06:11 +03:00
122 lines
3.3 KiB
CSS
122 lines
3.3 KiB
CSS
.collapse:not(.show) {
|
|
display: none;
|
|
}
|
|
|
|
.collapsing {
|
|
height: 0;
|
|
overflow: hidden;
|
|
transition: height 0.35s ease;
|
|
}
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.collapsing {
|
|
/*transition: none;*/
|
|
}
|
|
}
|
|
.accordion-button {
|
|
position: relative;
|
|
display: flex;
|
|
align-items: center;
|
|
width: 100%;
|
|
padding: 1rem 1.25rem;
|
|
font-size: 1rem;
|
|
color: #212529;
|
|
text-align: left;
|
|
background-color: #fff;
|
|
border: 0;
|
|
border-radius: 0;
|
|
overflow-anchor: none;
|
|
transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, border-radius 0.15s ease;
|
|
}
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.accordion-button {
|
|
/*transition: none;*/
|
|
}
|
|
}
|
|
.accordion-button:not(.collapsed) {
|
|
color: #0c63e4;
|
|
background-color: #e7f1ff;
|
|
box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.125);
|
|
}
|
|
.accordion-button:not(.collapsed)::after {
|
|
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230c63e4'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
|
|
transform: rotate(-180deg);
|
|
}
|
|
.accordion-button::after {
|
|
flex-shrink: 0;
|
|
width: 1.25rem;
|
|
height: 1.25rem;
|
|
margin-left: auto;
|
|
content: "";
|
|
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
|
|
background-repeat: no-repeat;
|
|
background-size: 1.25rem;
|
|
transition: transform 0.2s ease-in-out;
|
|
}
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.accordion-button::after {
|
|
/*transition: none;*/
|
|
}
|
|
}
|
|
.accordion-button:hover {
|
|
z-index: 2;
|
|
}
|
|
.accordion-button:focus {
|
|
z-index: 3;
|
|
border-color: #86b7fe;
|
|
outline: 0;
|
|
box-shadow: none;
|
|
}
|
|
|
|
.accordion-header {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.accordion-item {
|
|
background-color: #fff;
|
|
border: 1px solid rgba(0, 0, 0, 0.125);
|
|
}
|
|
.accordion-item:first-of-type {
|
|
border-top-left-radius: 0.25rem;
|
|
border-top-right-radius: 0.25rem;
|
|
}
|
|
.accordion-item:first-of-type .accordion-button {
|
|
border-top-left-radius: calc(0.25rem - 1px);
|
|
border-top-right-radius: calc(0.25rem - 1px);
|
|
}
|
|
.accordion-item:not(:first-of-type) {
|
|
border-top: 0;
|
|
}
|
|
.accordion-item:last-of-type {
|
|
border-bottom-right-radius: 0.25rem;
|
|
border-bottom-left-radius: 0.25rem;
|
|
}
|
|
.accordion-item:last-of-type .accordion-button.collapsed {
|
|
border-bottom-right-radius: calc(0.25rem - 1px);
|
|
border-bottom-left-radius: calc(0.25rem - 1px);
|
|
}
|
|
.accordion-item:last-of-type .accordion-collapse {
|
|
border-bottom-right-radius: 0.25rem;
|
|
border-bottom-left-radius: 0.25rem;
|
|
}
|
|
|
|
.accordion-body {
|
|
padding: 1rem 1.25rem;
|
|
}
|
|
|
|
.accordion-flush .accordion-collapse {
|
|
border-width: 0;
|
|
}
|
|
.accordion-flush .accordion-item {
|
|
border-right: 0;
|
|
border-left: 0;
|
|
border-radius: 0;
|
|
}
|
|
.accordion-flush .accordion-item:first-child {
|
|
border-top: 0;
|
|
}
|
|
.accordion-flush .accordion-item:last-child {
|
|
border-bottom: 0;
|
|
}
|
|
.accordion-flush .accordion-item .accordion-button {
|
|
border-radius: 0;
|
|
} |