views-exposed-form.css

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

Visual styles for views exposed form.

File

core/themes/claro/css/components/views-exposed-form.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 views exposed form.
  10. */
  11. /**
  12. * Use flexbox and some margin resets to make the fields + actions go inline.
  13. *
  14. * For (at least) Media Library, this file is typically inserted by AJAX add_css
  15. * command when the dialog is opened. The AJAX add_css command always adds the
  16. * missing-but-required CSS assets to the beginning of the HTML . Because
  17. * of this, we cannot rely on the expected loading order of the CSS assets.
  18. * This is why we have to double these selectors: we have to get the expected
  19. * output even for the Media Library modal.
  20. *
  21. * @todo Remove double selectors after https://www.drupal.org/node/1461322
  22. * has been resolved.
  23. */
  24. .views-exposed-form.views-exposed-form {
  25. display: flex;
  26. flex-wrap: wrap;
  27. margin-block: var(--space-l);
  28. padding: var(--space-xs) var(--space-l) var(--space-l) var(--space-l);
  29. border: var(--details-border-size) solid var(--details-border-color);
  30. border-radius: var(--details-border-size-radius);
  31. background-color: var(--color-white);
  32. box-shadow: var(--details-box-shadow);
  33. }
  34. .views-exposed-form--preview.views-exposed-form--preview {
  35. margin-top: 0;
  36. }
  37. .views-exposed-form__item.views-exposed-form__item {
  38. max-width: 100%;
  39. margin-block: var(--space-s) 0;
  40. margin-inline: 0 var(--space-xs);
  41. }
  42. .views-exposed-form__item--preceding-actions.views-exposed-form__item--preceding-actions {
  43. margin-inline-end: var(--space-m);
  44. }
  45. .views-exposed-form__item--actions.views-exposed-form__item--actions .button {
  46. margin-block: 0;
  47. }
  48. .views-exposed-form__item--actions.views-exposed-form__item--actions .button:last-child {
  49. margin-inline-end: 0;
  50. }
  51. .views-exposed-form .form-item--no-label,
  52. .views-exposed-form__item.views-exposed-form__item.views-exposed-form__item--actions {
  53. /* Line height of a label + existing margin for the element + margin for label */
  54. margin-top: calc(var(--line-height-form-label) + var(--space-s) + var(--space-xs));
  55. }

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