You are here

ajax-progress.module.css in Drupal 10

Visual styles for ajax-progress throbber.

File

core/themes/olivero/css/components/ajax-progress.module.css
View source
  1. /*
  2. * DO NOT EDIT THIS FILE.
  3. * See the following change record for more information,
  4. * https://www.drupal.org/node/3084859
  5. * @preserve
  6. */
  7. /**
  8. * @file
  9. * Visual styles for ajax-progress throbber.
  10. */
  11. /*
  12. * Media query breakpoints.
  13. * Processed by postcss/postcss-custom-media.
  14. */
  15. /* Navigation related breakpoints */
  16. /* Grid related breakpoints */
  17. /* Grid shifts from 6 to 14 columns. */
  18. /* Width of the entire grid maxes out. */
  19. .ajax-progress {
  20. display: inline-block;
  21. }
  22. /**
  23. * Throbber.
  24. */
  25. [dir="ltr"] .ajax-progress-throbber {
  26. margin-left: var(--sp0-5);
  27. }
  28. [dir="rtl"] .ajax-progress-throbber {
  29. margin-right: var(--sp0-5);
  30. }
  31. [dir="ltr"] .ajax-progress-throbber {
  32. margin-right: var(--sp0-5);
  33. }
  34. [dir="rtl"] .ajax-progress-throbber {
  35. margin-left: var(--sp0-5);
  36. }
  37. .ajax-progress-throbber {
  38. position: relative;
  39. display: inline-flex;
  40. align-content: center;
  41. height: 1.125rem;
  42. margin-top: -0.1875rem;
  43. margin-bottom: 0;
  44. vertical-align: middle;
  45. white-space: nowrap;
  46. line-height: 1.125rem;
  47. }
  48. .ajax-progress-throbber .throbber {
  49. width: 1.125rem;
  50. height: 1.125rem;
  51. border-width: 2px;
  52. border-color: var(--color--primary-50) transparent var(--color--primary-50) var(--color--primary-50);
  53. }
  54. [dir="ltr"] .ajax-progress-throbber .message {
  55. padding-left: var(--sp0-5);
  56. }
  57. [dir="rtl"] .ajax-progress-throbber .message {
  58. padding-right: var(--sp0-5);
  59. }
  60. .ajax-progress-throbber .message {
  61. display: inline-block;
  62. font-size: var(--font-size-s);
  63. font-weight: 400;
  64. }
  65. /**
  66. * Full screen throbber.
  67. */
  68. [dir="ltr"] .ajax-progress-fullscreen {
  69. left: 50%;
  70. }
  71. [dir="rtl"] .ajax-progress-fullscreen {
  72. right: 50%;
  73. }
  74. .ajax-progress-fullscreen {
  75. position: fixed;
  76. z-index: 1000;
  77. top: 50%;
  78. width: 3.5rem;
  79. height: 3.5rem;
  80. margin: -1.75rem;
  81. border: 1px solid var(--color--gray-70);
  82. border-radius: 3.5rem;
  83. background-color: var(--color--white);
  84. box-shadow: 0 0.25rem 0.625rem rgba(34, 35, 48, 0.1) /* LTR */
  85. }
  86. [dir="ltr"] .ajax-progress-fullscreen:before {
  87. left: 50%;
  88. }
  89. [dir="rtl"] .ajax-progress-fullscreen:before {
  90. right: 50%;
  91. }
  92. .ajax-progress-fullscreen:before {
  93. position: absolute;
  94. top: 50%;
  95. width: 1.75rem;
  96. height: 1.75rem;
  97. margin: -0.875rem;
  98. content: "";
  99. border-width: 3px;
  100. }
  101. [dir="rtl"] .ajax-progress-fullscreen {
  102. box-shadow: 0 -0.25rem 0.625rem rgba(34, 35, 48, 0.1);
  103. }
  104. /**
  105. * Common styles for all kinds of throbbers.
  106. */
  107. .ajax-progress-throbber .throbber,
  108. .ajax-progress-fullscreen:before {
  109. animation: olivero-throbber 0.75s linear infinite;
  110. border-style: solid dotted solid solid;
  111. border-color: var(--color--primary-50) transparent var(--color--primary-50) var(--color--primary-50);
  112. border-radius: 50%;
  113. }
  114. /**
  115. * Remove margin from ajax throbbers following buttons because buttons already
  116. * have a large margin set.
  117. */
  118. html[dir="ltr"].js .button:not(.js-hide) + .ajax-progress-throbber {
  119. margin-left: 0;
  120. }
  121. html[dir="rtl"].js .button:not(.js-hide) + .ajax-progress-throbber {
  122. margin-right: 0;
  123. }
  124. @keyframes olivero-throbber {
  125. 0% {
  126. transform: rotateZ(0);
  127. }
  128. 100% {
  129. transform: rotateZ(360deg);
  130. }
  131. }