shortcut.css

Same filename in this branch
  1. 9 core/themes/bartik/css/components/shortcut.css
Same filename in other branches
  1. 7.x modules/shortcut/shortcut.css
  2. 8.9.x core/themes/claro/css/components/shortcut.css
  3. 8.9.x 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/3084859
  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: #55565b;
  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("data:image/svg+xml,%3csvg height='24' width='96' xmlns='http://www.w3.org/2000/svg'%3e%3cg stroke='%238e929c'%3e%3cpath d='m94.46 9.667h-7.937l-2.523-8.007-2.523 8.007h-7.937l6.768 4.926-3.076 8.007 6.768-4.927 6.768 4.927-3.076-8.007zm-24 0h-7.937l-2.523-8.007-2.523 8.007h-7.937l6.768 4.926-3.076 8.007 6.768-4.927 6.768 4.927-3.076-8.007z' fill='%23ffd23f'/%3e%3cg fill='none'%3e%3cpath d='m38.42 9.327.11.35h7.934l-6.521 4.742-.31.225.138.358 2.922 7.599-6.397-4.653-.294-.214-.294.214-6.397 4.653 2.923-7.599.137-.358-.31-.225-6.521-4.742h7.934l.11-.35 2.418-7.665zm-24.002 0 .11.35h7.934l-6.521 4.742-.31.225.138.358 2.922 7.599-6.397-4.653-.294-.214-.294.214-6.397 4.653 2.923-7.599.137-.358-.31-.225-6.521-4.742h7.934l.11-.35 2.418-7.665z'/%3e%3cpath d='m42.5 1v7m-3.5-3.5h7m42 2.5 6-6m0 6-6-6' stroke-linecap='square' stroke-miterlimit='3'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e") left top / 6rem 1.5rem no-repeat;
  56. }
  57. [dir="rtl"] .shortcut-action__icon {
  58. background-image: url("data:image/svg+xml,%3csvg height='24' width='96' xmlns='http://www.w3.org/2000/svg'%3e%3cg stroke='%238e929c'%3e%3cpath d='m94.46 9.667h-7.937l-2.523-8.007-2.523 8.007h-7.937l6.768 4.926-3.076 8.007 6.768-4.927 6.768 4.927-3.076-8.007zm-24 0h-7.937l-2.523-8.007-2.523 8.007h-7.937l6.768 4.926-3.076 8.007 6.768-4.927 6.768 4.927-3.076-8.007z' fill='%23ffd23f'/%3e%3cg fill='none'%3e%3cpath d='m38.42 9.327.11.35h7.934l-6.521 4.742-.31.225.138.358 2.922 7.599-6.397-4.653-.294-.214-.294.214-6.397 4.653 2.923-7.599.137-.358-.31-.225-6.521-4.742h7.934l.11-.35 2.418-7.665zm-24.002 0 .11.35h7.934l-6.521 4.742-.31.225.138.358 2.922 7.599-6.397-4.653-.294-.214-.294.214-6.397 4.653 2.923-7.599.137-.358-.31-.225-6.521-4.742h7.934l.11-.35 2.418-7.665z'/%3e%3cpath d='m29.5 1v7m-3.5-3.5h7m42 2.5 6-6m0 6-6-6' stroke-linecap='square' stroke-miterlimit='3'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e");
  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.