Skip to content

Commit

Permalink
More formatting; font fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
josh-collinsworth committed Jan 12, 2024
1 parent 5148dd4 commit eb89ba9
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 15 deletions.
52 changes: 44 additions & 8 deletions src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
--deploy-light: #7fe0ff;
--deploy-lighter: #fddcf2;
--deploy-lightest: #fde8f8;
--deploy-medium-light: #5673b8;
--deploy-medium: #3d588f;
--deploy-dark: #0c212a;

Expand All @@ -50,14 +51,31 @@
--ifm-heading-font-weight: 600;
--ifm-font-weight-bold: 600;
--ifm-heading-line-height: 1.1;
--ifm-line-height-base: 1.7;
--ifm-leading: 1.5rem;
--ifm-h1-font-size: 4rem;
--ifm-color-primary: var(--deploy-medium);
--ifm-link-color: var(--deploy-medium);
--ifm-pre-padding: 1.5rem;
--ifm-alert-padding-vertical: 1.5rem;
--ifm-alert-padding-horizontal: 1.5rem;
--ifm-color-info-dark: var(--deploy-medium);
--ifm-color-primary: var(--deploy-medium-light);
--ifm-link-color: var(--deploy-medium-light);
--ifm-pre-padding: 1rem;
--ifm-alert-padding-vertical: 2rem;
--ifm-alert-padding-horizontal: 2rem;
--ifm-color-info-dark: var(--deploy-medium-light);
--ifm-color-info-contrast-background: var(--deploy-lightest);
--ifm-menu-color-background-hover: var(--deploy-lightest);
--ifm-code-font-size: 0.875em;
--ifm-code-padding-horizontal: 0.375em;
--ifm-code-padding-vertical: 0.1875em;
--ifm-code-background: #f6f8fa; /* Matches Prism highlighting */
--ifm-code-color: #393a34;
--ifm-menu-color: var(--gray-2);
--ifm-navbar-search-input-background-color: #fff;
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.1);
--ifm-font-family-base: Inter, ui-sans-serif, system-ui, -apple-system,
"system-ui", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans",
sans-serif;
--ifm-font-family-monospace: Menlo, Monaco, "Lucida Console", Consolas,
"Liberation Mono", "Courier New", monospace, Menlo, Monaco, "Lucida Console",
Consolas, "Liberation Mono", "Courier New", monospace;
}

@media (min-width: 24rem) {
Expand All @@ -66,10 +84,17 @@
}
}

@media (min-width: 36rem) {
:root {
--ifm-pre-padding: 2rem;
}
}

/* Multiple selectors to override defaults in dark mode */
html[data-theme="dark"][data-theme="dark"] {
--ifm-color-primary: var(--runtime);
--docsearch-highlight-color: var(--runtime);
--ifm-menu-color-background-hover: var(--runtime-dark);
--docsearch-hit-active-color: var(--black);
--docsearch-modal-background: var(--gray-4);
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3);
Expand All @@ -80,6 +105,8 @@ html[data-theme="dark"][data-theme="dark"] {
--ifm-link-hover-color: var(--runtime);
--ifm-color-info-dark: var(--deploy-medium);
--ifm-color-info-contrast-background: var(--deploy-dark);
--ifm-code-background: #282a36;
--ifm-menu-color: var(--gray-0);
}

html,
Expand Down Expand Up @@ -127,7 +154,12 @@ h4 {

:where(h1, h2, h3) {
text-wrap: balance;
letter-spacing: -0.02em;
letter-spacing: -0.025em;
}

code {
letter-spacing: 0;
vertical-align: baseline;
}

.markdown a {
Expand Down Expand Up @@ -198,7 +230,11 @@ td p:last-child {
}

.menu__link {
font-size: 0.8rem;
font-size: 0.8125rem;
}

.menu__link--sublist-caret:after {
background-size: 1.5em;
}

.navbar__item {
Expand Down
14 changes: 7 additions & 7 deletions src/pages/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default function Home() {
/>
<h1 className="text-4xl md:text-6xl mb-0">Deno Docs</h1>
</div>
<div className="flex flex-col items-start gap-8 md:gap-4 lg:gap-8 md:grid md:grid-cols-2">
<div className="flex flex-col items-stretch gap-8 md:gap-4 lg:gap-8 md:grid md:grid-cols-2">
<div className="w-full md:w-auto flex flex-col sm:pl-6 py-4 sm:border-l sm:border-solid border-y-0 border-r-0 border-gray-400 dark:border-[var(--runtime)]">
<h2>Deno Runtime</h2>
<p className="min-h-20">
Expand Down Expand Up @@ -48,7 +48,7 @@ export default function Home() {
<div>
<h4 className="mb-1">Configuration</h4>
<p>
Customizations for Deno's built-in TypeScript compiler,
Customizations for Denos built-in TypeScript compiler,
formatter, and linter.{" "}
<a
className="font-bold inline-block underline"
Expand All @@ -61,7 +61,7 @@ export default function Home() {
<div>
<h4 className="mb-1">Testing in Deno</h4>
<p>
All about Deno's built-in test runner for JavaScript or
All about Denos built-in test runner for JavaScript or
TypeScript code.{" "}
<a
className="font-bold inline-block underline"
Expand Down Expand Up @@ -90,7 +90,7 @@ export default function Home() {
<h3 className="mt-16">Deno Deploy APIs:</h3>
<div className="grid grid-cols-1 gap-4 md:gap- mt-4">
<div>
<h4 className="mb-1">Deno KV</h4>
<h4 className="mb-1">KV</h4>
<p>
Key/value database built in to the Deno runtime. Simple API,
works with zero configuration on Deno Deploy.{" "}
Expand All @@ -103,7 +103,7 @@ export default function Home() {
</p>
</div>
<div>
<h4 className="mb-1">Deno Cron</h4>
<h4 className="mb-1">Cron</h4>
<p>
Execute code on a configurable schedule at the edge in any
time zone.{" "}
Expand All @@ -116,9 +116,9 @@ export default function Home() {
</p>
</div>
<div>
<h4 className="mb-1">Deno Queues</h4>
<h4 className="mb-1">Queues</h4>
<p>
Deno's queueing API for offloading larger workloads or
Denos queueing API for offloading larger workloads or
scheduling tasks with guaranteed delivery.{" "}
<a
className="font-bold inline-block underline"
Expand Down

0 comments on commit eb89ba9

Please sign in to comment.