mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-11-21 16:13:00 +00:00
Update styling of documentation
This commit is contained in:
parent
a00f338579
commit
d1e2f664d4
2 changed files with 11 additions and 4 deletions
|
@ -45,7 +45,7 @@ register_module([
|
||||||
```
|
```
|
||||||
|
|
||||||
Currently, the following parts are used in the templating process:
|
Currently, the following parts are used in the templating process:
|
||||||
|
TODO: Check that this is up-to-date
|
||||||
Key | Purpose
|
Key | Purpose
|
||||||
----------------------------|------------------
|
----------------------------|------------------
|
||||||
`{body}` | Holds the main body of the page.
|
`{body}` | Holds the main body of the page.
|
||||||
|
@ -86,7 +86,7 @@ register_module([
|
||||||
|
|
||||||
### Global Variables
|
### Global Variables
|
||||||
There are a number of global variables floating around that can give you a lot of information about the current request. ~~I will be tidying them up into a single `$env` object soon.~~ Most of the below have been tidied up into a single `$env` object now! Below is a table of all the variables Pepperminty Wiki has lying around:
|
There are a number of global variables floating around that can give you a lot of information about the current request. ~~I will be tidying them up into a single `$env` object soon.~~ Most of the below have been tidied up into a single `$env` object now! Below is a table of all the variables Pepperminty Wiki has lying around:
|
||||||
|
TODO: Update this table
|
||||||
Variable | Description
|
Variable | Description
|
||||||
------------------------|------------------------------------------
|
------------------------|------------------------------------------
|
||||||
`$env` | An object that contains a _bunch_ of useful information about the current request.
|
`$env` | An object that contains a _bunch_ of useful information about the current request.
|
||||||
|
|
|
@ -31,6 +31,8 @@ main {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
p, li, tr { line-height: 1.65em; }
|
||||||
|
|
||||||
/* Blockquote */
|
/* Blockquote */
|
||||||
blockquote {
|
blockquote {
|
||||||
border-left: 0.25em solid var(--primary-colour-soft);
|
border-left: 0.25em solid var(--primary-colour-soft);
|
||||||
|
@ -47,6 +49,9 @@ h2 {
|
||||||
padding-bottom: 0.1em;
|
padding-bottom: 0.1em;
|
||||||
border-bottom: 0.08em solid var(--primary-colour);
|
border-bottom: 0.08em solid var(--primary-colour);
|
||||||
}
|
}
|
||||||
|
h3 {
|
||||||
|
font-size: 1.5em;
|
||||||
|
}
|
||||||
|
|
||||||
/* Inline elements */
|
/* Inline elements */
|
||||||
.logo-small {
|
.logo-small {
|
||||||
|
@ -64,7 +69,7 @@ pre {
|
||||||
padding: 0.25em;
|
padding: 0.25em;
|
||||||
|
|
||||||
background: hsla(0, 100%, 100%, 0.5);
|
background: hsla(0, 100%, 100%, 0.5);
|
||||||
border: 0.1em dashed var(--primary-colour-soft);
|
border: 0.2em dashed var(--primary-colour-soft);
|
||||||
|
|
||||||
white-space: pre-wrap;
|
white-space: pre-wrap;
|
||||||
overflow-wrap: anywhere;
|
overflow-wrap: anywhere;
|
||||||
|
@ -72,6 +77,8 @@ pre {
|
||||||
pre, :not(pre) > code {
|
pre, :not(pre) > code {
|
||||||
background: hsla(0, 100%, 100%, 0.6);
|
background: hsla(0, 100%, 100%, 0.6);
|
||||||
border-radius: 0.25em;
|
border-radius: 0.25em;
|
||||||
|
padding: 0.25em;
|
||||||
|
font-size: 1.25em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -107,7 +114,7 @@ nav ul {
|
||||||
margin: 0 1.25em; padding: 0;
|
margin: 0 1.25em; padding: 0;
|
||||||
}
|
}
|
||||||
nav ul li {
|
nav ul li {
|
||||||
padding: 0.25em 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
a, a:visited {
|
a, a:visited {
|
||||||
color: hsla(5, 87%, 53%, 0.8);
|
color: hsla(5, 87%, 53%, 0.8);
|
||||||
|
|
Loading…
Reference in a new issue