views-exposed-form.pcss.css

Same filename in other branches
  1. 9 core/themes/claro/css/components/views-exposed-form.pcss.css
  2. 10 core/themes/claro/css/components/views-exposed-form.pcss.css
  3. 11.x core/themes/claro/css/components/views-exposed-form.pcss.css

Visual styles for views exposed form.

File

core/themes/claro/css/components/views-exposed-form.pcss.css

View source
  1. /**
  2. * @file
  3. * Visual styles for views exposed form.
  4. */
  5. @import "../base/variables.pcss.css";
  6. /**
  7. * Use flexbox and some margin resets to make the fields + actions go inline.
  8. *
  9. * For (at least) Media Library, this file is typically inserted by AJAX add_css
  10. * command when the dialog is opened. The AJAX add_css command always adds the
  11. * missing-but-required CSS assets to the beginning of the HTML . Because
  12. * of this, we cannot rely on the expected loading order of the CSS assets.
  13. * This is why we have to double these selectors: we have to get the expected
  14. * output even for the Media Library modal.
  15. *
  16. * @todo Remove double selectors after https://www.drupal.org/node/1461322
  17. * has been resolved.
  18. */
  19. .views-exposed-form.views-exposed-form {
  20. display: flex;
  21. flex-wrap: wrap;
  22. align-items: flex-end;
  23. margin-top: var(--space-l);
  24. margin-bottom: var(--space-l);
  25. padding: var(--space-xs) var(--space-l) var(--space-l) var(--space-l);
  26. border: var(--details-border-size) solid var(--details-border-color);
  27. border-radius: var(--details-border-size-radius);
  28. background-color: var(--color-white);
  29. box-shadow: var(--details-box-shadow);
  30. }
  31. .views-exposed-form__item.views-exposed-form__item {
  32. margin: var(--space-s) var(--space-xs) 0 0; /* LTR */
  33. }
  34. [dir="rtl"] .views-exposed-form__item.views-exposed-form__item {
  35. margin-right: 0;
  36. margin-left: var(--space-xs);
  37. }
  38. .views-exposed-form__item--preceding-actions.views-exposed-form__item--preceding-actions {
  39. margin-right: var(--space-m); /* LTR */
  40. }
  41. [dir="rtl"] .views-exposed-form__item--preceding-actions.views-exposed-form__item--preceding-actions {
  42. margin-right: 0;
  43. margin-left: var(--space-m);
  44. }
  45. .views-exposed-form__item--actions.views-exposed-form__item--actions .button {
  46. margin-bottom: 0;
  47. }
  48. .views-exposed-form__item--actions.views-exposed-form__item--actions .button:last-child {
  49. margin-right: 0;
  50. }
  51. [dir="rtl"] .views-exposed-form__item--actions.views-exposed-form__item--actions:last-child {
  52. margin-left: 0;
  53. }

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