storybookdesignpack
Version:
React components library project for censa Design System
60 lines (49 loc) • 1.14 kB
CSS
.Collapsible-wrapper {
position: relative;
z-index: 600;
}
.Collapsible-wrapper--overlay {
margin-right: 40px;
}
.Collapsible {
display: inline-flex;
flex-direction: column;
background-color: var(--secondary-lightest);
width: var(--spacing-4);
height: 100%;
transition: width 240ms;
transition-timing-function: cubic-bezier(0.4, 0.14, 0.3, 1);
}
.Collapsible--overlay {
position: absolute;
}
.Collapsible--shadow {
box-shadow: var(--shadow-l);
clip-path: inset(0px -16px 0px 0px);
}
.Collapsible-body {
flex-grow: 1;
overflow-y: auto;
overflow-x: hidden;
}
.Collapsible-footer {
padding-top: var(--spacing-m);
padding-bottom: var(--spacing-m);
box-sizing: border-box;
cursor: pointer;
display: flex;
}
.Collapsible-footer:hover {
background-color: var(--secondary-lighter);
}
.Collapsible-footer:focus,
.Collapsible-footer:focus-visible {
outline: none;
box-shadow: var(--shadow-spread) var(--secondary-shadow);
}
.Collapsible-footer:active {
background-color: var(--secondary-light);
}
.Collapsible-footer--seperator {
border-top: var(--spacing-xs) solid var(--secondary-light);
}