mirror of
https://github.com/bfloydd/coalesce.git
synced 2026-07-22 12:50:30 +00:00
314 lines
No EOL
5.9 KiB
CSS
314 lines
No EOL
5.9 KiB
CSS
/* ============================
|
|
HeaderComponent Styles
|
|
============================ */
|
|
|
|
.block-header {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.header-title {
|
|
font-weight: normal;
|
|
}
|
|
|
|
.toggle-arrow {
|
|
cursor: pointer;
|
|
margin-right: 5px;
|
|
transition: transform 0.2s ease;
|
|
}
|
|
|
|
.backlinks-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
margin-bottom: 10px;
|
|
justify-content: space-between;
|
|
/* flex-wrap: wrap;
|
|
width: 100%; */
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.backlinks-header-left {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.backlinks-header-right {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.sort-button {
|
|
background: none;
|
|
border: none;
|
|
padding: 4px;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.collapse-button svg {
|
|
transition: transform 0.2s ease;
|
|
}
|
|
|
|
/* Add these new styles before the themes section */
|
|
.settings-button {
|
|
background: none;
|
|
border: none;
|
|
padding: 4px;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
color: var(--text-muted);
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.settings-button:hover {
|
|
background-color: var(--background-modifier-hover);
|
|
}
|
|
|
|
.settings-button svg {
|
|
width: 16px;
|
|
height: 16px;
|
|
}
|
|
|
|
.settings-popup {
|
|
position: absolute;
|
|
top: var(--popup-top);
|
|
left: var(--popup-left);
|
|
background-color: var(--background-primary);
|
|
border: 1px solid var(--background-modifier-border);
|
|
border-radius: 4px;
|
|
padding: 2px;
|
|
z-index: 100;
|
|
box-shadow: var(--shadow-s);
|
|
min-width: 180px;
|
|
}
|
|
|
|
.settings-item {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 0 8px;
|
|
cursor: pointer;
|
|
position: relative;
|
|
user-select: none;
|
|
color: var(--text-normal);
|
|
height: 24px;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.settings-item:hover {
|
|
background-color: var(--background-modifier-hover);
|
|
}
|
|
|
|
.setting-item-icon {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 16px;
|
|
height: 16px;
|
|
color: var(--text-muted);
|
|
margin-right: 4px;
|
|
}
|
|
|
|
.setting-item-label {
|
|
flex: 1;
|
|
margin-left: 4px;
|
|
color: var(--text-normal);
|
|
line-height: 1;
|
|
}
|
|
|
|
.checkmark-container {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 16px;
|
|
height: 16px;
|
|
margin-left: 4px;
|
|
}
|
|
|
|
.checkmark {
|
|
color: var(--text-accent);
|
|
width: 14px;
|
|
height: 14px;
|
|
}
|
|
|
|
.settings-item:hover .checkmark {
|
|
color: var(--text-accent-hover);
|
|
}
|
|
|
|
.toggle-container {
|
|
width: 16px;
|
|
height: 16px;
|
|
margin-right: 8px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
position: relative;
|
|
}
|
|
|
|
.toggle-circle {
|
|
width: 16px;
|
|
height: 16px;
|
|
border: 1px solid var(--text-muted);
|
|
border-radius: 50%;
|
|
background-color: var(--background-modifier-form-field);
|
|
transition: background-color 150ms ease;
|
|
}
|
|
|
|
.toggle-circle.is-enabled {
|
|
background-color: var(--text-accent);
|
|
border-color: var(--text-accent);
|
|
}
|
|
|
|
.settings-item:hover .toggle-circle:not(.is-enabled) {
|
|
border-color: var(--text-normal);
|
|
}
|
|
|
|
/* ============================
|
|
CoalesceView Styles
|
|
============================ */
|
|
/*
|
|
.backlink-item:not(:last-child) {
|
|
border-bottom: 1px solid var(--background-modifier-border);
|
|
margin-bottom: 10px;
|
|
} */
|
|
|
|
.content-preview {
|
|
color: var(--text-muted);
|
|
font-size: 0.9em;
|
|
padding: 5px;
|
|
}
|
|
|
|
.content-preview p {
|
|
margin-top: 5px;
|
|
margin-bottom: 5px;
|
|
padding: 0;
|
|
}
|
|
|
|
.custom-backlinks-container {
|
|
border-top: 1px solid var(--background-modifier-border);
|
|
margin-top: 20px;
|
|
padding-top: 10px;
|
|
position: relative;
|
|
z-index: 10;
|
|
background-color: var(--background-primary);
|
|
color: var(--text-normal);
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
/* box-sizing: border-box; */
|
|
/* max-width: 100%; */
|
|
}
|
|
|
|
.is-readable-line-width .custom-backlinks-container,
|
|
.is-readable-line-width .markdown-content,
|
|
.is-readable-line-width .backlinks-header {
|
|
max-width: var(--file-line-width);
|
|
width: 100%;
|
|
}
|
|
|
|
.markdown-content {
|
|
margin-left: auto !important;
|
|
margin-right: auto !important;
|
|
}
|
|
|
|
/* ============================
|
|
BlockComponent Styles
|
|
============================ */
|
|
|
|
.block-title {
|
|
display: block;
|
|
margin-bottom: 0px;
|
|
text-decoration: none;
|
|
color: var(--text-normal);
|
|
}
|
|
|
|
/* ============================
|
|
Themes
|
|
============================ */
|
|
|
|
/* Default Theme */
|
|
.theme-default .backlinks-header {
|
|
padding: 8px;
|
|
border-bottom: 1px solid var(--background-modifier-border);
|
|
}
|
|
|
|
.theme-default .header-title {
|
|
margin-left: 8px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.theme-default .block-header {
|
|
padding: 4px 8px;
|
|
background: var(--background-primary);
|
|
}
|
|
|
|
.theme-default .backlink-item {
|
|
padding: 5px 10px;
|
|
}
|
|
|
|
.theme-default .backlink-item:not(:last-child) {
|
|
border-bottom: 1px solid var(--background-modifier-border);
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
/* Minimal Theme */
|
|
.theme-minimal .backlinks-header {
|
|
padding: 4px;
|
|
border: none;
|
|
}
|
|
|
|
.theme-minimal .header-title {
|
|
margin-left: 4px;
|
|
font-weight: normal;
|
|
}
|
|
|
|
.theme-minimal .block-header {
|
|
padding: 2px 4px;
|
|
background: transparent;
|
|
}
|
|
|
|
/* Modern Theme */
|
|
.theme-modern .backlinks-header {
|
|
padding: 12px;
|
|
border-radius: 8px;
|
|
background: var(--background-secondary);
|
|
}
|
|
|
|
.theme-modern .header-title {
|
|
margin-left: 12px;
|
|
font-weight: bold;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.theme-modern .block-header {
|
|
padding: 8px 12px;
|
|
background: var(--background-secondary-alt);
|
|
border-radius: 6px;
|
|
}
|
|
|
|
.theme-modern .backlink-item {
|
|
padding: 3px 0px;
|
|
}
|
|
|
|
/* Add these new styles */
|
|
.settings-header {
|
|
cursor: default !important;
|
|
color: var(--text-muted);
|
|
font-size: 12px;
|
|
padding-top: 4px;
|
|
}
|
|
|
|
.settings-header:hover {
|
|
background-color: transparent !important;
|
|
}
|
|
|
|
.menu-separator {
|
|
height: 1px;
|
|
background-color: var(--background-modifier-border);
|
|
margin: 4px 0;
|
|
} |