Skip to content

Commit

Permalink
fix(links): change hover state
Browse files Browse the repository at this point in the history
- Give default/lowlight-alt/inverse links underlines on hover
- Darken default/lowlight/lowlight-alt links

[Finishes #82570730]

Signed-off-by: Geoff Pleiss <gpleiss@pivotallabs.com>
  • Loading branch information
S. Monty Suwannukul committed Nov 12, 2014
1 parent 90cb645 commit baf77c4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
11 changes: 7 additions & 4 deletions src/pivotal-ui/components/links.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,15 @@ Link
<a href="http://google.com">default link</a> | | This is what buttons look like, this is the go to button style.
<a class="link-lowlight" href="http://google.com">lowlight link</a> | `link-lowlight` | I'm afraid I can't let you do that, yet.
<a class="link-lowlight-alt" href="http://google.com">lowlight link alternate</a> | `link-lowlight-alt` | Less important links
<a class="link-lowlight-alt bg-dark-1" href="http://google.com">lowlight link alternate</a> | `link-lowlight-alt` | Less important links on a dark background.
<a class="link-inverse bg-dark-1" href="http://google.com">inverse link</a> | `link-inverse` | I go on a non-white background
*/

a{
@include transition-pui();
}

a:hover {
text-decoration: none;
cursor: pointer;
}

Expand All @@ -37,13 +39,14 @@ a:hover {
color: $link-lowlight-color;
&:hover {
color: $link-lowlight-hover-color;
text-decoration: none;
}
}

.link-lowlight-alt {
color: $link-lowlight-inverse-color;
color: $link-lowlight-alt-color;
&:hover {
color: $link-lowlight-inverse-hover-color;
color: $link-lowlight-alt-hover-color;
}
}

Expand Down
6 changes: 3 additions & 3 deletions src/pivotal-ui/components/variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -216,16 +216,16 @@ $text-color: $gray-3 !default;
// -------------------------

$link-color: $blue-2;
$link-hover-color: $blue-3;
$link-hover-color: $blue-1;

$link-lowlight-color: $blue-4;
$link-lowlight-hover-color: $blue-2;

$link-inverse-color: $blue-3;
$link-inverse-hover-color: $blue-4;

$link-lowlight-inverse-color: $gray-4;
$link-lowlight-inverse-hover-color: $gray-6;
$link-lowlight-alt-color: $gray-4;
$link-lowlight-alt-hover-color: $blue-1;

// Typography
// -------------------------
Expand Down

0 comments on commit baf77c4

Please sign in to comment.