mirror of
https://github.com/wassname/template.git
synced 2026-06-29 19:01:54 +08:00
67 lines
999 B
JavaScript
67 lines
999 B
JavaScript
import { Template } from '../mixins/template';
|
|
|
|
const T = Template('d-appendix', `
|
|
<style>
|
|
|
|
d-appendix {
|
|
contain: layout style;
|
|
font-size: 0.8em;
|
|
line-height: 1.7em;
|
|
margin-top: 60px;
|
|
margin-bottom: 0;
|
|
border-top: 1px solid rgba(0, 0, 0, 0.1);
|
|
color: rgba(0,0,0,0.5);
|
|
padding-top: 60px;
|
|
padding-bottom: 48px;
|
|
}
|
|
|
|
d-appendix h3 {
|
|
grid-column: page-start / text-start;
|
|
font-size: 15px;
|
|
font-weight: 500;
|
|
margin-top: 1em;
|
|
margin-bottom: 0;
|
|
color: rgba(0,0,0,0.65);
|
|
}
|
|
|
|
d-appendix h3 + * {
|
|
margin-top: 1em;
|
|
}
|
|
|
|
d-appendix ol {
|
|
padding: 0 0 0 15px;
|
|
}
|
|
|
|
@media (min-width: 768px) {
|
|
d-appendix ol {
|
|
padding: 0 0 0 30px;
|
|
margin-left: -30px;
|
|
}
|
|
}
|
|
|
|
d-appendix li {
|
|
margin-bottom: 1em;
|
|
}
|
|
|
|
d-appendix a {
|
|
color: rgba(0, 0, 0, 0.6);
|
|
}
|
|
|
|
d-appendix > * {
|
|
grid-column: text;
|
|
}
|
|
|
|
d-appendix > d-footnote-list,
|
|
d-appendix > d-citation-list,
|
|
d-appendix > distill-appendix {
|
|
grid-column: screen;
|
|
}
|
|
|
|
</style>
|
|
|
|
`, false);
|
|
|
|
export class Appendix extends T(HTMLElement) {
|
|
|
|
}
|