Skip to content

Commit 5ac0527

Browse files
author
mrmrs
committed
Updating docs for the float module which is rad as hell.
1 parent f5b9ca7 commit 5ac0527

File tree

2 files changed

+32
-6
lines changed

2 files changed

+32
-6
lines changed

docs/layout/floats/index.html

+16-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
<meta charset="utf-8">
55
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
66
<title>
7-
Floats / Layout / Docs / TACHYONS
7+
floats / Layout / Docs / TACHYONS
88
</title>
9-
<meta name="author" content="@mr3rs">
9+
<meta name="author" content="@mrmrs">
1010
<meta name="description" content="CSS">
1111
<meta name="viewport" content="width=device-width, initial-scale=1">
1212
<link rel="stylesheet" href="/css/tachyons.css">
@@ -42,7 +42,7 @@
4242
</header>
4343

4444
<main class="">
45-
<article class="bg-near-white bt b--black-10 ph3 pt3 ph5-ns">
45+
<article class="bg-near-white bt b--black-10 pa3 ph5-ns">
4646
<h4 class="f4 mv0 fw6 dib mr4">floats</h4>
4747
<span class="f4 b dib pl0 ml0 mr4">v2.0.3</span>
4848
<span class="f4 b dib pl0 ml0 mr4">186 B</span>
@@ -64,6 +64,19 @@ <h4 class="f4 mv0 fw6 dib mr4">floats</h4>
6464
<dd class="db pl0 ml0 f4 f2-ns b">1</dd>
6565
</dl>
6666
</div>
67+
<p class="measure f3 lh-copy">
68+
Single purpose classes for setting the display of an element at any breakpoint.
69+
</p>
70+
<p class="measure f4 lh-copy">
71+
Floats may be set on any element, but it will only affect elements
72+
that aren't absolutely positioned. When you float an element
73+
you inherintly set it's display to block.
74+
</p>
75+
<p class="measure f4 lh-copy">
76+
There are only three values that can be declared for float: left, right, or none.
77+
These three base classes are very easy to memorize: fl, fr, fn.
78+
Combine float left/right with width utilities to create fluid multi-column layouts.
79+
</p>
6780
</article>
6881
<div class="ph3 ph5-ns pt4 pb5">
6982
<h2 class="f3 bold">Examples</h2>

src/templates/docs/floats/index.html

+16-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
<meta charset="utf-8">
55
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
66
<title>
7-
Floats / Layout / Docs / TACHYONS
7+
<%= name %> / Layout / Docs / TACHYONS
88
</title>
9-
<meta name="author" content="@mr3rs">
9+
<meta name="author" content="@mrmrs">
1010
<meta name="description" content="CSS">
1111
<meta name="viewport" content="width=device-width, initial-scale=1">
1212
<link rel="stylesheet" href="/css/tachyons.css">
@@ -15,7 +15,7 @@
1515

1616
<%= siteHeader %>
1717
<main class="">
18-
<article class="bg-near-white bt b--black-10 ph3 pt3 ph5-ns">
18+
<article class="bg-near-white bt b--black-10 pa3 ph5-ns">
1919
<h4 class="f4 mv0 fw6 dib mr4"><%= name %></h4>
2020
<span class="f4 b dib pl0 ml0 mr4">v<%= moduleVersion %></span>
2121
<span class="f4 b dib pl0 ml0 mr4"><%= moduleSize %></span>
@@ -37,6 +37,19 @@ <h4 class="f4 mv0 fw6 dib mr4"><%= name %></h4>
3737
<dd class="db pl0 ml0 f4 f2-ns b"><%= moduleObj.rules.size.average %></dd>
3838
</dl>
3939
</div>
40+
<p class="measure f3 lh-copy">
41+
Single purpose classes for setting the display of an element at any breakpoint.
42+
</p>
43+
<p class="measure f4 lh-copy">
44+
Floats may be set on any element, but it will only affect elements
45+
that aren't absolutely positioned. When you float an element
46+
you inherintly set it's display to block.
47+
</p>
48+
<p class="measure f4 lh-copy">
49+
There are only three values that can be declared for float: left, right, or none.
50+
These three base classes are very easy to memorize: fl, fr, fn.
51+
Combine float left/right with width utilities to create fluid multi-column layouts.
52+
</p>
4053
</article>
4154
<div class="ph3 ph5-ns pt4 pb5">
4255
<h2 class="f3 bold">Examples</h2>

0 commit comments

Comments
 (0)