-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
executable file
·297 lines (223 loc) · 10.9 KB
/
index.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
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Generic CSS Grid | GenericTools</title>
<link rel="canonical" href="https://<?php echo $_SERVER["HTTP_HOST"]; ?><?php echo parse_url( $_SERVER['REQUEST_URI'], PHP_URL_PATH ); ?>">
<link rel="stylesheet" href="grid.css">
<link rel="stylesheet" href="icons/icons.css">
</head>
<body id="home">
<div id="wrapper" class="hfeed">
<header id="header">
<h1 id="site-title"><a href="./">Generic CSS Grid</a></h1>
</header>
<div id="container">
<main id="content" class="hentry">
<article class="entry-content">
<h1>This is a header one.</h1>
<pre><code><h1>This is a header one.</h1></code></pre>
<h2>This is a header two.</h2>
<pre><code><h2>This is a header two.</h2></code></pre>
<h3>This is a header three.</h3>
<pre><code><h3>This is a header three.</h3></code></pre>
<h4>This is a header four.</h4>
<pre><code><h4>This is a header four.</h4></code></pre>
<h5>This is a header five.</h5>
<pre><code><h5>This is a header five.</h5></code></pre>
<h6>This is a header six.</h6>
<pre><code><h6>This is a header six.</h6></code></pre>
<p>This is a sentence wrapped in paragraph tags.</p>
<pre><code><p>This is a sentence wrapped in paragraph tags.</p></code></pre>
<p><a href="#">This is a link</a>.</p>
<pre><code><a href="#">This is a link</a></code></pre>
<p><strong>This is bold text</strong>.</p>
<pre><code><strong>This is bold text</strong></code></pre>
<p><em>This is italic text</em>.</p>
<pre><code><em>This is italic text</em></code></pre>
<p>This is code that we want to display: <code>.blue{color:blue}</code></p>
<pre><code><pre><code>.blue{color:blue}</code></pre></code></pre>
<p>This is the horizontal rule:</p>
<hr>
<pre><code><hr /></code></pre>
<blockquote>This is a sentence wrapped in blockquote tags.</blockquote>
<pre><code><blockquote>This is a sentence wrapped in blockquote tags.</blockquote></code></pre>
<ul>
<li>This</li>
<li>is</li>
<li>an</li>
<li>unordered</li>
<li>list.</li>
</ul>
<pre><code><ul>
<li>This</li>
<li>is</li>
<li>an</li>
<li>unordered</li>
<li>list.</li>
</ul></code></pre>
<ol>
<li>This</li>
<li>is</li>
<li>an</li>
<li>ordered</li>
<li>list.</li>
</ol>
<pre><code><ol>
<li>This</li>
<li>is</li>
<li>an</li>
<li>ordered</li>
<li>list.</li>
</ol></code></pre>
<p><input type="text" value="This is a text input." size="25"></p>
<pre><code><input type="text" value="This is a text input." size="25" /></code></pre>
<p><textarea rows="5" cols="50">This is a textarea.</textarea></p>
<pre><code><textarea rows="5" cols="50">This is a textarea.</textarea></code></pre>
<p><input type="submit" value="This is a submit input."></p>
<pre><code><input type="submit" value="This is a submit input." /></code></pre>
<p><img src="img.jpg" alt="This is an image."></p>
<pre><code><img src="img.jpg" alt="This is an image." /></code></pre>
<p><i class="icon icon-apple" title="This is an icon."></i></p>
<pre><code><i class="icon icon-apple" title="This is an icon."></i></code></pre>
<p><span class="symbol" title="This is a symbol.">☮</span></p>
<pre><code><span class="symbol" title="This is a symbol.">☮</span></code></pre>
<p><a href="#" class="button">This is the default button.</a></p>
<pre><code><a href="#" class="button">This is the default button.</a></code></pre>
<p><a href="#" class="button round">This is a round button.</a></p>
<pre><code><a href="#" class="button round">This is a round button.</a></code></pre>
<p><a href="#" class="button circle">This is a circle button.</a></p>
<pre><code><a href="#" class="button circle">This is a circle button.</a></code></pre>
<p><a href="#" class="button white">This is a button set to white.</a></p>
<pre><code><a href="#" class="button white">This is a button set to white.</a></code></pre>
<p><a href="#" class="button blue">This is a button set to blue.</a></p>
<pre><code><a href="#" class="button blue">This is a button set to blue.</a></code></pre>
<p><a href="#" class="button blue-dark">This is a button set to dark blue.</a></p>
<pre><code><a href="#" class="button blue-dark">This is a button set to dark blue.</a></code></pre>
<p><a href="#" class="button green">This is a button set to green.</a></p>
<pre><code><a href="#" class="button green">This is a button set to green.</a></code></pre>
<p><a href="#" class="button green-dark">This is a button set to dark green.</a></p>
<pre><code><a href="#" class="button green-dark">This is a button set to dark green.</a></code></pre>
<p><a href="#" class="button orange">This is a button set to orange.</a></p>
<pre><code><a href="#" class="button orange">This is a button set to orange.</a></code></pre>
<p><a href="#" class="button purple">This is a button set to purple.</a></p>
<pre><code><a href="#" class="button purple">This is a button set to purple.</a></code></pre>
<p><a href="#" class="button red">This is a button set to red.</a></p>
<pre><code><a href="#" class="button red">This is a button set to red.</a></code></pre>
<p><a href="#" class="button yellow">This is a button set to yellow.</a></p>
<pre><code><a href="#" class="button yellow">This is a button set to yellow.</a></code></pre>
<p><a href="#" class="button black">This is a button set to black.</a></p>
<pre><code><a href="#" class="button black">This is a button set to black.</a></code></pre>
<span class="note yellow">This is a caution note.</span>
<pre><code><span class="note yellow">This is a caution note.</span></code></pre>
<span class="note red">This is a warning note.</span>
<pre><code><span class="note red">This is a warning note.</span></code></pre>
<br>
<div class="boxes">
<div class="box">This is a single-column box.</div>
</div>
<pre><code><div class="boxes">
<div class="box">This is a single-column box.</div>
</div></code></pre>
<br>
<div class="boxes">
<div class="box-2">This is a two-column box.</div>
<div class="box-2">This is a two-column box.</div>
</div>
<pre><code><div class="boxes">
<div class="box-2">This is a two-column box.</div>
<div class="box-2">This is a two-column box.</div>
</div></code></pre>
<br>
<div class="boxes">
<div class="box-3">This is a three-column box.</div>
<div class="box-3">This is a three-column box.</div>
<div class="box-3">This is a three-column box.</div>
</div>
<pre><code><div class="boxes">
<div class="box-3">This is a three-column box.</div>
<div class="box-3">This is a three-column box.</div>
<div class="box-3">This is a three-column box.</div>
</div></code></pre>
<br>
<div class="boxes">
<div class="box-4">This is a four-column box.</div>
<div class="box-4">This is a four-column box.</div>
<div class="box-4">This is a four-column box.</div>
<div class="box-4">This is a four-column box.</div>
</div>
<pre><code><div class="boxes">
<div class="box-4">This is a four-column box.</div>
<div class="box-4">This is a four-column box.</div>
<div class="box-4">This is a four-column box.</div>
<div class="box-4">This is a four-column box.</div>
</div></code></pre>
<br>
<div class="boxes">
<div class="box-5">This is a five-column box.</div>
<div class="box-5">This is a five-column box.</div>
<div class="box-5">This is a five-column box.</div>
<div class="box-5">This is a five-column box.</div>
<div class="box-5">This is a five-column box.</div>
</div>
<pre><code><div class="boxes">
<div class="box-5">This is a five-column box.</div>
<div class="box-5">This is a five-column box.</div>
<div class="box-5">This is a five-column box.</div>
<div class="box-5">This is a five-column box.</div>
<div class="box-5">This is a five-column box.</div>
</div></code></pre>
<br>
<div class="boxes">
<div class="box-6">This is a six-column box.</div>
<div class="box-6">This is a six-column box.</div>
<div class="box-6">This is a six-column box.</div>
<div class="box-6">This is a six-column box.</div>
<div class="box-6">This is a six-column box.</div>
<div class="box-6">This is a six-column box.</div>
</div>
<pre><code><div class="boxes">
<div class="box-6">This is a six-column box.</div>
<div class="box-6">This is a six-column box.</div>
<div class="box-6">This is a six-column box.</div>
<div class="box-6">This is a six-column box.</div>
<div class="box-6">This is a six-column box.</div>
<div class="box-6">This is a six-column box.</div>
</div></code></pre>
<br>
<div class="boxes">
<div class="box-1-3">This is a one-thirds box.</div>
<div class="box-2-3">This is a two-thirds box.</div>
</div>
<pre><code><div class="boxes">
<div class="box-1-3">This is a one-third box.</div>
<div class="box-2-3">This is a two-thirds box.</div>
</div></code></pre>
<br>
<p>If your system/browser is set to prefer dark mode, this page should be black. Otherwise, it'll be white.</p>
<br>
<pre><code>@media(prefers-color-scheme:light){body{background:#fff}}
@media(prefers-color-scheme:dark){body{background:#000}}</code></pre>
<br>
<h2>Additional Helper Classes</h2>
<pre><code>.left{text-align:left}
.center{text-align:center}
.right{text-align:right}
.float-left{float:left}
.float-right{float:right}
.clear{clear:both}
.clear-left{clear:left}
.clear-right{clear:right}
.clear-float:after, .boxes:after{display:table;content:'';clear:both}
.offset{padding-top:100px;margin-top:-100px}
.spacer{display:inline-block;width:25px}
.lighter{background-color:rgba(255,255,255,0.05)}
.darker{background-color:rgba(0,0,0,0.05)}
.overlay:before{position:fixed;top:0;left:0;width:100%;height:100%;content:'';background:rgba(0,0,0,0.5);z-index:0}</code></pre>
</article>
</main>
</div>
</div>
</body>
</html>