Skip to content

Commit fa69c2a

Browse files
fix(explorer): increase consistency, explicitly use font-family (#496)
* fix(explorer): display name for folders without `index` file * docs(explorer): add section for folder display names * docs(explorer): fix broken wikilink * fix(consistency): explicitly set font + label/link fix Use consistent styling between folders with `folderClickBehavior: "link"` and `"collapse` * Update quartz/components/styles/explorer.scss Co-authored-by: Jacky Zhao <[email protected]> * Update quartz/components/styles/explorer.scss Co-authored-by: Jacky Zhao <[email protected]> --------- Co-authored-by: Jacky Zhao <[email protected]>
1 parent 8eb1554 commit fa69c2a

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

docs/features/explorer.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Quartz features an explorer that allows you to navigate all files and folders on
88

99
By default, it shows all folders and files on your page. To display the explorer in a different spot, you can edit the [[layout]].
1010

11-
Display names for folders get determined by the `title` frontmatter field in `folder/index.md` (more detail in [[Authoring Content]]). If this file does not exist or does not contain frontmatter, the local folder name will be used instead.
11+
Display names for folders get determined by the `title` frontmatter field in `folder/index.md` (more detail in [[authoring content | Authoring Content]]). If this file does not exist or does not contain frontmatter, the local folder name will be used instead.
1212

1313
> [!info]
1414
> The explorer uses local storage by default to save the state of your explorer. This is done to ensure a smooth experience when navigating to different pages.

quartz/components/styles/explorer.scss

+10-9
Original file line numberDiff line numberDiff line change
@@ -81,16 +81,17 @@ svg {
8181
align-items: center;
8282
user-select: none;
8383

84-
& li > a {
85-
// other selector is more specific, needs important
86-
color: var(--secondary) !important;
87-
opacity: 1 !important;
88-
font-size: 1.05rem !important;
84+
& div > a {
85+
color: var(--secondary);
86+
font-family: var(--headerFont);
87+
font-size: 0.95rem;
88+
font-weight: 600;
89+
line-height: 1.5rem;
90+
display: inline-block;
8991
}
9092

91-
& li > a:hover {
92-
// other selector is more specific, needs important
93-
color: var(--tertiary) !important;
93+
& div > a:hover {
94+
color: var(--tertiary);
9495
}
9596

9697
& div > button {
@@ -103,6 +104,7 @@ svg {
103104
padding-right: 0;
104105
display: flex;
105106
align-items: center;
107+
font-family: var(--headerFont);
106108

107109
& p {
108110
font-size: 0.95rem;
@@ -111,7 +113,6 @@ svg {
111113
font-weight: 600;
112114
margin: 0;
113115
line-height: 1.5rem;
114-
font-weight: bold;
115116
pointer-events: none;
116117
}
117118
}

0 commit comments

Comments
 (0)