ajax-progress.module.pcss.css
Same filename in this branch
Same filename in other branches
- 9 core/themes/olivero/css/components/ajax-progress.module.pcss.css
- 9 core/themes/claro/css/components/ajax-progress.module.pcss.css
- 8.9.x core/themes/claro/css/components/ajax-progress.module.pcss.css
- 10 core/themes/olivero/css/components/ajax-progress.module.pcss.css
- 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
- /**
- * @file
- * Throbber.
- */
-
- .ajax-progress {
- display: inline-block;
- }
-
- /**
- * Progress bar.
- */
-
- .ajax-progress-bar {
- width: 13em;
- padding: 0 0.3125rem; /* 0 5px */
- }
-
- /**
- * Throbber.
- */
- .ajax-progress--throbber {
- position: relative;
- display: inline-flex;
- align-content: center;
- height: 1.125rem;
- margin: -3px var(--ajax-progress-margin-horizontal) 0;
- vertical-align: middle;
- white-space: nowrap;
- line-height: 1.125rem;
- }
-
- /**
- * Remove margin from ajax throbbers following buttons because buttons already
- * have a large margin set.
- */
- .js .action-link:not(.js-hide, .button--action) + .ajax-progress--throbber,
- .js .button:not(.js-hide, .button--action) + .ajax-progress--throbber {
- margin-inline-start: 0;
- }
- /**
- * Restore start margin for ajax throbbers inside a managed file widget.
- */
- .js .form-type--managed-file .button:not(.js-hide) + .ajax-progress--throbber,
- .js .file-operations-cell .button:not(.js-hide) + .ajax-progress--throbber {
- margin-inline-start: var(--ajax-progress-margin-horizontal); /* LTR */
- }
-
- .ajax-progress__throbber {
- box-sizing: border-box;
- width: 1.125rem;
- height: 1.125rem;
- animation: claro-throbber 0.75s linear infinite;
- border: 2px solid var(--color-absolutezero);
- border-right: 2px dotted transparent;
- border-radius: 50%;
- }
-
- .ajax-progress__message {
- display: inline-block;
- padding-inline-start: var(--ajax-progress-margin-horizontal);
- font-size: var(--font-size-label);
- }
-
- /**
- * Full screen throbber.
- */
- .ajax-progress--fullscreen,
- .ui-dialog .ajax-progress--throbber {
- position: fixed;
- z-index: 1261;
- inset-block-start: 50%;
- inset-inline-start: 50%;
- box-sizing: border-box;
- width: 3.5rem; /* 56px */
- height: 3.5rem;
- margin: -1.75rem;
- border: var(--input-border-size) solid var(--jui-dropdown-border-color);
- border-radius: 3.5rem;
- background: var(--color-white);
- box-shadow: 0 0.25rem 0.625rem var(--jui-dropdown-shadow-color);
- }
- .ajax-progress__throbber--fullscreen,
- .ui-dialog .ajax-progress__throbber {
- position: absolute;
- inset-block-start: 50%;
- inset-inline-start: 50%;
- width: 1.75rem; /* 28px */
- height: 1.75rem; /* 28px */
- margin: -0.875rem;
- content: "";
- border: 3px solid var(--color-absolutezero);
- border-right: 3px dotted transparent;
- }
-
- .ui-dialog .ajax-progress__message {
- display: none;
- }
-
- @keyframes claro-throbber {
- 0% {
- transform: rotateZ(0);
- }
- 100% {
- transform: rotateZ(360deg);
- }
- }
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.