ajax-progress.module.pcss.css

Same filename in this branch
  1. 11.x core/themes/olivero/css/components/ajax-progress.module.pcss.css
Same filename in other branches
  1. 9 core/themes/olivero/css/components/ajax-progress.module.pcss.css
  2. 9 core/themes/claro/css/components/ajax-progress.module.pcss.css
  3. 8.9.x core/themes/claro/css/components/ajax-progress.module.pcss.css
  4. 10 core/themes/olivero/css/components/ajax-progress.module.pcss.css
  5. 10 core/themes/claro/css/components/ajax-progress.module.pcss.css

Throbber.

File

core/themes/claro/css/components/ajax-progress.module.pcss.css

View source
  1. /**
  2. * @file
  3. * Throbber.
  4. */
  5. .ajax-progress {
  6. display: inline-block;
  7. }
  8. /**
  9. * Progress bar.
  10. */
  11. .ajax-progress-bar {
  12. width: 13em;
  13. padding: 0 0.3125rem; /* 0 5px */
  14. }
  15. /**
  16. * Throbber.
  17. */
  18. .ajax-progress--throbber {
  19. position: relative;
  20. display: inline-flex;
  21. align-content: center;
  22. height: 1.125rem;
  23. margin: -3px var(--ajax-progress-margin-horizontal) 0;
  24. vertical-align: middle;
  25. white-space: nowrap;
  26. line-height: 1.125rem;
  27. }
  28. /**
  29. * Remove margin from ajax throbbers following buttons because buttons already
  30. * have a large margin set.
  31. */
  32. .js .action-link:not(.js-hide, .button--action) + .ajax-progress--throbber,
  33. .js .button:not(.js-hide, .button--action) + .ajax-progress--throbber {
  34. margin-inline-start: 0;
  35. }
  36. /**
  37. * Restore start margin for ajax throbbers inside a managed file widget.
  38. */
  39. .js .form-type--managed-file .button:not(.js-hide) + .ajax-progress--throbber,
  40. .js .file-operations-cell .button:not(.js-hide) + .ajax-progress--throbber {
  41. margin-inline-start: var(--ajax-progress-margin-horizontal); /* LTR */
  42. }
  43. .ajax-progress__throbber {
  44. box-sizing: border-box;
  45. width: 1.125rem;
  46. height: 1.125rem;
  47. animation: claro-throbber 0.75s linear infinite;
  48. border: 2px solid var(--color-absolutezero);
  49. border-right: 2px dotted transparent;
  50. border-radius: 50%;
  51. }
  52. .ajax-progress__message {
  53. display: inline-block;
  54. padding-inline-start: var(--ajax-progress-margin-horizontal);
  55. font-size: var(--font-size-label);
  56. }
  57. /**
  58. * Full screen throbber.
  59. */
  60. .ajax-progress--fullscreen,
  61. .ui-dialog .ajax-progress--throbber {
  62. position: fixed;
  63. z-index: 1261;
  64. inset-block-start: 50%;
  65. inset-inline-start: 50%;
  66. box-sizing: border-box;
  67. width: 3.5rem; /* 56px */
  68. height: 3.5rem;
  69. margin: -1.75rem;
  70. border: var(--input-border-size) solid var(--jui-dropdown-border-color);
  71. border-radius: 3.5rem;
  72. background: var(--color-white);
  73. box-shadow: 0 0.25rem 0.625rem var(--jui-dropdown-shadow-color);
  74. }
  75. .ajax-progress__throbber--fullscreen,
  76. .ui-dialog .ajax-progress__throbber {
  77. position: absolute;
  78. inset-block-start: 50%;
  79. inset-inline-start: 50%;
  80. width: 1.75rem; /* 28px */
  81. height: 1.75rem; /* 28px */
  82. margin: -0.875rem;
  83. content: "";
  84. border: 3px solid var(--color-absolutezero);
  85. border-right: 3px dotted transparent;
  86. }
  87. .ui-dialog .ajax-progress__message {
  88. display: none;
  89. }
  90. @keyframes claro-throbber {
  91. 0% {
  92. transform: rotateZ(0);
  93. }
  94. 100% {
  95. transform: rotateZ(360deg);
  96. }
  97. }

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