UNPKG

1.25 kBJavaScriptView Raw
1import { r as registerInstance, h, H as Host } from './index-d9cbe763.js';
2
3const containerCss = ".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}";
4
5const Container = class {
6 constructor(hostRef) {
7 registerInstance(this, hostRef);
8 /**
9 * CSS Classes
10 */
11 this.class = '';
12 /**
13 * Fluid container
14 */
15 this.isFluid = false;
16 }
17 render() {
18 return (h(Host, { class: {
19 container: true,
20 'is-fluid': this.isFluid,
21 [this.breakpoint]: Boolean(this.breakpoint),
22 [this.class]: Boolean(this.class),
23 } }));
24 }
25};
26Container.style = containerCss;
27
28export { Container as bm_container };