Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x

shortcut.theme.css

Same filename in this branch
  1. 11.1.x core/themes/stable9/css/shortcut/shortcut.theme.css

Styling for the shortcut module.

File

core/modules/shortcut/css/shortcut.theme.css

View source
  1. /**
  2. * @file
  3. * Styling for the shortcut module.
  4. */
  5. /**
  6. * Toolbar.
  7. */
  8. .toolbar .toolbar-tray-vertical .edit-shortcuts {
  9. padding: 1em;
  10. text-align: right; /* LTR */
  11. }
  12. [dir="rtl"] .toolbar .toolbar-tray-vertical .edit-shortcuts {
  13. text-align: left;
  14. }
  15. .toolbar .toolbar-tray-horizontal .edit-shortcuts {
  16. float: right; /* LTR */
  17. }
  18. [dir="rtl"] .toolbar .toolbar-tray-horizontal .edit-shortcuts {
  19. float: left;
  20. }
  21. /**
  22. * Add/remove links.
  23. */
  24. .shortcut-action {
  25. display: inline-block;
  26. margin-left: 0.3em; /* LTR */
  27. }
  28. [dir="rtl"] .shortcut-action {
  29. margin-right: 0.3em;
  30. margin-left: 0;
  31. }
  32. .shortcut-action__message {
  33. display: inline-block;
  34. margin-left: 0.3em; /* LTR */
  35. padding: 0 5px;
  36. -webkit-transition: all 200ms ease-out;
  37. transition: all 200ms ease-out;
  38. -webkit-transform: translateY(-12px);
  39. transform: translateY(-12px);
  40. opacity: 0;
  41. color: #fff;
  42. border-radius: 5px;
  43. background: #000;
  44. background: rgba(0, 0, 0, 0.5);
  45. -webkit-backface-visibility: hidden;
  46. backface-visibility: hidden;
  47. }
  48. [dir="rtl"] .shortcut-action__message {
  49. margin-right: 0.3em;
  50. margin-left: 0;
  51. }
  52. .shortcut-action:hover .shortcut-action__message,
  53. .shortcut-action:focus .shortcut-action__message {
  54. -webkit-transform: translateY(-2px);
  55. transform: translateY(-2px);
  56. opacity: 1;
  57. }
RSS feed
Powered by Drupal