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 { body {
font-family: Sans; font-family: Sans;
max-width: 50em;
margin: auto;
} }
</style> </style>
</head> </head>
@ -27,4 +29,4 @@
{{{ body }}} {{{ body }}}
</body></html> </body></html>

View File

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