164 lines
2.9 KiB
CSS
164 lines
2.9 KiB
CSS
.event-draft-card-container {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
z-index: 2000;
|
|
display: flex;
|
|
justify-content: center;
|
|
padding: 16px;
|
|
pointer-events: none;
|
|
transform: translateY(-100%);
|
|
transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
|
|
padding-top: 0;
|
|
width: 100%;
|
|
}
|
|
|
|
.event-draft-card-container.visible {
|
|
transform: translateY(0);
|
|
pointer-events: auto;
|
|
}
|
|
|
|
.event-draft-card-container.closing {
|
|
transform: translateY(-100%);
|
|
}
|
|
|
|
@keyframes cardDisappear {
|
|
0% {
|
|
opacity: 1;
|
|
transform: translateY(0) scale(1);
|
|
}
|
|
100% {
|
|
opacity: 0;
|
|
transform: translateY(-20px) scale(0.95);
|
|
}
|
|
}
|
|
|
|
.event-draft-card {
|
|
background-color: #ffffff;
|
|
border-radius: 20px;
|
|
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 0 6px 12px rgba(0, 0, 0, 0.15);
|
|
width: 100%;
|
|
max-width: 100%;
|
|
padding: 24px;
|
|
position: relative;
|
|
margin: 0 16px;
|
|
transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
|
|
}
|
|
|
|
.event-draft-card-container.closing .event-draft-card {
|
|
animation: cardDisappear 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
|
|
}
|
|
|
|
.draft-close-button {
|
|
position: absolute;
|
|
top: 12px;
|
|
right: 12px;
|
|
background: none;
|
|
border: none;
|
|
font-size: 22px;
|
|
cursor: pointer;
|
|
color: #666;
|
|
width: 32px;
|
|
height: 32px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: 50%;
|
|
transition: background-color 0.2s;
|
|
}
|
|
|
|
.draft-close-button:hover {
|
|
background-color: #f0f0f0;
|
|
color: #000;
|
|
}
|
|
|
|
.draft-card-content {
|
|
width: 100%;
|
|
}
|
|
|
|
.draft-title {
|
|
font-size: 22px;
|
|
font-weight: 600;
|
|
margin: 0 0 16px 0;
|
|
line-height: 1.2;
|
|
color: #000000;
|
|
}
|
|
|
|
.draft-description {
|
|
font-size: 16px;
|
|
line-height: 1.4;
|
|
margin-bottom: 20px;
|
|
color: #333;
|
|
white-space: pre-line;
|
|
}
|
|
|
|
.draft-details {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
margin-bottom: 24px;
|
|
font-size: 15px;
|
|
}
|
|
|
|
.draft-time {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
color: #555;
|
|
}
|
|
|
|
.draft-label {
|
|
font-weight: 600;
|
|
margin-right: 6px;
|
|
min-width: 60px;
|
|
display: inline-block;
|
|
}
|
|
|
|
.draft-all-day {
|
|
display: inline-block;
|
|
background-color: #F2ADAD;
|
|
color: #000;
|
|
padding: 4px 12px;
|
|
border-radius: 6px;
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
margin-top: 6px;
|
|
width: fit-content;
|
|
}
|
|
|
|
.draft-actions {
|
|
display: flex;
|
|
gap: 16px;
|
|
width: 100%;
|
|
}
|
|
|
|
.draft-save-button, .draft-edit-button {
|
|
padding: 12px 20px;
|
|
border-radius: 10px;
|
|
font-size: 16px;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: background-color 0.2s, transform 0.2s;
|
|
flex: 1;
|
|
border: none;
|
|
}
|
|
|
|
.draft-save-button {
|
|
background-color: #F2ADAD;
|
|
color: #000000;
|
|
}
|
|
|
|
.draft-save-button:hover {
|
|
background-color: #f09e9e;
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.draft-edit-button {
|
|
background-color: #e8f0fe;
|
|
color: #1a73e8;
|
|
}
|
|
|
|
.draft-edit-button:hover {
|
|
background-color: #d2e3fc;
|
|
transform: translateY(-1px);
|
|
} |