shortcut.css 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. /*
  2. * DO NOT EDIT THIS FILE.
  3. * See the following change record for more information,
  4. * https://www.drupal.org/node/2815083
  5. * @preserve
  6. */
  7. /**
  8. * @file
  9. * Styling for the shortcut module.
  10. */
  11. :root {
  12. /**
  13. * Shortcut action.
  14. */
  15. }
  16. /**
  17. * Add/remove links.
  18. */
  19. .shortcut-action {
  20. display: inline-block;
  21. margin-left: 0.5rem; /* LTR */
  22. }
  23. [dir="rtl"] .shortcut-action {
  24. margin-right: 0.5rem;
  25. }
  26. .shortcut-action__message {
  27. display: inline-block;
  28. margin-left: 0.75rem; /* LTR */
  29. padding: 0.25rem
  30. 1rem;
  31. transition: all
  32. 0.2s
  33. ease-out;
  34. transform: translateY(-0.5rem);
  35. vertical-align: top;
  36. opacity: 0;
  37. color: #fff;
  38. border-radius: 2px;
  39. background: #545560;
  40. font-size: 0.889rem;
  41. -webkit-backface-visibility: hidden;
  42. backface-visibility: hidden;
  43. }
  44. [dir="rtl"] .shortcut-action__message {
  45. margin-right: 0.75rem;
  46. margin-left: 0;
  47. }
  48. .shortcut-action:hover .shortcut-action__message,
  49. .shortcut-action:focus .shortcut-action__message {
  50. transform: translateY(0);
  51. opacity: 1;
  52. }
  53. .shortcut-action__icon {
  54. display: inline-block;
  55. width: 1.5rem;
  56. height: 1.5rem;
  57. vertical-align: -0.0625rem;
  58. background: transparent url(../../images/shortcut/favstar.svg) left top / 6rem 1.5rem no-repeat;
  59. }
  60. [dir="rtl"] .shortcut-action__icon {
  61. background-image: url(../../images/shortcut/favstar-rtl.svg);
  62. }
  63. .shortcut-action--add:hover .shortcut-action__icon,
  64. .shortcut-action--add:focus .shortcut-action__icon {
  65. background-position: -1.5rem top;
  66. }
  67. .shortcut-action--remove .shortcut-action__icon {
  68. background-position: -3rem top;
  69. }
  70. .shortcut-action--remove:focus .shortcut-action__icon,
  71. .shortcut-action--remove:hover .shortcut-action__icon {
  72. background-position: -4.5rem top;
  73. }