|
7 | 7 | <meta name="viewport" content="width=device-width, initial-scale=1.0, |
8 | 8 | maximum-scale=1.0, user-scalable=no"/> |
9 | 9 |
|
10 | | - <title>Flexbox - Mobi.css Plugin</title> |
| 10 | + <title>Flexbox</title> |
11 | 11 |
|
12 | 12 | <link rel="stylesheet" href="https://unpkg.com/mobi.css@2.0.0-alpha.1/dist/mobi.min.css" /> |
13 | | - <link rel="stylesheet" href="./css/mobi-plugin-flexbox.min.css}" /> |
| 13 | + <link rel="stylesheet" href="./css/mobi-plugin-flexbox.min.css" /> |
14 | 14 |
|
15 | 15 | <style> |
16 | 16 | .text-center { |
|
25 | 25 | <body> |
26 | 26 | <div class="flex-center"> |
27 | 27 | <div class="container"> |
28 | | - <div class="text-center"> |
29 | | -<h1 id="flexbox-mobicss-plugin">Flexbox - Mobi.css Plugin</h1> |
30 | | -<p>The flexbox plugin for <a href="http://getmobicss.com">Mobi.css</a></p> |
31 | | -</div> |
32 | | -<div class="flex-center units-gap-big"> |
33 | | - <div class="unit-0"> |
34 | | - <a href="https://github.com/mobi-css/mobi-plugin-flexbox/releases" class="btn">Download</a> |
35 | | - </div> |
36 | | - <div class="unit-0"> |
37 | | - <a href="https://github.com/mobi-css/mobi-plugin-flexbox/" class="btn">GitHub</a> |
38 | | - </div> |
39 | | -</div> |
40 | | -<hr class="top-gap-big"/> |
41 | | -<h2 id="introduction">Introduction</h2> |
42 | | -<blockquote> |
43 | | -<p>Mobi.css is a themeable, pluginable, mobile-first css framework.</p> |
44 | | -</blockquote> |
45 | | -<p>This is the flexbox plugin for <a href="http://getmobicss.com">Mobi.css</a>, you can use it within <a href="http://getmobicss.com">Mobi.css</a> framework, or simply use the <a href="https://github.com/mobi-css/mobi-plugin-flexbox/releases">standalone css library</a> without using Mobi.css framework.</p> |
46 | | -<p>You can also insert the CDN link to your <code><head></code> to try the standalone version:</p> |
47 | | -<pre><code class="language-html"><link rel="stylesheet" href="https://unpkg.com/mobi-plugin-flexbox/dist/mobi-plugin-flexbox.min.css" /> |
48 | | -</code></pre> |
49 | | -<h2 id="usage">Usage</h2> |
50 | | -<h3 id="flexbox-container-and-units">Flexbox Container and Units</h3> |
| 28 | + <h2 id="flexbox">Flexbox</h2> |
| 29 | +<h3 id="container-and-units">Container and Units</h3> |
51 | 30 | <p>First of all, let's create a <code>.flex-left</code> container which contains several <code>.unit</code>s. In this case, <code>.flex-left</code>'s width is divided equally between <code>.unit</code>s.</p> |
52 | 31 | <div class="flex-left top-gap text-center"> |
53 | 32 | <div class="unit site-box">unit</div> |
@@ -249,36 +228,6 @@ <h3 id="units-gap">Units Gap</h3> |
249 | 228 | <div class="unit-1-4 site-box">.units-gap-big > .unit-1-4</div> |
250 | 229 | </div> |
251 | 230 | </code></pre> |
252 | | -<h2 id="customize">Customize</h2> |
253 | | -<p>It's also able to customize it, clone this repo and run:</p> |
254 | | -<pre><code class="language-shell">npm install |
255 | | -npm start |
256 | | -</code></pre> |
257 | | -<p>Then modify <code>src/_custom.scss</code> as you like.</p> |
258 | | -<pre><code class="language-scss">// |
259 | | -// Modify variables in this file to Customize your flexbox styles |
260 | | -// |
261 | | - |
262 | | -// |
263 | | -// Width lower than $width-breakpoint will be treated as mobile devices |
264 | | -// Default is 1000px |
265 | | -// |
266 | | -// $width-breakpoint: 600px; |
267 | | - |
268 | | -// |
269 | | -// This decides the gaps between units in `.units-gap` and `.units-gap-big` |
270 | | -// Default is 12px |
271 | | -// |
272 | | -// $width-gap: 16px; |
273 | | -</code></pre> |
274 | | -<h2 id="community">Community</h2> |
275 | | -<p>Like Mobi.css? Please join the community to discuss new features, open an issue or create pull requests!</p> |
276 | | -<ul> |
277 | | -<li><a href="http://github.com/mobi-css">GitHub organization</a></li> |
278 | | -<li><a href="https://twitter.com/mobi_css">Follow us on twitter</a></li> |
279 | | -<li><a href="https://gitter.im/mobi-css">Join gitter discuss</a></li> |
280 | | -<li><a href="https://medium.com/@mobi_css">Read our blogs</a></li> |
281 | | -</ul> |
282 | 231 |
|
283 | 232 | </div> |
284 | 233 | </div> |
|
0 commit comments