forked from olton/Metro-UI-CSS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
grid.php
254 lines (245 loc) · 11.9 KB
/
grid.php
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
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
<?php include("header.php")?>
<div class="page secondary">
<div class="page-header">
<div class="page-header-content">
<h1>Grid<small> system</small></h1>
<a href="/" class="back-button big page-back"></a>
</div>
</div>
<div class="page-region">
<div class="page-region-content">
<div class="span10">
<h2>Default grid system</h2>
<pre class="prettyprint linenums">
<div class="grid">
<div class="row">
<div class="spanN">...</div>
...
<div class="spanN">...</div>
</div>
</div>
</pre>
<p>
Grid have no max width value and fill on 100% parent container. Any cells have spanN class from span1 to span12. Class spanN has margin left 20px and margin bottom 5px.
</p>
<h2>Cells dimension</h2>
<table class="stripped bordered">
<thead>
<tr>
<th class="text-center">N</th>
<th>Cell class</th>
<th class="right" width="100">Cell width</th>
</tr>
</thead>
<tbody>
<tr><td class="span1 center">1</td><td>span1</td><td class="right">60px</td></tr>
<tr><td class="span1 center">2</td><td>span2</td><td class="right">140px</td></tr>
<tr><td class="span1 center">3</td><td>span3</td><td class="right">220px</td></tr>
<tr><td class="span1 center">4</td><td>span4</td><td class="right">300px</td></tr>
<tr><td class="span1 center">5</td><td>span5</td><td class="right">380px</td></tr>
<tr><td class="span1 center">6</td><td>span6</td><td class="right">460px</td></tr>
<tr><td class="span1 center">7</td><td>span7</td><td class="right">540px</td></tr>
<tr><td class="span1 center">8</td><td>span8</td><td class="right">620px</td></tr>
<tr><td class="span1 center">9</td><td>span9</td><td class="right">700px</td></tr>
<tr><td class="span1 center">10</td><td>span10</td><td class="right">780px</td></tr>
<tr><td class="span1 center">11</td><td>span11</td><td class="right">860px</td></tr>
<tr><td class="span1 center">12</td><td>span12</td><td class="right">940px</td></tr>
</tbody>
</table>
<p>Class spanN can be used on any tags for setting width.</p>
</div>
<h3>Example</h3>
<div class="grid element-border">
<div class="row">
<div class="span1">span1</div>
<div class="span1">1</div>
<div class="span1">1</div>
<div class="span1">1</div>
<div class="span1">1</div>
<div class="span1">1</div>
<div class="span1">1</div>
<div class="span1">1</div>
<div class="span1">1</div>
<div class="span1">1</div>
</div>
<div class="row">
<div class="span2">span2</div>
<div class="span1">1</div>
<div class="span1">1</div>
<div class="span1">1</div>
<div class="span1">1</div>
<div class="span1">1</div>
<div class="span1">1</div>
<div class="span1">1</div>
<div class="span1">1</div>
</div>
<div class="row">
<div class="span3">span3</div>
<div class="span1">1</div>
<div class="span1">1</div>
<div class="span1">1</div>
<div class="span1">1</div>
<div class="span1">1</div>
<div class="span1">1</div>
<div class="span1">1</div>
</div>
<div class="row">
<div class="span4">span4</div>
<div class="span1">1</div>
<div class="span1">1</div>
<div class="span1">1</div>
<div class="span1">1</div>
<div class="span1">1</div>
<div class="span1">1</div>
</div>
<div class="row">
<div class="span5">span5</div>
<div class="span1">1</div>
<div class="span1">1</div>
<div class="span1">1</div>
<div class="span1">1</div>
<div class="span1">1</div>
</div>
<div class="row">
<div class="span6">span6</div>
<div class="span1">1</div>
<div class="span1">1</div>
<div class="span1">1</div>
<div class="span1">1</div>
</div>
<div class="row">
<div class="span7">span7</div>
<div class="span1">1</div>
<div class="span1">1</div>
<div class="span1">1</div>
</div>
<div class="row">
<div class="span8">span8</div>
<div class="span1">1</div>
<div class="span1">1</div>
</div>
<div class="row">
<div class="span9">span9</div>
<div class="span1">1</div>
</div>
<div class="row">
<div class="span10">span10</div>
</div>
</div>
<h2>Grid in grid or nested rows</h2>
<p>You can create grid in grid</p>
<pre class="prettyprint linenums span10">
<div class="grid">
<div class="row">
<div class="spanN">
<div class="row">
<div class="spanN">
...
</div>
</div>
</div>
</div>
</div>
</pre>
<h3>Example</h3>
<div class="grid span10">
<div class="row">
<div class="span10 bg-color-pink">Main grid</div>
</div>
<div class="row">
<div class="span5">
<div class="row bg-color-green">
<div class="span2">Sub</div>
<div class="span2">grid</div>
<div class="span1">1</div>
</div>
</div>
<div class="span5">
<div class="row bg-color-yellow">
<div class="span3">Sub grid</div>
<div class="span2">2</div>
</div>
</div>
</div>
<div class="row">
<div class="span10 bg-color-pink">Main grid</div>
</div>
</div>
<h2>Offsets</h2>
<div class="grid element-border">
<div class="row">
<div class="span1">1</div>
<div class="span1">1</div>
<div class="span1">1</div>
<div class="span1">1</div>
<div class="span1">1</div>
<div class="span1">1</div>
<div class="span1">1</div>
<div class="span1">1</div>
<div class="span1">1</div>
<div class="span1">1</div>
</div>
<div class="row">
<div class="span9 offset1">offset1</div>
</div>
<div class="row">
<div class="span8 offset2">offset2</div>
</div>
<div class="row">
<div class="span7 offset3">offset3</div>
</div>
<div class="row">
<div class="span6 offset4">offset4</div>
</div>
<div class="row">
<div class="span5 offset5">offset5</div>
</div>
<div class="row">
<div class="span4 offset6">offset6</div>
</div>
<div class="row">
<div class="span3 offset7">offset7</div>
</div>
<div class="row">
<div class="span2 offset8">offset8</div>
</div>
<div class="row">
<div class="span1 offset9">offs9</div>
</div>
</div>
<h2>Offsets dimension</h2>
<div class="span10">
<table class="stripped bordered">
<thead>
<tr>
<th class="text-center">N</th>
<th>Cell class</th>
<th class="right" width="100">Cell width</th>
</tr>
</thead>
<tbody>
<tr><td class="span1 center">1</td><td>offset1</td><td class="right">80px</td></tr>
<tr><td class="span1 center">2</td><td>offset2</td><td class="right">160px</td></tr>
<tr><td class="span1 center">3</td><td>offset3</td><td class="right">240px</td></tr>
<tr><td class="span1 center">4</td><td>offset4</td><td class="right">320px</td></tr>
<tr><td class="span1 center">5</td><td>offset5</td><td class="right">400px</td></tr>
<tr><td class="span1 center">6</td><td>offset6</td><td class="right">480px</td></tr>
<tr><td class="span1 center">7</td><td>offset7</td><td class="right">560px</td></tr>
<tr><td class="span1 center">8</td><td>offset8</td><td class="right">640px</td></tr>
<tr><td class="span1 center">9</td><td>offset9</td><td class="right">720px</td></tr>
<tr><td class="span1 center">10</td><td>offset10</td><td class="right">800px</td></tr>
<tr><td class="span1 center">11</td><td>offset11</td><td class="right">880px</td></tr>
<tr><td class="span1 center">12</td><td>offset12</td><td class="right">960px</td></tr>
</tbody>
</table>
<p>Class offsetN can be used on any tags for margin left.</p>
</div>
<div class="grid">
<div class="row">
<?php include("adsense.php")?>
</div>
</div>
</div>
</div>
</div>
<?php include("footer.php")?>