Skip to content

Commit

Permalink
Trying to fix flickering on reload
Browse files Browse the repository at this point in the history
  • Loading branch information
utensil committed Sep 30, 2024
1 parent 37ede60 commit 99e4af8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
7 changes: 4 additions & 3 deletions assets/uts-layout.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
<html>
<head>
<meta name="viewport" content="width=device-width" />
<style> :root { background-color: #151a1f !important; }</style>
<link rel="stylesheet" href="style.css" />
<link rel="stylesheet" href="katex.min.css" />
<!-- uts-begin -->
Expand All @@ -37,7 +38,7 @@
</head>
<body>
<ninja-keys placeholder="Start typing a note title or ID"></ninja-keys>

<header class="header">
<nav class="nav">
<div class="logo">
Expand All @@ -53,7 +54,7 @@
</div>
</nav>
</header>

<div id="grid-wrapper">
<article>
<xsl:apply-templates select="f:tree" />
Expand All @@ -70,4 +71,4 @@
</body>
</html>
</xsl:template>
</xsl:stylesheet>
</xsl:stylesheet>
11 changes: 6 additions & 5 deletions bun/uts-style.css
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ body {
}
}

:root,

:root[data-applied-mode="light"] {
color-scheme: light;
--uts-text: black;
Expand All @@ -91,17 +91,18 @@ body {
/* #f4ecd9; */
}

:root,
:root[data-applied-mode="dark"] {
color-scheme: dark;
--uts-text: #d5d4d0;
--uts-link: #d5d4d0;
--uts-text: #cbd1db;
--uts-link: #cbd1db;
--uts-text-gentle: rgb(174, 174, 174);
--uts-text-cite: #8cd295;
--uts-background: #262626;
--uts-background: #151a1f;
--uts-vocab: #db8c84;
}

body {
:root {
background-color: var(--uts-background) !important;
}

Expand Down

0 comments on commit 99e4af8

Please sign in to comment.