From 8efba22ed34b6eeb28b5f410177e5a1545b5d798 Mon Sep 17 00:00:00 2001 From: shu Date: Tue, 28 Jul 2026 19:16:16 +0800 Subject: 用 Org GTD 工作流替换事情看板 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 注册 text/x-org 内容类型和 CodeMirror 编辑器,支持 TODO 状态流转、层级调整、子树移动与折叠。 新增 Org 文档解析、Agenda 日期分组、源任务定位、侧栏入口和响应式样式,并补充中文使用说明。 快捷键改为仅在 Org 编辑器中按配置加载,默认不绑定;无效 JSON 或键名只禁用自定义键位,不影响编辑器启动。 移除旧事情看板的字段模板、组件、样式和默认入口,统一使用 Org GTD 工作流。 --- tiddlers/plugin-org-gtd-styles.tid | 159 +++++++++++++++++++++++++++++++++++++ 1 file changed, 159 insertions(+) create mode 100644 tiddlers/plugin-org-gtd-styles.tid (limited to 'tiddlers/plugin-org-gtd-styles.tid') diff --git a/tiddlers/plugin-org-gtd-styles.tid b/tiddlers/plugin-org-gtd-styles.tid new file mode 100644 index 0000000..345a4ee --- /dev/null +++ b/tiddlers/plugin-org-gtd-styles.tid @@ -0,0 +1,159 @@ +title: $:/plugins/local/org-gtd/styles +tags: $:/tags/Stylesheet + +.tc-org-document { + --org-todo: #c74b50; + --org-next: <>; + --org-wait: #b27b2f; + --org-done: <>; +} + +.tc-org-heading { + margin: 1.15rem 0 0.45rem; + line-height: 1.35; +} + +.tc-org-heading-done { + color: <>; + text-decoration: line-through; +} + +.tc-org-state { + display: inline-block; + padding: 0.1rem 0.4rem; + font-size: 0.72rem; + font-weight: 700; + line-height: 1.25; + letter-spacing: 0.03em; + border: 1px solid currentColor; + border-radius: 0.25rem; +} + +.tc-org-state-todo { color: #c74b50; } +.tc-org-state-next { color: <>; } +.tc-org-state-wait { color: #b27b2f; } +.tc-org-state-done { color: <>; } + +.tc-org-tags { + color: <>; + font-size: 0.78em; + font-weight: 500; +} + +.tc-org-planning { + margin: 0.25rem 0 0.25rem 1rem; + color: <>; + font-family: monospace; + font-size: 0.88em; +} + +.tc-org-body-line { + margin: 0.2rem 0; + white-space: pre-wrap; +} + +.cm-org-gtd-fold-marker { + color: <>; + cursor: pointer; + font-weight: 700; +} + +.tc-org-agenda-toolbar { + display: flex; + justify-content: flex-end; + margin-bottom: 1rem; +} + +.tc-org-agenda-new { + padding: 0.45rem 0.8rem; + color: <>; + background: <>; + border-radius: 0.35rem; +} + +.tc-org-agenda-section { + margin: 0 0 1.5rem; + border-top: 2px solid <>; +} + +.tc-org-agenda-overdue { + border-top-color: #c74b50; +} + +.tc-org-agenda-today { + border-top-color: <>; +} + +.tc-org-agenda-section-title { + display: flex; + align-items: center; + gap: 0.5rem; + margin: 0; + padding: 0.6rem 0 0.45rem; + font-size: 1rem; +} + +.tc-org-agenda-count { + display: inline-flex; + align-items: center; + justify-content: center; + min-width: 1.45rem; + height: 1.45rem; + padding: 0 0.35rem; + color: <>; + background: <>; + border-radius: 999px; + font-size: 0.75rem; +} + +.tc-org-agenda-row { + display: grid; + grid-template-columns: auto minmax(8rem,1fr) auto; + align-items: center; + gap: 0.45rem 0.7rem; + padding: 0.5rem 0; + border-bottom: 1px solid <>; +} + +.tc-org-agenda-task { + min-width: 0; + color: <>; + font-weight: 600; + text-align: left; +} + +.tc-org-agenda-task:hover, +.tc-org-agenda-task:focus { + color: <>; + text-decoration: underline; +} + +.tc-org-agenda-source, +.tc-org-agenda-meta, +.tc-org-agenda-empty { + color: <>; + font-size: 0.82rem; +} + +.tc-org-agenda-meta { + grid-column: 2 / -1; +} + +.tc-org-agenda-empty { + margin: 0; + padding: 0.6rem 0; +} + +@media (max-width: 600px) { + .tc-org-agenda-row { + grid-template-columns: auto minmax(0,1fr); + } + + .tc-org-agenda-source { + grid-column: 2; + } + + .tc-org-agenda-meta { + grid-column: 2; + } +} -- cgit v1.2.3