This repository has been archived by the owner on Oct 11, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 24
/
iron-grid-tester.html
191 lines (145 loc) · 4.08 KB
/
iron-grid-tester.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
<link rel="import" href="../polymer/polymer-element.html">
<link rel="import" href="iron-grid.html">
<dom-module id="iron-grid-tester">
<template>
<style>
:host {
/*color : red;*/
}
.example {
border-style: solid;
border-color: black;
padding: 0 0.75 rem;
}
.red {
background-color: #F44336 !important;
}
.pink {
background-color: #e91e63 !important;
}
.purple {
background-color: #9c27b0 !important;
}
.indigo {
background-color: #3f51b5 !important;
}
.blue {
background-color: #2196F3 !important;
}
.cyan {
background-color: #00bcd4 !important;
}
.teal {
background-color: #009688 !important;
}
.green {
background-color: #4CAF50 !important;
}
.lime {
background-color: #cddc39 !important;
}
</style>
<h1> Current Screen Format = {{currentScreenformat}} </h1>
<iron-grid current-screenformat="{{currentScreenformat}}" log>
<div class="xs12">
<div class="s12 m6 l3 example purple">
s12 m6 l3
</div>
<div class="s12 m6 l3 example purple">
s12 m6 l3
</div>
<div class="s12 m6 l3 example purple">
s12 m6 l3
</div>
<div class="s12 m6 l3 example purple">
s12 m6 l3
</div>
</div>
<div class="s12">
<h3>Hide elements</h3>
</div>
<div class="xs0 s12 example green">
xs0 s12 (The Rightmost screen format is taken in account if the current screen format is not managed)
</div>
<div class="s12">
<h3>Distinguish size following screen</h3>
</div>
<div class="xs12">
<div class="s12 m3 l2 example blue">
s12 m3 l2
</div>
<div class="s12 m6 l8 example blue">
s12 m6 l8
</div>
<div class="s12 m3 l2 example blue">
s12 m3 l2
</div>
</div>
<div class="s12">
<h3>Shift elements</h3>
</div>
<div class="xs3 offset-xs0 offset-s3 offset-m6 offset-l9 example teal">
xs3 offset-s3 offset-m6 offset-l9 (Offset class need to be after the size class)
</div>
<div class="s12">
<h3>Ordering elements</h3>
</div>
<div class="s12">
<div class="s1 example red">
1
</div>
<div class="s1 example red">
2
</div>
<div class="s1 example red">
3
</div>
<div class="s1 example red">
4
</div>
<div class="s1 example red">
5
</div>
<div class="s1 example red">
6
</div>
<div class="s1 example red">
7
</div>
<div class="s1 example red">
8
</div>
<div class="s1 example red">
9
</div>
<div class="s1 example red">
10
</div>
<div class="s1 example red">
11
</div>
<div class="s1 order-s1 example red">
12 order-s1
</div>
</div>
</iron-grid>
</template>
<script>
class IronGridTester extends
Polymer.Element {
constructor() {
super();
}
static get
is() {
return 'iron-grid-tester'
}
static get
properties() {
return {
}
}
}
customElements.define(IronGridTester.is, IronGridTester);
</script>
</dom-module>