Improve dark theme warning aside

Also wrapped @id with backticks to make it look a bit nicer
This commit is contained in:
Francis Lavoie 2020-02-26 14:45:29 -05:00
parent cb9a30b124
commit f88157bca1
No known key found for this signature in database
GPG key ID: 7D1A27F0725BE5D8
2 changed files with 15 additions and 3 deletions

View file

@ -35,7 +35,7 @@ To get started with the API, try our [API tutorial](/docs/api-tutorial) or, if y
- **[DELETE /config/[path]](#delete-configpath)** - **[DELETE /config/[path]](#delete-configpath)**
Deletes the value at the named path Deletes the value at the named path
- **[Using @id in JSON](#using-id-in-json)** - **[Using `@id` in JSON](#using-id-in-json)**
Easily traverse into the config structure Easily traverse into the config structure
@ -194,11 +194,11 @@ To stop only one of your HTTP servers:
<pre><code class="cmd bash">curl -X DELETE "http://localhost:2019/config/apps/http/servers/myserver"</code></pre> <pre><code class="cmd bash">curl -X DELETE "http://localhost:2019/config/apps/http/servers/myserver"</code></pre>
## Using @id in JSON ## Using `@id` in JSON
You can embed IDs in your JSON document for easier direct access to those parts of the JSON. You can embed IDs in your JSON document for easier direct access to those parts of the JSON.
Simply add a field called "@id" to an object and give it a unique name. For example, if you had a reverse proxy handler that you wanted to access frequently: Simply add a field called `"@id"` to an object and give it a unique name. For example, if you had a reverse proxy handler that you wanted to access frequently:
```json ```json
{ {

View file

@ -720,6 +720,18 @@ td code {
border-color: #08575a; border-color: #08575a;
} }
article aside.warning {
border-top-color: #462e00;
color: #e1973b;
background: -webkit-radial-gradient(top left, #462e00, transparent 65%);
background: -moz-radial-gradient(top left, #462e00, transparent 65%);
background: radial-gradient(top left, #462e00, transparent 65%);
border-left-color: #462e00;
}
article aside.warning::before {
color: #e1973b;
}
article aside.tip:before { article aside.tip:before {
color: #185f5b; color: #185f5b;
} }