From 2b408658e66d4c55e21c09278ec5a9b05f71e3b0 Mon Sep 17 00:00:00 2001 From: Chris McCormick Date: Thu, 1 Jan 2026 17:12:54 +0800 Subject: [PATCH] Move card to different project modal. --- index.html | 362 +++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 354 insertions(+), 8 deletions(-) diff --git a/index.html b/index.html index 227b384..7b3ada4 100644 --- a/index.html +++ b/index.html @@ -178,6 +178,9 @@ word-wrap: break-word; position: relative; flex-shrink: 0; + display: flex; + align-items: flex-start; + gap: 0.5em; } .card:hover { @@ -198,19 +201,77 @@ border: .1rem dashed var(--fg); } - .card-checkbox { - float: right; + .card-text { + flex-grow: 1; + } + + .card-menu-btn { + width: 1.5em; + height: 1.5em; + padding: 0; + background: transparent; + border: none; + color: var(--shade); + cursor: pointer; + font-size: 1.2em; + line-height: 1; + flex-shrink: 0; + display: flex; + align-items: center; + justify-content: center; + } + + .card-menu-btn:hover { + color: var(--fg); + opacity: 1; + } + + .card-menu { + position: absolute; + right: 0; + top: 2em; + background: var(--bg); + border: .1rem solid var(--fg); + border-radius: var(--radius); + padding: 0.5em 0; + min-width: 150px; + z-index: 100; + display: none; + } + + .card-menu.active { + display: block; + } + + .card-menu-item { + padding: 0.5em 1em; + cursor: pointer; + display: flex; + align-items: center; + gap: 0.5em; + background: transparent; + border: none; + color: var(--fg); + width: 100%; + text-align: left; + font-size: 0.9rem; + } + + .card-menu-item:hover { + background: var(--shade); + opacity: 1; + } + + .card-menu-checkbox { width: 1em; height: 1em; border: .1rem solid var(--fg); border-radius: 2px; - cursor: pointer; background: transparent; - margin-left: 0.5em; - margin-bottom: 0.5em; + flex-shrink: 0; } - .card-checkbox.checked { + .card-menu-checkbox.checked { background: var(--fg); } @@ -371,6 +432,77 @@ border-radius: var(--radius); } + .modal { + position: fixed; + z-index: 1000; + top: 0; + left: 0; + right: 0; + bottom: 0; + width: 100%; + height: 100%; + display: none; + justify-content: center; + align-items: center; + background-color: rgba(0,0,0,0.5); + } + + .modal.active { + display: flex; + } + + .modal-content { + background-color: var(--bg); + border: .1rem solid var(--fg); + border-radius: var(--radius); + padding: 2em; + max-width: 90%; + max-height: 90%; + overflow-y: auto; + min-width: 400px; + } + + .modal-content h3 { + margin-top: 0; + margin-bottom: 1em; + } + + .modal-section { + margin-bottom: 1.5em; + } + + .modal-section label { + display: block; + font-weight: bold; + margin-bottom: 0.5em; + } + + .modal-buttons { + display: flex; + gap: 0.5em; + justify-content: flex-end; + margin-top: 1.5em; + } + + .project-select, .column-select { + width: 100%; + padding: 0.5em; + padding-right: 2.5em; + background: var(--bg); + color: var(--fg); + border: .1rem solid var(--fg); + border-radius: var(--radius); + font-size: 1rem; + font-family: Helvetica, Arial, sans-serif; + appearance: none; + -webkit-appearance: none; + -moz-appearance: none; + background-image: url('data:image/svg+xml;utf8,'); + background-repeat: no-repeat; + background-position: right 0.75em center; + background-size: 12px 8px; + } + ::-webkit-scrollbar { width: 10px; height: 10px; @@ -475,6 +607,24 @@ chmod 755 kbtd
+ +