feat: enhanced API and interface

This commit is contained in:
2026-01-01 19:41:01 +08:00
parent e657fd1be5
commit 0417b856f3
6 changed files with 557 additions and 60 deletions

View File

@@ -99,9 +99,179 @@ input[type='date'] {
display: none;
}
#time-comment {
.comment {
font-size: 11px;
color: #777;
margin-top: 25px;
margin-bottom: 0;
}
.comment>a {
color: inherit;
text-decoration: inherit;
}
.comment>a::after {
position: absolute;
width: 100%;
transform: scaleX(0);
height: 2px;
bottom: 0;
left: 0;
color: inherit;
transform-origin: bottom right;
transition: transform 0.25s ease-in-out;
}
.comment>a:hover {
text-decoration: underline;
}
.comment>a:hover::after {
transform: scaleX(1);
transform-origin: bottom left;
}
dialog {
border: none;
border-radius: 12px;
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
padding: 0;
width: 60%;
max-width: 400px;
animation: fadeIn 0.3s ease-out;
}
dialog::backdrop {
background: rgba(0, 0, 0, 0.4);
backdrop-filter: blur(2px);
}
.dialog-content {
padding: 20px;
display: flex;
flex-direction: column;
gap: 15px;
width: 80%;
justify-self: center;
justify-content: center;
margin-left: auto;
margin-right: auto;
}
.dialog-content h3 {
margin: 0;
color: #333;
font-size: 1.2em;
}
input[type='date'][id='date-picker-input'] {
padding: 10px;
border: 1px solid #ddd;
border-radius: 6px;
font-size: 16px;
outline: none;
font-family: inherit;
margin-left: auto;
margin-right: auto;
width: 85%;
}
input[type='date']:focus {
border-color: #ff69b4;
}
.dialog-actions {
display: flex;
justify-content: flex-end;
gap: 10px;
}
button.confirm-btn,
button.cancel-btn {
padding: 8px 16px;
border-radius: 6px;
border: none;
cursor: pointer;
font-size: 0.9em;
transition: background 0.2s;
}
button.confirm-btn {
background-color: #ff69b4;
color: white;
}
button.confirm-btn:hover {
background-color: #e0559a;
}
button.cancel-btn {
background-color: #f0f0f0;
color: #555;
}
button.cancel-btn:hover {
background-color: #e0e0e0;
}
.nav-btn {
background: none;
border: none;
cursor: pointer;
color: #555;
padding: 10px;
border-radius: 50%;
transition: background-color 0.2s, color 0.2s;
display: flex;
align-items: center;
justify-content: center;
}
.nav-btn:hover {
background-color: #ffe6f2;
color: #ff69b4;
}
.date-controls {
display: flex;
justify-content: center;
align-items: center;
gap: 20px;
margin-bottom: 20px;
}
#current-date {
margin-bottom: 0;
cursor: pointer;
padding: 5px 15px;
border-radius: 20px;
transition: background-color 0.2s;
font-weight: bold;
user-select: none;
font-size: 100%;
}
#current-date:hover {
background-color: #f0f0f0;
color: #ff69b4;
}
/* #current-date::after {
content: ' 📅';
font-size: 0.8em;
opacity: 0.5;
} */
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(-20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}