search-results.css

Same filename in this branch
  1. 9 core/profiles/demo_umami/themes/umami/css/components/blocks/search/search-results.css
  2. 9 core/profiles/demo_umami/themes/umami/css/classy/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

Search results specific styles.

File

core/themes/olivero/css/components/search-results.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. * Search results specific styles.
  10. */
  11. [dir="ltr"] .search-results {
  12. padding-left: 0;
  13. }
  14. [dir="rtl"] .search-results {
  15. padding-right: 0;
  16. }
  17. [dir="ltr"] .search-results {
  18. padding-right: 0;
  19. }
  20. [dir="rtl"] .search-results {
  21. padding-left: 0;
  22. }
  23. .search-results {
  24. margin-bottom: 2.25rem;
  25. padding-top: 0;
  26. padding-bottom: 0;
  27. list-style: none;
  28. }
  29. @media (min-width: 43.75rem) {
  30. .search-results {
  31. margin-bottom: 3.375rem;
  32. }
  33. }
  34. [dir="ltr"] .search-result__title {
  35. margin-left: 0;
  36. }
  37. [dir="rtl"] .search-result__title {
  38. margin-right: 0;
  39. }
  40. [dir="ltr"] .search-result__title {
  41. margin-right: 0;
  42. }
  43. [dir="rtl"] .search-result__title {
  44. margin-left: 0;
  45. }
  46. .search-result__title {
  47. margin-top: 0;
  48. margin-bottom: 0;
  49. color: #0d1214;
  50. font-size: 1.25rem;
  51. line-height: 1.6875rem;
  52. }
  53. .search-result__title a {
  54. padding-bottom: 0.1875rem;
  55. transition: background-size 0.2s, color 0.2s;
  56. text-decoration: none;
  57. background-color: transparent;
  58. background-image: linear-gradient(#2494db, #2494db); /* Two values are needed for IE11 support. */
  59. background-repeat: no-repeat;
  60. background-position: bottom left; /* LTR */
  61. background-size: 0 0.1875rem;
  62. }
  63. .search-result__title a:hover {
  64. color: #0d77b5;
  65. }
  66. @media (min-width: 62.5rem) {
  67. .search-result__title {
  68. margin-bottom: 1.125rem;
  69. font-size: 1.875rem;
  70. line-height: 3.375rem;
  71. }
  72. }
  73. [dir="rtl"] .search-result__title a {
  74. background-position: bottom right;
  75. }
  76. .search-result__snippet {
  77. padding-bottom: calc(1.6875rem - 2px);
  78. }
  79. @media (min-width: 62.5rem) {
  80. .search-result__snippet {
  81. padding-bottom: 3.375rem;
  82. }
  83. }
  84. .search-result__meta {
  85. display: flex;
  86. align-items: center;
  87. margin-bottom: 1.125rem;
  88. color: #6e7172;
  89. font-size: 0.875rem;
  90. line-height: 1.125rem;
  91. }
  92. .search-result__meta a {
  93. color: #0d77b5;
  94. font-weight: bold;
  95. }
  96. .search-results__item {
  97. position: relative; /* Anchor after pseudo-element. */
  98. margin-bottom: 1.6875rem;
  99. }
  100. .search-results__item:after {
  101. position: absolute;
  102. bottom: 0;
  103. width: 3.375rem;
  104. height: 0;
  105. content: "";
  106. /* Intentionally not using CSS logical properties. */
  107. border-top: solid 2px #e7edf1;
  108. }
  109. .search-results__item:last-child {
  110. margin-bottom: 0;
  111. }
  112. @media (min-width: 62.5rem) {
  113. .search-results__item {
  114. margin-bottom: 3.375rem;
  115. }
  116. }

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