mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-09-29 05:07:36 +00:00
Adjustments to repo icon
The following visual adjustments have been made: - Make color similar to other icons in the metadata panel. - Highlight on hover to convey interactivity. - Adjust to the "visual center". The icon was matematically centered, but since the angular separator adds empty space to the right, a 2px correction has been added so that it looks centered taking into account that extra space. Change-Id: Ib4db723b38a8d6fc9528fe86756220b6525da95b
This commit is contained in:
parent
00d204b0e2
commit
5edb949d01
|
@ -82,13 +82,19 @@
|
|||
position: absolute;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
left: -@repo-button-width;
|
||||
left: -( @repo-button-width - 2 );
|
||||
width: @repo-button-width;
|
||||
opacity: 0.8;
|
||||
transition: opacity 0.25s;
|
||||
|
||||
background-position: 50% 50%;
|
||||
background-repeat: no-repeat;
|
||||
background-size: auto 50%;
|
||||
|
||||
&:hover {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
&-commons {
|
||||
/* @embed */
|
||||
background-image: url(img/commons_gray.svg);
|
||||
|
|
Loading…
Reference in a new issue