mirror of
https://github.com/jacobinwwey/obsidian-NotEMD.git
synced 2026-07-22 12:40:25 +00:00
158 lines
3.6 KiB
CSS
158 lines
3.6 KiB
CSS
/*
|
|
* Notemd v1.3.0
|
|
*/
|
|
|
|
/* Progress Modal Styles */
|
|
.notemd-progress-modal {
|
|
padding: 1em;
|
|
max-width: 600px;
|
|
}
|
|
|
|
.notemd-status-container {
|
|
margin-bottom: 1em;
|
|
}
|
|
|
|
.notemd-status-text {
|
|
font-weight: bold;
|
|
margin-bottom: 0.5em;
|
|
}
|
|
|
|
.notemd-progress-bar-container {
|
|
width: 100%;
|
|
height: 20px;
|
|
background-color: var(--background-secondary);
|
|
border-radius: 10px;
|
|
margin: 10px 0;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.notemd-progress-bar-fill {
|
|
/* --notemd-progress-percent: 0%; /* Define CSS variable for width - REMOVED */
|
|
height: 100%;
|
|
background-color: var(--interactive-accent);
|
|
transition: width 0.3s ease, background-color 0.3s ease; /* Added background-color transition */
|
|
/* width: var(--notemd-progress-percent); /* Use the CSS variable - REMOVED */
|
|
width: calc(1% * attr(data-progress number, 0)); /* Use data-progress attribute */
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: white;
|
|
font-size: 12px;
|
|
font-weight: bold;
|
|
}
|
|
|
|
/* Error state for progress bar fill */
|
|
.notemd-progress-bar-fill.is-error {
|
|
background-color: var(--text-error);
|
|
}
|
|
|
|
.notemd-log-output {
|
|
max-height: 200px;
|
|
overflow-y: auto;
|
|
background-color: var(--background-secondary);
|
|
border-radius: 5px;
|
|
padding: 0.5em;
|
|
margin: 1em 0;
|
|
font-family: monospace;
|
|
font-size: 0.9em;
|
|
}
|
|
|
|
.notemd-log-entry {
|
|
margin-bottom: 0.3em;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.notemd-log-time {
|
|
color: var(--text-muted);
|
|
margin-right: 0.5em;
|
|
}
|
|
|
|
.notemd-log-message {
|
|
color: var(--text-normal);
|
|
}
|
|
|
|
.notemd-button-container {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
margin-top: 1em;
|
|
}
|
|
|
|
.notemd-cancel-button {
|
|
background-color: var(--background-secondary);
|
|
color: var(--text-normal);
|
|
border: 1px solid var(--background-modifier-border);
|
|
border-radius: 4px;
|
|
padding: 0.5em 1em;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.notemd-cancel-button:hover {
|
|
background-color: var(--background-modifier-hover);
|
|
}
|
|
|
|
/* Active/Enabled state for Cancel button */
|
|
.notemd-cancel-button.is-active {
|
|
/* Optional: Add subtle visual cue, e.g., slightly brighter border or background */
|
|
/* Example: border-color: var(--interactive-accent); */
|
|
opacity: 1; /* Ensure fully visible when active */
|
|
cursor: pointer;
|
|
}
|
|
|
|
/* Disabled state for Cancel button */
|
|
.notemd-cancel-button:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
background-color: var(--background-secondary); /* Keep background consistent */
|
|
}
|
|
|
|
/* Error state styling */
|
|
.notemd-error-text {
|
|
color: var(--text-error);
|
|
}
|
|
|
|
/* General utility class for hiding elements */
|
|
.is-hidden {
|
|
display: none !important;
|
|
}
|
|
|
|
/* Sidebar specific styles */
|
|
.notemd-sidebar-container {
|
|
padding: 1em;
|
|
}
|
|
|
|
.notemd-button-group button {
|
|
margin-right: 0.5em;
|
|
margin-bottom: 0.5em; /* Add some spacing between buttons */
|
|
}
|
|
|
|
.notemd-progress-area {
|
|
margin-top: 1em;
|
|
}
|
|
|
|
.notemd-log-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-top: 1em;
|
|
}
|
|
|
|
.notemd-copy-log-button {
|
|
/* Style similarly to cancel button or use default button styles */
|
|
background-color: var(--background-secondary);
|
|
color: var(--text-normal);
|
|
border: 1px solid var(--background-modifier-border);
|
|
border-radius: 4px;
|
|
padding: 0.3em 0.6em;
|
|
font-size: 0.9em;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.notemd-copy-log-button:hover {
|
|
background-color: var(--background-modifier-hover);
|
|
}
|
|
|
|
/* Ensure sidebar log is selectable */
|
|
.notemd-log-output.is-selectable {
|
|
user-select: text; /* Standard CSS property */
|
|
-webkit-user-select: text; /* For Safari */
|
|
}
|