Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
docs: Adjust some styles (#49221)
Danilo Leal81f4cdbc64e8
diff --git a/docs/theme/css/chrome.css b/docs/theme/css/chrome.cssindex ff0ba711204..637da6063de 100644--- a/docs/theme/css/chrome.css+++ b/docs/theme/css/chrome.css@@ -46,7 +46,7 @@ a > .hljs {position: sticky;top: 0;z-index: 100;- padding: 12px 24px;+ padding: 12px 16px;background-color: var(--sidebar-bg);border-bottom: 1px solid var(--divider);display: flex;@@ -494,7 +494,8 @@ ul#searchresults span.teaser em {.chapter {list-style: none outside none;- padding: 8px 20px 20px 20px;+ padding: 16px;+ padding-top: 8px;line-height: 2.2em;margin: 0;}@@ -551,6 +552,14 @@ ul#searchresults span.teaser em {margin-block-start: 0.6em;}+.section li.chapter-item {+ margin-block-start: 0;+}++.chapter li.part-title + li.chapter-item {+ margin-block-start: 0.2em;+}+.chapter li.chapter-item > a:first-child {flex: 1;min-width: 0;@@ -580,7 +589,7 @@ ul#searchresults span.teaser em {.chapter li.part-title.collapsible::after {content: "❯";display: inline-block;- font-size: 1.2rem;+ font-size: 1rem;opacity: 0.6;transition: transform 0.2s ease;flex-shrink: 0;@@ -591,7 +600,7 @@ ul#searchresults span.teaser em {}.chapter li.section-spacer {- height: 2rem;+ height: 1.5rem;list-style: none;}@@ -601,8 +610,14 @@ ul#searchresults span.teaser em {.section {list-style: none outside none;- padding-inline-start: 3ch;+ padding-inline-start: 1.5ch;+ margin-inline-start: 1ch;+ margin-top: 6px;+ border-left: 1px solid var(--border-light);line-height: 1.9em;+ display: flex;+ flex-direction: column;+ gap: 0.6em;}.theme-popup {diff --git a/docs/theme/css/general.css b/docs/theme/css/general.cssindex 9d4791ea401..f63fd24d137 100644--- a/docs/theme/css/general.css+++ b/docs/theme/css/general.css@@ -133,6 +133,10 @@ h5 {margin-block-end: 0;}+strong {+ color: var(--full-contrast);+}+code:focus-visible,pre:focus-visible,li:focus-visible,diff --git a/docs/theme/css/variables.css b/docs/theme/css/variables.cssindex 285540c6dcd..adbb5da7400 100644--- a/docs/theme/css/variables.css+++ b/docs/theme/css/variables.css@@ -185,8 +185,8 @@--searchresults-li-bg: hsl(220, 13%, 25%);--search-mark-bg: hsl(220, 93%, 60%);- --download-btn-bg: hsl(220, 90%, 90%, 0.1);- --download-btn-bg-hover: hsl(220, 90%, 50%, 0.2);+ --download-btn-bg: hsl(220, 90%, 30%, 0.5);+ --download-btn-bg-hover: hsl(220, 90%, 50%, 0.4);--download-btn-color: hsl(220, 90%, 95%);--download-btn-border: hsla(220, 90%, 80%, 0.2);--download-btn-border-hover: hsla(220, 90%, 80%, 0.4);