search-results.css

Same filename in this branch
  1. 9 core/profiles/demo_umami/themes/umami/css/classy/components/search-results.css
  2. 9 core/themes/olivero/css/components/search-results.css
  3. 9 core/themes/seven/css/classy/components/search-results.css
  4. 9 core/themes/claro/css/classy/components/search-results.css
  5. 9 core/themes/bartik/css/components/search-results.css
  6. 9 core/themes/bartik/css/classy/components/search-results.css
  7. 9 core/themes/starterkit_theme/css/components/search-results.css
  8. 9 core/themes/classy/css/components/search-results.css
Same filename in other branches
  1. 8.9.x core/profiles/demo_umami/themes/umami/css/components/blocks/search/search-results.css
  2. 8.9.x core/profiles/demo_umami/themes/umami/css/classy/components/search-results.css
  3. 8.9.x core/themes/seven/css/classy/components/search-results.css
  4. 8.9.x core/themes/claro/css/classy/components/search-results.css
  5. 8.9.x core/themes/bartik/css/components/search-results.css
  6. 8.9.x core/themes/bartik/css/classy/components/search-results.css
  7. 8.9.x core/themes/classy/css/components/search-results.css
  8. 10 core/profiles/demo_umami/themes/umami/css/components/blocks/search/search-results.css
  9. 10 core/profiles/demo_umami/themes/umami/css/classy/components/search-results.css
  10. 10 core/themes/olivero/css/components/search-results.css
  11. 10 core/themes/claro/css/classy/components/search-results.css
  12. 10 core/themes/starterkit_theme/css/components/search-results.css
  13. 11.x core/profiles/demo_umami/themes/umami/css/components/blocks/search/search-results.css
  14. 11.x core/profiles/demo_umami/themes/umami/css/classy/components/search-results.css
  15. 11.x core/themes/olivero/css/components/search-results.css
  16. 11.x core/themes/claro/css/classy/components/search-results.css
  17. 11.x core/themes/starterkit_theme/css/components/search-results.css

Stylesheet for results generated by the Search module.

File

core/profiles/demo_umami/themes/umami/css/components/blocks/search/search-results.css

View source
  1. /**
  2. * @file
  3. * Stylesheet for results generated by the Search module.
  4. */
  5. .search-form + .item-list > h3 {
  6. margin: 1.28rem;
  7. }
  8. .search-form > .form-wrapper {
  9. margin-bottom: 1.28rem;
  10. padding: 0.889rem;
  11. border: 1px solid #fcece7;
  12. background: #fff;
  13. }
  14. @media screen and (min-width: 48em) {
  15. .search-form > .form-wrapper {
  16. display: flex;
  17. flex-wrap: wrap;
  18. align-items: flex-end;
  19. margin-bottom: 1.28rem;
  20. padding: 1.28rem;
  21. }
  22. }
  23. /* 77em == the max width of .container + 1em either side */
  24. @media screen and (min-width: 77.56em) {
  25. .path-search .region-content {
  26. margin: 0;
  27. }
  28. .search-form > .form-wrapper {
  29. margin: 0 0 1.28rem;
  30. }
  31. }
  32. .search-form .form-type-search {
  33. margin: 0 0 0.889rem 0;
  34. }
  35. @media screen and (min-width: 48em) {
  36. .search-form .form-type-search {
  37. flex-grow: 1;
  38. margin: 0 1.28rem 0 0; /* LTR */
  39. }
  40. [dir="rtl"] .search-form .form-type-search {
  41. margin-right: 0;
  42. margin-left: 1.28rem;
  43. }
  44. }
  45. .search-form .container-inline label,
  46. .search-form .container-inline div {
  47. display: block;
  48. }
  49. .search-form .form-search {
  50. margin: 0;
  51. }
  52. .search-help-link {
  53. display: inline-block;
  54. margin: 1.28rem;
  55. }
  56. /**
  57. * Advanced Search
  58. */
  59. .search-form details > .details-wrapper {
  60. display: flex;
  61. flex-wrap: wrap;
  62. justify-content: space-between;
  63. box-sizing: border-box;
  64. padding: 1.28rem 0 0;
  65. }
  66. .search-form .search-advanced .details-wrapper > fieldset {
  67. width: 100%;
  68. margin: 0 0 1rem;
  69. padding: 1rem;
  70. }
  71. /* 480px */
  72. @media screen and (min-width: 30em) {
  73. .search-form .search-advanced .details-wrapper > fieldset,
  74. .search-form .search-advanced .details-wrapper > .action {
  75. flex-basis: calc(33% - 2%);
  76. flex-grow: 1;
  77. min-width: 15rem;
  78. margin: 1%;
  79. }
  80. .search-form .search-advanced .details-wrapper > .action {
  81. padding-top: 0.7rem;
  82. }
  83. }
  84. .search-form .search-advanced .form-text {
  85. width: 100%;
  86. }
  87. /*
  88. Search results
  89. */
  90. .search-form + h2 {
  91. margin: 0 1.28rem 1.28rem;
  92. }
  93. .search-results {
  94. padding: 0;
  95. list-style: none;
  96. }
  97. /* 77em == the max width of .container + 1em either side */
  98. @media screen and (min-width: 77em) {
  99. .search-results {
  100. margin-right: 0;
  101. margin-left: 0;
  102. }
  103. }
  104. .search-results li {
  105. margin: 0 0 1rem 0; /* LTR */
  106. padding: 1.28rem;
  107. border: 1px solid #fcece7;
  108. background: #fff;
  109. }
  110. /* Without this rule, another RTL rule from item-list.css will break the design */
  111. [dir=rtl] .search-results li {
  112. margin: 0 0 1rem 0;
  113. }
  114. .search-results .search-result__snippet {
  115. margin-bottom: 0;
  116. }
  117. .search-results .search-result__info {
  118. margin-top: 1.28rem;
  119. margin-bottom: 0;
  120. }
  121. .pager__items {
  122. display: flex;
  123. justify-content: center;
  124. }

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