bfloydd_coalesce/styles/components/blocks.css
2026-06-04 08:30:14 -06:00

190 lines
No EOL
4.2 KiB
CSS

/* ============================
Coalesce Blocks Component Styles
============================ */
/* Block header row */
.coalesce-block-header {
display: flex;
align-items: center;
cursor: pointer;
/* Performance optimization */
will-change: transform;
transform: translateZ(0);
}
.coalesce-block-header:hover {
background-color: var(--background-modifier-hover);
}
/* Toggle arrow inside block header */
.coalesce-toggle-arrow {
cursor: pointer;
margin-right: 5px;
display: flex;
align-items: center;
justify-content: center;
}
/* Toggle arrow icon styling */
.coalesce-toggle-arrow svg {
width: var(--coalesce-icon-size-sm);
height: var(--coalesce-icon-size-sm);
transition: opacity 0.2s ease;
}
/* Block title link */
.coalesce-block-title {
display: block;
margin-bottom: 0px;
text-decoration: none;
color: var(--text-normal);
transition: color 0.2s ease;
}
.coalesce-block-title:hover {
color: var(--interactive-accent);
text-decoration: underline;
}
.coalesce-block-title:active {
color: var(--interactive-accent-hover);
}
/* Content preview */
.coalesce-content-preview {
color: var(--text-muted);
font-size: 0.9em;
padding: 5px;
/* Performance optimization */
will-change: transform;
transform: translateZ(0);
}
.coalesce-content-preview p {
margin-top: 5px;
margin-bottom: 5px;
padding: 0;
}
/* Checkmark container - smaller and more compact */
.coalesce-checkmark-container {
display: flex;
align-items: center;
justify-content: center;
width: 20px;
height: 20px;
margin-left: auto;
}
/* Obsidian-style checkmark icon */
.coalesce-checkmark {
color: var(--interactive-accent);
width: 16px;
height: 16px;
}
/* Checkmark states */
.coalesce-checkmark-container .coalesce-checkmark {
display: none;
}
.coalesce-checkmark-container.is-checked .coalesce-checkmark {
display: block;
color: var(--interactive-accent);
}
/* Block item container and states */
.coalesce-backlink-item {
/* Performance optimization */
/* will-change: transform; */
transform: translateZ(0);
transition: opacity 0.15s ease-out;
}
.coalesce-backlink-item.has-alias {
display: block;
opacity: 1;
pointer-events: auto;
}
.coalesce-backlink-item.no-alias {
display: none;
opacity: 0.3;
pointer-events: none;
}
/* Collapsed block content */
body .coalesce-backlink-item.is-collapsed .coalesce-content-preview {
display: none;
}
/* Add Heading prompt in block header */
body .coalesce-custom-backlinks-container .coalesce-add-heading-prompt {
color: var(--text-muted);
cursor: pointer;
text-decoration: none;
border-bottom: 1px dotted currentcolor;
transition: all 0.2s ease;
}
.coalesce-add-heading-icon {
display: inline-flex;
align-items: center;
margin-right: 6px;
vertical-align: middle;
opacity: 0.9;
}
.coalesce-add-heading-separator {
color: var(--text-faint);
margin: 0 4px;
}
body .coalesce-custom-backlinks-container .coalesce-add-heading-prompt:hover {
color: var(--text-accent);
border-bottom-color: var(--text-accent);
}
body .coalesce-custom-backlinks-container .coalesce-add-heading-prompt:active {
color: var(--text-accent-hover);
}
/* Open note icon next to Add heading */
.coalesce-add-heading-open-note {
margin-left: 6px;
padding: 2px;
line-height: 0;
background: transparent;
border: none;
color: var(--text-muted);
cursor: pointer;
vertical-align: middle;
}
.coalesce-add-heading-open-note:hover {
color: var(--text-accent);
}
/* Heading popup modal styles */
body div.coalesce-heading-popup-modal {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
display: flex;
justify-content: center;
align-items: center;
z-index: 10000;
}
body div.coalesce-heading-popup-modal .coalesce-heading-popup-content {
background: var(--background-primary);
border: 1px solid var(--border-color);
border-radius: 8px;
padding: 20px;
min-width: 300px;
max-width: 500px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}