docs: fix links from TOC to Headings and improve appearance of docs (a little) (#4866)

* docs: fix links from TOC to Headings
* docs: Styling

Just a little modernisation of the appearance of the documentation

* Update src/bin/doc/package.json

Co-authored-by: Richard Hansen <rhansen@rhansen.org>

Co-authored-by: Richard Hansen <rhansen@rhansen.org>
This commit is contained in:
John McLear 2021-02-25 09:01:45 +00:00 committed by GitHub
parent 41ec7fe3fc
commit 4a65acf417
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 28 additions and 62 deletions

View file

@ -1,62 +1,35 @@
html {
border-top: solid green 5pt;
}
body.apidoc {
width: 60%;
min-width: 10cm;
body{
border-top: solid #44b492 5pt;
line-height:150%;
font-family: 'Quicksand',sans-serif;
color: #313b4a;
max-width:800px;
margin: 0 auto;
padding: 20px;
}
#header {
padding: 1pc 0;
color: #111;
a{
color: #555;
}
a,
a:active {
color: #272;
}
a:focus,
a:hover {
color: #050;
h1{
color: #44b492;
line-height:100%;
}
#apicontent a.mark,
#apicontent a.mark:active {
float: right;
color: #BBB;
font-size: 0.7cm;
text-decoration: none;
}
#apicontent a.mark:focus,
#apicontent a.mark:hover {
color: #AAA;
a:hover{
color: #44b492;
}
#apicontent code {
padding: 1px;
background-color: #EEE;
border-radius: 4px;
border: 1px solid #DDD;
}
#apicontent pre>code {
display: block;
overflow: auto;
padding: 5px;
pre{
background-color: #e0e0e0;
padding:20px;
}
table, th, td {
text-align: left;
border: 1px solid gray;
border-collapse: collapse;
code{
background-color: #e0e0e0;
}
th {
padding: 0.5em;
background: #EEE;
}
td {
padding: 0.5em;
img {
max-width: 100%;
}