/* @settings name: Loom id: loom settings: - id: theme-info title: Loomfo description: | a socketteer/loom reimplementation in obsidian; [GitHub](https://github.com/7368697661/loom/tree/master) markdown: true type: info-text level: 0 - id: custom-text-color title: Pregeneration text color type: variable-themed-color description: Styles the text prior to current generation's color format: hex opacity: false allowEmpty: false default-light: '#fff' default-dark: '#000' - id: custom-text-background title: Pregeneration text background type: variable-themed-color description: Styles the text prior to current generation's background on hover format: hex opacity: false allowEmpty: false default-light: '#fff' default-dark: '#000' */ body { --custom-text-color: var(--text-muted); --custom-text-background: var(--background-secondary); } .loom { overflow-y: auto; } .loom-buttons { margin-top: 0.5em; } .loom-zport { display: flex; flex-direction: row; align-items: center; width: 100%; margin-bottom: 0.5em; } .loom-zport input { flex-grow: 1; } .loom-zport button { margin-left: 0.5em; } .loom-vspacer { padding-top: 0.5em; } .loom-settings { margin-bottom: 0.3em; } .hidden { display: none; } .loom-setting { display: flex; flex-direction: column; } .loom-setting label { font-size: 0.9em; margin-bottom: 0.3em; } .loom-setting input { margin-bottom: 0.6em; } .loom-setting select { margin-bottom: 0.6em; } .loom-collapse { margin-left: 0.6em; } .loom-collapse.is-collapsed { transform: rotate(-90deg); } .loom-node-footer { color: var(--text-faint); font-size: 0.9em; margin-left: calc(0.85em + 1px); padding: 0.35em 0 0.35em 1.2em; white-space: nowrap; display: flex; align-items: center; width: max-content; border-left: 1px solid var(--color-base-35); } .loom-hoist-button:hover { color: var(--text-normal); } .loom-node-footer-text { margin-left: 0.35em; } .loom-children { margin-left: 0.85em; padding-left: 0.6em; border-left: 1px solid var(--color-base-35); } .loom-node { display: flex; align-items: center; padding: 0; } .loom-node.is-active { background-color: var(--nav-item-background-active); } .loom-node-red { background-color: rgba(var(--color-red-rgb), 0.2) !important; } .loom-node-red.is-active { background-color: rgba(var(--color-red-rgb), 0.3) !important; } .loom-node-orange { background-color: rgba(var(--color-orange-rgb), 0.2) !important; } .loom-node-orange.is-active { background-color: rgba(var(--color-orange-rgb), 0.3) !important; } .loom-node-yellow { background-color: rgba(var(--color-yellow-rgb), 0.2) !important; } .loom-node-yellow.is-active { background-color: rgba(var(--color-yellow-rgb), 0.3) !important; } .loom-node-green { background-color: rgba(var(--color-green-rgb), 0.2) !important; } .loom-node-green.is-active { background-color: rgba(var(--color-green-rgb), 0.3) !important; } .loom-node-blue { background-color: rgba(var(--color-blue-rgb), 0.2) !important; } .loom-node-blue.is-active { background-color: rgba(var(--color-blue-rgb), 0.3) !important; } .loom-node-purple { background-color: rgba(var(--color-purple-rgb), 0.2) !important; } .loom-node-purple.is-active { background-color: rgba(var(--color-purple-rgb), 0.3) !important; } .loom-node-inner { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0.35em 0 0.35em 0.6em; flex-grow: 1; } .loom-node-bookmark { display: flex; align-items: center; margin-left: 0.3em; margin-right: -0.3em; } .loom-node-unread { font-weight: bold !important; } .loom-node-unread-indicator { width: 0.3em; height: 0.3em; border-radius: 50%; background-color: var(--nav-item-color); margin-left: 0.6em; flex-shrink: 0; } .loom-icon { display: inline-flex !important; margin-left: 0.1em; --icon-size: 1.1rem; } .loom-icons:not(.is-mobile) { display: none; } .loom-node:hover .loom-icons { display: inline-flex !important; } .loom-spacer { padding-right: 0.6em; } .loom-section { margin-bottom: 0.5em; } .loom-section-header { padding: 0.35em; } .loom-section-header-inner { color: var(--text-normal); font-weight: var(--font-medium); } .loom-section-count { color: var(--text-faint); } @keyframes rotating { from { transform: rotate(0deg); } to { transform: rotate(360deg); } } .rotating svg { animation: rotating 2s linear infinite; } .rotating { display: inline-flex; align-items: center; } .obsidian-button { -webkit-app-region: no-drag; display: inline-flex; align-items: center; justify-content: center; color: var(--text-normal); font-size: var(--font-ui-small); border-radius: var(--button-radius); border: 0; padding: var(--size-4-1) var(--size-4-3); height: var(--input-height); font-weight: var(--input-font-weight); cursor: var(--cursor); font-family: inherit; outline: none; user-select: none; white-space: nowrap; background-color: var(--interactive-normal); box-shadow: var(--input-shadow); } .obsidian-button:hover { background-color: var(--interactive-hover); } .loom-import-button { flex-grow: 1; } .loom-bct { color: var(--custom-text-color); } .theme-dark .loom-bct-border { border-right: 2px dashed #333; } .loom-bct-hover { background-color: var(--custom-text-background); } .loom-sibling { color: var(--nav-item-color); font-size: 0.9em; line-height: 1.3; margin: 0.2em 0; padding: 0.8em; white-space: pre-wrap; } .loom-sibling:hover { color: var(--nav-item-color-active); } .loom-sibling.is-active { background-color: var(--nav-item-background-active); color: var(--nav-item-color-active); } .loom-sibling-divider { margin: 0; } .loom-sibling-ellipsis { color: var(--text-faint); margin-right: 0.3em; }