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. 8.9.x core/themes/claro/css/components/shortcut.css
  5. 8.9.x core/themes/bartik/css/components/shortcut.css
  6. 10 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. --shortcut-bg-color: var(--color-gray-800);
  16. --shortcut-border-radius-size: var(--base-border-radius);
  17. --shortcut-padding-size: calc(0.5 * var(--space-xs)) var(--space-m);
  18. --shortcut-icon-size: var(--space-l);
  19. }
  20. /**
  21. * Add/remove links.
  22. */
  23. .shortcut-action {
  24. display: inline-block;
  25. margin-inline-start: var(--space-xs);
  26. }
  27. .shortcut-action:hover .shortcut-action__message,
  28. .shortcut-action:focus .shortcut-action__message {
  29. transform: translateY(0);
  30. opacity: 1;
  31. }
  32. .shortcut-action__message {
  33. display: inline-block;
  34. margin-inline-start: var(--space-s);
  35. padding: var(--shortcut-padding-size);
  36. transition: var(--transition);
  37. transform: translateY(calc(-1 * var(--space-xs)));
  38. vertical-align: top;
  39. opacity: 0;
  40. color: var(--color-white);
  41. border-radius: var(--shortcut-border-radius-size);
  42. background: var(--shortcut-bg-color);
  43. font-size: var(--font-size-label);
  44. backface-visibility: hidden;
  45. }
  46. .shortcut-action__icon {
  47. display: inline-block;
  48. width: var(--shortcut-icon-size);
  49. height: var(--shortcut-icon-size);
  50. vertical-align: -0.0625rem;
  51. 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 / calc(var(--shortcut-icon-size) * 4) var(--shortcut-icon-size) no-repeat;
  52. }
  53. .shortcut-action--add:hover .shortcut-action__icon,
  54. .shortcut-action--add:focus .shortcut-action__icon {
  55. background-position: calc(-1 * var(--shortcut-icon-size)) top;
  56. }
  57. .shortcut-action--remove .shortcut-action__icon {
  58. background-position: calc(-2 * var(--shortcut-icon-size)) top;
  59. }
  60. .shortcut-action--remove:focus .shortcut-action__icon,
  61. .shortcut-action--remove:hover .shortcut-action__icon {
  62. background-position: calc(-3 * var(--shortcut-icon-size)) top;
  63. }
  64. [dir="rtl"] .shortcut-action__icon {
  65. 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");
  66. }

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