Skip to content

Commit

Permalink
Improve links design
Browse files Browse the repository at this point in the history
* To provide a stronger feedback, all `a` tags now has a shadow on mouse hover.
* Links in contents now has a better animation.
  • Loading branch information
Track3 committed Jun 19, 2019
1 parent c05698c commit e333628
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions assets/scss/_predefined.scss
Expand Up @@ -23,10 +23,11 @@ $code-fonts: Consolas, "Andale Mono WT", "Andale Mono", Menlo, Monaco, "Lucida C
word-wrap: break-word;
border: none;
box-shadow: inset 0 -4px 0 $theme;
transition-property: background-color;
transition-property: box-shadow;
transition-duration: .1s;

&:hover {
background-color: $theme;
box-shadow: inset 0 -1em 0 $theme;
}
}
}
1 change: 1 addition & 0 deletions assets/scss/style.scss
Expand Up @@ -95,6 +95,7 @@ a {

&:hover {
color: #fff;
text-shadow: 0 0 1px #fff;
}
}

Expand Down

0 comments on commit e333628

Please sign in to comment.