more-actions.pcss.css

Same filename and directory in other branches
  1. 11.x core/themes/default_admin/css/components/more-actions.pcss.css

Sticky form actions (more actions) styles.

File

core/themes/default_admin/css/components/more-actions.pcss.css

View source
  1. /**
  2. * @file
  3. * Sticky form actions (more actions) styles.
  4. */
  5. :where(*),
  6. :is(#extra-specificity-hack, [data-drupal-admin-styles]) {
  7. .gin-sticky-form-actions {
  8. display: flex;
  9. gap: var(--admin-space-xs);
  10. > * {
  11. margin: 0 !important;
  12. }
  13. [data-drupal-selector="edit-status"]:empty {
  14. display: none;
  15. }
  16. }
  17. .gin-sticky-form-actions--preprocessed ~ .layout-container form.gin--has-sticky-form-actions .gin-sticky-form-actions {
  18. position: absolute !important;
  19. position: fixed !important;
  20. overflow: hidden;
  21. clip: rect(1px, 1px, 1px, 1px);
  22. width: 1px;
  23. height: 1px;
  24. word-wrap: normal;
  25. inset-block-start: 0;
  26. }
  27. .edit-post-header .gin-sticky-form-actions {
  28. margin-block-start: 0;
  29. }
  30. }
  31. @keyframes gin-pseudo-throbber {
  32. 0% {
  33. background-position: 16px 18px;
  34. background-size: 8px 8px;
  35. }
  36. 50% {
  37. background-position: 4px 14px;
  38. background-size: 32px 32px;
  39. }
  40. 100% {
  41. background-position: 16px 18px;
  42. background-size: 8px 8px;
  43. }
  44. }
  45. [data-drupal-selector="gin-sticky-edit-save"],
  46. [data-drupal-selector="gin-sticky-edit-preview"],
  47. [data-drupal-selector="gin-sticky-edit-delete"] {
  48. background-repeat: no-repeat;
  49. background-position: var(--admin-space-xs) center;
  50. }
  51. body:has([data-drupal-selector="edit-save"] + .ajax-progress) :where([data-drupal-selector="gin-sticky-edit-save"]),
  52. body:has([data-drupal-selector="edit-preview"] + .ajax-progress) :where([data-drupal-selector="gin-sticky-edit-preview"]),
  53. body:has([data-drupal-selector="edit-delete"] + .ajax-progress) :where([data-drupal-selector="gin-sticky-edit-delete"]) {
  54. padding-inline-start: var(--admin-space-xl);
  55. animation: gin-pseudo-throbber 1s linear infinite;
  56. background-image: url("../../migration/media/icons/general/loader.svg");
  57. &:dir(rtl) {
  58. padding-inline-start: unset;
  59. padding-inline-end: var(--admin-space-xl);
  60. }
  61. }

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