-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmimetic.html
More file actions
executable file
·413 lines (347 loc) · 9.37 KB
/
Copy pathmimetic.html
File metadata and controls
executable file
·413 lines (347 loc) · 9.37 KB
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
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0">
<title>MM</title>
<style>
/*! normalize.css v3.0.2 | MIT License | github.com/necolas/normalize.css */
html {
font-family: sans-serif;
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%
}
body {
margin: 0
}
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
menu,
nav,
section,
summary {
display: block
}
audio,
canvas,
progress,
video {
display: inline-block;
vertical-align: baseline
}
audio:not([controls]) {
display: none;
height: 0
}
[hidden],
template {
display: none
}
a {
background-color: transparent
}
a:active,
a:hover {
outline: 0
}
abbr[title] {
border-bottom: 1px dotted
}
b,
strong {
font-weight: 700
}
dfn {
font-style: italic
}
h1 {
font-size: 2em;
margin: .67em 0
}
mark {
background: #ff0;
color: #000
}
small {
font-size: 80%
}
sub,
sup {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline
}
sup {
top: -.5em
}
sub {
bottom: -.25em
}
img {
border: 0
}
svg:not(:root) {
overflow: hidden
}
figure {
margin: 1em 40px
}
hr {
box-sizing: content-box;
height: 0
}
pre {
overflow: auto
}
code,
kbd,
pre,
samp {
font-family: monospace, monospace;
font-size: 1em
}
button,
input,
optgroup,
select,
textarea {
color: inherit;
font: inherit;
margin: 0
}
button {
overflow: visible
}
button,
select {
text-transform: none
}
button,
html input[type=button],
input[type=reset],
input[type=submit] {
-webkit-appearance: button;
cursor: pointer
}
button[disabled],
html input[disabled] {
cursor: default
}
button::-moz-focus-inner,
input::-moz-focus-inner {
border: 0;
padding: 0
}
input {
line-height: normal
}
input[type=checkbox],
input[type=radio] {
box-sizing: border-box;
padding: 0
}
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
height: auto
}
input[type=search] {
-webkit-appearance: textfield;
box-sizing: content-box
}
input[type=search]::-webkit-search-cancel-button,
input[type=search]::-webkit-search-decoration {
-webkit-appearance: none
}
fieldset {
border: 1px solid silver;
margin: 0 2px;
padding: .35em .625em .75em
}
legend {
border: 0;
padding: 0
}
textarea {
overflow: auto
}
optgroup {
font-weight: 700
}
table {
border-collapse: collapse;
border-spacing: 0
}
td,
th {
padding: 0
}
h1 {
padding: 0;
margin: 0;
}
*/
/* test if have media queries */
@media all and (min-width:1px) {
body {
background: pink;
}
}
/* Small screens */
@media only screen {}
/* Define mobile styles */
@media only screen and (max-width: 40em) {
/*html{ font-size: 32px; } */
}
/* max-width 640px, mobile-only styles, use when QAing mobile issues */
/* Medium screens */
@media only screen and (min-width: 40.063em) {}
/* min-width 641px, medium screens */
@media only screen and (min-device-width: 40.063em) {
/* body{min-width: 998px;} */
}
/* min-width 641px and max-width 1024px, use when QAing tablet-only issues */
html {
font-family: arial, sans-serif;
/* FF sans-serif too heavy */
}
h1 {
padding: 0;
margin: 0;
}
header {
width: 100%;
background: green;
top: 0;
border-bottom: 1px dashed blue;
color: #03003B;
}
header h1 {
font-size: 7rem;
line-height: 1rem;
}
header h2 {
font-size: 2rem;
margin: 0 0 0.5rem 0;
}
header h1,
header h2 {
text-align: center;
}
aside,
section {
position: relative;
float: left;
}
#middle-sec {
width: 50%;
}
aside {
width: 25%;
background: pink;
}
#content-body {
background: #fff;
width: 100%;
}
#middle-sec {}
p {
margin: 1em;
/* 51.2px, 48px, 50px, 20px */
font-size: 1em;
line-height: 1em;
padding: 1em;
background: lime;
}
h2 {
margin: 1em 1em 0;
line-height: 1em;
background: yellow;
}
/*scaled transition*/
p {
/*
-webkit-transition: all 0.2s linear;
-moz-transition: all 0.2s linear;
-o-transition: all 0.2s linear;
transition: all 0.2s linear;
*/
}
dd {
padding: 1em;
margin: 0em;
}
</style>
<script src="dist/mimetic.umd.js"></script>
<script>
window.mimetic = mimetic({
loadEvent: 'load',
mobileWidth: '12pt',
onScale: function(a, b, c) {
console.log('hello world', a, c, b)
}
});
// setTimeout(() => {
// console.info('bang')
// console.log(mimetic.kill())
// }, 3000)
</script>
</head>
<body>
<header>
<h1>Mimetic</h1>
<h2>Geometric Normalizer</h2>
</header>
<section id='content-body'>
<aside>
<article>
<p>
Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through
</p>
</article>
<article>
<p class='ham'>
the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, "Lorem ipsum dolor sit amet..", comes from a line in section 1.10.32.
</p>
</article>
</aside>
<section id="middle-sec">
<h2>What Is This?</h2>
<p>
Mimetic is a "Display Normalizer". Mimetic uses a 'Design once scale for all' philosophy that alows you to maximize visual development for all platforms.
</p>
</section>
<section id="middle-sec">
<p>
Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, "Lorem ipsum dolor sit amet..", comes from a line in section 1.10.32.
</p>
</section>
<aside style="position: absolute;right:0;top:0; ">
<h2>Mimetic In A Nutshell</h2>
<dl>
<dt class='potatoe'>Mimetic.scale</dt>
<dd>The layout is constructied to a fixed width or height, the layout, fonts and images are scaled to fit any device. Your website is of full width/ height on eveery device.</dd>
<dt>Mimetic.baseLayer (.base)</dt>
<dd>This is the most simplified layer of the website without content. This layer only contains layout tags and maybe color fills, it is not appriximate.
</dd>
<dt>Mimetic.interfaceLayer (.ui)</dt>
<dd>The interface layer defines UI elements primarilay using SVG.</dd>
<dt>Mimetic.contentLayer (.con)</dt>
<dd>This layer is strictly for content, the "layout" shoud only consist of the main content</dd>
</dl>
</aside>
</section>
<canvas></canvas>
<canvas></canvas>
<canvas></canvas>
<script></script>
<!-- <script src="https://cdnjs.cloudflare.com/ajax/libs/fastdom/1.0.5/fastdom-strict.min.js"></script> -->
</body>
</html>