diff --git a/src/components/HeroDrift/index.tsx b/src/components/HeroDrift/index.tsx index 57d740d..db276b2 100644 --- a/src/components/HeroDrift/index.tsx +++ b/src/components/HeroDrift/index.tsx @@ -38,13 +38,3 @@ export default function HeroDrift(): ReactNode { ); } -/** The same names as two full-width rows under the hero on narrower screens, - * where the side columns would sit on top of the headline. */ -export function HeroDriftRows(): ReactNode { - return ( -
- ); -} diff --git a/src/css/custom.css b/src/css/custom.css index b9e1f11..94e0ca7 100644 --- a/src/css/custom.css +++ b/src/css/custom.css @@ -566,7 +566,8 @@ body { height: 28px; } - .sl-menu__group-label, + /* Two classes plus the element, to beat the inline-flex above. */ + .sl-menu__item a.sl-menu__group-label, .sl-submenu__desc { display: none; } @@ -687,10 +688,11 @@ body { } /* The hamburger bars are hardcoded near-white in app.css, which vanishes - on the light theme. The open menu overlay is black, so the X keeps it. */ -.header .sl-menu:not(.menu-open) .icon-menu span, -.header .sl-menu:not(.menu-open) .icon-menu::before, -.header .sl-menu:not(.menu-open) .icon-menu::after { + on the light theme. The open menu takes the page's ground in both themes, + so the X uses the theme's ink too, or it can't be seen to close the menu. */ +.header .sl-menu .icon-menu span, +.header .sl-menu .icon-menu::before, +.header .sl-menu .icon-menu::after { background-color: var(--sl-fg); } diff --git a/src/pages/home.module.css b/src/pages/home.module.css index 32f6a0e..75019f7 100644 --- a/src/pages/home.module.css +++ b/src/pages/home.module.css @@ -347,36 +347,10 @@ } } -.heroDrift .chip, -.heroDriftRows .chip { +.heroDrift .chip { opacity: 0.75; } -/* Below the side columns' width: the same chips as two rows under the - buttons, faded at both edges so they drift in and out of view. */ -.heroDriftRows { - position: relative; - z-index: 0; - display: flex; - flex-direction: column; - gap: 12px; - margin-top: 48px; - pointer-events: none; - -webkit-mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent); - mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent); -} - -.heroDriftRows .chip { - padding: 8px 14px; - font-size: 0.84rem; -} - -@media (min-width: 1240px) { - .heroDriftRows { - display: none; - } -} - /* ── marquee ────────────────────────────────────────── */ .marquee { overflow: hidden; @@ -1912,3 +1886,9 @@ padding-top: 56px; } + +/* Keep "Local first." together: when the headline doesn't fit on one line, + the phrase drops whole to the second line instead of splitting. */ +.heroHome .heroTitle .accent { + white-space: nowrap; +} diff --git a/src/pages/index.module.css b/src/pages/index.module.css index d9c7908..679549b 100644 --- a/src/pages/index.module.css +++ b/src/pages/index.module.css @@ -3032,8 +3032,11 @@ details[open] .faqQuestion::after { text-align: right; } -.gpuTable tr { +.gpuTable thead, +.gpuTable tr, +.gpuTable tr:nth-child(2n) { background: transparent; + border: none; } @media (max-width: 560px) { diff --git a/src/pages/index.tsx b/src/pages/index.tsx index 2261075..9a51d83 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -3,7 +3,7 @@ import Link from '@docusaurus/Link'; import Head from '@docusaurus/Head'; import Header from '../components/Header'; import Footer from '../components/Footer'; -import HeroDrift, { HeroDriftRows } from '../components/HeroDrift'; +import HeroDrift from '../components/HeroDrift'; import styles from './home.module.css'; // smartloop.ai is the company, the way 37signals sits over Basecamp and HEY: @@ -263,7 +263,6 @@ export default function Home(): ReactNode { -