theme toggle: absolute (not fixed) so it doesn't follow scroll

This commit is contained in:
Michael Pilosov 2026-04-22 11:16:20 -06:00
parent f07fa567d0
commit 8db92089a1
3 changed files with 3 additions and 3 deletions

View File

@ -1079,7 +1079,7 @@ button.submit:disabled { background: var(--faint); border-color: var(--faint); c
.masthead-link:hover { border-bottom-color: var(--accent); }
.theme-toggle {
position: fixed;
position: absolute;
top: 0.6rem;
right: 0.8rem;
z-index: 50;

View File

@ -4,7 +4,7 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<title>embedding notebook</title>
<link rel="stylesheet" href="/static/style.css?v=15" />
<link rel="stylesheet" href="/static/style.css?v=16" />
<script src="https://unpkg.com/htmx.org@2.0.4"></script>
<script type="importmap">
{

View File

@ -4,7 +4,7 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<title>embedding notebook · metrics</title>
<link rel="stylesheet" href="/static/style.css?v=15" />
<link rel="stylesheet" href="/static/style.css?v=16" />
<link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='3' fill='%231f4e5f'/%3E%3C/svg%3E" />
<script>
(function(){try{