Size adjustments for moved-back repo icon

* make Commons icon slightly larger than "use this file" icon so
  it seems to be the same size (since the Commons icon has more
  whitespace)
* re-add size adjustments for dynamic icon; IIRC this was needed
  to make Wikipedia icons look good

Change-Id: I6cc2c66beb1d270c9367446661ef14139afa814e
This commit is contained in:
Gergő Tisza 2014-07-17 00:49:10 +00:00
parent ab63450dbe
commit b622669a9e

View file

@ -71,10 +71,15 @@
/* @embed */
background-image: url(img/commons_gray.svg);
background-position: 50% 40%; // visually it looks much better when the middle of the circle is centered
// make the Commons icon a tiny bit larger so people don't complain that the other icon is larger
padding: 1px;
top: -1px;
}
&-dynamic:before {
// for repos other than Wikimedia Commons we manipulate :before dynamically from JS; this is a fallback
.grayscale();
background-image: url(img/repo.svg);
width: 0.8em;
height: 0.8em;
}
}