Basic templates: max width, inheritable <details>

This commit is contained in:
Iván Sánchez Ortega
2020-12-19 16:58:04 +01:00
parent 54b5b12383
commit ade04e11ad
2 changed files with 6 additions and 6 deletions

View File

@ -19,6 +19,8 @@
}
body {
font-family: Sans;
max-width: 50em;
margin: auto;
}
</style>
</head>
@ -27,4 +29,4 @@
{{{ body }}}
</body></html>
</body></html>

View File

@ -1,6 +1,4 @@
<div class='accordion'>
<!-- <label>Show inherited <a href='#{{id}}'>{{name}} from {{ancestor}}</a>.</label> -->
<label><span class='expander'>▶</span> {{name}} inherited from {{{type ancestor}}}</label>
<details>
<summary>{{name}} inherited from {{{type ancestor}}}</summary>
<div class='accordion-content'>{{{inherited}}}</div>
</div>
</details>