Links
Tachyons doesn’t style links by default, but provides the necessary classes to generate a wide variety of link styles.
Tachyons doesn’t style links by default, but provides the necessary classes to generate a wide variety of link styles.
To keep the default underline, but animate the color transition, combine classes from skins and skins-pseudo.
<a href="#" class="link underline blue hover-orange">link text</a>
To add an underline on hover and focus, use the class 'underline-hover'.
<a href="#" class="link underline-hover red">link text</a>
To dim a link on hover, add the dim class.
<a href="#" class="dim">link text</a>
You can add any background color from the skins-pseudo module.
<a href="#" class="link black hover-bg-light-blue">link text</a>
You can add any background color from the skins-pseudo module.
<a href="#" class="link black bg-animate hover-bg-light-blue">link text</a>
Below are examples of combining each color in the skins module with the dim class.
<a href="#" class="link dim black">black link</a>
<a href="#" class="link dim near-black">near-black link</a>
<a href="#" class="link dim dark-gray">dark-gray link</a>
<a href="#" class="link dim mid-gray">mid-gray link</a>
<a href="#" class="link dim gray">gray link</a>
<a href="#" class="link dim black-90">black-90 link</a>
<a href="#" class="link dim black-80">black-80 link</a>
<a href="#" class="link dim black-70">black-70 link</a>
<a href="#" class="link dim black-60">black-60 link</a>
<a href="#" class="link dim black-50">black-50 link</a>
<a href="#" class="link dim navy">navy link</a>
<a href="#" class="link dim dark-blue">dark-blue link</a>
<a href="#" class="link dim blue">blue link</a>
<a href="#" class="link dim dark-red">dark-red link</a>
<a href="#" class="link dim silver">silver link</a>
<a href="#" class="link dim light-silver">light-silver link</a>
<a href="#" class="link dim moon-gray">moon-gray link</a>
<a href="#" class="link dim light-gray">light-gray link</a>
<a href="#" class="link dim near-white">near-white link</a>
<a href="#" class="link dim white">white link</a>
<a href="#" class="link dim white-90">white-90 link</a>
<a href="#" class="link dim white-80">white-80 link</a>
<a href="#" class="link dim white-70">white-70 link</a>
<a href="#" class="link dim white-60">white-60 link</a>
<a href="#" class="link dim white-50">white-50 link</a>
<a href="#" class="link dim red">red link</a>
<a href="#" class="link dim light-red">light-red link</a>
<a href="#" class="link dim orange">orange link</a>
<a href="#" class="link dim gold">gold link</a>
<a href="#" class="link dim yellow">yellow link</a>
<a href="#" class="link dim light-yellow">light-yellow link</a>
<a href="#" class="link dim purple">purple link</a>
<a href="#" class="link dim light-purple">light-purple link</a>
<a href="#" class="link dim dark-pink">dark-pink link</a>
<a href="#" class="link dim hot-pink">hot-pink link</a>
<a href="#" class="link dim pink">pink link</a>
<a href="#" class="link dim light-pink">light-pink link</a>
<a href="#" class="link dim dark-green">dark-green link</a>
<a href="#" class="link dim green">green link</a>
<a href="#" class="link dim light-green">light-green link</a>
<a href="#" class="link dim light-blue">light-blue link</a>
<a href="#" class="link dim lightest-blue">lightest-blue link</a>
<a href="#" class="link dim washed-blue">washed-blue link</a>
<a href="#" class="link dim washed-green">washed-green link</a>
<a href="#" class="link dim washed-yellow">washed-yellow link</a>
<a href="#" class="link dim washed-red">washed-red link</a>
/*
LINKS
Docs: http://tachyons.io/docs/elements/links/
*/
.link {
text-decoration: none;
transition: color .15s ease-in;
}
.link:link,
.link:visited {
transition: color .15s ease-in;
}
.link:hover {
transition: color .15s ease-in;
}
.link:active {
transition: color .15s ease-in;
}
.link:focus {
transition: color .15s ease-in;
outline: 1px dotted currentColor;
}