You are here

shortcut.css in Drupal 10

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-left: var(--space-xs); /* LTR */
  26. }
  27. [dir="rtl"] .shortcut-action {
  28. margin-right: var(--space-xs);
  29. }
  30. .shortcut-action__message {
  31. display: inline-block;
  32. margin-left: var(--space-s); /* LTR */
  33. padding: var(--shortcut-padding-size);
  34. transition: var(--transition);
  35. transform: translateY(calc(-1 * var(--space-xs)));
  36. vertical-align: top;
  37. opacity: 0;
  38. color: var(--color-white);
  39. border-radius: var(--shortcut-border-radius-size);
  40. background: var(--shortcut-bg-color);
  41. font-size: var(--font-size-label);
  42. -webkit-backface-visibility: hidden;
  43. backface-visibility: hidden;
  44. }
  45. [dir="rtl"] .shortcut-action__message {
  46. margin-right: var(--space-s);
  47. margin-left: 0;
  48. }
  49. .shortcut-action:hover .shortcut-action__message,
  50. .shortcut-action:focus .shortcut-action__message {
  51. transform: translateY(0);
  52. opacity: 1;
  53. }
  54. .shortcut-action__icon {
  55. display: inline-block;
  56. width: var(--shortcut-icon-size);
  57. height: var(--shortcut-icon-size);
  58. vertical-align: -0.0625rem;
  59. 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;
  60. }
  61. [dir="rtl"] .shortcut-action__icon {
  62. 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");
  63. }
  64. .shortcut-action--add:hover .shortcut-action__icon,
  65. .shortcut-action--add:focus .shortcut-action__icon {
  66. background-position: calc(-1 * var(--shortcut-icon-size)) top;
  67. }
  68. .shortcut-action--remove .shortcut-action__icon {
  69. background-position: calc(-2 * var(--shortcut-icon-size)) top;
  70. }
  71. .shortcut-action--remove:focus .shortcut-action__icon,
  72. .shortcut-action--remove:hover .shortcut-action__icon {
  73. background-position: calc(-3 * var(--shortcut-icon-size)) top;
  74. }