-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflexbox.html
248 lines (197 loc) · 7.02 KB
/
flexbox.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
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Flexify Frontend Framework</title>
<link href="css/flexify.css" rel="stylesheet" />
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico" />
</head>
<body class="fx-wrap">
<nav class="fx-u-bg-black">
<div class="fx-container fx-container--xl">
<ul class="fx-menu fx-menu--dark">
<li class="fx-menu__wrap-level-2">
<a href="index.html">Flexify Home</a>
<ul class="fx-menu__level-2">
<li><a href="faq.html">FAQ</a></li>
</ul>
</li>
<li class="fx-menu__wrap-level-2">
<a href="grid.html">Grid</a>
<ul class="fx-menu__level-2">
<li><a href="grid.html">Grid</a></li>
<li><a href="flexbox.html">Flexbox</a></li>
</ul>
</li>
<li class="fx-menu__wrap-level-2">
<a href="typography.html">Content</a>
<ul class="fx-menu__level-2">
<li><a href="typography.html">Typography</a></li>
<li><a href="tables.html">Tables</a></li>
</ul>
</li>
<li class="fx-menu__wrap-level-2">
<a href="buttons.html">Components</a>
<ul class="fx-menu__level-2">
<li><a href="buttons.html">Buttons</a></li>
<li><a href="controls.html">Form controls</a></li>
<li><a href="columns.html">Columns</a></li>
<li><a href="menu.html">Menu</a></li>
</ul>
</li>
<li><a href="utilities.html">Utilities</a></li>
<li><a href="https://github.com/webvitalii/flexify/">GitHub</a></li>
</ul><!-- .fx-menu -->
</div><!-- .fx-container -->
</nav>
<section class="fx-container fx-container--xl">
<div class="fx-g">
<section class="fx-g__box fx-g__box--9 fx-typography">
<h1 class="fx-h1">Grid</h1>
<h3 class="fx-h3">Breakpoints:</h3>
<table class="fx-table">
<tr>
<td><strong>Breakpoint</strong></td>
<td><strong>Screen size</strong></td>
<td><strong>Class example</strong></td>
</tr>
<tr>
<td>Extra small and all screen sizes</td>
<td>0px and above</td>
<td>fx-f__box--12</td>
</tr>
<tr>
<td>Small</td>
<td>576px and above</td>
<td>fx-f__box--sm-12</td>
</tr>
<tr>
<td>Medium</td>
<td>768px and above</td>
<td>fx-f__box--md-12</td>
</tr>
<tr>
<td>Large</td>
<td>992px and above</td>
<td>fx-f__box--lg-12</td>
</tr>
<tr>
<td>Extra large</td>
<td>1200px and above</td>
<td>fx-f__box--xl-12</td>
</tr>
</table>
<h4 class="fx-h4">Grid with equal height columns</h4>
<div class="fx-f">
<div class="fx-f__box fx-f__box--3 fx-u-bg-primary">
.fx-f__box .fx-f__box--3 - 3/12 = 25%
</div>
<div class="fx-f__box fx-f__box--6 fx-u-bg-success">
.fx-f__box .fx-f__box--6 - 6/12 = 50%
</div>
<div class="fx-f__box fx-f__box--3 fx-u-bg-danger">
.fx-f__box .fx-f__box--3 - 3/12 = 25%
</div>
</div>
<h4 class="fx-h4">No gap between columns (no gutters) - .fx-f--gap-none</h4>
<div class="fx-f fx-f--gap-none">
<div class="fx-f__box fx-f__box--3 fx-u-bg-primary">
.fx-f__box .fx-f__box--3
* * * * * * * * * * * * * * * * * * * * *
</div>
<div class="fx-f__box fx-f__box--6 fx-u-bg-success">
.fx-f__box .fx-f__box--6
* * * * * * * * * * * * * * * * * * * * *
* * * * * * * * * * * * * * * * * * * * *
</div>
<div class="fx-f__box fx-f__box--3 fx-u-bg-danger">
.fx-f__box .fx-f__box--3
* * * * * * * * * * * * * * * * * * * * *
</div>
</div>
<h4 class="fx-h4">Grid with nested rows and columns</h4>
<div class="fx-f">
<div class="fx-f__box fx-f__box--5 fx-u-bg-primary">
<div class="fx-f">
<div class="fx-f__box fx-f__box--6 fx-u-bg-success">
Nested column
</div>
<div class="fx-f__box fx-f__box--6 fx-u-bg-danger">
Nested column
</div>
</div>
</div>
<div class="fx-f__box fx-f__box--2 fx-u-bg-success">
Column with a lot of content.<br>
Column with a lot of content.
</div>
<div class="fx-f__box fx-f__box--5 fx-u-bg-danger">
<div class="fx-f">
<div class="fx-f__box fx-f__box--6 fx-u-bg-primary">
Nested column
</div>
<div class="fx-f__box fx-f__box--6 fx-u-bg-success">
Nested column with a lot of content.
</div>
</div>
</div>
</div>
<h2>Grid - responsive</h2>
<div class="fx-f">
<div class="fx-f__box fx-f__box--6 fx-f__box--md-4 fx-f__box--lg-4 fx-u-bg-primary">
.fx-f__box .fx-f__box--2 .fx-f__box--md-4 fx-f__box--lg-4
</div>
<div class="fx-f__box fx-f__box--6 fx-f__box--md-3 fx-f__box--lg-4 fx-u-bg-success">
.fx-f__box .fx-f__box--2 .fx-f__box--md-3 fx-f__box--lg-4
</div>
<div class="fx-f__box fx-f__box--12 fx-f__box--md-5 fx-f__box--lg-4 fx-u-bg-danger">
.fx-f__box .fx-f__box--8 .fx-f__box--md-5 fx-f__box--lg-4
</div>
</div>
<h2>Grid vertical alignment. Pure CSS, no JavaScript used.</h2>
<div class="fx-f">
<div class="fx-f__box fx-f__box--4 fx-u-bg-primary">
A lot of text<br>A lot of text<br>A lot of text<br>
A lot of text<br>A lot of text<br>A lot of text<br>
</div>
<div class="fx-f__box fx-f__box--2 fx-f__box-sm-align-top fx-u-bg-success">.fx-f__box-sm-align-top - align to top</div>
<div class="fx-f__box fx-f__box--2 fx-f__box-sm-align-middle fx-u-bg-primary">.fx-f__box-sm-align-middle - align to middle</div>
<div class="fx-f__box fx-f__box--2 fx-f__box-sm-align-bottom fx-u-bg-primary">.fx-f__box-sm-align-bottom - align to bottom</div>
<div class="fx-f__box fx-f__box--2 fx-u-bg-success">1 line of text</div>
</div>
</section><!-- .fx-g__box -->
<aside class="fx-g__box fx-g__box--3 fx-bg-gray-lightest">
<div class="textwidget custom-html-widget">
<a href="https://1.envato.market/my6mZ">
<img src="http://web-profile.net/wp-content/uploads/iframe-advanced-pro-e1569324802975.png"
alt="" width="220" height="156" class="">
</a>
</div>
<script async src="http://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- Universal Responsive -->
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-5207574527239705"
data-ad-slot="3447834479"
data-ad-format="auto"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</aside><!-- .fx-g__box -->
</div><!-- .fx-g -->
<footer class="site-footer fx-text-right">
<a href="http://web-profile.net/" target="_blank">Developed by web-profile.net</a>
</footer>
</section><!-- .fx-container -->
<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-76870586-1', 'auto');
ga('send', 'pageview');
</script>
</body>
</html>