mirror of
https://github.com/snipd-app/snipd-obsidian.git
synced 2026-07-22 06:41:45 +00:00
299 lines
5.6 KiB
CSS
299 lines
5.6 KiB
CSS
/*
|
|
|
|
This CSS file will be included with your plugin, and
|
|
available in the app when your plugin is enabled.
|
|
|
|
If your plugin does not need CSS, delete this file.
|
|
|
|
*/
|
|
|
|
.snipd-sync-status {
|
|
background-color: var(--background-secondary);
|
|
border: 1px solid var(--background-modifier-border);
|
|
border-radius: 6px;
|
|
padding: 12px 16px;
|
|
margin: 18px 0;
|
|
}
|
|
|
|
.snipd-sync-status-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 10px;
|
|
gap: 8px;
|
|
}
|
|
|
|
.snipd-sync-status-header button {
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.snipd-sync-status-title {
|
|
font-weight: 700;
|
|
font-size: 1em;
|
|
color: var(--text-normal);
|
|
}
|
|
|
|
.snipd-sync-status-body {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
}
|
|
|
|
.snipd-sync-status-text {
|
|
font-size: 12px;
|
|
color: var(--text-muted);
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.snipd-formatting-section {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.snipd-formatting-section h3 {
|
|
margin-bottom: 8px;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.snipd-template-variables {
|
|
font-size: 12px;
|
|
color: var(--text-muted);
|
|
margin-bottom: 8px;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.snipd-template-variable {
|
|
color: var(--interactive-accent);
|
|
font-family: var(--font-monospace);
|
|
font-size: 11px;
|
|
cursor: pointer;
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.snipd-template-textarea {
|
|
width: 100%;
|
|
min-height: 200px;
|
|
padding: 8px;
|
|
font-family: var(--font-monospace);
|
|
font-size: 13px;
|
|
border: 1px solid var(--background-modifier-border);
|
|
border-radius: 4px;
|
|
background-color: var(--background-primary);
|
|
color: var(--text-normal);
|
|
resize: vertical;
|
|
}
|
|
|
|
.snipd-template-textarea:focus {
|
|
outline: none;
|
|
border-color: var(--interactive-accent);
|
|
}
|
|
|
|
.modal-button-container {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
gap: 8px;
|
|
margin-top: 20px;
|
|
padding-top: 16px;
|
|
border-top: 1px solid var(--background-modifier-border);
|
|
}
|
|
|
|
.modal-button-container button {
|
|
padding: 6px 12px;
|
|
}
|
|
|
|
.snipd-modal-scrollable {
|
|
max-height: calc(80vh - 100px);
|
|
overflow-y: auto;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.snipd-template-input {
|
|
width: 100%;
|
|
font-family: var(--font-monospace);
|
|
padding: 8px;
|
|
border: 1px solid var(--background-modifier-border);
|
|
border-radius: 4px;
|
|
background-color: var(--background-primary);
|
|
color: var(--text-normal);
|
|
}
|
|
|
|
.snipd-template-input:focus {
|
|
outline: none;
|
|
border-color: var(--interactive-accent);
|
|
}
|
|
|
|
.snipd-syntax-description {
|
|
margin-bottom: 16px;
|
|
font-size: 0.9em;
|
|
}
|
|
|
|
.snipd-hidden {
|
|
display: none !important;
|
|
}
|
|
|
|
.snipd-error-text {
|
|
color: var(--text-error, #e74c3c);
|
|
font-size: 0.9em;
|
|
}
|
|
|
|
.snipd-input-error {
|
|
border-color: var(--text-error, #e74c3c) !important;
|
|
}
|
|
|
|
.snipd-property-error {
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.snipd-auth-section {
|
|
background-color: var(--background-secondary, rgba(0, 0, 0, 0.05));
|
|
padding: 1.5rem;
|
|
border-radius: 8px;
|
|
margin-top: 1rem;
|
|
}
|
|
|
|
.snipd-auth-section .setting-item-heading {
|
|
margin-top: 0;
|
|
}
|
|
|
|
.snipd-auth-subtitle-row {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.snipd-auth-subtitle {
|
|
margin: 0;
|
|
flex: 1;
|
|
}
|
|
|
|
.snipd-auth-button {
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.snipd-error-container {
|
|
display: none;
|
|
margin-top: 0.75rem;
|
|
}
|
|
|
|
.snipd-error-container:not(.snipd-hidden) {
|
|
display: block;
|
|
}
|
|
|
|
.snipd-sync-status-title {
|
|
text-transform: capitalize;
|
|
}
|
|
|
|
.snipd-auth-heading {
|
|
margin-top: 0;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.snipd-reset-button {
|
|
background-color: #e74c3c !important;
|
|
color: white !important;
|
|
}
|
|
|
|
.snipd-formatting-modal {
|
|
max-width: 95vw !important;
|
|
width: auto !important;
|
|
}
|
|
|
|
.snipd-formatting-modal .modal-content {
|
|
max-width: none !important;
|
|
width: 100% !important;
|
|
}
|
|
|
|
.snipd-additional-properties-container {
|
|
margin-top: 16px;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.snipd-additional-property-item {
|
|
background-color: var(--background-secondary);
|
|
border: 1px solid var(--background-modifier-border);
|
|
border-radius: 6px;
|
|
padding: 16px;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.snipd-additional-property-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.snipd-additional-property-header h4 {
|
|
margin: 0;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.snipd-remove-property-button {
|
|
padding: 4px 8px;
|
|
font-size: 12px;
|
|
background-color: var(--background-modifier-error, #e74c3c);
|
|
color: white;
|
|
border: none;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.snipd-remove-property-button:hover {
|
|
background-color: var(--background-modifier-error-hover, #c0392b);
|
|
}
|
|
|
|
.snipd-add-property-button {
|
|
padding: 8px 16px;
|
|
font-size: 13px;
|
|
background-color: var(--interactive-accent);
|
|
color: var(--text-on-accent);
|
|
border: none;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.snipd-add-property-button:hover {
|
|
background-color: var(--interactive-accent-hover);
|
|
}
|
|
|
|
.snipd-empty-properties-message {
|
|
color: var(--text-muted);
|
|
font-size: 13px;
|
|
font-style: italic;
|
|
padding: 16px;
|
|
text-align: center;
|
|
background-color: var(--background-secondary);
|
|
border: 1px dashed var(--background-modifier-border);
|
|
border-radius: 6px;
|
|
}
|
|
|
|
.snipd-insert-variable-container {
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.snipd-insert-variable-button {
|
|
padding: 4px 8px;
|
|
font-size: 11px;
|
|
font-family: var(--font-monospace);
|
|
background-color: var(--background-primary);
|
|
color: var(--interactive-accent);
|
|
border: 1px solid var(--background-modifier-border);
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.snipd-insert-variable-button:hover {
|
|
background-color: var(--background-modifier-hover);
|
|
border-color: var(--interactive-accent);
|
|
}
|
|
|
|
.snipd-property-label {
|
|
display: block;
|
|
margin-top: 12px;
|
|
margin-bottom: 4px;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
}
|