Skip to content

Commit

Permalink
arrows instead of external link icons, in summary panel
Browse files Browse the repository at this point in the history
  • Loading branch information
zarino committed Jul 2, 2014
1 parent e93334d commit 3e3caf3
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 4 deletions.
Binary file added www/docs/images/vote-summary-more-icon-blue.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added www/docs/images/vote-summary-more-icon-white.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added www/docs/images/vote-summary-more-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
36 changes: 32 additions & 4 deletions www/docs/style/sass/pages/_mp.scss
Original file line number Diff line number Diff line change
Expand Up @@ -535,13 +535,41 @@
}
}

// Minor adjustments because source link has no text content
// The source links on the summary section are slightly different
// to the ones on the main vote page (arrow icon, no text label)
.vote-description__source {
padding: 0 0.7em;
padding: 0 0.6em;

&:after {
&::after {
margin-left: 0;
vertical-align: 0;
vertical-align: -3px;
height: 15px;
background: transparent url(/images/vote-summary-more-icon.png) 0 -30px no-repeat;
background-size: 20px 45px;

@media (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 144dpi) {
background-size: 15px; // 10px width, auto height
}
}
}

// The source links also act a bit differently on hover
// (no coloured "button" background, different link icon)
li:hover,
li:focus {
.vote-description__source {
background: transparent;

&::after {
background-image: url(/images/vote-summary-more-icon.png);
}

&:hover,
&:focus {
&::after {
background-image: url(/images/vote-summary-more-icon-blue.png);
}
}
}
}
}
Expand Down

0 comments on commit 3e3caf3

Please sign in to comment.