154b79c8f1
1. 新增完整短链接工具服务,包括前端页面、后端API与数据库支持 2. 新增移动端日历提醒工具与鉴权配置 3. 优化日历事件编辑与展示: - 添加事件循环重复设置 - 新增全天事件支持 - 时间选择器自动对齐15分钟间隔 - 保存状态加载动画 - 事件卡片显示重复规则 4. 更新API基础地址与路由配置 5. 新增SSL证书文件与相关工具静态资源
907 lines
16 KiB
CSS
907 lines
16 KiB
CSS
/* ============================================
|
|
移动端日历提醒 - 暗色主题样式
|
|
对标 RN App (app_calendar_reminder)
|
|
============================================ */
|
|
|
|
:root {
|
|
--bg: #0a0a14;
|
|
--surface: #1a1a2e;
|
|
--surface-variant: #252540;
|
|
--primary: #e8b86d;
|
|
--primary-dim: rgba(232, 184, 109, 0.15);
|
|
--text: #f0f0f0;
|
|
--text-secondary: #8888aa;
|
|
--error: #ff6b6b;
|
|
--success: #4ecdc4;
|
|
--info: #5b9bd5;
|
|
--border: #2a2a44;
|
|
--radius-sm: 8px;
|
|
--radius-md: 12px;
|
|
--radius-lg: 16px;
|
|
--radius-xl: 20px;
|
|
--tab-height: 60px;
|
|
--safe-bottom: env(safe-area-inset-bottom, 0px);
|
|
}
|
|
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
-webkit-tap-highlight-color: transparent;
|
|
}
|
|
|
|
html, body {
|
|
height: 100%;
|
|
overflow: hidden;
|
|
}
|
|
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
|
|
background: var(--bg);
|
|
color: var(--text);
|
|
font-size: 15px;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
/* 主容器:max-width 480px 居中 */
|
|
.app-container {
|
|
max-width: 480px;
|
|
margin: 0 auto;
|
|
height: 100vh;
|
|
height: 100dvh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* ============================================
|
|
视图容器
|
|
============================================ */
|
|
.view {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
overflow-x: hidden;
|
|
padding: 16px;
|
|
padding-bottom: calc(var(--tab-height) + var(--safe-bottom) + 16px);
|
|
display: none;
|
|
-webkit-overflow-scrolling: touch;
|
|
}
|
|
|
|
.view.active {
|
|
display: block;
|
|
}
|
|
|
|
/* ============================================
|
|
今日视图
|
|
============================================ */
|
|
.today-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: flex-start;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.greeting {
|
|
font-size: 26px;
|
|
font-weight: 700;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.today-date {
|
|
font-size: 13px;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
/* 统计卡片 */
|
|
.stats-row {
|
|
display: flex;
|
|
gap: 10px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.stat-card {
|
|
flex: 1;
|
|
background: var(--surface);
|
|
border-radius: var(--radius-md);
|
|
padding: 14px 8px;
|
|
text-align: center;
|
|
}
|
|
|
|
.stat-number {
|
|
font-size: 24px;
|
|
font-weight: 700;
|
|
color: var(--primary);
|
|
}
|
|
|
|
.stat-label {
|
|
font-size: 12px;
|
|
color: var(--text-secondary);
|
|
margin-top: 2px;
|
|
}
|
|
|
|
.section-title {
|
|
font-size: 18px;
|
|
font-weight: 600;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
/* ============================================
|
|
事件卡片
|
|
============================================ */
|
|
.event-card {
|
|
display: flex;
|
|
align-items: center;
|
|
background: var(--surface);
|
|
border: 1px solid var(--surface-variant);
|
|
border-radius: var(--radius-lg);
|
|
padding: 14px;
|
|
margin-bottom: 10px;
|
|
transition: transform 0.1s, opacity 0.2s;
|
|
}
|
|
|
|
.event-card:active {
|
|
transform: scale(0.98);
|
|
}
|
|
|
|
.event-card.completed {
|
|
opacity: 0.55;
|
|
}
|
|
|
|
.event-checkbox {
|
|
width: 28px;
|
|
height: 28px;
|
|
min-width: 28px;
|
|
border-radius: 50%;
|
|
border: 2px solid var(--text-secondary);
|
|
margin-right: 12px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
transition: all 0.15s;
|
|
}
|
|
|
|
.event-checkbox:active {
|
|
transform: scale(0.85);
|
|
}
|
|
|
|
.event-checkbox.checked {
|
|
border-color: var(--primary);
|
|
background: var(--primary);
|
|
}
|
|
|
|
.event-checkbox.checked::after {
|
|
content: '✓';
|
|
color: var(--bg);
|
|
font-size: 16px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.event-body {
|
|
flex: 1;
|
|
min-width: 0;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.event-title {
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 2;
|
|
-webkit-box-orient: vertical;
|
|
overflow: hidden;
|
|
margin-bottom: 3px;
|
|
}
|
|
|
|
.event-card.completed .event-title,
|
|
.event-card.completed .event-content {
|
|
text-decoration: line-through;
|
|
}
|
|
|
|
.event-content {
|
|
font-size: 13px;
|
|
color: var(--text-secondary);
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 2;
|
|
-webkit-box-orient: vertical;
|
|
overflow: hidden;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.event-meta {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
font-size: 12px;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.event-meta .recurrence-label {
|
|
color: var(--primary);
|
|
}
|
|
|
|
.event-delete {
|
|
padding: 8px;
|
|
margin-left: 4px;
|
|
cursor: pointer;
|
|
color: var(--error);
|
|
font-size: 18px;
|
|
opacity: 0.7;
|
|
transition: opacity 0.15s, transform 0.1s;
|
|
}
|
|
|
|
.event-delete:active {
|
|
opacity: 1;
|
|
transform: scale(0.85);
|
|
}
|
|
|
|
/* ============================================
|
|
空状态
|
|
============================================ */
|
|
.empty-state {
|
|
text-align: center;
|
|
padding: 48px 16px;
|
|
color: var(--text-secondary);
|
|
font-size: 14px;
|
|
}
|
|
|
|
/* 加载指示器 */
|
|
.loading-indicator {
|
|
text-align: center;
|
|
padding: 40px;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.loading-indicator::after {
|
|
content: '';
|
|
display: inline-block;
|
|
width: 24px;
|
|
height: 24px;
|
|
border: 3px solid var(--border);
|
|
border-top-color: var(--primary);
|
|
border-radius: 50%;
|
|
animation: spin 0.8s linear infinite;
|
|
margin-top: 8px;
|
|
}
|
|
|
|
@keyframes spin {
|
|
to { transform: rotate(360deg); }
|
|
}
|
|
|
|
/* ============================================
|
|
日历视图
|
|
============================================ */
|
|
.calendar-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.calendar-nav-btn {
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: 50%;
|
|
background: var(--surface);
|
|
border: none;
|
|
color: var(--text);
|
|
font-size: 20px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
transition: transform 0.1s, background 0.15s;
|
|
}
|
|
|
|
.calendar-nav-btn:active {
|
|
transform: scale(0.9);
|
|
background: var(--surface-variant);
|
|
}
|
|
|
|
.calendar-month-title {
|
|
font-size: 18px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
/* 星期标题行 */
|
|
.weekday-row {
|
|
display: grid;
|
|
grid-template-columns: repeat(7, 1fr);
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.weekday-cell {
|
|
text-align: center;
|
|
font-size: 12px;
|
|
color: var(--text-secondary);
|
|
padding: 4px 0;
|
|
}
|
|
|
|
/* 日历网格 */
|
|
.calendar-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(7, 1fr);
|
|
gap: 2px;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.day-cell {
|
|
aspect-ratio: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: var(--radius-sm);
|
|
cursor: pointer;
|
|
position: relative;
|
|
transition: background 0.15s, transform 0.1s;
|
|
}
|
|
|
|
.day-cell:active {
|
|
transform: scale(0.9);
|
|
}
|
|
|
|
.day-cell.other-month {
|
|
opacity: 0.3;
|
|
}
|
|
|
|
.day-cell.today .day-number {
|
|
color: var(--primary);
|
|
font-weight: 700;
|
|
}
|
|
|
|
.day-cell.today {
|
|
background: var(--primary-dim);
|
|
}
|
|
|
|
.day-cell.selected {
|
|
border: 2px solid var(--primary);
|
|
}
|
|
|
|
.day-number {
|
|
font-size: 14px;
|
|
}
|
|
|
|
.event-dot {
|
|
width: 5px;
|
|
height: 5px;
|
|
border-radius: 50%;
|
|
background: var(--primary);
|
|
position: absolute;
|
|
bottom: 4px;
|
|
}
|
|
|
|
/* 选中日期事件区 */
|
|
.selected-date-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.selected-date-title {
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.selected-date-add {
|
|
width: 32px;
|
|
height: 32px;
|
|
border-radius: 50%;
|
|
background: var(--primary);
|
|
border: none;
|
|
color: var(--bg);
|
|
font-size: 20px;
|
|
font-weight: 700;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
transition: transform 0.1s;
|
|
}
|
|
|
|
.selected-date-add:active {
|
|
transform: scale(0.85);
|
|
}
|
|
|
|
.no-date-hint {
|
|
text-align: center;
|
|
padding: 32px;
|
|
color: var(--text-secondary);
|
|
font-size: 14px;
|
|
}
|
|
|
|
/* ============================================
|
|
FAB 浮动按钮
|
|
============================================ */
|
|
.fab {
|
|
position: fixed;
|
|
bottom: calc(var(--tab-height) + var(--safe-bottom) + 20px);
|
|
right: calc(50% - 240px + 20px);
|
|
width: 56px;
|
|
height: 56px;
|
|
border-radius: 50%;
|
|
background: var(--primary);
|
|
border: none;
|
|
color: var(--bg);
|
|
font-size: 28px;
|
|
font-weight: 700;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
box-shadow: 0 4px 16px rgba(232, 184, 109, 0.35);
|
|
transition: transform 0.15s;
|
|
z-index: 50;
|
|
}
|
|
|
|
.fab:active {
|
|
transform: scale(0.88);
|
|
}
|
|
|
|
/* 小屏幕时 FAB 靠右 */
|
|
@media (max-width: 480px) {
|
|
.fab {
|
|
right: 20px;
|
|
}
|
|
}
|
|
|
|
/* ============================================
|
|
底部 Tab 导航
|
|
============================================ */
|
|
.tab-bar {
|
|
position: fixed;
|
|
bottom: 0;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
width: 100%;
|
|
max-width: 480px;
|
|
height: calc(var(--tab-height) + var(--safe-bottom));
|
|
padding-bottom: var(--safe-bottom);
|
|
background: var(--surface);
|
|
border-top: 1px solid var(--border);
|
|
display: flex;
|
|
z-index: 100;
|
|
}
|
|
|
|
.tab-item {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 3px;
|
|
cursor: pointer;
|
|
color: var(--text-secondary);
|
|
transition: color 0.2s;
|
|
border: none;
|
|
background: none;
|
|
font-family: inherit;
|
|
}
|
|
|
|
.tab-item.active {
|
|
color: var(--primary);
|
|
}
|
|
|
|
.tab-item:active {
|
|
opacity: 0.7;
|
|
}
|
|
|
|
.tab-icon {
|
|
font-size: 22px;
|
|
}
|
|
|
|
.tab-label {
|
|
font-size: 11px;
|
|
}
|
|
|
|
/* ============================================
|
|
底部滑出弹窗(事件编辑)
|
|
============================================ */
|
|
.modal-overlay {
|
|
position: fixed;
|
|
inset: 0;
|
|
background: rgba(0, 0, 0, 0.6);
|
|
z-index: 200;
|
|
display: flex;
|
|
align-items: flex-end;
|
|
justify-content: center;
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
transition: opacity 0.25s;
|
|
}
|
|
|
|
.modal-overlay.visible {
|
|
opacity: 1;
|
|
pointer-events: auto;
|
|
}
|
|
|
|
.modal-sheet {
|
|
width: 100%;
|
|
max-width: 480px;
|
|
max-height: 88vh;
|
|
background: var(--bg);
|
|
border-radius: var(--radius-xl) var(--radius-xl) 0 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
transform: translateY(100%);
|
|
transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
|
|
}
|
|
|
|
.modal-overlay.visible .modal-sheet {
|
|
transform: translateY(0);
|
|
}
|
|
|
|
.modal-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 16px 20px;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.modal-close {
|
|
width: 32px;
|
|
height: 32px;
|
|
border: none;
|
|
background: none;
|
|
color: var(--text);
|
|
font-size: 22px;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.modal-title {
|
|
font-size: 17px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.modal-save-btn {
|
|
border: none;
|
|
background: none;
|
|
color: var(--primary);
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
padding: 6px 12px;
|
|
border-radius: var(--radius-sm);
|
|
transition: opacity 0.15s;
|
|
}
|
|
|
|
.modal-save-btn:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.modal-save-btn:active:not(:disabled) {
|
|
opacity: 0.7;
|
|
}
|
|
|
|
.modal-body {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding: 20px;
|
|
-webkit-overflow-scrolling: touch;
|
|
}
|
|
|
|
/* 表单字段 */
|
|
.form-field {
|
|
margin-bottom: 18px;
|
|
}
|
|
|
|
.form-label {
|
|
font-size: 14px;
|
|
color: var(--text);
|
|
margin-bottom: 8px;
|
|
display: block;
|
|
}
|
|
|
|
.form-input {
|
|
width: 100%;
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-md);
|
|
padding: 12px 14px;
|
|
color: var(--text);
|
|
font-size: 15px;
|
|
font-family: inherit;
|
|
outline: none;
|
|
transition: border-color 0.2s;
|
|
}
|
|
|
|
.form-input:focus {
|
|
border-color: var(--primary);
|
|
}
|
|
|
|
.form-input::placeholder {
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
textarea.form-input {
|
|
min-height: 80px;
|
|
resize: vertical;
|
|
}
|
|
|
|
/* 开关行 */
|
|
.switch-row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 18px;
|
|
}
|
|
|
|
.switch-label {
|
|
font-size: 14px;
|
|
}
|
|
|
|
/* iOS 风格开关 */
|
|
.toggle-switch {
|
|
position: relative;
|
|
width: 48px;
|
|
height: 28px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.toggle-switch input {
|
|
opacity: 0;
|
|
width: 0;
|
|
height: 0;
|
|
}
|
|
|
|
.toggle-track {
|
|
position: absolute;
|
|
inset: 0;
|
|
background: var(--border);
|
|
border-radius: 14px;
|
|
transition: background 0.2s;
|
|
}
|
|
|
|
.toggle-switch input:checked + .toggle-track {
|
|
background: var(--primary);
|
|
}
|
|
|
|
.toggle-track::after {
|
|
content: '';
|
|
position: absolute;
|
|
width: 22px;
|
|
height: 22px;
|
|
border-radius: 50%;
|
|
background: var(--text);
|
|
top: 3px;
|
|
left: 3px;
|
|
transition: transform 0.2s;
|
|
}
|
|
|
|
.toggle-switch input:checked + .toggle-track::after {
|
|
transform: translateX(20px);
|
|
}
|
|
|
|
/* 重复选项按钮组 */
|
|
.recurrence-options {
|
|
display: flex;
|
|
gap: 8px;
|
|
}
|
|
|
|
.recurrence-btn {
|
|
flex: 1;
|
|
padding: 10px 8px;
|
|
border-radius: var(--radius-sm);
|
|
border: 1px solid var(--border);
|
|
background: var(--surface);
|
|
color: var(--text-secondary);
|
|
font-size: 14px;
|
|
cursor: pointer;
|
|
transition: all 0.15s;
|
|
}
|
|
|
|
.recurrence-btn.active {
|
|
border-color: var(--primary);
|
|
background: var(--primary-dim);
|
|
color: var(--primary);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.recurrence-btn:active {
|
|
transform: scale(0.95);
|
|
}
|
|
|
|
/* 循环间隔 */
|
|
.interval-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 16px;
|
|
}
|
|
|
|
.interval-btn {
|
|
width: 36px;
|
|
height: 36px;
|
|
border-radius: 50%;
|
|
border: 1px solid var(--border);
|
|
background: var(--surface);
|
|
color: var(--text);
|
|
font-size: 20px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
transition: transform 0.1s;
|
|
}
|
|
|
|
.interval-btn:active {
|
|
transform: scale(0.85);
|
|
}
|
|
|
|
.interval-value {
|
|
font-size: 20px;
|
|
font-weight: 600;
|
|
min-width: 32px;
|
|
text-align: center;
|
|
}
|
|
|
|
/* 星期勾选按钮组 */
|
|
.weekday-options {
|
|
display: flex;
|
|
gap: 6px;
|
|
}
|
|
|
|
.weekday-btn {
|
|
width: 38px;
|
|
height: 38px;
|
|
border-radius: 50%;
|
|
border: 1px solid var(--border);
|
|
background: var(--surface);
|
|
color: var(--text-secondary);
|
|
font-size: 13px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
transition: all 0.15s;
|
|
}
|
|
|
|
.weekday-btn.active {
|
|
border-color: var(--primary);
|
|
background: var(--primary);
|
|
color: var(--bg);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.weekday-btn:active {
|
|
transform: scale(0.85);
|
|
}
|
|
|
|
/* 时间输入 */
|
|
input[type="datetime-local"].form-input {
|
|
color-scheme: dark;
|
|
}
|
|
|
|
/* 清除按钮 */
|
|
.clear-time-btn {
|
|
display: inline-block;
|
|
margin-left: 10px;
|
|
color: var(--text-secondary);
|
|
font-size: 13px;
|
|
cursor: pointer;
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.clear-time-btn:active {
|
|
color: var(--error);
|
|
}
|
|
|
|
/* ============================================
|
|
删除确认 ActionSheet
|
|
============================================ */
|
|
.action-sheet-overlay {
|
|
position: fixed;
|
|
inset: 0;
|
|
background: rgba(0, 0, 0, 0.6);
|
|
z-index: 300;
|
|
display: flex;
|
|
align-items: flex-end;
|
|
justify-content: center;
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
transition: opacity 0.2s;
|
|
}
|
|
|
|
.action-sheet-overlay.visible {
|
|
opacity: 1;
|
|
pointer-events: auto;
|
|
}
|
|
|
|
.action-sheet {
|
|
width: 100%;
|
|
max-width: 480px;
|
|
padding: 12px 16px calc(16px + var(--safe-bottom));
|
|
background: var(--surface);
|
|
border-radius: var(--radius-xl) var(--radius-xl) 0 0;
|
|
transform: translateY(100%);
|
|
transition: transform 0.25s cubic-bezier(0.32, 0.72, 0, 1);
|
|
}
|
|
|
|
.action-sheet-overlay.visible .action-sheet {
|
|
transform: translateY(0);
|
|
}
|
|
|
|
.action-sheet-title {
|
|
text-align: center;
|
|
font-size: 14px;
|
|
color: var(--text-secondary);
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.action-sheet-btn {
|
|
width: 100%;
|
|
padding: 14px;
|
|
border: none;
|
|
border-radius: var(--radius-md);
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
margin-bottom: 8px;
|
|
transition: transform 0.1s, opacity 0.15s;
|
|
}
|
|
|
|
.action-sheet-btn:active {
|
|
transform: scale(0.97);
|
|
opacity: 0.8;
|
|
}
|
|
|
|
.action-sheet-btn.danger {
|
|
background: var(--error);
|
|
color: #fff;
|
|
}
|
|
|
|
.action-sheet-btn.cancel {
|
|
background: var(--surface-variant);
|
|
color: var(--text);
|
|
}
|
|
|
|
/* ============================================
|
|
Toast 提示
|
|
============================================ */
|
|
.toast {
|
|
position: fixed;
|
|
top: 60px;
|
|
left: 50%;
|
|
transform: translateX(-50%) translateY(-20px);
|
|
padding: 10px 20px;
|
|
border-radius: var(--radius-md);
|
|
font-size: 14px;
|
|
color: #fff;
|
|
z-index: 999;
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
transition: opacity 0.25s, transform 0.25s;
|
|
max-width: 90%;
|
|
text-align: center;
|
|
}
|
|
|
|
.toast.visible {
|
|
opacity: 1;
|
|
transform: translateX(-50%) translateY(0);
|
|
}
|
|
|
|
.toast.success {
|
|
background: var(--success);
|
|
}
|
|
|
|
.toast.error {
|
|
background: var(--error);
|
|
}
|
|
|
|
.toast.info {
|
|
background: var(--info);
|
|
}
|
|
|
|
/* ============================================
|
|
隐藏字段(全天时隐藏时间选择等)
|
|
============================================ */
|
|
.hidden {
|
|
display: none !important;
|
|
}
|