You are here

search-results.css in Drupal 10

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. /*
  12. * Media query breakpoints.
  13. * Processed by postcss/postcss-custom-media.
  14. */
  15. /* Navigation related breakpoints */
  16. /* Grid related breakpoints */
  17. /* Grid shifts from 6 to 14 columns. */
  18. /* Width of the entire grid maxes out. */
  19. [dir="ltr"] .search-results {
  20. padding-left: 0
  21. }
  22. [dir="rtl"] .search-results {
  23. padding-right: 0
  24. }
  25. [dir="ltr"] .search-results {
  26. padding-right: 0
  27. }
  28. [dir="rtl"] .search-results {
  29. padding-left: 0
  30. }
  31. .search-results {
  32. margin-bottom: var(--sp2);
  33. padding-top: 0;
  34. padding-bottom: 0;
  35. list-style: none
  36. }
  37. @media (min-width: 43.75rem) {
  38. .search-results {
  39. margin-bottom: var(--sp3)
  40. }
  41. }
  42. [dir="ltr"] .search-result__title {
  43. margin-left: 0
  44. }
  45. [dir="rtl"] .search-result__title {
  46. margin-right: 0
  47. }
  48. [dir="ltr"] .search-result__title {
  49. margin-right: 0
  50. }
  51. [dir="rtl"] .search-result__title {
  52. margin-left: 0
  53. }
  54. .search-result__title {
  55. margin-top: 0;
  56. margin-bottom: 0;
  57. color: var(--color-text-neutral-loud);
  58. font-size: 1.25rem;
  59. line-height: var(--line-height-base)
  60. }
  61. .search-result__title a {
  62. padding-bottom: 0.1875rem;
  63. transition: background-size 0.2s, color 0.2s;
  64. text-decoration: none;
  65. background-color: transparent;
  66. background-image: linear-gradient(var(--color--primary-50), var(--color--primary-50)); /* Two values are needed for IE11 support. */
  67. background-repeat: no-repeat;
  68. background-position: bottom left; /* LTR */
  69. background-size: 0 0.1875rem
  70. }
  71. .search-result__title a:hover {
  72. color: var(--color-text-primary-medium);
  73. }
  74. @media (min-width: 62.5rem) {
  75. .search-result__title {
  76. margin-bottom: var(--sp1);
  77. font-size: 1.875rem;
  78. line-height: var(--sp3)
  79. }
  80. }
  81. [dir="rtl"] .search-result__title a {
  82. background-position: bottom right;
  83. }
  84. .search-result__snippet {
  85. padding-bottom: calc(var(--sp1-5) - 2px)
  86. }
  87. @media (min-width: 62.5rem) {
  88. .search-result__snippet {
  89. padding-bottom: var(--sp3)
  90. }
  91. }
  92. .search-result__meta {
  93. display: flex;
  94. align-items: center;
  95. margin-bottom: var(--sp1);
  96. color: var(--color-text-neutral-soft);
  97. font-size: 0.875rem;
  98. line-height: var(--sp)
  99. }
  100. .search-result__meta a {
  101. color: var(--color-text-primary-medium);
  102. font-weight: bold;
  103. }
  104. .search-results__item {
  105. position: relative; /* Anchor after pseudo-element. */
  106. margin-bottom: var(--sp1-5)
  107. }
  108. .search-results__item:after {
  109. position: absolute;
  110. bottom: 0;
  111. width: var(--sp3);
  112. height: 0;
  113. content: "";
  114. /* Intentionally not using CSS logical properties. */
  115. border-top: solid 2px var(--color--gray-95);
  116. }
  117. .search-results__item:last-child {
  118. margin-bottom: 0;
  119. }
  120. @media (min-width: 62.5rem) {
  121. .search-results__item {
  122. margin-bottom: var(--sp3)
  123. }
  124. }