From d30d9bfd96dfaec4551709a98012f24795796d2b Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Mon, 14 Apr 2025 09:59:34 -0700 Subject: [PATCH] Tweak docs layout and font-sizes, try out Inter --- scss/_root.scss | 3 ++- site/src/components/DocsSidebar.astro | 2 +- site/src/components/head/Head.astro | 3 +++ site/src/layouts/DocsLayout.astro | 2 +- site/src/scss/_callouts.scss | 17 +++++++++++++---- site/src/scss/_content.scss | 27 +++++++++++++++++++++++++++ site/src/scss/_sidebar.scss | 4 +++- site/src/scss/_toc.scss | 2 +- 8 files changed, 51 insertions(+), 9 deletions(-) diff --git a/scss/_root.scss b/scss/_root.scss index 99f2969973..4ea0235a27 100644 --- a/scss/_root.scss +++ b/scss/_root.scss @@ -39,6 +39,7 @@ // Note: Custom variable values only support SassScript inside `#{}`. // Fonts + font-feature-settings: "liga" 1, "calt" 1; /* fix for Chrome */ // Note: Use `inspect` for lists so that quoted items keep the quotes. // See https://github.com/sass/sass/issues/2383#issuecomment-336349172 @@ -51,7 +52,7 @@ @if $font-size-root != null { --#{$prefix}root-font-size: #{$font-size-root}; } - --#{$prefix}body-font-family: #{inspect($font-family-base)}; + --#{$prefix}body-font-family: Inter, #{inspect($font-family-base)}; @include rfs($font-size-base, --#{$prefix}body-font-size); --#{$prefix}body-font-weight: #{$font-weight-base}; --#{$prefix}body-line-height: #{$line-height-base}; diff --git a/site/src/components/DocsSidebar.astro b/site/src/components/DocsSidebar.astro index c36ea79bc8..1cbc0f6507 100644 --- a/site/src/components/DocsSidebar.astro +++ b/site/src/components/DocsSidebar.astro @@ -28,7 +28,7 @@ const sidebar = getData('sidebar') )} */} {group.title} -