UNPKG

@bulmil/core

Version:

![bulmil](https://user-images.githubusercontent.com/2362138/65766959-c721a080-e16f-11e9-9fb9-45a5a2ad0391.jpg)

42 lines (37 loc) 1.17 kB
/*! * Bulmil - MIT License */ import { HTMLElement, h, Host, proxyCustomElement } from '@stencil/core/internal/client'; const sectionCss = ".section{padding:3rem 1.5rem}@media screen and (min-width: 1024px){.section{padding:3rem 3rem}.section.is-medium{padding:9rem 4.5rem}.section.is-large{padding:18rem 6rem}}bm-section{display:block}"; let Section = class extends HTMLElement { constructor() { super(); this.__registerHost(); } render() { return (h(Host, { class: { section: true, [this.size]: Boolean(this.size), } })); } static get style() { return sectionCss; } }; Section = /*@__PURE__*/ proxyCustomElement(Section, [0, "bm-section", { "size": [1] }]); function defineCustomElement$1() { if (typeof customElements === "undefined") { return; } const components = ["bm-section"]; components.forEach(tagName => { switch (tagName) { case "bm-section": if (!customElements.get(tagName)) { customElements.define(tagName, Section); } break; } }); } const BmSection = Section; const defineCustomElement = defineCustomElement$1; export { BmSection, defineCustomElement };