-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathfluid.html
141 lines (108 loc) · 4.03 KB
/
fluid.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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>Flex One - CSS Framework</title>
<style>
* {box-sizing: border-box}
body {
margin: 0;
font-family: Helvetica, Arial, sans-serif;
}
h1 {
font-size: 32px;
font-family: "HelveticaNeueThin", "HelveticaNeue-Thin", "Helvetica Neue Thin", Arial, sans-serif;
font-weight: 200;
font-stretch: normal;
}
.main{display: flex; flex-flow: row wrap; width: 80%; margin: 0 auto}
.fluid{flex:1;}
.clear{width: 100%}
.fluid {
border: 1px solid #e56e6e;
color: #1577ca;
padding: 10px;
margin: 10px 0 10px 15px;
text-align: center;
}
.nomargin{display: flex; flex-flow: row wrap; padding:0 !important; margin:0 !important; border: 0 !important;}
</style>
</head>
<body>
<div class="main">
<div class="fluid"> <h1>Flex One - 1 CSS Class System</h1></div>
<div class="clear"></div>
<div class="fluid"> <p> .fluid {flex:1}</p></div>
<div class="clear"></div>
<div class="fluid">50%</div>
<div class="fluid">50%</div>
<div class="clear"></div>
<div class="fluid">33,3%</div>
<div class="fluid">33,3%</div>
<div class="fluid">33,3%</div>
<div class="clear"></div>
<div class="fluid">25%</div>
<div class="fluid">25%</div>
<div class="fluid">25%</div>
<div class="fluid">25%</div>
<div class="clear"></div>
<div class="fluid">20%</div>
<div class="fluid">20%</div>
<div class="fluid">20%</div>
<div class="fluid">20%</div>
<div class="fluid">20%</div>
<div class="clear"></div>
<div class="fluid">16,66%</div>
<div class="fluid">16,66%</div>
<div class="fluid">16,66%</div>
<div class="fluid">16,66%</div>
<div class="fluid">16,66%</div>
<div class="fluid">16,66%</div>
<div class="clear"></div>
<div class="fluid">12,5%</div>
<div class="fluid">12,5%</div>
<div class="fluid">12,5%</div>
<div class="fluid">12,5%</div>
<div class="fluid">12,5%</div>
<div class="fluid">12,5%</div>
<div class="fluid">12,5%</div>
<div class="fluid">12,5%</div>
<div class="clear"></div>
<div class="fluid"><p>Flex One is Infinite Grid System based on the Flex CSS Layout</p></div>
<div class="clear"></div>
<div class="fluid"><p>Everything is based on this class: <b>.fluid {flex:1}</b> </p></div>
<div class="clear"></div>
<div class="fluid"><p>There are also the .main container class and the .clear class. And that is it.</p></div>
<div class="clear"></div>
<div class="fluid nomargin">
<div class="fluid">12,5%</div>
<div class="fluid">12,5%</div>
</div>
<div class="clear"></div>
<div class="fluid">
<code><pre>
// Just add any number of .fluid columns like this:
// Two Columns
<div class="fluid"></div>
<div class="fluid"></div>
<div class="clear"></div>
// Three Columns
<div class="fluid"></div>
<div class="fluid"></div>
<div class="fluid"></div>
<div class="clear"></div>
// Four Columns
<div class="fluid"></div>
<div class="fluid"></div>
<div class="fluid"></div>
<div class="fluid"></div>
<div class="clear"></div>
</pre>
</code>
</div>
<div class="clear"></div>
<div class="fluid"><p><a href="https://github.com/vladocar/Flex-One">Download on Github </a></p></div>
<div class="clear"></div>
</div>
</body>
</html>