autocomplete-loading.module.pcss.css

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

Visual styles for autocomplete input field.

File

core/themes/olivero/css/components/autocomplete-loading.module.pcss.css

View source
  1. /**
  2. * @file
  3. * Visual styles for autocomplete input field.
  4. */
  5. @import "../base/variables.pcss.css";
  6. :root {
  7. --autocomplete-search-icon-url: url("../../images/magnifying-glass.svg");
  8. --autocomplete-throbber-icon-url: url("../../images/throbber.svg");
  9. --autocomplete-throbber-IE-icon-url: url("../../images/throbber.gif");
  10. --autocomplete-throbber-IE-size: 1.125rem 1.125rem; /* 18 18 */
  11. --autocomplete-icon-right-offset: var(--sp1);
  12. }
  13. html.js .form-autocomplete {
  14. padding-inline-end: var(--sp3);
  15. background-color: var(--color--white);
  16. background-image: var(--autocomplete-search-icon-url);
  17. background-repeat: no-repeat;
  18. background-position: right var(--autocomplete-icon-right-offset) center; /* LTR */
  19. &:disabled {
  20. background-color: var(--color--gray-90);
  21. }
  22. &.ui-autocomplete-loading {
  23. background: var(--autocomplete-throbber-icon-url) no-repeat right var(--autocomplete-icon-right-offset) center;
  24. }
  25. }
  26. html.js[dir="rtl"] .form-autocomplete {
  27. background-color: var(--color--white);
  28. background-image: var(--autocomplete-search-icon-url);
  29. background-repeat: no-repeat;
  30. background-position: left var(--autocomplete-icon-right-offset) center;
  31. &:disabled {
  32. background-color: var(--color--gray-90);
  33. }
  34. &.ui-autocomplete-loading {
  35. background: var(--autocomplete-throbber-icon-url) no-repeat left var(--autocomplete-icon-right-offset) center;
  36. }
  37. }
  38. /* IE11 does not animate inline SVG. */
  39. /* rtl:begin:ignore */
  40. /* stylelint-disable-next-line selector-type-no-unknown */
  41. _:-ms-fullscreen,
  42. html[dir=ltr].js .form-autocomplete.ui-autocomplete-loading {
  43. background: var(--autocomplete-throbber-IE-icon-url) no-repeat right var(--autocomplete-icon-right-offset) center / var(--autocomplete-throbber-IE-size);
  44. }
  45. /* stylelint-disable-next-line selector-type-no-unknown */
  46. _:-ms-fullscreen,
  47. html[dir=rtl].js .form-autocomplete.ui-autocomplete-loading {
  48. background: var(--autocomplete-throbber-IE-icon-url) no-repeat left var(--autocomplete-icon-right-offset) center / var(--autocomplete-throbber-IE-size);
  49. }

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