add descriptions

This commit is contained in:
Ash Keel 2023-02-18 13:18:01 +01:00
parent 0adfa206c8
commit ba848208be
No known key found for this signature in database
GPG Key ID: BAD8D93E7314ED3E
2 changed files with 13 additions and 0 deletions

View File

@ -1,4 +1,5 @@
{{ define "schema" }}
{{ with .description }}<blockquote>{{ . }}</blockquote>{{ end }}
<code>
{{ with .element }}
{{ with $.name }}

View File

@ -75,6 +75,18 @@
.schema {
margin-top: 1rem;
code > ul:first-of-type > li > blockquote {
padding-top: 0;
}
blockquote {
margin: 0;
padding: 0;
padding-top: 0.5rem;
color: $gray9;
&::before {
content: "// ";
}
}
.nameblock {
display: none;
}