heroblackink_ultimate-todoi.../styles.css

509 lines
10 KiB
CSS
Raw Normal View History

2023-04-01 05:27:58 +00:00
2023-04-02 03:12:06 +00:00
.cm-line:not(:hover):not(.cm-active) span.cm-comment {
display: none;
}
2023-04-02 03:12:06 +00:00
/*
.cm-line span.cm-comment {
display: none;
}
.cm-line.cm-active span.cm-comment,
.cm-line:hover span.cm-comment {
display: inline-block;
}
*/
/* ============================================
Task Manager Modal
============================================ */
.task-manager-modal {
width: 860px;
max-width: 95vw;
}
.task-manager-modal .modal-content {
padding: 0;
}
/* Header */
.tm-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 20px 24px 16px;
border-bottom: 1px solid var(--background-modifier-border);
}
.tm-header h3 {
margin: 0;
font-size: 18px;
font-weight: 700;
}
.tm-summary {
display: flex;
gap: 12px;
align-items: center;
}
.tm-badge {
display: inline-flex;
align-items: center;
gap: 4px;
padding: 2px 10px;
border-radius: 12px;
font-size: 12px;
font-weight: 600;
line-height: 20px;
}
.tm-badge--conflict {
background: hsla(30, 100%, 50%, 0.12);
color: hsl(30, 100%, 45%);
}
.tm-badge--issue {
background: hsla(0, 80%, 55%, 0.12);
color: hsl(0, 80%, 50%);
}
.tm-badge--nonactive {
background: hsla(210, 15%, 55%, 0.12);
color: var(--text-muted);
}
/* Scroll area */
.tm-scroll {
max-height: 70vh;
overflow-y: auto;
padding: 16px 24px 24px;
}
/* Empty state */
.tm-empty {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 60px 20px;
color: var(--text-muted);
gap: 8px;
}
.tm-empty-icon {
font-size: 36px;
opacity: 0.5;
}
.tm-empty-text {
font-size: 14px;
}
/* Section */
.tm-section {
margin-bottom: 24px;
}
.tm-section:last-child {
margin-bottom: 0;
}
.tm-section-header {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 12px;
padding-bottom: 8px;
border-bottom: 1px solid var(--background-modifier-border);
}
.tm-section-icon {
font-size: 16px;
}
.tm-section-title {
font-size: 14px;
font-weight: 600;
margin: 0;
color: var(--text-normal);
}
.tm-section-count {
font-size: 12px;
color: var(--text-muted);
font-weight: 400;
}
/* Conflict card */
.tm-card {
border: 1px solid var(--background-modifier-border);
border-radius: 8px;
margin-bottom: 12px;
overflow: hidden;
background: var(--background-primary);
}
.tm-card:last-child {
margin-bottom: 0;
}
.tm-card-header {
display: flex;
align-items: center;
gap: 10px;
padding: 10px 14px;
background: var(--background-secondary);
border-bottom: 1px solid var(--background-modifier-border);
flex-wrap: wrap;
}
.tm-task-id {
font-family: var(--font-monospace);
font-size: 11px;
color: var(--text-faint);
background: var(--background-modifier-hover);
padding: 1px 6px;
border-radius: 4px;
}
.tm-file-link {
font-size: 12px;
color: var(--text-accent);
cursor: pointer;
text-decoration: none;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.tm-file-link:hover {
text-decoration: underline;
}
/* Diff table */
.tm-diff {
width: 100%;
border-collapse: collapse;
font-size: 13px;
}
.tm-diff th {
text-align: left;
padding: 6px 14px;
font-size: 11px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
color: var(--text-faint);
background: var(--background-secondary);
border-bottom: 1px solid var(--background-modifier-border);
}
.tm-diff td {
padding: 6px 14px;
border-bottom: 1px solid var(--background-modifier-border-hover);
max-width: 260px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.tm-diff tr:last-child td {
border-bottom: none;
}
.tm-diff-field {
font-weight: 500;
color: var(--text-muted);
white-space: nowrap;
width: 80px;
}
.tm-diff-changed {
background: hsla(30, 100%, 50%, 0.06);
}
.tm-diff-marker {
width: 20px;
text-align: center;
padding: 6px 4px;
font-size: 11px;
}
.tm-diff-marker--changed {
color: hsl(30, 100%, 45%);
}
.tm-diff-val {
color: var(--text-normal);
}
.tm-diff-val--empty {
color: var(--text-faint);
font-style: italic;
}
/* Card actions */
.tm-card-actions {
display: flex;
gap: 8px;
padding: 10px 14px;
background: var(--background-secondary);
border-top: 1px solid var(--background-modifier-border);
}
.tm-btn {
padding: 6px 16px;
border-radius: 6px;
cursor: pointer;
font-size: 13px;
font-weight: 500;
border: none;
transition: opacity 0.15s ease;
}
.tm-btn:hover {
opacity: 0.85;
}
.tm-btn:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.tm-btn--primary {
background: var(--interactive-accent);
color: var(--text-on-accent);
}
.tm-btn--secondary {
background: var(--interactive-normal);
color: var(--text-normal);
border: 1px solid var(--background-modifier-border);
}
.tm-btn--danger {
background: hsl(0, 70%, 55%);
color: #fff;
}
.tm-btn--danger:hover {
background: hsl(0, 70%, 48%);
}
/* Simple table (issue / nonActive) */
.tm-table {
width: 100%;
border-collapse: collapse;
font-size: 13px;
border: 1px solid var(--background-modifier-border);
border-radius: 8px;
overflow: hidden;
}
.tm-table th {
text-align: left;
padding: 8px 12px;
font-size: 11px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
color: var(--text-faint);
background: var(--background-secondary);
border-bottom: 1px solid var(--background-modifier-border);
}
.tm-table td {
padding: 8px 12px;
border-bottom: 1px solid var(--background-modifier-border-hover);
vertical-align: middle;
}
.tm-table tr:last-child td {
border-bottom: none;
}
.tm-table tr:hover td {
background: var(--background-modifier-hover);
}
.tm-table .tm-task-id {
font-size: 11px;
}
.tm-table .tm-file-link {
max-width: 180px;
display: inline-block;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
vertical-align: middle;
}
.tm-content-preview {
max-width: 280px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
color: var(--text-normal);
}
.tm-warning {
display: flex;
align-items: center;
gap: 8px;
padding: 8px 12px;
border-radius: 6px;
margin-bottom: 12px;
font-size: 13px;
background: hsla(30, 100%, 50%, 0.12);
color: hsl(30, 100%, 45%);
}
.tm-refresh-btn {
background: none;
border: none;
cursor: pointer;
font-size: 16px;
padding: 4px 8px;
border-radius: 4px;
color: var(--text-muted);
}
.tm-refresh-btn:hover {
background: var(--background-modifier-hover);
color: var(--text-normal);
}
.tm-bulk-bar {
display: flex;
gap: 8px;
align-items: center;
margin-bottom: 12px;
padding: 8px 12px;
background: var(--background-secondary);
border-radius: 6px;
border: 1px solid var(--background-modifier-border);
}
.tm-confirm-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
z-index: 1000;
display: flex;
align-items: center;
justify-content: center;
}
.tm-confirm-box {
background: var(--background-primary);
border-radius: 8px;
padding: 20px;
max-width: 400px;
border: 1px solid var(--background-modifier-border);
}
.tm-confirm-msg {
margin-bottom: 16px;
font-size: 14px;
color: var(--text-normal);
}
.tm-confirm-actions {
display: flex;
gap: 8px;
justify-content: flex-end;
}
/* ============================================
List View (master-detail)
============================================ */
.tm-list-row {
display: flex;
align-items: center;
gap: 10px;
padding: 8px 14px;
cursor: pointer;
border-bottom: 1px solid var(--background-modifier-border-hover);
transition: background 0.1s ease;
}
.tm-list-row:last-child {
border-bottom: none;
}
.tm-list-row:hover {
background: var(--background-modifier-hover);
}
.tm-list-icon {
flex-shrink: 0;
width: 20px;
text-align: center;
font-size: 14px;
}
.tm-list-content {
flex: 1;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-size: 13px;
color: var(--text-normal);
}
.tm-list-file {
flex-shrink: 0;
max-width: 180px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-size: 12px;
color: var(--text-muted);
}
.tm-list-badge {
flex-shrink: 0;
padding: 1px 8px;
border-radius: 10px;
font-size: 11px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.3px;
}
.tm-list-badge--conflict {
background: hsla(30, 100%, 50%, 0.12);
color: hsl(30, 100%, 45%);
}
.tm-list-badge--issue {
background: hsla(0, 80%, 55%, 0.12);
color: hsl(0, 80%, 50%);
}
.tm-list-badge--nonactive {
background: hsla(210, 15%, 55%, 0.12);
color: var(--text-muted);
}
/* ============================================
Detail View (master-detail)
============================================ */
.tm-detail-header {
display: flex;
align-items: center;
gap: 10px;
padding: 16px 24px 12px;
border-bottom: 1px solid var(--background-modifier-border);
}
.tm-detail-back {
background: none;
border: none;
cursor: pointer;
font-size: 18px;
padding: 4px 8px;
border-radius: 4px;
color: var(--text-muted);
line-height: 1;
}
.tm-detail-back:hover {
background: var(--background-modifier-hover);
color: var(--text-normal);
}
.tm-detail-title {
font-size: 16px;
font-weight: 600;
margin: 0;
}
.tm-detail-body {
padding: 16px 24px 24px;
max-height: 65vh;
overflow-y: auto;
}
.tm-detail-info {
display: flex;
flex-direction: column;
gap: 6px;
margin-bottom: 16px;
padding: 12px 14px;
background: var(--background-secondary);
border-radius: 8px;
border: 1px solid var(--background-modifier-border);
}
.tm-detail-info-row {
display: flex;
align-items: center;
gap: 8px;
font-size: 13px;
}
.tm-detail-info-label {
color: var(--text-muted);
font-weight: 500;
min-width: 60px;
}
.tm-detail-info-value {
color: var(--text-normal);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.tm-detail-actions {
display: flex;
gap: 8px;
margin-top: 16px;
padding-top: 16px;
border-top: 1px solid var(--background-modifier-border);
}