ajax.pcss.css

Same filename and directory in other branches
  1. main core/themes/default_admin/migration/css/components/ajax.pcss.css

AJAX progress indicator styles.

File

core/themes/default_admin/migration/css/components/ajax.pcss.css

View source
  1. /**
  2. * @file
  3. * AJAX progress indicator styles.
  4. */
  5. @keyframes gin-throbber {
  6. 0% {
  7. transform: rotateZ(0);
  8. }
  9. 100% {
  10. transform: rotateZ(360deg);
  11. }
  12. }
  13. .ajax-progress__throbber,
  14. .ajax-progress__throbber--fullscreen,
  15. .ui-dialog .ajax-progress__throbber,
  16. .media-library-item .ajax-progress__throbber {
  17. border: 3px solid var(--gin-color-primary);
  18. border-inline-end: 3px dotted transparent;
  19. }
  20. .ajax-progress .ajax-progress__message {
  21. color: var(--gin-color-text);
  22. }
  23. [dir].gin--dark-mode .ajax-progress--fullscreen {
  24. border-color: transparent;
  25. background-color: var(--gin-color-primary);
  26. box-shadow: 0 2px 6px 0 var(--gin-bg-app);
  27. .ajax-progress__throbber,
  28. .ajax-progress__throbber--fullscreen {
  29. border: 3px solid var(--gin-bg-app);
  30. border-inline-end: 3px dotted transparent;
  31. }
  32. }
  33. .media-library-widget {
  34. .ajax-progress__throbber,
  35. .ajax-progress__throbber--fullscreen {
  36. border: 2px solid var(--gin-color-primary);
  37. border-inline-end: 2px dotted transparent;
  38. }
  39. }
  40. .ui-dialog .ajax-progress-throbber {
  41. padding: var(--space-xs);
  42. border: 1px solid rgb(216, 217, 224, 0.8);
  43. border-radius: 50%;
  44. background: var(--gin-bg-app);
  45. box-shadow: 0 2px 6px 0 rgb(34, 35, 48, 0.1);
  46. .gin--dark-mode
  47. }
  48. .ui-dialog .ajax-progress-throbber::before,
  49. .contextual-links .ajax-progress-throbber::before {
  50. position: absolute;
  51. display: block;
  52. width: 1.125rem;
  53. height: 1.125rem;
  54. content: "";
  55. animation: gin-throbber 0.75s linear infinite;
  56. border: 2px solid var(--gin-color-primary);
  57. border-inline-end: 2px dotted transparent;
  58. border-radius: 50%;
  59. inset-block-start: var(--space-xs);
  60. inset-inline-start: var(--space-xs);
  61. }
  62. .gin--dark-mode .ui-dialog .ajax-progress,
  63. .gin--dark-mode .media-library-item .ajax-progress.ajax-progress.ajax-progress {
  64. border-color: var(--gin-bg-app);
  65. background-color: var(--gin-bg-app);
  66. }
  67. .contextual-links li {
  68. position: relative;
  69. }
  70. .contextual-links .ajax-progress-throbber {
  71. position: absolute;
  72. inset-block-start: 0;
  73. inset-inline-end: var(--space-xxs);
  74. width: 24px;
  75. height: 24px;
  76. &::before {
  77. inset-block-start: 0;
  78. inset-inline-start: 0.25em;
  79. }
  80. }
  81. .gin-autocomplete__message {
  82. color: var(--gin-color-primary);
  83. }

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