Skip to content

Commit

Permalink
Improve hover highlight.
Browse files Browse the repository at this point in the history
  • Loading branch information
lapo-luchini committed Apr 1, 2024
1 parent b6c0059 commit 6052316
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dom.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export class ASN1DOM extends ASN1 {
let isOID = (typeof oids === 'object') && (this.tag.isUniversal() && (this.tag.tagNumber == 0x06) || (this.tag.tagNumber == 0x0D));
let node = DOM.tag('div', 'node');
node.asn1 = this;
let head = DOM.tag('div', 'head');
let head = DOM.tag('span', 'head');
head.appendChild(DOM.tag('span', 'spaces', spaces));
const typeName = this.typeName().replace(/_/g, ' ');
if (this.def) {
Expand Down
1 change: 1 addition & 0 deletions index-dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
--preview-border-color: #b5b3b3;
--dump-bg-color: #0c0e11;
--dump-border-color: #505050;
--hover-bg-color: #505050;
}
h1 {
font-weight: 200;
Expand Down
3 changes: 2 additions & 1 deletion index.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
--preview-border-color: #505050;
--dump-bg-color: #C0C0C0;
--dump-border-color: #E0E0E0;
--hover-bg-color: #E0E0E0;
}
html, body {
background-color: var(--page-bg-color);
Expand Down Expand Up @@ -128,7 +129,7 @@ header {
}
.node:hover > .head, .node.hover > .head {
color: var(--link-color);
font-weight: bold;
background-color: var(--hover-bg-color);
}
.node:hover > .head:hover, .node.hover > .head.hover {
color: var(--link-hover-color);
Expand Down

0 comments on commit 6052316

Please sign in to comment.