:root {
--button: #4a4aaf;
--button-danger: #e61364;
--button-secondary: #efefef;
--button-secondary-text: #929292;
--separator-color: #f0f0f0;
}
.slideout-bg {
display: none;
position: fixed;
height: 100%;
width: 100%;
top: 0;
left: 0;
background-color: rgba(0, 0, 0, 0.3);
z-index: 99999;
justify-content: flex-end;
align-items: stretch;
.slideout-panel {
position: relative;
width: 66.67vw;
max-width: 90vw;
height: 100vh;
background: white;
box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
transform: translateX(100%);
transition: transform 0.3s ease-in-out;
display: flex;
flex-direction: column;
&.slide-in {
transform: translateX(0);
}
&.slide-out {
transform: translateX(100%);
}
.slideout-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px;
border-bottom: 1px solid var(--separator-color);
h2 {
margin: 0;
font-size: 1.2rem;
font-weight: 600;
color: #333;
}
.slideout-close {
background: none;
border: none;
font-size: 24px;
cursor: pointer;
color: #999;
padding: 0;
width: 30px;
height: 30px;
display: flex;
align-items: center;
justify-content: center;
&:hover {
color: #333;
}
}
}
.slideout-body {
flex: 1;
padding: 20px;
overflow-y: auto;
.slideout-form-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 20px;
align-items: start;
.slideout-column-left,
.slideout-column-right {
display: flex;
flex-direction: column;
gap: 15px;
}
}
.slideout-form-line {
.slideout-form-line-title {
font-size: 14px;
font-weight: 600;
color: #333;
margin-bottom: 6px;
display: flex;
align-items: center;
cursor: pointer;
input[type='checkbox'] {
margin-right: 8px;
flex-shrink: 0;
}
}
}
input,
textarea,
select {
width: 100%;
margin: 0;
padding: 8px 12px;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 14px;
transition: border-color 0.2s ease;
&:focus {
outline: none;
border-color: var(--button);
box-shadow: 0 0 0 2px rgba(74, 170, 175, 0.1);
}
}
input,
select {
height: 40px;
}
textarea {
min-height: 80px;
resize: vertical;
}
input[type='radio'],
input[type='checkbox'] {
width: 1rem;
height: 1rem;
}
}
.slideout-footer {
display: flex;
justify-content: flex-end;
gap: 10px;
padding: 20px;
border-top: 1px solid var(--separator-color);
button {
min-width: 110px;
padding: 12px 0;
border: none;
font-size: 14px;
cursor: pointer;
transition: background 0.2s;
&.slideout-cancel {
color: var(--button-secondary-text);
background: var(--button-secondary);
}
&.slideout-confirm {
color: #fff;
background: var(--button);
}
}
}
}
}
@media only screen and (max-width: 1200px) {
.slideout-bg {
.slideout-panel {
width: 80vw;
max-width: 80vw;
}
}
}
@media only screen and (max-width: 768px) {
.slideout-bg {
.slideout-panel {
width: 100vw;
max-width: 100vw;
}
.slideout-form-grid {
grid-template-columns: 1fr;
gap: 15px;
.slideout-column-left,
.slideout-column-right {
gap: 10px;
}
}
}
}