mirror of
https://github.com/wassname/template.git
synced 2026-06-30 12:39:40 +08:00
27 lines
477 B
JavaScript
27 lines
477 B
JavaScript
import { Template } from '../mixins/template';
|
|
import { body } from '../helpers/layout';
|
|
|
|
const T = Template('d-abstract', `
|
|
<style>
|
|
:host {
|
|
font-size: 1.25rem;
|
|
line-height: 1.6em;
|
|
color: rgba(0, 0, 0, 0.7);
|
|
-webkit-font-smoothing: antialiased;
|
|
}
|
|
|
|
::slotted(p) {
|
|
margin-top: 0;
|
|
margin-bottom: 1em;
|
|
grid-column: text-start / middle-end;
|
|
}
|
|
${body('d-abstract')}
|
|
</style>
|
|
|
|
<slot></slot>
|
|
`);
|
|
|
|
export class Abstract extends T(HTMLElement) {
|
|
|
|
}
|