mirror of
https://github.com/devonthesofa/obsidian-note-status.git
synced 2026-07-22 05:45:04 +00:00
494 lines
11 KiB
CSS
494 lines
11 KiB
CSS
/* ==========================================================================
|
|
Template Settings Components
|
|
========================================================================== */
|
|
|
|
/* Template Settings Actions */
|
|
.template-settings-actions {
|
|
display: flex;
|
|
justify-content: end;
|
|
gap: var(--size-4-2);
|
|
padding-bottom: var(--size-4-2);
|
|
}
|
|
|
|
.template-create-btn {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--size-2-2);
|
|
padding: var(--size-2-3) var(--size-4-3);
|
|
font-weight: var(--font-medium);
|
|
font-size: var(--font-ui-medium);
|
|
}
|
|
|
|
.template-reset-btn {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--size-2-2);
|
|
padding: var(--size-2-3) var(--size-4-3);
|
|
background: var(--interactive-normal);
|
|
border: 1px solid var(--background-modifier-border);
|
|
border-radius: var(--radius-s);
|
|
color: var(--text-normal);
|
|
cursor: pointer;
|
|
font-size: var(--font-ui-medium);
|
|
transition: all var(--anim-duration-fast) ease;
|
|
}
|
|
|
|
.template-reset-btn:hover {
|
|
background: var(--interactive-hover);
|
|
color: var(--text-normal);
|
|
}
|
|
|
|
/* Template Sections */
|
|
.template-section {
|
|
margin-bottom: var(--size-4-6);
|
|
}
|
|
|
|
.template-section-title {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--size-2-2);
|
|
font-size: var(--font-ui-large);
|
|
font-weight: var(--font-semibold);
|
|
color: var(--text-normal);
|
|
margin-bottom: var(--size-4-3);
|
|
padding-bottom: var(--size-2-2);
|
|
border-bottom: 2px solid var(--background-modifier-border);
|
|
}
|
|
|
|
.template-section-title .lucide {
|
|
opacity: 0.8;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.template-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--size-4-2);
|
|
}
|
|
|
|
/* Template Item Updates */
|
|
.template-item {
|
|
position: relative;
|
|
display: flex;
|
|
align-items: stretch;
|
|
border: 1px solid var(--background-modifier-border);
|
|
border-radius: var(--radius-m);
|
|
background: var(--background-primary-alt);
|
|
transition: all var(--anim-duration-fast) ease;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.template-item:hover {
|
|
background: var(--background-modifier-hover);
|
|
border-color: var(--background-modifier-border-hover);
|
|
box-shadow: 0 2px 8px var(--shadow-color);
|
|
}
|
|
|
|
.template-item.enabled {
|
|
background: var(--background-modifier-hover);
|
|
border-color: var(--interactive-accent);
|
|
box-shadow: 0 0 0 1px var(--interactive-accent);
|
|
}
|
|
|
|
.template-item.enabled:hover {
|
|
box-shadow:
|
|
0 2px 8px var(--shadow-color),
|
|
0 0 0 1px var(--interactive-accent);
|
|
}
|
|
|
|
.template-item-content {
|
|
flex: 1;
|
|
border: none !important;
|
|
border-radius: 0 !important;
|
|
background: transparent !important;
|
|
}
|
|
|
|
.template-item-main {
|
|
flex: 1;
|
|
}
|
|
|
|
.template-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--size-2-2);
|
|
margin-bottom: var(--size-2-1);
|
|
}
|
|
|
|
.template-custom-badge {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--size-2-1);
|
|
padding: var(--size-2-1) var(--size-2-2);
|
|
background: var(--interactive-accent);
|
|
color: var(--text-on-accent);
|
|
font-size: var(--font-ui-smaller);
|
|
font-weight: var(--font-medium);
|
|
border-radius: var(--radius-s);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
}
|
|
|
|
/* Template Item Actions */
|
|
.template-item-actions {
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: var(--size-4-2);
|
|
gap: var(--size-2-1);
|
|
background: var(--background-modifier-border);
|
|
border-left: 1px solid var(--background-modifier-border-hover);
|
|
min-width: 44px;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.template-item-actions button,
|
|
.template-item-actions a {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: var(--size-4-1);
|
|
border-radius: var(--radius-s);
|
|
color: var(--text-muted);
|
|
background: transparent;
|
|
border: none;
|
|
cursor: pointer;
|
|
transition: all var(--anim-duration-fast) ease;
|
|
text-decoration: none !important;
|
|
}
|
|
|
|
.template-item-actions button:hover,
|
|
.template-item-actions a:hover {
|
|
background: var(--interactive-hover);
|
|
color: var(--text-normal);
|
|
}
|
|
|
|
.template-marketplace-btn {
|
|
color: var(--text-accent) !important;
|
|
}
|
|
|
|
/* Template Editor Modal */
|
|
.template-editor-modal {
|
|
background: var(--background-primary);
|
|
border: 1px solid var(--background-modifier-border);
|
|
border-radius: var(--radius-l);
|
|
box-shadow: var(--shadow-l);
|
|
max-width: 800px;
|
|
width: 100%;
|
|
}
|
|
|
|
.template-editor-modal__header {
|
|
padding: var(--size-4-4) var(--size-4-6);
|
|
background: var(--background-secondary);
|
|
border-bottom: 1px solid var(--background-modifier-border);
|
|
border-radius: var(--radius-l) var(--radius-l) 0 0;
|
|
}
|
|
|
|
.template-editor-modal__header h2 {
|
|
margin: 0;
|
|
font-size: var(--font-ui-larger);
|
|
font-weight: var(--font-bold);
|
|
color: var(--text-normal);
|
|
}
|
|
|
|
.template-editor-modal__content {
|
|
padding: var(--size-4-6);
|
|
max-height: 70vh;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.template-editor-statuses {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--size-4-3);
|
|
}
|
|
|
|
.template-editor-add-status {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--size-2-2);
|
|
align-self: flex-start;
|
|
margin-top: var(--size-4-2);
|
|
}
|
|
|
|
.template-editor-add-status .lucide {
|
|
width: 16px;
|
|
height: 16px;
|
|
}
|
|
|
|
.template-editor-modal__actions {
|
|
display: flex;
|
|
gap: var(--size-4-2);
|
|
justify-content: flex-end;
|
|
padding: var(--size-4-4) var(--size-4-6);
|
|
background: var(--background-secondary);
|
|
border-top: 1px solid var(--background-modifier-border);
|
|
border-radius: 0 0 var(--radius-l) var(--radius-l);
|
|
}
|
|
|
|
.template-editor-modal__actions button {
|
|
padding: var(--size-2-3) var(--size-4-4);
|
|
border-radius: var(--radius-m);
|
|
font-size: var(--font-ui-medium);
|
|
font-weight: var(--font-medium);
|
|
cursor: pointer;
|
|
transition: all var(--anim-duration-fast) ease;
|
|
border: 1px solid var(--background-modifier-border);
|
|
}
|
|
|
|
.template-editor-modal__actions button:not(.mod-cta) {
|
|
background: var(--interactive-normal);
|
|
color: var(--text-normal);
|
|
}
|
|
|
|
.template-editor-modal__actions button:not(.mod-cta):hover {
|
|
background: var(--interactive-hover);
|
|
}
|
|
|
|
.template-editor-modal__actions .mod-cta:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
transform: none;
|
|
}
|
|
|
|
.template-editor-modal__actions .mod-cta:disabled:hover {
|
|
transform: none;
|
|
}
|
|
|
|
.template-author-info {
|
|
display: block;
|
|
font-size: var(--font-ui-smaller);
|
|
color: var(--text-muted);
|
|
margin-top: var(--size-2-1);
|
|
font-style: italic;
|
|
}
|
|
|
|
.template-author-info a {
|
|
color: var(--text-accent);
|
|
text-decoration: none;
|
|
}
|
|
|
|
.template-author-info a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
/* Marketplace Share Modal */
|
|
.marketplace-steps {
|
|
padding-left: var(--size-4-4);
|
|
margin-bottom: var(--size-4-4);
|
|
color: var(--text-normal);
|
|
}
|
|
|
|
.marketplace-steps li {
|
|
margin-bottom: var(--size-2-2);
|
|
}
|
|
|
|
.marketplace-steps li a {
|
|
color: var(--text-accent);
|
|
word-break: break-all;
|
|
}
|
|
|
|
.marketplace-note {
|
|
margin: var(--size-4-4) 0;
|
|
padding: var(--size-4-2);
|
|
background: var(--background-primary-alt);
|
|
border-left: 4px solid var(--interactive-accent);
|
|
border-radius: var(--radius-s);
|
|
font-size: var(--font-ui-small);
|
|
}
|
|
|
|
.marketplace-json-preview {
|
|
background: var(--background-secondary);
|
|
border: 1px solid var(--background-modifier-border);
|
|
border-radius: var(--radius-m);
|
|
overflow: hidden;
|
|
margin-top: var(--size-4-2);
|
|
}
|
|
|
|
.json-preview-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: var(--size-2-2) var(--size-4-2);
|
|
background: var(--background-primary-alt);
|
|
border-bottom: 1px solid var(--background-modifier-border);
|
|
font-family: var(--font-monospace);
|
|
font-size: var(--font-ui-smaller);
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.copy-btn {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--size-2-1);
|
|
padding: var(--size-2-1) var(--size-2-3) !important;
|
|
font-size: var(--font-ui-smaller) !important;
|
|
background: var(--interactive-accent) !important;
|
|
color: var(--text-on-accent) !important;
|
|
border: none !important;
|
|
}
|
|
|
|
.copy-btn.success {
|
|
background: var(--text-success) !important;
|
|
}
|
|
|
|
.marketplace-json-preview pre {
|
|
margin: 0;
|
|
padding: var(--size-4-2);
|
|
max-height: 300px;
|
|
overflow-y: auto;
|
|
font-family: var(--font-monospace);
|
|
font-size: var(--font-ui-smaller);
|
|
white-space: pre-wrap;
|
|
word-break: break-all;
|
|
}
|
|
|
|
.marketplace-github-link {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--size-2-2);
|
|
text-decoration: none !important;
|
|
}
|
|
|
|
/* Marketplace Browse Modal */
|
|
.marketplace-header-content {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
width: 100%;
|
|
gap: var(--size-4-4);
|
|
}
|
|
|
|
.marketplace-header-content h2 {
|
|
margin: 0;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.marketplace-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
|
|
gap: var(--size-4-4);
|
|
padding: var(--size-2-2);
|
|
}
|
|
|
|
.marketplace-card {
|
|
display: flex;
|
|
flex-direction: column;
|
|
background: var(--background-primary-alt);
|
|
border: 1px solid var(--background-modifier-border);
|
|
border-radius: var(--radius-m);
|
|
padding: var(--size-4-4);
|
|
transition: all var(--anim-duration-fast) ease;
|
|
}
|
|
|
|
.marketplace-card:hover {
|
|
border-color: var(--interactive-accent);
|
|
box-shadow: var(--shadow-s);
|
|
}
|
|
|
|
.marketplace-card-header {
|
|
margin-bottom: var(--size-2-2);
|
|
}
|
|
|
|
.marketplace-card-title {
|
|
font-weight: var(--font-bold);
|
|
font-size: var(--font-ui-medium);
|
|
color: var(--text-normal);
|
|
}
|
|
|
|
.marketplace-card-author {
|
|
font-size: var(--font-ui-smaller);
|
|
color: var(--text-muted);
|
|
font-style: italic;
|
|
}
|
|
|
|
.marketplace-card-description {
|
|
font-size: var(--font-ui-small);
|
|
color: var(--text-muted);
|
|
margin-bottom: var(--size-4-2);
|
|
flex-grow: 1;
|
|
}
|
|
|
|
.marketplace-card-statuses {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: var(--size-2-1);
|
|
margin-bottom: var(--size-4-4);
|
|
}
|
|
|
|
.marketplace-card-actions {
|
|
margin-top: auto;
|
|
}
|
|
|
|
.marketplace-install-btn {
|
|
width: 100%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: var(--size-2-2);
|
|
}
|
|
|
|
.marketplace-install-btn.installed {
|
|
background: var(--background-modifier-success-accent) !important;
|
|
color: var(--text-on-accent) !important;
|
|
opacity: 0.8;
|
|
cursor: default;
|
|
}
|
|
|
|
.marketplace-empty {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: var(--size-4-12);
|
|
color: var(--text-muted);
|
|
text-align: center;
|
|
}
|
|
|
|
.marketplace-empty p {
|
|
margin-top: var(--size-4-2);
|
|
font-size: var(--font-ui-large);
|
|
}
|
|
|
|
.marketplace-browse-btn {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--size-2-2);
|
|
}
|
|
|
|
/* Responsive Design */
|
|
@media (max-width: 768px) {
|
|
.template-settings-actions {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.template-item {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.template-item-actions {
|
|
flex-direction: row;
|
|
border-left: none;
|
|
border-top: 1px solid var(--background-modifier-border-hover);
|
|
min-width: unset;
|
|
padding: var(--size-2-3) var(--size-4-2);
|
|
}
|
|
|
|
.template-editor-modal {
|
|
margin: var(--size-4-2);
|
|
max-width: calc(100% - var(--size-4-4));
|
|
}
|
|
}
|
|
|
|
/* Scrollbar for template editor */
|
|
.template-editor-modal__content::-webkit-scrollbar {
|
|
width: var(--scrollbar-width);
|
|
}
|
|
|
|
.template-editor-modal__content::-webkit-scrollbar-thumb {
|
|
background: var(--scrollbar-thumb-bg);
|
|
border-radius: var(--radius-s);
|
|
}
|
|
|
|
.template-editor-modal__content::-webkit-scrollbar-thumb:hover {
|
|
background: var(--scrollbar-active-bg);
|
|
}
|