Skip to content

Commit

Permalink
Remove hover shadow for links, improve hover style for hoverable avatars
Browse files Browse the repository at this point in the history
  • Loading branch information
dmstern committed Nov 5, 2018
1 parent ae053d9 commit 493faea
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/assets/variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,4 @@ $grid-breakpoints: (

$mdi2faScaleFactor: 20/24;

$shadow-focused: 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14),
0 1px 5px 0 rgba(0, 0, 0, 0.12);
$shadow-floating: 0 3px 5px -1px rgba(0,0,0,.2), 0 6px 10px 0 rgba(0,0,0,.14), 0 1px 18px 0 rgba(0,0,0,.12);
7 changes: 5 additions & 2 deletions src/components/PackageDetailItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,13 @@ export default class PackageDetailItem extends Vue {
a:not([href='#']),
.v-avatar {
margin-right: 0.5em;
transition: $transition-smooth;
transition: $transition-fast;
}
.v-avatar {
&:hover {
box-shadow: $shadow-focused;
box-shadow: $shadow-floating;
transform: scale(1.1);
}
}
}
Expand Down

0 comments on commit 493faea

Please sign in to comment.