-
Notifications
You must be signed in to change notification settings - Fork 0
/
jviz-grid.html
41 lines (37 loc) · 1008 Bytes
/
jviz-grid.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<!--
@license
Copyright (c) 2016 The Jviz Project Authors. All rights reserved.
The Jviz Project is under the MIT License. See https://github.com/jviz/jviz/blob/dev/LICENSE
-->
<!-- Import dependencies -->
<link rel="import" href="../polymer/polymer.html">
<link rel="import" href="../jviz/jviz.html">
<link rel="import" href="../jviz-styles/jviz-styles.html">
<!-- Import grid elements -->
<link rel="import" href="./jviz-grid-row.html">
<link rel="import" href="./jviz-grid-column.html">
<!-- Grid module -->
<dom-module id="jviz-grid">
<template>
<style>
:host
{
display: block;
width: 100%;
min-height: 40px;
margin-left: auto;
margin-right: auto;
}
@media (max-width: 960px)
{
:host { /* width: 94% !important; */ }
}
</style>
<content selector="jviz-grid-row"></content>
</template>
</dom-module>
<!-- Grid logic -->
<script>
//Register the grid element
Polymer({ is: 'jviz-grid' });
</script>