Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/pages/docs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
} from '../hooks/useApiDocs';
import Layout from '../components/layout';

import '../styles/article-reader.css';
import '../styles/docs.css';

function renderArticleOverview(
Expand Down
84 changes: 84 additions & 0 deletions src/styles/article-reader.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
.article-reader {
max-width: 768px;
padding-left: 4.2rem;
padding-top: var(--space-80);
width: calc(100% - 36.0rem);
}

.article-reader hr {
border: none;
border-bottom: 0.4rem solid var(--black2);
}

/* sr-only for desktop */
.article-reader__headline {
padding: 0;
}

.hero h1 {
cursor: pointer;
}

.article-reader blockquote {
border-left: 3px solid var(--black4);
color: var(--color-text-primary);
font-style: italic;
font-weight: 200;
letter-spacing: 1px;
margin: 0 0 2.8rem 0;
padding: 1.8rem 0 1.8rem 3.2rem;
}

.article-reader blockquote p {
margin: 0;
padding: 0;
}

.article-reader section {
margin-bottom: var(--space-48)
}

.article-reader ul {
margin-bottom: var(--space-24);
}

.article-reader li + h4 {
margin-top: var(--space-32);
}

.article-reader li {
margin-bottom: var(--space-08);
}

.article-reader h3 {
margin-bottom: var(--space-24);
}

.article-reader h4 {
margin-bottom: var(--space-16);
}

.article-reader hr {
margin-bottom: var(--space-40);
}

.article-reader details {
margin-bottom: var(--space-24)
}

.article-reader iframe {
margin-bottom: var(--space-24);
}

.article-reader p + h2 {
margin-top: var(--space-40);
}

.article-reader p + h3 {
margin-top: var(--space-32);
}

.article-reader .api-key__section {
/* margin-bottom: 0; */
}

2 changes: 0 additions & 2 deletions src/styles/docs.css
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@
text-decoration: underline;
}


.api-key {
padding : 0;
list-style: none;
Expand All @@ -73,7 +72,6 @@
margin: 0.8rem 0;
}


.api-key__section .api-key__item:hover,
.api-key__section .api-key__item > a:hover,
.api-key__section .api-key__item:focus,
Expand Down
10 changes: 7 additions & 3 deletions src/styles/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,11 @@
margin-bottom: 160px;
}

.home-page-hero h1, p {
.home-page-hero h1 {
margin: 0;
}

.home-page-hero p {
margin: 0;
}

Expand Down Expand Up @@ -156,8 +160,8 @@
color: var(--color-text-secondary);
}

.node-features__feature, p {
margin-top: var(--space-24);
.node-features__feature > p {
margin-top: var(--space-16);
}

.join-node .accent {
Expand Down
46 changes: 5 additions & 41 deletions src/styles/layout.css
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ body {
font-size: var(--font-size-display1);
line-height: var(--line-height-display1);
font-weight: var(--font-weight-light);
margin: 0 0 var(--space-48) 0;
margin: 0 0 var(--space-80) 0;
}

.t-display2 {
Expand Down Expand Up @@ -162,6 +162,10 @@ pre[class*="language-"],
code[class*="language-"] {
color: var(--black2) !important;
background: var(--black9) !important;
margin-bottom: var(--space-24);
}
pre[class*="language-"] > code[class*="language-"] + h2 {
margin-top: var(--space-40);
}
.token.punctuation { color: var(--black2) !important; }
.token.operator { color: var(--black2) !important; }
Expand Down Expand Up @@ -257,46 +261,6 @@ main {
padding: var(--space-24) var(--space-16) calc(var(--space-24) - 2px) var(--space-16)
}

/* Start: Article Reader HTML Reset */

.article-reader {
max-width: 768px;
padding-left: 4.2rem;
padding-top: var(--space-80);
width: calc(100% - 36.0rem);
}

.article-reader hr {
border: none;
border-bottom: 0.4rem solid var(--black2);
}

/* sr-only for desktop */
.article-reader__headline {
padding: 0;
}

.hero h1 {
cursor: pointer;
}

.article-reader blockquote {
border-left: 3px solid var(--black4);
color: var(--color-text-primary);
font-style: italic;
font-weight: 200;
letter-spacing: 1px;
margin: 0 0 2.8rem 0;
padding: 1.8rem 0 1.8rem 3.2rem;
}

.article-reader blockquote p {
margin: 0;
padding: 0;
}

/* End: Article Reader HTML Reset */

/* TOC */
details,
.toc {
Expand Down
1 change: 1 addition & 0 deletions src/templates/learn.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import Layout from '../components/layout';
import Navigation from '../components/navigation';
import { LearnPageContext, LearnPageData } from '../types';

import '../styles/article-reader.css';
import '../styles/learn.css';

interface Props {
Expand Down