-
Notifications
You must be signed in to change notification settings - Fork 14
/
index.html
188 lines (183 loc) · 11.5 KB
/
index.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
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="description" content="The Lan Grid System is designed to be lightweight, nestable, responsive and simple to use.">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Lan Grid System · Lightweight & Nestable · By Joshua Hibbert</title>
<link rel="stylesheet" href="docs/assets/css/style.css">
<!--[if lt IE 9]>
<script>/*
HTML5 Shiv v3.6.2pre | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed
*/
(function(l,f){function m(){var a=e.elements;return"string"==typeof a?a.split(" "):a}function i(a){var b=n[a[o]];b||(b={},h++,a[o]=h,n[h]=b);return b}function p(a,b,c){b||(b=f);if(g)return b.createElement(a);c||(c=i(b));b=c.cache[a]?c.cache[a].cloneNode():r.test(a)?(c.cache[a]=c.createElem(a)).cloneNode():c.createElem(a);return b.canHaveChildren&&!s.test(a)?c.frag.appendChild(b):b}function t(a,b){if(!b.cache)b.cache={},b.createElem=a.createElement,b.createFrag=a.createDocumentFragment,b.frag=b.createFrag();
a.createElement=function(c){return!e.shivMethods?b.createElem(c):p(c,a,b)};a.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+m().join().replace(/\w+/g,function(a){b.createElem(a);b.frag.createElement(a);return'c("'+a+'")'})+");return n}")(e,b.frag)}function q(a){a||(a=f);var b=i(a);if(e.shivCSS&&!j&&!b.hasCSS){var c,d=a;c=d.createElement("p");d=d.getElementsByTagName("head")[0]||d.documentElement;c.innerHTML="x<style>article,aside,figcaption,figure,footer,header,hgroup,nav,section{display:block}mark{background:#FF0;color:#000}</style>";
c=d.insertBefore(c.lastChild,d.firstChild);b.hasCSS=!!c}g||t(a,b);return a}var k=l.html5||{},s=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,r=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,j,o="_html5shiv",h=0,n={},g;(function(){try{var a=f.createElement("a");a.innerHTML="<xyz></xyz>";j="hidden"in a;var b;if(!(b=1==a.childNodes.length)){f.createElement("a");var c=f.createDocumentFragment();b="undefined"==typeof c.cloneNode||
"undefined"==typeof c.createDocumentFragment||"undefined"==typeof c.createElement}g=b}catch(d){g=j=!0}})();var e={elements:k.elements||"abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video",version:"3.6.2pre",shivCSS:!1!==k.shivCSS,supportsUnknownElements:g,shivMethods:!1!==k.shivMethods,type:"default",shivDocument:q,createElement:p,createDocumentFragment:function(a,b){a||(a=f);if(g)return a.createDocumentFragment();
for(var b=b||i(a),c=b.frag.cloneNode(),d=0,e=m(),h=e.length;d<h;d++)c.createElement(e[d]);return c}};l.html5=e;q(f)})(this,document);</script>
<![endif]-->
<script src="https://use.typekit.net/lnd1rap.js"></script>
<script>try{Typekit.load({ async: true });}catch(e){}</script>
</head>
<body>
<header>
<div class="wrapper">
<img class="logo" src="docs/assets/images/logo.png" srcset="docs/assets/images/logo-2x.png 2x">
<h1>Lan Grid System</h1>
<h2>Lightweight & Nestable</h2>
</div>
</header>
<div class="content">
<div class="wrapper">
<div class="grid divider">
<div class="grid__col--50">
<div class="grid__column__content"></div>
</div><!--
--><div class="grid__col--50">
<div class="grid__column__content"></div>
</div>
</div>
<p class="introduction">The Lan Grid System is designed to be lightweight, nestable, responsive and simple to use.</p>
<div class="grid divider">
<div class="grid__col--50">
<div class="grid__column__content"></div>
</div><!--
--><div class="grid__col--50">
<div class="grid__column__content"></div>
</div>
</div>
<div class="grid">
<div class="grid__col--25">
<div class="grid__column__content"></div>
<div class="grid__column__content"></div>
</div><!--
--><div class="grid__col--50">
<a class="button" href="https://github.com/joshnh/lightweight-nestable-grid"><i class="github-icon"></i> View on GitHub</a>
</div><!--
--><div class="grid__col--25">
<div class="grid__column__content"></div>
<div class="grid__column__content"></div>
</div>
</div>
<div class="grid divider">
<div class="grid__col--50">
<div class="grid__column__content"></div>
</div><!--
--><div class="grid__col--50">
<div class="grid__column__content"></div>
</div>
</div>
<div class="benefits grid">
<div class="grid__col--50">
<h4>Lightweight</h4>
<p>As the Lan Grid System's minified CSS file comes in at only 551 bytes, it won't add any bloat to your project's file size.</p>
</div><!--
--><div class="grid__col--50">
<h4>Nestable</h4>
<p>If you need to nest grid elements then all you have to do is add a class of <code>grid</code> to any element containing columns.</p>
</div>
</div>
<div class="benefits grid">
<div class="grid__col--50">
<h4>Responsive</h4>
<p>Designed to be mobile first, each column defaults to 100% width unless an easily adjusted break point is reached.</p>
</div><!--
--><div class="grid__col--50">
<h4>Simple To Use</h4>
<p>The CSS file is only 30 lines of code making it easy to manage and change. You can also use SCSS if you'd prefer.</p>
</div>
</div>
<div class="grid divider">
<div class="grid__col--50">
<div class="grid__column__content"></div>
</div><!--
--><div class="grid__col--50">
<div class="grid__column__content"></div>
</div>
</div>
<h3>Usage:</h3>
<ol>
<li>Set an element as a container by using the <code>grid</code> class.</li>
<li>Declare columns using <a href="http://getbem.com/introduction/">BEM syntax</a> (<code>grid__col--{width}</code>).</li>
<li>You're all done!</li>
</ol>
<div class="grid divider">
<div class="grid__col--50">
<div class="grid__column__content"></div>
</div><!--
--><div class="grid__col--50">
<div class="grid__column__content"></div>
</div>
</div>
<h3>Notes:</h3>
<ul>
<li>You need to use block-level elements when declaring containers and columns.</li>
<li>White space between columns needs to be commented out in your markup.</li>
<li>To nest columns, simply use the <code>grid</code> class on each parent column.</li>
<li>Keep your grid abstracted by using dedicated elements to avoid style conflicts.</li>
</ul>
<div class="grid divider">
<div class="grid__col--50">
<div class="grid__column__content"></div>
</div><!--
--><div class="grid__col--50">
<div class="grid__column__content"></div>
</div>
</div>
<h3>Example:</h3>
<pre><<span class="pre-color-1">div</span> <span class="pre-color-2">class</span>="<span class="pre-color-3">grid</span>">
<<span class="pre-color-1">div</span> <span class="pre-color-2">class</span>="<span class="pre-color-3">grid grid__col--67</span>">
<<span class="pre-color-1">div</span> <span class="pre-color-2">class</span>="<span class="pre-color-3">grid__col--50</span>">
</<span class="pre-color-1">div</span>><span class="pre-color-4"><!--</span>
<span class="pre-color-4">--></span><<span class="pre-color-1">div</span> <span class="pre-color-2">class</span>="<span class="pre-color-3">grid__col--50</span>">
</<span class="pre-color-1">div</span>>
</<span class="pre-color-1">div</span>><span class="pre-color-4"><!--</span>
<span class="pre-color-4">--></span><<span class="pre-color-1">div</span> <span class="pre-color-2">class</span>="<span class="pre-color-3">grid__col--33</span>">
</<span class="pre-color-1">div</span>>
</<span class="pre-color-1">div</span>></pre>
<div class="grid divider">
<div class="grid__col--50">
<div class="grid__column__content"></div>
</div><!--
--><div class="grid__col--50">
<div class="grid__column__content"></div>
</div>
</div>
<div class="grid">
<div class="grid__col--25">
<div class="grid__column__content"></div>
<div class="grid__column__content"></div>
</div><!--
--><div class="grid__col--50">
<a class="button" href="https://github.com/joshnh/lightweight-nestable-grid"><i class="github-icon"></i> View on GitHub</a>
</div><!--
--><div class="grid__col--25">
<div class="grid__column__content"></div>
<div class="grid__column__content"></div>
</div>
</div>
<div class="grid divider">
<div class="grid__col--50">
<div class="grid__column__content"></div>
</div><!--
--><div class="grid__col--50">
<div class="grid__column__content"></div>
</div>
</div>
</div>
</div>
<footer>
<div class="wrapper">
<p>Created by <a href="https://github.com/joshnh">Joshua Hibbert</a> <span>·</span> <a class="twitter-link" href="http://twitter.com/_joshnh"><img src="docs/assets/images/twitter.png" alt="Twitter"></a></p>
</div>
</footer>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-27270241-9', 'auto');
ga('send', 'pageview');
</script>
</body>
</html>