mirror of
https://github.com/litruv/Docs-Viewer.git
synced 2026-07-24 10:46:09 +10:00
update plugin to work
This commit is contained in:
37
docs/.obsidian/plugins/docs-viewer/styles.css
vendored
37
docs/.obsidian/plugins/docs-viewer/styles.css
vendored
@@ -38,13 +38,6 @@
|
||||
max-width: calc(100% - 10px);
|
||||
}
|
||||
|
||||
/* Sort value styling */
|
||||
.has-sort-value::before {
|
||||
content: attr(data-sort-value);
|
||||
color: var(--color-yellow);
|
||||
margin-right: 2px;
|
||||
}
|
||||
|
||||
/* Title styling */
|
||||
.has-title::after {
|
||||
content: attr(data-title);
|
||||
@@ -52,3 +45,33 @@
|
||||
font-size: 0.85em;
|
||||
opacity: 0.8;
|
||||
}
|
||||
|
||||
/* Sort value styling - moved to appear last (after title) */
|
||||
.has-sort-value::after {
|
||||
content: attr(data-sort-value);
|
||||
color: var(--color-yellow);
|
||||
margin-left: 4px;
|
||||
}
|
||||
|
||||
/* Handle case when both title and sort are present - REPLACE THIS */
|
||||
.has-title.has-sort-value::after {
|
||||
content: none; /* Remove the combined content */
|
||||
}
|
||||
|
||||
/* Add separate pseudo-elements for title and sort when both exist */
|
||||
.has-title.has-sort-value::after {
|
||||
content: attr(data-title);
|
||||
color: var(--color-orange);
|
||||
font-size: 0.85em;
|
||||
opacity: 0.8;
|
||||
}
|
||||
|
||||
.has-title.has-sort-value::before {
|
||||
content: none; /* Ensure no content shows before */
|
||||
}
|
||||
|
||||
/* Add sort value after the title with proper color */
|
||||
.has-title.has-sort-value .sort-suffix {
|
||||
color: var(--color-yellow);
|
||||
margin-left: 4px;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user