Skip to content

Commit

Permalink
Rework link and link-complex styling
Browse files Browse the repository at this point in the history
  • Loading branch information
Harry Roberts authored and csswizardry committed Dec 2, 2012
1 parent 00e3b6c commit c591f30
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 31 deletions.
2 changes: 1 addition & 1 deletion inuit.css/base/_links.scss
Expand Up @@ -7,7 +7,7 @@
* Sometimes, particularly on larger projects, it is useful to scope link
* styling only to anchors which have `href` attributes.
*/
a:link{
a{
/**
* Set colors etc in your theme stylesheet.
*/
Expand Down
4 changes: 2 additions & 2 deletions inuit.css/inuit.scss
Expand Up @@ -92,7 +92,7 @@
* MATRIX..............Gridded lists
* SPLIT...............A simple split-in-two object
* THIS-OR-THIS........Options object
* COMPLEX-LINK........
* LINK-COMPLEX........
* FLYOUT..............Flyout-on-hover object
* ARROWS..............CSS arrows
* SPRITE..............Generic spriting element
Expand Down Expand Up @@ -183,7 +183,7 @@
@import "objects/split";
// @import "example/unnecessary/file";
@import "objects/this-or-this";
@import "objects/complex-link";
@import "objects/link-complex";
@import "objects/flyout";
@import "objects/arrows";
@import "objects/sprite";
Expand Down
28 changes: 0 additions & 28 deletions inuit.css/objects/_complex-link.scss

This file was deleted.

28 changes: 28 additions & 0 deletions inuit.css/objects/_link-complex.scss
@@ -0,0 +1,28 @@
/*------------------------------------*\
$LINK-COMPLEX
\*------------------------------------*/
/**
* As inspired by @necolas:
* github.com/necolas/suit-utils/blob/master/link.css#L18
*
* Add hover behaviour to only selected items within links, e.g.:
*
<a href=log-in class=link-complex>
<i class="s s--user"></i>
<span class=link-complex__target>Log in</span>
</a>
*
* Demo: jsfiddle.net/inuitcss/rt9M3
*
*/
.link-complex,
.link-complex:hover,
.link-complex:active,
.link-complex:focus{
text-decoration:none;
}
.link-complex:hover .link-complex__target,
.link-complex:active .link-complex__target,
.link-complex:focus .link-complex__target{
text-decoration:underline;
}

0 comments on commit c591f30

Please sign in to comment.