UNPKG

1.28 kBJavaScriptView Raw
1'use strict';
2
3Object.defineProperty(exports, '__esModule', { value: true });
4
5const core = require('./core-dd01c714.js');
6
7const Container = class {
8 constructor(hostRef) {
9 core.registerInstance(this, hostRef);
10 /**
11 * CSS Classes
12 */
13 this.class = '';
14 /**
15 * Fluid container
16 */
17 this.isFluid = false;
18 }
19 render() {
20 return (core.h(core.Host, { class: {
21 container: true,
22 'is-fluid': this.isFluid,
23 [this.breakpoint]: Boolean(this.breakpoint),
24 [this.class]: Boolean(this.class),
25 } }));
26 }
27 static get style() { return ".container{-ms-flex-positive:1;flex-grow:1;margin:0 auto;position:relative;width:auto}.container.is-fluid{max-width:none;padding-left:32px;padding-right:32px;width:100%}\@media screen and (min-width:1024px){.container{max-width:960px}}\@media screen and (max-width:1215px){.container.is-widescreen{max-width:1152px}}\@media screen and (max-width:1407px){.container.is-fullhd{max-width:1344px}}\@media screen and (min-width:1216px){.container{max-width:1152px}}\@media screen and (min-width:1408px){.container{max-width:1344px}}bm-container{display:block}"; }
28};
29
30exports.bm_container = Container;