mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-20 19:34:05 -06:00
disable hover preview in the folder pages
This commit is contained in:
parent
e8d4376728
commit
479cd717a4
@ -43,7 +43,7 @@ export default ((opts?: Partial<FolderContentOptions>) => {
|
|||||||
const sortedTags = Array.from(allTags).sort()
|
const sortedTags = Array.from(allTags).sort()
|
||||||
|
|
||||||
const cssClasses: string[] = fileData.frontmatter?.cssclasses ?? []
|
const cssClasses: string[] = fileData.frontmatter?.cssclasses ?? []
|
||||||
const classes = ["popover-hint", ...cssClasses].join(" ")
|
const classes = ["popover-hint", "disable-card-preview", ...cssClasses].join(" ")
|
||||||
const listProps = {
|
const listProps = {
|
||||||
...props,
|
...props,
|
||||||
allFiles: allPagesInFolder,
|
allFiles: allPagesInFolder,
|
||||||
|
|||||||
@ -639,6 +639,33 @@ input {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.internal {
|
||||||
|
&[href*=".html"],
|
||||||
|
&:not([href*="."]) {
|
||||||
|
&::before, &::after {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Keep the hover effect
|
||||||
|
&:hover {
|
||||||
|
color: var(--secondary);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Disable preview popups for folder listing cards
|
||||||
|
.disable-card-preview {
|
||||||
|
.popover {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.internal {
|
||||||
|
&::before, &::after {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user