Compare commits

..

1 Commits

Author SHA1 Message Date
cfcf823e4c improve: different color for path/md node 2025-01-09 14:19:31 +00:00
2 changed files with 13 additions and 3 deletions

View File

@@ -85,11 +85,11 @@ const PathNode = ({ path, isRoot = false }) => {
>
{
indexMarkdown ? (
<Link to={`/markdown/${indexMarkdown.id}`} className="is-link">
<Link to={`/markdown/${indexMarkdown.id}`} className="is-link index-path-node">
{path.name}
</Link>
) : (
<a className="is-link">{path.name}</a>
<a className="is-link path-node">{path.name}</a>
)
}
@@ -170,7 +170,7 @@ const PathNode = ({ path, isRoot = false }) => {
<li key={markdown.id}>
<div className="is-clickable field has-addons">
<span className="markdown-name has-text-weight-bold control">
<Link to={`/markdown/${markdown.id}`} className="is-link">
<Link to={`/markdown/${markdown.id}`} className="is-link markdown-node">
{markdown.title}
</Link>
</span>

View File

@@ -46,3 +46,13 @@
.is-clickable:hover {
color: #2759a7;
}
.index-path-node {
background-color: #cceeee !important;
}
.path-node {
background-color: #ccffec !important;
}
.markdown-node {
background-color: #fffbe6 !important;
}