thibaud frere commited on
Commit
651ae3a
·
1 Parent(s): b05faf0

fix dark mode button

Browse files
app/src/components/ThemeToggle.astro CHANGED
@@ -61,7 +61,7 @@
61
  }
62
  }
63
  // Fallback reasonable tiny header height
64
- if (!topbar) topbar = 40;
65
  }
66
  document.documentElement.style.setProperty('--hf-spaces-topbar', `${topbar}px`);
67
  } catch (_) {
 
61
  }
62
  }
63
  // Fallback reasonable tiny header height
64
+ if (!topbar) topbar = 60;
65
  }
66
  document.documentElement.style.setProperty('--hf-spaces-topbar', `${topbar}px`);
67
  } catch (_) {
app/src/content/chapters/introduction.mdx CHANGED
@@ -48,6 +48,8 @@ Ideal for anyone creating **web‑native** and **interactive** content with **mi
48
  - For **scientists** writing modern web‑native papers
49
  - For **educators** building explorable lessons.
50
 
 
 
51
  This is not a CMS or a multi‑page blog—it's a **focused**, **single‑page**, **MDX‑first** workflow.
52
 
53
  ### Inspired by Distill
 
48
  - For **scientists** writing modern web‑native papers
49
  - For **educators** building explorable lessons.
50
 
51
+ **No web knowledge required**—just write in **Markdown**.
52
+
53
  This is not a CMS or a multi‑page blog—it's a **focused**, **single‑page**, **MDX‑first** workflow.
54
 
55
  ### Inspired by Distill
app/src/styles/_layout.css CHANGED
@@ -99,8 +99,8 @@
99
 
100
  #theme-toggle {
101
  position: fixed;
102
- top: calc(var(--spacing-2) + var(--hf-spaces-topbar, 0px));
103
- right: var(--content-padding-x);
104
  margin: 0;
105
  z-index: var(--z-overlay);
106
  }
 
99
 
100
  #theme-toggle {
101
  position: fixed;
102
+ top: calc(var(--spacing-4) + var(--hf-spaces-topbar, 0px));
103
+ right: var(--spacing-3);
104
  margin: 0;
105
  z-index: var(--z-overlay);
106
  }