Skip to content

Commit 0a33627

Browse files
author
mrmrs
committed
Update the docs to include the grow effect
1 parent c469b7c commit 0a33627

File tree

2 files changed

+20
-16
lines changed

2 files changed

+20
-16
lines changed

docs/themes/hovers/index.html

+10-8
Original file line numberDiff line numberDiff line change
@@ -74,21 +74,17 @@ <h4 class="f4 mv0 fw6 dib mr4">tachyons-hovers</h4>
7474
</dl>
7575
</div>
7676
<p class="measure f3 lh-copy">
77-
There are two classes for adding hover effects to elements. One dims
78-
an element on hover, the other will hide children within an element on hover.
79-
The dim class can be used on links of any color to give visual affordance to
80-
users that something can be interacted with.
77+
There are several classes for adding hover effects to elements.
78+
Hover effects can be used to give visual affordance to the user that an element can be interacted with.
8179
</p>
8280
</article>
8381
<div class="ph3 ph5-ns pt4 pb5">
8482
<h2 class="f3 bold">Examples</h2>
8583
<h3 class="f5 book pt4 caps">Dim Text</h3>
8684
<p>
8785
<a href="#" class="f3 b db dim link pv1 black">This link will dim on hover</a>
88-
<a href="#" class="f3 b db dim link pv1 gray">This link will dim on hover</a>
89-
<a href="#" class="f3 b db dim link pv1 blue">This link will dim on hover</a>
90-
<a href="#" class="f3 b db dim link pv1 dark-blue">This link will dim on hover</a>
91-
<a href="#" class="f3 b db dim link pv1 darkest-blue">This link will dim on hover</a>
86+
<a href="#" class="f3 b db dim link pv1 black-80">This link will dim on hover</a>
87+
<a href="#" class="f3 b db dim link pv1 black-60">This link will dim on hover</a>
9288
</p>
9389
<h3 class="f5 book pt4 caps">Dim Card</h3>
9490
<p>
@@ -105,6 +101,12 @@ <h3 class="f5 book pt4 caps">Add pointer on hover</h3>
105101
<div href="#" class="link dim black mw5 dt hide-child ba b--black-20 pa4 br2 pointer">
106102
Add pointer on hover to element.
107103
</div>
104+
<h3 class="f5 book pt4 caps">Grow on Hover</h3>
105+
<a class="w5 mw5 dt grow link" href="#" style="background: black url(/img/1.jpg); background-size: cover;">
106+
<span class="white-90 underline f5 f3-ns b ttu dtc v-mid w-100 h-100 pa3 pa5-ns br2">
107+
Portfolio Project #11
108+
</span>
109+
</a>
108110
<div class="mt5 cf">
109111
<div class="dib mr4">
110112
<h1 class="f4 ttu tracked fw6">Previous</h1>

src/templates/docs/hovers/index.html

+10-8
Original file line numberDiff line numberDiff line change
@@ -33,21 +33,17 @@ <h4 class="f4 mv0 fw6 dib mr4"><%= name %></h4>
3333
</dl>
3434
</div>
3535
<p class="measure f3 lh-copy">
36-
There are two classes for adding hover effects to elements. One dims
37-
an element on hover, the other will hide children within an element on hover.
38-
The dim class can be used on links of any color to give visual affordance to
39-
users that something can be interacted with.
36+
There are several classes for adding hover effects to elements.
37+
Hover effects can be used to give visual affordance to the user that an element can be interacted with.
4038
</p>
4139
</article>
4240
<div class="ph3 ph5-ns pt4 pb5">
4341
<h2 class="f3 bold">Examples</h2>
4442
<h3 class="f5 book pt4 caps">Dim Text</h3>
4543
<p>
4644
<a href="#" class="f3 b db dim link pv1 black">This link will dim on hover</a>
47-
<a href="#" class="f3 b db dim link pv1 gray">This link will dim on hover</a>
48-
<a href="#" class="f3 b db dim link pv1 blue">This link will dim on hover</a>
49-
<a href="#" class="f3 b db dim link pv1 dark-blue">This link will dim on hover</a>
50-
<a href="#" class="f3 b db dim link pv1 darkest-blue">This link will dim on hover</a>
45+
<a href="#" class="f3 b db dim link pv1 black-80">This link will dim on hover</a>
46+
<a href="#" class="f3 b db dim link pv1 black-60">This link will dim on hover</a>
5147
</p>
5248
<h3 class="f5 book pt4 caps">Dim Card</h3>
5349
<p>
@@ -64,6 +60,12 @@ <h3 class="f5 book pt4 caps">Add pointer on hover</h3>
6460
<div href="#" class="link dim black mw5 dt hide-child ba b--black-20 pa4 br2 pointer">
6561
Add pointer on hover to element.
6662
</div>
63+
<h3 class="f5 book pt4 caps">Grow on Hover</h3>
64+
<a class="w5 mw5 dt grow link" href="#" style="background: black url(/img/1.jpg); background-size: cover;">
65+
<span class="white-90 f5 f3-ns b ttu dtc v-mid w-100 h-100 pa3 pa5-ns br2">
66+
Portfolio Project #11
67+
</span>
68+
</a>
6769
<div class="mt5 cf">
6870
<div class="dib mr4">
6971
<h1 class="f4 ttu tracked fw6">Previous</h1>

0 commit comments

Comments
 (0)