watchstar.less 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. @import "mediawiki.mixins.rotation"
  2. /* Watch/Unwatch Icon Styling */
  3. #ca-unwatch.icon a,
  4. #ca-watch.icon a {
  5. margin: 0;
  6. padding: 0;
  7. display: block;
  8. width: 26px;
  9. /* This hides the text but shows the background image */
  10. padding-top: 3.1em;
  11. margin-top: 0;
  12. /* Only applied in IE6 */
  13. margin-top: -0.8em !ie;
  14. height: 0;
  15. overflow: hidden;
  16. background-position: 5px 60%;
  17. }
  18. #ca-unwatch.icon a {
  19. .background-image-svg('images/unwatch-icon.svg', 'images/unwatch-icon.png');
  20. }
  21. #ca-watch.icon a {
  22. .background-image-svg('images/watch-icon.svg', 'images/watch-icon.png');
  23. }
  24. #ca-unwatch.icon a:hover,
  25. #ca-unwatch.icon a:focus {
  26. .background-image-svg('images/unwatch-icon-hl.svg', 'images/unwatch-icon-hl.png');
  27. }
  28. #ca-watch.icon a:hover,
  29. #ca-watch.icon a:focus {
  30. .background-image-svg('images/watch-icon-hl.svg', 'images/watch-icon-hl.png');
  31. }
  32. #ca-unwatch.icon a.loading,
  33. #ca-watch.icon a.loading {
  34. .background-image-svg('images/watch-icon-loading.svg', 'images/watch-icon-loading.png');
  35. .rotation(700ms);
  36. /* Suppress the hilarious rotating focus outline on Firefox */
  37. outline: none;
  38. background-position: 50% 60%;
  39. -webkit-transform-origin: 50% 57%;
  40. transform-origin: 50% 57%;
  41. }
  42. #ca-unwatch.icon a span,
  43. #ca-watch.icon a span {
  44. display: none;
  45. }