views-exposed-form.pcss.css

Same filename in other branches
  1. 8.9.x 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. margin-top: var(--space-l);
  23. margin-bottom: var(--space-l);
  24. padding: var(--space-xs) var(--space-l) var(--space-l) var(--space-l);
  25. border: var(--details-border-size) solid var(--details-border-color);
  26. border-radius: var(--details-border-size-radius);
  27. background-color: var(--color-white);
  28. box-shadow: var(--details-box-shadow);
  29. }
  30. .views-exposed-form--preview.views-exposed-form--preview {
  31. margin-top: 0;
  32. }
  33. .views-exposed-form__item.views-exposed-form__item {
  34. max-width: 100%;
  35. margin: var(--space-s) var(--space-xs) 0 0; /* LTR */
  36. }
  37. [dir="rtl"] .views-exposed-form__item.views-exposed-form__item {
  38. margin-right: 0;
  39. margin-left: var(--space-xs);
  40. }
  41. .views-exposed-form__item--preceding-actions.views-exposed-form__item--preceding-actions {
  42. margin-right: var(--space-m); /* LTR */
  43. }
  44. [dir="rtl"] .views-exposed-form__item--preceding-actions.views-exposed-form__item--preceding-actions {
  45. margin-right: 0;
  46. margin-left: var(--space-m);
  47. }
  48. .views-exposed-form__item--actions.views-exposed-form__item--actions .button {
  49. margin-top: 0;
  50. margin-bottom: 0;
  51. }
  52. .views-exposed-form__item--actions.views-exposed-form__item--actions .button:last-child {
  53. margin-right: 0;
  54. }
  55. [dir="rtl"] .views-exposed-form__item--actions.views-exposed-form__item--actions:last-child {
  56. margin-left: 0;
  57. }
  58. .views-exposed-form .form-item--no-label,
  59. .views-exposed-form__item.views-exposed-form__item.views-exposed-form__item--actions {
  60. /* Line height of a label + existing margin for the element + margin for label */
  61. margin-top: calc(var(--line-height-form-label) + var(--space-s) + var(--space-xs));
  62. }

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