mirror of
https://github.com/maigamo/Daily-Task-Auto-Generator.git
synced 2026-07-22 12:40:26 +00:00
228 lines
No EOL
4.9 KiB
CSS
228 lines
No EOL
4.9 KiB
CSS
/* 任务统计样式 */
|
|
.daily-task-statistics {
|
|
margin-top: 10px;
|
|
margin-bottom: 20px;
|
|
padding: 15px;
|
|
border-radius: 8px;
|
|
background-color: rgba(var(--interactive-accent-rgb), 0.1);
|
|
border-left: 4px solid var(--interactive-accent);
|
|
}
|
|
|
|
.daily-task-statistics h3 {
|
|
margin-top: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
font-size: 1.1em;
|
|
color: var(--text-accent);
|
|
}
|
|
|
|
.daily-task-statistics h4 {
|
|
margin-top: 12px;
|
|
margin-bottom: 8px;
|
|
font-size: 0.95em;
|
|
color: var(--text-accent);
|
|
}
|
|
|
|
/* 提示建议样式 */
|
|
.daily-task-suggestions {
|
|
padding: 10px 15px;
|
|
border-radius: 6px;
|
|
background-color: rgba(var(--background-modifier-success-rgb), 0.1);
|
|
margin-top: 10px;
|
|
}
|
|
|
|
/* 任务统计开关样式 */
|
|
.task-statistics-toggle {
|
|
position: relative;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.task-statistics-toggle:hover {
|
|
transform: scale(1.05);
|
|
}
|
|
|
|
.task-statistics-toggle.is-enabled {
|
|
background-color: var(--interactive-accent) !important;
|
|
}
|
|
|
|
/* 自定义滚动条样式 */
|
|
.daily-task-setting-tab ::-webkit-scrollbar {
|
|
width: 8px; /* 设置滚动条宽度 */
|
|
}
|
|
|
|
.daily-task-setting-tab ::-webkit-scrollbar-track {
|
|
background: var(--background-secondary); /* 设置轨道背景 */
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.daily-task-setting-tab ::-webkit-scrollbar-thumb {
|
|
background: var(--interactive-accent); /* 设置滑块颜色 */
|
|
border-radius: 4px;
|
|
opacity: 0.7;
|
|
transition: background 0.2s ease;
|
|
}
|
|
|
|
.daily-task-setting-tab ::-webkit-scrollbar-thumb:hover {
|
|
background: var(--interactive-accent-hover); /* 滑块悬停颜色 */
|
|
opacity: 1;
|
|
}
|
|
|
|
/* 应用滚动条样式到所有可滚动元素 */
|
|
.daily-task-slim-scrollbar {
|
|
scrollbar-width: thin;
|
|
}
|
|
|
|
.daily-task-slim-scrollbar::-webkit-scrollbar {
|
|
width: 8px;
|
|
}
|
|
|
|
.daily-task-slim-scrollbar::-webkit-scrollbar-track {
|
|
background: var(--background-secondary);
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.daily-task-slim-scrollbar::-webkit-scrollbar-thumb {
|
|
background: var(--interactive-accent);
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.daily-task-slim-scrollbar::-webkit-scrollbar-thumb:hover {
|
|
background: var(--interactive-accent-hover);
|
|
}
|
|
|
|
/* 设置组件样式 */
|
|
.daily-task-settings-section {
|
|
margin-top: 24px;
|
|
margin-bottom: 24px;
|
|
padding: 12px 0;
|
|
border-top: 1px solid var(--background-modifier-border);
|
|
}
|
|
|
|
.daily-task-button {
|
|
margin-top: 6px;
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.daily-task-preview-button, .daily-task-reset-button {
|
|
display: inline-block;
|
|
text-align: center !important;
|
|
width: 100%;
|
|
}
|
|
|
|
.daily-task-editor {
|
|
height: 200px;
|
|
margin-top: 12px;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.daily-task-vertical-stack {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.daily-task-text-right {
|
|
text-align: right;
|
|
}
|
|
|
|
.daily-task-text-center {
|
|
text-align: center !important;
|
|
}
|
|
|
|
.daily-task-slim-scrollbar .CodeMirror-vscrollbar {
|
|
width: 20% !important;
|
|
}
|
|
|
|
/* 输入框样式 */
|
|
.daily-task-input {
|
|
width: 100%;
|
|
border-radius: 4px;
|
|
padding: 8px 35px 8px 10px;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
/* 保存指示器样式 */
|
|
.daily-task-save-indicator {
|
|
position: absolute;
|
|
right: 10px;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
opacity: 0;
|
|
transition: opacity 0.3s ease;
|
|
}
|
|
|
|
/* 成功图标样式 */
|
|
.daily-task-success-icon {
|
|
color: #4CAF50;
|
|
width: 18px;
|
|
height: 18px;
|
|
}
|
|
|
|
/* 设置页面顶部间距 */
|
|
.daily-task-setting-top-space {
|
|
margin-top: 30px;
|
|
}
|
|
|
|
/* 输入容器样式 */
|
|
.daily-task-input-container {
|
|
display: flex;
|
|
width: 100%;
|
|
position: relative;
|
|
}
|
|
|
|
/* 通知样式 - 使用与Obsidian一致的原生样式 */
|
|
.notice-success, .notice-warning, .notice-error {
|
|
margin-top: 8px;
|
|
padding: 8px 10px;
|
|
border-radius: 4px;
|
|
font-size: 14px;
|
|
line-height: 1.4;
|
|
display: flex;
|
|
align-items: center;
|
|
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
|
|
animation: fadeInUp 0.3s ease forwards;
|
|
}
|
|
|
|
/* 成功通知 - 绿色 */
|
|
.notice-success {
|
|
background-color: var(--background-modifier-success);
|
|
color: var(--text-normal);
|
|
border-left: 3px solid var(--color-green);
|
|
}
|
|
|
|
/* 警告通知 - 黄色 */
|
|
.notice-warning {
|
|
background-color: var(--background-modifier-warning);
|
|
color: var(--text-normal);
|
|
border-left: 3px solid var(--color-yellow);
|
|
}
|
|
|
|
/* 错误通知 - 红色 */
|
|
.notice-error {
|
|
background-color: var(--background-modifier-error);
|
|
color: var(--text-normal);
|
|
border-left: 3px solid var(--color-red);
|
|
}
|
|
|
|
/* 通知动画 */
|
|
@keyframes fadeInUp {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(10px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
/* 移动设备上的通知样式优化 */
|
|
@media screen and (max-width: 768px) {
|
|
.notice-success, .notice-warning, .notice-error {
|
|
width: calc(100% - 20px);
|
|
max-width: 100%;
|
|
margin: 8px auto;
|
|
padding: 8px 12px;
|
|
border-radius: 4px;
|
|
font-size: 13px;
|
|
}
|
|
} |