shortcut.css

Same filename in this branch
  1. 8.9.x core/themes/bartik/css/components/shortcut.css
Same filename in other branches
  1. 7.x modules/shortcut/shortcut.css
  2. 9 core/themes/claro/css/components/shortcut.css
  3. 9 core/themes/bartik/css/components/shortcut.css
  4. 10 core/themes/claro/css/components/shortcut.css
  5. 11.x core/themes/claro/css/components/shortcut.css

Styling for the shortcut module.

File

core/themes/claro/css/components/shortcut.css

View source
  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 1rem;
  30. transition: all 0.2s ease-out;
  31. transform: translateY(-0.5rem);
  32. vertical-align: top;
  33. opacity: 0;
  34. color: #fff;
  35. border-radius: 2px;
  36. background: #545560;
  37. font-size: 0.889rem;
  38. -webkit-backface-visibility: hidden;
  39. backface-visibility: hidden;
  40. }
  41. [dir="rtl"] .shortcut-action__message {
  42. margin-right: 0.75rem;
  43. margin-left: 0;
  44. }
  45. .shortcut-action:hover .shortcut-action__message,
  46. .shortcut-action:focus .shortcut-action__message {
  47. transform: translateY(0);
  48. opacity: 1;
  49. }
  50. .shortcut-action__icon {
  51. display: inline-block;
  52. width: 1.5rem;
  53. height: 1.5rem;
  54. vertical-align: -0.0625rem;
  55. background: transparent url(../../images/shortcut/favstar.svg) left top / 6rem 1.5rem no-repeat;
  56. }
  57. [dir="rtl"] .shortcut-action__icon {
  58. background-image: url(../../images/shortcut/favstar-rtl.svg);
  59. }
  60. .shortcut-action--add:hover .shortcut-action__icon,
  61. .shortcut-action--add:focus .shortcut-action__icon {
  62. background-position: -1.5rem top;
  63. }
  64. .shortcut-action--remove .shortcut-action__icon {
  65. background-position: -3rem top;
  66. }
  67. .shortcut-action--remove:focus .shortcut-action__icon,
  68. .shortcut-action--remove:hover .shortcut-action__icon {
  69. background-position: -4.5rem top;
  70. }

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.