-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
297 lines (263 loc) · 15.2 KB
/
index.html
File metadata and controls
297 lines (263 loc) · 15.2 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>CSS Grid Layout</title>
<link rel="stylesheet" href="css/style.css">
<script src="js/smoothscroll.min.js"></script>
</head>
<body>
<div class=" ">
<header class="bg-header view--full">
<img src="assets/nak-grid-layout.svg" alt="">
<h1 class="nak-title strong">CSS Grid Layout</h1>
<span class="nak-title--addon">Playground</span>
<h2 class="nak-subtitle"><a href="#css-grid-layout" aria-hidden="true" class="anchor" id="user-content-css-grid-layout"></a>LIVE examples</h2>
<p class="pin">Work in progress</p>
<!-- <button class="btn js-scroll-to-top">scroll to top</button> -->
<nav>
<ul class="nav">
<li class="nav__item"><a href="#playground">Playground</a></li>
<li class="nav__item"><a href="#exaples">Layout examples</a></li>
<li class="nav__item"><a href="#resources">Resources</a></li>
<li class="nav__item"><a href="" class="js-scrooll-into-about">About</a></li>
</ul>
</nav>
<a class="js-open-menu" href=""><svg viewBox="0 0 200 200" class="icon-menu">
<use xlink:href="#icon-menu"></use>
</svg></a>
</header>
<section id="playground" class="example-grid nak-grid nak-grid-4 p-a-0">
<div class="example-grid__item">
<a href="" class="example-grid__link js-open-panel">
<svg viewBox="0 0 316.719 239.125" class="example-grid__image example">
<use xlink:href="#example--tree-columns"></use>
</svg>
<span>Three Columns</span>
<a href="" class="js-close-panel icon-close">Close</a>
</a>
</div>
<div class="example-grid__item bg-brand text-inverse">
<a href="" class="example-grid__link js-open-panel-2">
<svg viewBox="0 0 316.719 239.125" class="example-grid__image">
<use xlink:href="#example--tree-columns"></use>
</svg>
<span>Square grid</span>
</a>
</div>
<div class="example-grid__item bg-darker text-inverse">
<a href="" class="example-grid__link js-scroll-into-example--tree-columns2">
<svg viewBox="0 0 316.719 239.125" class="example-grid__image">
<use xlink:href="#example--tree-columns"></use>
</svg>
<span>Square grid</span>
</a>
</div>
<div class="example-grid__item">
<a href="" class="example-grid__link js-scroll-into-example--tree-columns1">
<svg viewBox="0 0 316.719 239.125" class="example-grid__image">
<use xlink:href="#example--tree-columns"></use>
</svg>
<span>Square grid</span>
</a>
</div>
</section>
<section id="" class="panel example-set-1">
<article id="example--three-column" class="panel__item p-a-0 example--three-column">
<p data-height="450" data-theme-id="32113" data-slug-hash="VawMvy" data-default-tab="css,result" data-user="nabaroa" data-embed-version="2" data-pen-title="CSS Grid - simple three column" data-editable="true" class="codepen">See the Pen <a href="https://codepen.io/nabaroa/pen/VawMvy/">CSS Grid - simple three column</a> by Naiara Abaroa (<a href="https://codepen.io/nabaroa">@nabaroa</a>) on <a href="https://codepen.io">CodePen</a>.</p>
<script async src="https://production-assets.codepen.io/assets/embed/ei.js"></script>
</article>
<article class="p-a-0 panel__item">
<p data-height="450" data-theme-id="32113" data-slug-hash="ZvLaPV" data-default-tab="css,result" data-user="nabaroa" data-embed-version="2" data-pen-title="ZvLaPV" data-editable="true" class="codepen">See the Pen <a href="https://codepen.io/nabaroa/pen/ZvLaPV/">ZvLaPV</a> by Naiara Abaroa (<a href="https://codepen.io/nabaroa">@nabaroa</a>) on <a href="https://codepen.io">CodePen</a>.</p>
<script async src="https://production-assets.codepen.io/assets/embed/ei.js"></script>
</article>
</section>
<section id="playground" class="example-grid nak-grid nak-grid-4 p-a-0">
<div>
<a href="" class="example-grid__link js-scroll-into-example--tree-columns">
<svg viewBox="0 0 316.719 239.125" class="example-grid__image example">
<use xlink:href="#example--tree-columns"></use>
</svg>
<span>Three Columns</span>
</a>
</div>
<div class="">
<a href="" class="example-grid__link js-scroll-into-example--tree-columns3">
<svg viewBox="0 0 316.719 239.125" class="example-grid__image">
<use xlink:href="#example--tree-columns"></use>
</svg>
<span>Square grid</span>
</a>
</div>
<div class="bg-brand text-inverse">
<a href="" class="example-grid__link js-scroll-into-example--tree-columns2">
<svg viewBox="0 0 316.719 239.125" class="example-grid__image">
<use xlink:href="#example--tree-columns"></use>
</svg>
<span>Square grid</span>
</a>
</div>
<div class="bg-darker text-inverse">
<a href="" class="example-grid__link js-scroll-into-example--tree-columns1">
<svg viewBox="0 0 316.719 239.125" class="example-grid__image">
<use xlink:href="#example--tree-columns"></use>
</svg>
<span>Square grid</span>
</a>
</div>
</section>
<article id="resources" class="bg-darker" itemprop="text">
<h2><a href="#resources" aria-hidden="true" class="anchor" id="user-content-resources"></a>Resources</h2>
<ul class="nak-simple-list">
<li class="nak-simple-list__item"><a href="https://www.w3.org/TR/css-grid-1/" rel="nofollow">CSS Grid Layout Module Level 1. W3C Candidate Recommendation, 09 May 2017</a></li>
<li class="nak-simple-list__item"><a href="https://developer.mozilla.org/es/docs/Web/CSS/CSS_Grid_Layout" rel="nofollow">MDN web docs</a></li>
<li class="nak-simple-list__item"><a href="https://css-tricks.com/snippets/css/complete-guide-grid/" rel="nofollow">CSS Tricks</a></li>
<li class="nak-simple-list__item"><a href="https://gridbyexample.com/learn/" rel="nofollow">Get Started by Rachel Andrew</a></li>
<li class="nak-simple-list__item"><a href="https://cssgrid.design/?utm_content=buffer95010&utm_medium=social&utm_source=twitter.com&utm_campaign=buffer" rel="nofollow">Grid in production by Rachel Andrew</a></li>
</ul>
<h2><a href="#tools" aria-hidden="true" class="anchor" id="user-content-tools"></a>Tools</h2>
<ul class="nak-simple-list">
<li class="nak-simple-list__item"><a href="https://alialaa.github.io/css-grid-cheat-sheet/" rel="nofollow">CSS Grid Cheat Sheet. Visual guide</a></li>
</ul>
<h2><a href="#playgrounds" aria-hidden="true" class="anchor" id="user-content-playgrounds"></a>Playgrounds</h2>
<ul class="nak-simple-list">
<li class="nak-simple-list__item"><a href="http://cssgridgarden.com/" rel="nofollow">CSS Grid Garden</a></li>
</ul>
<h3><a href="#articles" aria-hidden="true" class="anchor" id="user-content-articles"></a>Articles</h3>
<ul class="nak-simple-list">
<li class="nak-simple-list__item"><a href="https://hacks.mozilla.org/2017/04/replace-bootstrap-layouts-with-css-grid/" rel="nofollow">Replace Bootstrap Layouts with CSS Grid</a></li>
</ul>
<h3><a href="#videos" aria-hidden="true" class="anchor" id="user-content-videos"></a>Videos</h3>
<ul class="nak-simple-list">
<li class="nak-simple-list__item"><a href="https://gridbyexample.com/video/series-define-a-grid/" rel="nofollow">Defining a grid (2:57)</a></li>
</ul>
</article>
<article id="exaples" class="bg-brand">
<h2>Lorem</h2>
</article>
<article id="about" class="bg-about nak-text-align--right">
<h2>About</h2>
<p class="">Made with <span class="text-brand">❤ </span>by <a href="Naiara Abaroa" target="_blank">Naiara Abaroa</a> <a href="https://twitter.com/nabaroa" target="_blank">(@nabaroa)</a></p>
<p class="huge">Live local<span class="text-brand">.</span> Work global<span class="text-brand">.</span></p>
</article>
<footer class="bg-darker">
<div>
<h2><a href="#license" aria-hidden="true" class="anchor" id="user-content-license"></a>License</h2>
<p><a href="https://creativecommons.org/publicdomain/zero/1.0/" rel="nofollow"><img src="https://camo.githubusercontent.com/60561947585c982aee67ed3e3b25388184cc0aa3/687474703a2f2f6d6972726f72732e6372656174697665636f6d6d6f6e732e6f72672f70726573736b69742f627574746f6e732f38387833312f7376672f63632d7a65726f2e737667" alt="CC0" data-canonical-src="http://mirrors.creativecommons.org/presskit/buttons/88x31/svg/cc-zero.svg" style="max-width:100%;"></a></p>
</div>
<h2>Credits</h2>
<ul>
<li>Examples: <a href="https://codepen.io/" target="_blank">Codepen PRO</a></li>
<li>Copies: <a href="http://kirmenuribe.eus" target="_blank">Kirmen Uribe</a></li>
<li>Icons: <a href="https://thenounproject.com/naiara/collection/nakstudio/" target="_blank">nak.STUDIO</a></li>
<li>Header image:</li>
<li>Scrolling: <a href="http://iamdustan.com/smoothscroll/" target="_blank">Smooth Scroll polyfill</a></li>
<li>Tool to change mime type to raw github file to insert custom CSS to Codepen theme: <a href="https://rawgit.com" target="_blank">Rawgit</a></li>
</ul>
<h2>How?</h2>
<ul>
<li>PostCSS from scratch</li>
<li>Grid layout</li>
<li>Gulp like task runner</li>
<li>Inline SVG to change colors via CSS</li>
</ul>
</footer>
</div>
<button class="js-scroll-to-top button--go-to-top"></button>
<!-- svg -->
<div class="d-none">
<!-- 3 columns layout -->
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px">
<defs>
<g id="example--tree-columns">
<g>
<g>
<line stroke-miterlimit="10" x1="5.781" y1="4.25" x2="5.781" y2="7.25"/>
<line stroke-miterlimit="10" stroke-dasharray="5.9611,5.9611" x1="5.781" y1="13.211" x2="5.781" y2="224.832"/>
<line stroke-miterlimit="10" x1="5.781" y1="227.812" x2="5.781" y2="230.812"/>
</g>
</g>
<g>
<g>
<line stroke-miterlimit="10" x1="5.781" y1="4.25" x2="8.781" y2="4.25"/>
<line stroke-miterlimit="10" stroke-dasharray="6.0797,6.0797" x1="14.861" y1="4.25" x2="303.647" y2="4.25"/>
<line stroke-miterlimit="10" x1="306.688" y1="4.25" x2="309.688" y2="4.25"/>
</g>
</g>
<g>
<g>
<line stroke-miterlimit="10" x1="309.688" y1="4.25" x2="309.688" y2="7.25"/>
<line stroke-miterlimit="10" stroke-dasharray="5.9611,5.9611" x1="309.688" y1="13.211" x2="309.688" y2="224.832"/>
<line stroke-miterlimit="10" x1="309.688" y1="227.812" x2="309.688" y2="230.812"/>
</g>
</g>
<g>
<g>
<line stroke-miterlimit="10" x1="5.781" y1="49.562" x2="8.781" y2="49.562"/>
<line stroke-miterlimit="10" stroke-dasharray="6.0797,6.0797" x1="14.861" y1="49.562" x2="303.647" y2="49.562"/>
<line stroke-miterlimit="10" x1="306.688" y1="49.562" x2="309.688" y2="49.562"/>
</g>
</g>
<g>
<g>
<line stroke-miterlimit="10" x1="5.781" y1="183.156" x2="8.781" y2="183.156"/>
<line stroke-miterlimit="10" stroke-dasharray="6.0797,6.0797" x1="14.861" y1="183.156" x2="303.647" y2="183.156"/>
<line stroke-miterlimit="10" x1="306.688" y1="183.156" x2="309.688" y2="183.156"/>
</g>
</g>
<g>
<g>
<line stroke-miterlimit="10" x1="5.781" y1="232.156" x2="8.781" y2="232.156"/>
<line stroke-miterlimit="10" stroke-dasharray="6.0797,6.0797" x1="14.861" y1="232.156" x2="303.647" y2="232.156"/>
<line stroke-miterlimit="10" x1="306.688" y1="232.156" x2="309.688" y2="232.156"/>
</g>
</g>
<g>
<g>
<line stroke-miterlimit="10" x1="65.156" y1="49.562" x2="65.156" y2="52.562"/>
<line stroke-miterlimit="10" stroke-dasharray="6.0759,6.0759" x1="65.156" y1="58.638" x2="65.156" y2="177.118"/>
<line stroke-miterlimit="10" x1="65.156" y1="180.156" x2="65.156" y2="183.156"/>
</g>
</g>
<g>
<g>
<line stroke-miterlimit="10" x1="250.219" y1="49.562" x2="250.219" y2="52.562"/>
<line stroke-miterlimit="10" stroke-dasharray="6.0759,6.0759" x1="250.219" y1="58.638" x2="250.219" y2="177.118"/>
<line stroke-miterlimit="10" x1="250.219" y1="180.156" x2="250.219" y2="183.156"/>
</g>
</g>
</g>
</defs>
</svg>
<!-- svg icons -->
<svg id="icon-menu" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" x="0px" y="0px" viewBox="0 0 50 62.5" enable-background="new 0 0 50 50" xml:space="preserve">
<g display="none">
<g display="inline"><path d="M41.44,5.274C29.947,5.303,18.76,8.573,7.273,8.441c-2.224-0.025-6.157,3.316-2.234,3.361 c11.508,0.132,22.683-3.139,34.167-3.167C41.419,8.63,45.359,5.265,41.44,5.274z"/><path
d="M44.397,21.397c-5.419,0.842-10.857,0.924-16.317,1.272c-5.84,0.373-11.625,1.464-17.474,0.579 c-1.777-0.269-6.828,2.587-3.567,3.081c5.614,0.85,11.181,0.309,16.798-0.239c6.587-0.644,13.19-0.559,19.745-1.577 C46.311,24.089,48.411,20.774,44.397,21.397z"/><path
d="M42.312,41.432c-4.821,1.609-10.715,0.866-15.687,0.523c-4.901-0.338-10.769,0.116-15.427-1.473 c-1.33-0.454-6.517,1.678-4.753,2.279c6.05,2.063,13.707,1.478,20.047,1.833c5.984,0.335,12.121,0.127,17.841-1.782 C48.257,41.503,44.542,40.688,42.312,41.432z"/></g>
</g>
<g>
<g><path d="M7.061,10.688c11.654-1.822,23.457,0.164,35.166-1c2.968-0.295,4.698-3.943,0.701-3.546 c-11.712,1.164-23.49-0.825-35.166,1C4.861,7.595,3.08,11.311,7.061,10.688z"/><path
d="M6.106,25.999c7.635,0.141,15.129-1.374,22.745-1.534c4.658-0.098,9.73,0.559,14.279-0.81 c1.131-0.34,2.521-0.994,2.476-2.351c-0.002-0.055-0.004-0.11-0.006-0.165c-0.044-1.313-2.486-1.266-4.187-0.429 c-4.141,0.949-8.845,0.097-13.016,0.319c-6.713,0.358-13.358,1.592-20.096,1.467C5.981,22.454,2.179,25.926,6.106,25.999z"/><path
d="M41.549,37.726c-4.651,2.286-10.269,2.103-15.327,1.842c-6.049-0.312-12.073-0.74-18.052-1.742 c-2.831-0.474-5.9,3.527-2.016,4.178c7.162,1.199,14.527,1.806,21.791,1.88c5.508,0.057,11.144-0.314,16.161-2.78 C47.664,39.354,44.476,36.287,41.549,37.726z"/></g>
</g>
</svg>
</div>
<script src="js/main.js" />
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-32740256-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script');
ga.type = 'text/javascript';
ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(ga, s);
})();
</script>
</body>
</html>