UNPKG

@limetech/lime-elements

Version:
21 lines (16 loc) 869 B
'use strict'; var index = require('./index-BjHIBY-I.js'); const gridCss = () => `:host{display:block;position:relative}:host([hidden]){display:none}slot{display:grid;grid-template-areas:var(--lime-grid-area, "");grid-template-columns:repeat(var(--lime-grid-columns, 4), minmax(0, 1fr));gap:var(--lime-grid-gutter, 1rem);grid-auto-flow:row dense;grid-auto-rows:var(--lime-grid-cell-height, 2.5rem);margin:0;height:100%;width:100%}`; const Grid = class { constructor(hostRef) { index.registerInstance(this, hostRef); } componentWillLoad() { console.warn('limel-grid is deprecated, please use CSS instead: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_grid_layout'); } render() { return index.h("slot", { key: '7248c244edbe50a29b32b327a8317d7be106bd18' }); } }; Grid.style = gridCss(); exports.limel_grid = Grid;