-
Notifications
You must be signed in to change notification settings - Fork 107
/
docs.html
336 lines (308 loc) · 12.9 KB
/
docs.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
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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no">
<script>
document.createElement("nav"); document.createElement("button");
</script>
<!--[if IE 7]>
<style>
.col { margin: 0 0.9% !important; }
</style>
<![endif]-->
<title>min - docs</title>
<link href="entireframework.min.css" rel="stylesheet" type="text/css" />
<link href="docs.css" rel="stylesheet" type="text/css" />
<style type="text/css">
/* Min+ plugin*/
message {
display: block;
padding: 2em;
background: #def;
border-left: 5px solid #44e;
}
.warning {
border-color: #e44;
background: #fdd;
}
.great {
border-color: #2d2;
background: #dfd;
}
</style>
<!--[if lte IE 6]>
<style>
.col {
margin: 0.5%;
}
.c12 {
margin: 0.5%;
margin-left: 0.5%;
width: 97%;
}
.container {
width: 90%;
}
</style>
<![endif]-->
<!--[if IE 5]>
<style>
.container {
width: 100%;
}
.btn-close {
display: none;
}
body {
font: 16px Arial;
}
h3 {
font-size: 20px;
}
.nav {
height: 50px;
}
</style>
<![endif]-->
</head>
<body>
<nav class="nav" tabindex="-1" onclick="this.focus()">
<div class="container">
<a class="pagename current" href="index.html">Min</a>
<a class="current" href="#">Docs</a>
<!--
<a href="bootstrapconverter.html">Bootstrap Converter</a>
<a href="examples.html">Examples</a>
-->
<a href="download.html">Download</a>
<a href="examples.html">Examples</a>
<a href="https://github.com/owenversteeg/min">Github</a>
</div>
</nav>
<button class="btn btn-sm btn-close">×</button>
<div class="container">
<div>
<h1>Basics & Browser Support</h1>
<p>
Min's minimalism has several advantages. Firstly, it doesn't prescribe a specific design for you. Each element has just a handful of CSS rules applied to it, and as a result overriding default styles is extremely easy. Min being only 995 bytes means that there's less of it to get in your way when you want to customize your site. Contrast this with Bootstrap, where you may have to override many different rules to get what you want. Secondly, there's less markup to type. Min requires fewer superfluous divs and classes than any other framework, allowing every part of your code to be readable and semantically correct.
</p>
<p>
Because of its minimalist goal, Min core has fewer features than Bootstrap. Many of the features omitted in Min are superfluous, unsemantic, and just plain idiotic (I'm looking at you, text-left class.) However, when using the <a href="http://owenversteeg.com/min-bootstrap-plugin">3.5kB Min Bootstrap plugin</a>, Min has full feature parity with Bootstrap. If you are migrating a complex site from Bootstrap to Min, it is highly recommended that you use this plugin.
</p>
</div>
<div class="support">
<table class="table">
<thead>
<tr>
<th>Chrome</th>
<th>IE</th>
<th>FF</th>
<th>Opera</th>
<th>Safari</th>
</tr>
</thead>
<tbody>
<tr class="full">
<td>33 - 2 <span class="browserdetails">(27.32%) [2014 - 2009]</span></td>
<td>11 - 9 <span class="browserdetails">(5.22% + 0.20% + 0.20%) [2014 - 2011]</span></td>
<td>27 - 3.5 <span class="browserdetails">(18.66% + 0.09% + 0.04%) [2014 - 2009]</span></td>
<td>19 - 10 <span class="browserdetails">(1.51% + 1.32%) [2014 - 2009]</span></td>
<td>7 - 4 <span class="browserdetails">(3.88% + 11.66% + 5.55%) [2014 - 2009]</span></td>
</tr>
<tr class="partial">
<td>None</td>
<td>8 - 5.5 <span class="browserdetails">(4.56%) [2009 - 2000]</span></td>
<td onclick="alert('Tables are not shaded')">3 <span class="browserdetails">(0.03%) [2008]</span></td>
<td onclick="alert('Tables are not shaded and buttons are not rounded')">9 <span class="browserdetails">(0.00%) [2006]</span></td>
<td>None</td>
</tr>
<tr class="none">
<td onclick="alert('page overflows')">1 - 0.2 <span class="browserdetails">(0.00%) [2008 - 2008]</span></td>
<td onclick="alert('Navbars don't work at all, neither do grids or icons, and buttons are not padded')">5 - 1 <span class="browserdetails">(0.01%) [1999 - 1995]</span></td>
<td onclick="alert('navbars broken (replace nav elements with divs for a fix)')">2 - 0.8 <span class="browserdetails">(0.05%) [2006 - 2004]</span></td>
<td>8 - 2 <span class="browserdetails">(0.00%) [2005 - 1996]</span></td>
<td onclick="alert('page overflows, no rounded buttons')">3 - 1 <span class="browserdetails">(0.00%) [2007 - 2003]</span></td>
</tr>
</tbody>
</table>
<!-- Reverse Mali flag, Bolivian flag, and Helvetic Republic flag -->
<p>Key: <span class="full key">Full support</span>, <span class="partial key">partial support</span>, and <span class="none key">no support</span>. <span class="browserdetails">Market share data <a href="http://stats.wikimedia.org/archive/squid_reports/2014-01/SquidReportClients.htm">from Wikimedia</a> is in parens (in the format desktop+mobile+tablet); browser release dates are in brackets. Due to web crawlers and other mobile browsers, numbers will add up to about 80%.</span> Click on each cell for details (if available.) Partial support means that Min supports that browser but there may be a small visual quibble, such as no rounded corners on buttons, a difference in how the page responds to resizing, or slight table shading differences. <b>Netscape support has ended</b> with the release of Min 2.0 as part of a push towards using semantic HTML5 elements. Replace all <nav> elements with <div>s to make Min work in Netscape 7+.
</p>
</div>
<div class="buttons">
<h1>Buttons</h1>
<a class="btn smooth btn-a">btn-a</a>
<a class="smooth btn-b btn">btn-b</a>
<a class="smooth btn-c btn">btn-c</a>
<a class="smooth btn">classless</a>
<br><br><pre><a class="btn btn-b smooth">btn-b</a></pre>
<br>
<a class="btn smooth btn-a btn-sm">btn-sm btn-a</a>
<a class="btn smooth btn-b btn-sm">btn-sm btn-b</a>
<a class="btn smooth btn-c btn-sm">btn-sm btn-c</a>
<a class="btn smooth btn-sm">btn-sm classless</a>
<br><br><pre><a class="btn btn-b btn-sm smooth">btn-sm</a></pre>
</div>
<div>
<h1>Forms</h1>
<input type="text" class="smooth" placeholder="input type="text""><br><br>
<textarea rows="3" class="smooth" placeholder="textarea"></textarea><br><br><span class="addon">$</span><input type="text" class="smooth" placeholder="span class="addon"">
<br><br>
<pre><input type="text" class="smooth">
<br><textarea rows="3" class="smooth">
<br><span class="addon">$</span><input type="text" class="smooth"></pre>
<div class="msg"><strong>Be careful with addons!</strong> If you do not want a space between the addon and the input make sure that there is no space between the <code></span></code> and <code><input></code> tags. Example: <pre>... </span> <input ...</pre><span class="addon">$</span> <input type="text" class="smooth"> <pre>... </span><input ...</pre><span class="addon">$</span><input type="text" class="smooth"></div>
</div>
<div class="navbar">
<h1>Navbars</h1>
<nav class="nav" tabindex="-1" onclick="this.focus()">
<div class="container">
<a class="pagename current" href="#">Min</a>
<a href="#">One</a>
<a href="#">Two</a>
<a href="#">Three</a>
<a href="#">Four</a>
</div>
</nav>
<button class="btn-close btn btn-sm">×</button>
<br>
<pre><nav class="nav" tabindex="-1" onclick="this.focus()"><br> <div class="container"><br> <a class="pagename current" href="#">Min</a><br> <a href="#">One</a><br> <a href="#">Two</a> <br> <a href="#">Three</a><br> </div><br></nav><br><button class="btn-close btn btn-sm">×</button></pre>
</div>
<div>
<h1>Tables</h1>
<table class="table"><thead><tr><th>#</th><th>Widgets Sold</th><th>Revenue (£)</th><th>Profit (£)</th></tr></thead><tbody><tr><td>1</td><td>5</td><td>10</td><td>2</td></tr><tr><td>2</td><td>10</td><td>20</td><td>4</td></tr><tr><td>3</td><td>500</td><td>1000</td><td>200</td></tr></tbody></table>
<br><br>
<pre><table class="table">
<thead>
<tr>
<th>#</th>
<th>Widgets Sold</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>5</td>
</tr>
<tr>
<td>2</td>
<td>10</td>
</tr>
<tr>
<td>3</td>
<td>500</td>
</tr>
</tbody>
</table>
</pre>
</div>
<div class="icons">
<h1>Icons</h1>
<i class="ico"><b>Android Safe</b> ☎ ♂ ♀ ⓧ © § ® ⇦ ⇧ ⇨ ⇩♠ ♣ ♥ ♦ ♪ ♛ ♜ ♝ ♞ ♟☜ ☞ ♨ ♭ ♯ ¥£ ¢❊ ฿ ๏ ※ ₧ ₨ ₪ € №</i>
<br><br><message class="great">The "Android Safe" icons work everywhere, tested on hundreds of devices. </message>
<br>
<i class="ico"><b>Total Set</b> ✉ ✰ ☁ ✈ ☑ ☒ ✆ ☀ ☮ ☢ ☠ ☣ ⌂ ℗ ☺ ☻ ☼ ∡ ∿ ⊝ ⊘ ⁂ ☤ ♫ ☄ ✎ ☟ ☝ ☹ ☭ ☚ ☛ ✌ 〠 ☃ ♮ ☂ ☸ ✍ ☯ ✂ ₩ ◍ ۩</i>
<br><br><message class="warning">Although over 75% of Android devices we tested support all "Total Set" icons, if a substantial portion of your users use old Android devices you should stick to the "Android Safe" set. (The "Total Set" does not include icons from the "Android Safe" set.)</message>
<pre><i class="ico">Copy and paste icons from above here!</i></pre>
<h1>Grids</h1>
<div class="row">
<div class="col dark c12">12</div>
</div>
<div class="row">
<div class="col dark c11">11</div>
<div class="col light c1">1</div>
</div>
<div class="row">
<div class="col dark c10">10</div>
<div class="col light c2">2</div>
</div>
<div class="row">
<div class="col dark c9">9</div>
<div class="col light c3">3</div>
</div>
<div class="row">
<div class="col dark c8">8</div>
<div class="col light c4">4</div>
</div>
<div class="row">
<div class="col dark c7">7</div>
<div class="col light c5">5</div>
</div>
<div class="row">
<div class="col dark c6">6</div>
<div class="col light c6">6</div>
</div>
<div class="row">
<div class="col dark c5">5</div>
<div class="col light c7">7</div>
</div>
<div class="row">
<div class="col dark c4">4</div>
<div class="col light c8">8</div>
</div>
<div class="row">
<div class="col dark c3">3</div>
<div class="col light c9">9</div>
</div>
<div class="row">
<div class="col dark c2">2</div>
<div class="col light c10">10</div>
</div>
<div class="row">
<div class="col dark c1">1</div>
<div class="col light c11">11</div>
</div>
<div class="row">
<div class="col light c12">12</div>
</div>
<br>
<!--[if lte IE 6]><br><br><br><![endif]-->
<pre><div class="row"><br> <div class="col c12">12</div><br></div>
<br><div class="row"><br> <div class="col c4">4</div><br> <div class="col c8">8</div><br></div>
</pre>
</div>
<h1>Headings</h1>
<div class="headings">
<h1 class="exampleh1">h1</h1>
<h2>h2</h2>
<h3>h3</h3>
<h4>h4</h4>
<h5>h5</h5>
<h6>h6</h6>
<br>
<pre><h1>Level One Heading</h1></pre>
</div>
<h1>Messages</h1>
<div class="messages">
<div class="msg">
<strong>Watch out!</strong> You almost scrolled off the page. There are reports of sea monsters past the end of the page and we do not advise you go there.
</div>
<pre><div class="msg">
<strong>Alert headline!</strong>
Message text
</div>
</pre>
</div>
<br>
<div class="krakenholder">
<img src="kraken.png" class="kraken" alt="a scary sea monster">
</div>
<br>
<script type="text/javascript">
function downloadJSAtOnload() {
var element = document.createElement("script");
element.src = "defer.js";
document.body.appendChild(element);
}
if (window.addEventListener)
window.addEventListener("load", downloadJSAtOnload, false);
else if (window.attachEvent)
window.attachEvent("onload", downloadJSAtOnload);
else window.onload = downloadJSAtOnload;
</script>
</div>
<script src="defer.js"></script>
</body>
</html>