Skip to content

Commit 4e9c320

Browse files
author
mrmrs
committed
Max widths and position docs.
1 parent fb8c8c8 commit 4e9c320

File tree

4 files changed

+22
-2
lines changed

4 files changed

+22
-2
lines changed

docs/layout/max-widths/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -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">tachyons-max-widths</h4>
4747
<span class="f4 b dib pl0 ml0 mr4">v3.1.0</span>
4848
<span class="f4 b dib pl0 ml0 mr4">245 B</span>

docs/layout/position/index.html

+10
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,16 @@ <h4 class="f4 mv0 fw6 dib mr4">tachyons-position</h4>
6464
<dd class="db pl0 ml0 f4 f2-ns b">1</dd>
6565
</dl>
6666
</div>
67+
<p class="measure f4 f3-ns lh-copy">
68+
Elements default to a position of static. Tachyons provides utilities for setting position to be relative or absolute. Absolute elements are absolutely positioned inside of a relative element. You can use absolute positioning to stretch elements making sure they fill the width and height of a relative container. Relatively positioned elements offer the ability to offset the position of an element without affecting the position of any elements around it. This module should be used in conjunction with the coordinates module which is used to give working examples on this page.
69+
</p>
70+
<p class="measure f5 f4-ns lh-copy">
71+
CSS also provides fixed and sticky options for position but as I
72+
don't find them useful from a design standpoint I have not included
73+
them here. If you do find them useful you could easily extend the
74+
position module to include these options. It should be noted that
75+
sticky is not well supported at the moment. If the provided coordinates don't suit your needs the module is easy to extend to add any values you might need. I don't provide negative values - but those can be used in both relative and absolutely positioned elements.
76+
</p>
6777
</article>
6878
<div class="ph3 ph5-ns pt4 pb5">
6979
<h2 class="f3 bold">Examples</h2>

src/templates/docs/max-widths/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -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>

src/templates/docs/position/index.html

+10
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,16 @@ <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 f4 f3-ns lh-copy">
41+
Elements default to a position of static. Tachyons provides utilities for setting position to be relative or absolute. Absolute elements are absolutely positioned inside of a relative element. You can use absolute positioning to stretch elements making sure they fill the width and height of a relative container. Relatively positioned elements offer the ability to offset the position of an element without affecting the position of any elements around it. This module should be used in conjunction with the coordinates module which is used to give working examples on this page.
42+
</p>
43+
<p class="measure f5 f4-ns lh-copy">
44+
CSS also provides fixed and sticky options for position but as I
45+
don't find them useful from a design standpoint I have not included
46+
them here. If you do find them useful you could easily extend the
47+
position module to include these options. It should be noted that
48+
sticky is not well supported at the moment. If the provided coordinates don't suit your needs the module is easy to extend to add any values you might need. I don't provide negative values - but those can be used in both relative and absolutely positioned elements.
49+
</p>
4050
</article>
4151
<div class="ph3 ph5-ns pt4 pb5">
4252
<h2 class="f3 bold">Examples</h2>

0 commit comments

Comments
 (0)