filter.theme.pcss.css

Same filename in this branch
  1. 11.x core/themes/claro/css/theme/filter.theme.pcss.css
Same filename in other branches
  1. 9 core/themes/olivero/css/theme/filter.theme.pcss.css
  2. 9 core/themes/claro/css/theme/filter.theme.pcss.css
  3. 8.9.x core/themes/claro/css/theme/filter.theme.pcss.css
  4. 10 core/themes/olivero/css/theme/filter.theme.pcss.css
  5. 10 core/themes/claro/css/theme/filter.theme.pcss.css

Styling for the Filter module.

File

core/themes/olivero/css/theme/filter.theme.pcss.css

View source
  1. /**
  2. * @file
  3. * Styling for the Filter module.
  4. */
  5. @import "../base/media-queries.pcss.css";
  6. /**
  7. * Filter information under field.
  8. */
  9. .text-full > .form-item {
  10. margin-block-end: 0;
  11. }
  12. .form-element--editor-format {
  13. vertical-align: top;
  14. }
  15. .filter-wrapper {
  16. margin-block: var(--sp1) var(--sp0-5);
  17. }
  18. .filter-wrapper .form-item {
  19. margin: 0;
  20. }
  21. .filter-help {
  22. float: right; /* LTR */
  23. padding-block: var(--sp0-5);
  24. font-size: var(--font-size-xxs);
  25. /**
  26. * Chromium and Webkit do not yet support flow relative logical properties,
  27. * such as float: inline-end. However, PostCSS Logical does not compile this
  28. * value, so we accommodate by not using these.
  29. *
  30. * @see https://caniuse.com/mdn-css_properties_clear_flow_relative_values
  31. * @see https://github.com/csstools/postcss-plugins/issues/632
  32. */
  33. &:dir(rtl) {
  34. float: left;
  35. }
  36. }
  37. /**
  38. * Compose tips.
  39. *
  40. * Wraps filter tips on page '/filter/tips[/name]'.
  41. */
  42. .compose-tips__item {
  43. margin-block: var(--sp1-5);
  44. }
  45. /**
  46. * Filter guidelines.
  47. */
  48. .filter-guidelines__item {
  49. margin-block-start: var(--sp1);
  50. font-size: var(--font-size-s);
  51. line-height: var(--line-height-s);
  52. }
  53. .filter-guidelines p {
  54. margin-block: var(--sp0-25) 0;
  55. }
  56. /**
  57. * Filter tips.
  58. *
  59. * Long is used on '/filter/tips[/name]', short is used for the filter tips
  60. * below a text format input.
  61. */
  62. .filter-tips--long {
  63. margin-block-end: var(--sp1-5);
  64. }
  65. .filter-tips__item,
  66. .filter-tips--long p {
  67. margin-block: var(--sp0-75);
  68. }
  69. .filter-tips__item--short {
  70. margin-block: var(--sp0-25) 0;
  71. }

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