UNPKG

1.17 kBJavaScriptView Raw
1'use strict';
2
3Object.defineProperty(exports, '__esModule', { value: true });
4
5const core = require('./core-dd01c714.js');
6
7const Box = class {
8 constructor(hostRef) {
9 core.registerInstance(this, hostRef);
10 /**
11 * CSS classes
12 */
13 this.class = '';
14 }
15 render() {
16 return (core.h(core.Host, null, core.h("div", { class: {
17 box: true,
18 [this.class]: Boolean(this.class),
19 } }, core.h("slot", null))));
20 }
21 static get style() { return ".box:not(:last-child){margin-bottom:1.5rem}.box{background-color:#fff;border-radius:6px;-webkit-box-shadow:0 .5em 1em -.125em rgba(10,10,10,.1),0 0 0 1px rgba(10,10,10,.02);box-shadow:0 .5em 1em -.125em rgba(10,10,10,.1),0 0 0 1px rgba(10,10,10,.02);color:#4a4a4a;display:block;padding:1.25rem}a.box:focus,a.box:hover{-webkit-box-shadow:0 .5em 1em -.125em rgba(10,10,10,.1),0 0 0 1px #5851ff;box-shadow:0 .5em 1em -.125em rgba(10,10,10,.1),0 0 0 1px #5851ff}a.box:active{-webkit-box-shadow:inset 0 1px 2px rgba(10,10,10,.2),0 0 0 1px #5851ff;box-shadow:inset 0 1px 2px rgba(10,10,10,.2),0 0 0 1px #5851ff}"; }
22};
23
24exports.bm_box = Box;