@qvant/qui-max
Version:
A Vue 3 Design system for Web.
92 lines (91 loc) • 2.34 kB
CSS
.q-drawer-container {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 1;
width: 100%;
height: 100%;
background-color: rgb(var(--color-rgb-white)/72%);
}
.q-drawer-container__clickable-shadow {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgb(var(--color-rgb-white)/70%);
}
.q-drawer-container__wrapper {
position: absolute;
top: 0;
z-index: 1;
display: flex;
flex-direction: column;
min-width: 100px;
height: 100%;
text-align: left;
background-color: var(--color-tertiary-gray-ultra-light);
outline: none;
box-shadow: -1px -1px 3px rgb(var(--color-rgb-blue)/40%), 1px 1px 3px rgb(var(--color-rgb-white)/25%);
}
.q-drawer-container__wrapper_left {
left: 0;
box-shadow: 1px 1px 3px rgb(var(--color-rgb-blue)/40%), -1px -1px 3px rgb(var(--color-rgb-white)/25%);
}
.q-drawer-container__wrapper_right {
right: 0;
}
.q-drawer-container.q-fade-enter-active .q-drawer-container__wrapper, .q-drawer-container.q-fade-leave-active .q-drawer-container__wrapper {
transition: transform 0.25s var(--transition-spline-base);
}
.q-drawer-container.q-fade-enter-from .q-drawer-container__wrapper_right, .q-drawer-container.q-fade-leave-to .q-drawer-container__wrapper_right {
transform: translateX(100%);
}
.q-drawer-container.q-fade-enter-from .q-drawer-container__wrapper_left, .q-drawer-container.q-fade-leave-to .q-drawer-container__wrapper_left {
transform: translateX(-100%);
}
.q-drawer-container__content {
width: 100%;
height: 100%;
}
.q-drawer-content {
position: relative;
display: flex;
flex-direction: column;
height: 100%;
padding-top: 24px;
}
.q-drawer-content__title {
margin-right: 56px;
margin-bottom: 32px;
margin-left: 24px;
font-size: 20px;
font-weight: 800;
line-height: 25px;
color: var(--color-primary-black);
word-break: break-word;
}
.q-drawer-content__close {
position: absolute;
top: 16px;
right: 16px;
z-index: 2;
padding: 0;
font-size: 32px;
color: var(--color-primary-blue);
background-color: transparent;
border: none;
}
.q-drawer-content__close:hover, .q-drawer-content__close.focus-visible {
color: var(--color-primary-black);
}
.q-drawer-content__view {
display: flex;
}
.q-drawer-content__body {
flex: 1;
padding-right: 24px;
padding-left: 24px;
}