Compare commits

..

3 commits

Author SHA1 Message Date
Magnus Åhall
86fcbbb68f Fixed selected node highlighting 2026-06-16 08:53:15 +02:00
Magnus Åhall
d1c3b9e963 Fixed better font settings 2026-06-16 08:48:26 +02:00
Magnus Åhall
dbd3872f0f Fixed flashing history page 2026-06-16 08:35:58 +02:00
3 changed files with 17 additions and 6 deletions

View file

@ -13,6 +13,8 @@
--menu-color: #fff;
--menu-item-hover-color: #f4f4f4;
--font-monospace: "Liberation Mono", monospace;
}
html {
@ -23,6 +25,10 @@ html {
filter: var(--colorize);
}
textarea {
font-family: var(--font-monospace);
}
button {
font-size: 1em;
padding: 4px 8px;
@ -441,7 +447,6 @@ n2-nodeui {
grid-area: content;
justify-self: center;
word-wrap: break-word;
font-family: monospace;
font-size: 1em;
color: #333;
@ -465,6 +470,10 @@ n2-nodeui {
grid-area: content;
display: none;
font-family: var(--font-monospace);
font-size: 1em;
font-weight: 400;
border-top: 1px solid #e0e0e0;
margin-top: 8px;
margin-bottom: 32px;

View file

@ -481,7 +481,9 @@ export class N2TreeNode extends CustomHTMLElement {
this.tmpl.innerHTML = `
<style>
n2-sidebar:focus-within {
& > .el-name {
n2-specialnodedeleted > .el-name,
n2-specialnodeorphaned > .el-name,
n2-treenode > .el-name {
&.selected {
span {
position:relative;

View file

@ -1,9 +1,12 @@
{{ define "page" }}
<link rel="stylesheet" type="text/css" href="/css/{{ .VERSION }}/notes2.css">
<link rel="stylesheet" type="text/css" href="/css/{{ .VERSION }}/page_history.css">
<!-- Drag and drop elements -->
<!-- page-node -->
<div id="notes2" class="page-history">
<div id="notes2" class="page-node">
<div id="tree-expander" onclick="window._mbus.dispatch('TREE_EXPANSION', { expand: true })">&gt;</div>
<div id="tree" tabindex=0></div>
@ -37,9 +40,6 @@
<n2-syncprogress></n2-syncprogress>
</div>
<link rel="stylesheet" type="text/css" href="/css/{{ .VERSION }}/notes2.css">
<link rel="stylesheet" type="text/css" href="/css/{{ .VERSION }}/page_history.css">
<script type="module">
import {NodeStore} from '/js/{{ .VERSION }}/node_store.mjs'