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 ? ( indexMarkdown ? (
<Link to={`/markdown/${indexMarkdown.id}`} className="is-link"> <Link to={`/markdown/${indexMarkdown.id}`} className="is-link index-path-node">
{path.name} {path.name}
</Link> </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}> <li key={markdown.id}>
<div className="is-clickable field has-addons"> <div className="is-clickable field has-addons">
<span className="markdown-name has-text-weight-bold control"> <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} {markdown.title}
</Link> </Link>
</span> </span>

View File

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