Skip to content
Open
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
42 changes: 24 additions & 18 deletions styles/usejsdoc.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
:root {
--bg-code: #f6f8fa;
--color-heading: #B93A38;
--article-width: 80ch;
}

body {
font: 1em 'Helvetica Neue', Helvetica, Arial, sans-serif;
padding: 0;
Expand Down Expand Up @@ -25,7 +31,9 @@ header a, header a:visited {
}

article {
margin: 18px;
margin: 18px auto;
max-width: var(--article-width);
padding: 0 16px;
}

footer {
Expand All @@ -36,41 +44,40 @@ footer {
}

h1, h2, h3, h4, h5, h6 {
color: #B93A38;
color: var(--color-heading);
}

h1 {
font-size: 1.428em;
text-indent: 0;
}

h2 {
font-size: 1.285em;
text-indent: 1%;
}

h3 {
font-size: 1.142em;
text-indent: 2%;
}

h4 {
font-size: 1em;
text-indent: 3%;
}

h5 {
font-size: 0.857em;
text-indent: 4%;
}

h6 {
font-size: 0.714em;
text-indent: 5%;
}

p {
text-indent: 2%;
line-height: 1.5;
}

figure {
display: block;
margin: 2em 0;
}

figure pre code {
Expand All @@ -82,7 +89,6 @@ figcaption {
}

dl {
margin-left: 2%;
padding-left: 0;
}

Expand All @@ -102,21 +108,21 @@ dd {
}

ol, ul {
margin-left: 2%;
padding-inline-start: 4ch;
}

code {
font: 0.9em Consolas, "Lucida Console", Monaco, monospace;
background-color: #DEDEDE;
}

pre {
background-color: var(--bg-code);
border: none !important;
border-radius: 6px;
display: block;
border: 1px solid #999;
margin: 12px;
padding: 8px;
white-space: pre-wrap;
background-color: #DEDEDE;
margin-top: 12px;
overflow-x: scroll;
padding: 16px !important;
}

table {
Expand All @@ -129,7 +135,7 @@ th, td {

th {
background-color: #DEDEDE;
color: #B93A38;
color: var(--color-heading);
}

.example dt {
Expand Down