-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
99 lines (97 loc) · 2.74 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
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
<meta name="apple-mobile-web-app-capable" content="yes" />
<link rel="apple-touch-icon" href="touch-icon-iphone.png" />
<link rel="apple-touch-icon" sizes="72x72" href="touch-icon-ipad.png" />
<link rel="apple-touch-icon" sizes="114x114" href="touch-icon-iphone4.png" />
<link href='http://fonts.googleapis.com/css?family=Exo+2:400,700' rel='stylesheet' type='text/css'>
<link href='css/style.css' rel='stylesheet' type='text/css'>
</head>
<body>
<div id="wrapper">
<h1>FLEXBOX LESS MIXINS</h1>
<section>
<h2>Just flex. No floats, inline-box or other layout hacks here.</h2>
<ul>
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
</ul>
</section>
<section>
<h2>Fill the space evenly.</h2>
<ul class="grow-one">
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
</ul>
</section>
<section>
<h2>Make them into columns instead of rows.</h2>
<ul class="grow-one columns">
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
</ul>
</section>
<section>
<h2>Fill the space with the first expanding one part, the second three and the third by two.</h2>
<ul class="grow-one">
<li>Item 1</li>
<li class="grow-three">Item 2</li>
<li class="grow-two">Item 3</li>
</ul>
</section>
<section>
<h2>Align content to the vertical center.</h2>
<ul class="vertically-centered">
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
</ul>
</section>
<section>
<h2>Align content to the horizontal center.</h2>
<ul class="horizontally-centered">
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
</ul>
</section>
<section>
<h2>Align content to both centers.</h2>
<ul class="vertically-centered horizontally-centered">
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
</ul>
</section>
<section>
<h2>Change the item order without touching the mark-up.</h2>
<ul class="horizontally-centered change-order">
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
</ul>
</section>
<section>
<h2>Align content to the end or in this case the right.</h2>
<ul class="vertically-centered flex-end">
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
</ul>
</section>
<section>
<h2>Create even space between taking content length into consideration.</h2>
<ul class="vertically-centered even-space">
<li>Item 1</li>
<li>Item 2 with more content.</li>
<li>Item 3 with even more content to allow for in space.</li>
</ul>
</section>
</div>
</body>
</html>