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

Breadcrumb

  1. Drupal Core 11.1.x

local-actions.pcss.css

Layout styles for local actions.

File

core/themes/claro/css/layout/local-actions.pcss.css

View source
  1. /**
  2. * @file
  3. * Layout styles for local actions.
  4. */
  5. /**
  6. * Action link layout styles.
  7. */
  8. .local-actions {
  9. margin: var(--space-m) 0;
  10. padding: 0;
  11. list-style: none;
  12. }
  13. /* This is required to win over specificity of [dir="rtl"] ul */
  14. [dir="rtl"] .local-actions {
  15. margin-right: 0;
  16. }
  17. .local-actions__item {
  18. display: inline-block;
  19. margin: 0 calc(var(--space-xs) / 2);
  20. }
  21. .local-actions__item:first-child {
  22. margin-left: 0; /* LTR */
  23. }
  24. [dir="rtl"] .local-actions__item:first-child {
  25. margin-right: 0;
  26. margin-left: calc(var(--space-xs) / 2);
  27. }
  28. .local-actions__item:last-child {
  29. margin-right: 0; /* LTR */
  30. }
  31. [dir="rtl"] .local-actions__item:last-child {
  32. margin-right: calc(var(--space-xs) / 2);
  33. margin-left: 0;
  34. }
  35. [dir="rtl"] .local-actions__item:only-child {
  36. margin-right: 0;
  37. margin-left: 0;
  38. }

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal