diff --git a/docs/components/pages/landing/gradients.css b/docs/components/pages/landing/gradients.css index 625df0aea2..3effab24fb 100644 --- a/docs/components/pages/landing/gradients.css +++ b/docs/components/pages/landing/gradients.css @@ -11,8 +11,20 @@ section { --bg-color: #000000; } -.editor-glow { +.demo-glow { --glow-opacity: 0.4; + display: block; +} + +.text-glow { + --glow-opacity: 0.2; + display: none; + @media only screen and (hover: none) and (pointer: coarse) { + display: block; /* disable on mobile */ + } +} + +.hero-glow { background: conic-gradient( from 33deg at 50% 50%, hsla(var(--glow-blue), var(--glow-opacity)), diff --git a/docs/components/pages/landing/hero/Demo.tsx b/docs/components/pages/landing/hero/Demo.tsx index afe3870527..cb5b64b703 100644 --- a/docs/components/pages/landing/hero/Demo.tsx +++ b/docs/components/pages/landing/hero/Demo.tsx @@ -31,8 +31,8 @@ const DemoEditor = dynamic( export function Demo(props: { theme?: "light" | "dark" }) { return ( -
+ className={cn( + "font-space-grotesk text-lg leading-snug text-[#00000080] dark:text-[#FFFFFFB2] md:text-xl", + className, + )}> {children}
); diff --git a/docs/components/pages/landing/styles.css b/docs/components/pages/landing/styles.css index d45952326f..e7b2f3ffaa 100644 --- a/docs/components/pages/landing/styles.css +++ b/docs/components/pages/landing/styles.css @@ -8,6 +8,10 @@ } .nextra-nav-container { + z-index: 40; +} + +.nextra-sidebar-container { z-index: 30; } diff --git a/examples/01-basic/04-selection-blocks/App.tsx b/examples/01-basic/04-selection-blocks/App.tsx index 22f0aaf620..5649a37878 100644 --- a/examples/01-basic/04-selection-blocks/App.tsx +++ b/examples/01-basic/04-selection-blocks/App.tsx @@ -1,6 +1,7 @@ import { Block } from "@blocknote/core"; +import "@blocknote/core/fonts/inter.css"; import { BlockNoteView, useCreateBlockNote } from "@blocknote/react"; -import "../../../packages/react/dist/style.css"; +import "@blocknote/react/style.css"; import { useState } from "react"; import "./styles.css";