vault backup: 2026-07-31 16:39:56
This commit is contained in:
274
.obsidian/plugins/color-folders-files/styles.css
vendored
Normal file
274
.obsidian/plugins/color-folders-files/styles.css
vendored
Normal file
@@ -0,0 +1,274 @@
|
||||
/* Modal styles */
|
||||
.modal.color-folders-files-modal {
|
||||
width: 350px !important;
|
||||
max-width: 350px !important;
|
||||
max-height: 80vh !important;
|
||||
}
|
||||
|
||||
/* Remove ALL Obsidian's default modal shadows */
|
||||
.modal.color-folders-files-modal,
|
||||
.modal.color-folders-files-modal .modal-container,
|
||||
.modal.color-folders-files-modal .modal-content,
|
||||
.modal.color-folders-files-modal .modal-close-button,
|
||||
.modal.color-folders-files-modal .modal-title,
|
||||
.modal.color-folders-files-modal .vertical-tab-header,
|
||||
.modal.color-folders-files-modal .vertical-tab-content-container {
|
||||
box-shadow: none !important;
|
||||
}
|
||||
|
||||
.modal.color-folders-files-modal .preview-section {
|
||||
margin: 20px 0;
|
||||
padding: 15px;
|
||||
border-radius: var(--radius-m);
|
||||
background-color: var(--background-secondary);
|
||||
border: 1px solid var(--background-modifier-border);
|
||||
}
|
||||
|
||||
.modal.color-folders-files-modal .preview-item {
|
||||
margin: 10px 0;
|
||||
padding: 8px 12px;
|
||||
border-radius: var(--radius-s);
|
||||
font-size: var(--font-ui-small);
|
||||
background-color: var(--background-primary);
|
||||
border: 1px solid var(--background-modifier-border);
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
/* Preview item style states */
|
||||
.preview-item.is-bold {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.preview-item.is-italic {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
/* Preview item custom properties */
|
||||
.preview-item {
|
||||
background-color: var(--preview-bg-color, var(--background-primary));
|
||||
color: var(--preview-text-color, var(--text-normal));
|
||||
opacity: var(--preview-opacity, 1);
|
||||
}
|
||||
|
||||
/* Setting styles */
|
||||
.modal.color-folders-files-modal .setting-item {
|
||||
border-top: none;
|
||||
padding: var(--size-4-2) 0;
|
||||
}
|
||||
|
||||
.modal.color-folders-files-modal .setting-item-control {
|
||||
gap: var(--size-4-2);
|
||||
}
|
||||
|
||||
/* Color picker and hex input styles */
|
||||
.color-container {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.color-hex-input {
|
||||
width: 80px;
|
||||
height: 24px;
|
||||
padding: 0 4px;
|
||||
border-radius: var(--radius-s);
|
||||
border: 1px solid var(--background-modifier-border);
|
||||
background-color: var(--background-primary);
|
||||
color: var(--text-normal);
|
||||
font-size: var(--font-ui-smaller);
|
||||
font-family: var(--font-monospace);
|
||||
}
|
||||
|
||||
.color-hex-input:focus {
|
||||
border-color: var(--interactive-accent);
|
||||
box-shadow: 0 0 0 2px var(--background-modifier-border-focus);
|
||||
}
|
||||
|
||||
/* Button styles */
|
||||
.modal.color-folders-files-modal button.mod-cta {
|
||||
background-color: var(--interactive-accent);
|
||||
color: var(--text-on-accent);
|
||||
}
|
||||
|
||||
.modal.color-folders-files-modal button.mod-cta:hover {
|
||||
background-color: var(--interactive-accent-hover);
|
||||
}
|
||||
|
||||
/* Slider styles */
|
||||
.modal.color-folders-files-modal .slider {
|
||||
height: 4px;
|
||||
background-color: var(--interactive-normal);
|
||||
border-radius: var(--radius-s);
|
||||
}
|
||||
|
||||
.modal.color-folders-files-modal .slider::-webkit-slider-thumb {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
border-radius: 50%;
|
||||
background-color: var(--interactive-accent);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
/* Dropdown styles */
|
||||
.modal.color-folders-files-modal select {
|
||||
padding: var(--size-4-1) var(--size-4-2);
|
||||
border-radius: var(--radius-s);
|
||||
background-color: var(--background-primary);
|
||||
border: 1px solid var(--background-modifier-border);
|
||||
color: var(--text-normal);
|
||||
font-size: var(--font-ui-small);
|
||||
padding-right: 25px !important;
|
||||
background-position: right 8px center;
|
||||
-webkit-appearance: none;
|
||||
-moz-appearance: none;
|
||||
appearance: none;
|
||||
background-image: url('data:image/svg+xml;charset=US-ASCII,<svg width="12" height="12" viewBox="0 0 12 12"><path d="M2 4l4 4 4-4" stroke="%23666" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"/></svg>');
|
||||
background-repeat: no-repeat;
|
||||
background-position: right 8px center;
|
||||
}
|
||||
|
||||
.modal.color-folders-files-modal select:focus {
|
||||
border-color: var(--interactive-accent);
|
||||
box-shadow: 0 0 0 2px var(--background-modifier-border-focus);
|
||||
}
|
||||
|
||||
/* Notice styles */
|
||||
.modal.color-folders-files-modal .notice {
|
||||
background-color: var(--background-primary);
|
||||
color: var(--text-normal);
|
||||
border: 1px solid var(--background-modifier-border);
|
||||
border-radius: var(--radius-m);
|
||||
padding: var(--size-4-2) var(--size-4-3);
|
||||
margin: var(--size-4-2) 0;
|
||||
}
|
||||
|
||||
/* Button section styles */
|
||||
.modal.color-folders-files-modal .button-section {
|
||||
margin-top: 20px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.modal.color-folders-files-modal .button-section button {
|
||||
padding: 6px 12px;
|
||||
border-radius: var(--radius-s);
|
||||
font-size: var(--font-ui-small);
|
||||
background-color: var(--interactive-normal);
|
||||
border: none;
|
||||
color: var(--text-normal);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.modal.color-folders-files-modal .button-section button:hover {
|
||||
background-color: var(--interactive-hover);
|
||||
}
|
||||
|
||||
/* Preset save section */
|
||||
.modal.color-folders-files-modal .setting-item.preset-save {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.modal.color-folders-files-modal .setting-item.preset-save .setting-item-info {
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.modal.color-folders-files-modal .setting-item.preset-save .setting-item-control {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
/* Settings tab preset styles */
|
||||
.presets-container {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.preset-container {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding: 4px;
|
||||
cursor: grab;
|
||||
border-radius: var(--radius-s);
|
||||
transition: background-color 0.15s ease;
|
||||
}
|
||||
|
||||
.preset-container:hover {
|
||||
background-color: var(--background-secondary);
|
||||
}
|
||||
|
||||
.preset-container.dragging {
|
||||
opacity: 0.5;
|
||||
background-color: var(--background-secondary);
|
||||
}
|
||||
|
||||
.drag-handle {
|
||||
color: var(--text-muted);
|
||||
font-family: var(--font-monospace);
|
||||
user-select: none;
|
||||
cursor: grab;
|
||||
padding: 0 4px;
|
||||
}
|
||||
|
||||
/* Only apply fixed width to settings tab preview items */
|
||||
.vertical-tab-content .preview-item {
|
||||
display: inline-block;
|
||||
width: 300px;
|
||||
padding: 4px 12px;
|
||||
border-radius: var(--radius-s);
|
||||
font-size: var(--font-ui-small);
|
||||
margin: 0;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.preset-container .setting-item {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
flex-grow: 0;
|
||||
border: none;
|
||||
}
|
||||
|
||||
.preset-container .setting-item-control {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.preset-container button {
|
||||
background: none;
|
||||
border: none;
|
||||
padding: 4px;
|
||||
border-radius: var(--radius-s);
|
||||
}
|
||||
|
||||
.preset-container button:hover {
|
||||
background-color: var(--background-modifier-hover);
|
||||
}
|
||||
|
||||
/* Import/Export buttons */
|
||||
.settings-import-export {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
margin-top: 24px;
|
||||
}
|
||||
|
||||
.settings-import-export button {
|
||||
flex: 1;
|
||||
padding: var(--size-4-1) var(--size-4-3);
|
||||
border-radius: var(--radius-s);
|
||||
background-color: var(--interactive-normal);
|
||||
color: var(--text-normal);
|
||||
font-weight: var(--font-medium);
|
||||
}
|
||||
|
||||
.settings-import-export button:hover {
|
||||
background-color: var(--interactive-hover);
|
||||
}
|
||||
Reference in New Issue
Block a user