gallery-search.scss 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. .gallery-search {
  2. margin-bottom: var(--spacing-16);
  3. form {
  4. display: flex;
  5. justify-content: center;
  6. gap: var(--spacing-04);
  7. @include media-breakpoint-down(md) {
  8. .form-control-wrapper {
  9. width: 100%;
  10. }
  11. }
  12. input {
  13. padding-top: var(--spacing-06);
  14. padding-right: var(--spacing-06);
  15. padding-bottom: var(--spacing-06);
  16. height: 48px;
  17. @include media-breakpoint-up(md) {
  18. width: 544px;
  19. }
  20. }
  21. }
  22. .search-hits {
  23. display: flex;
  24. flex-direction: column;
  25. gap: var(--spacing-08);
  26. .search-hits-loading,
  27. .search-hits-empty,
  28. .search-hit:first-of-type {
  29. margin-top: var(--spacing-16);
  30. }
  31. .search-hit {
  32. display: flex;
  33. gap: var(--spacing-08);
  34. .search-image {
  35. a {
  36. display: flex;
  37. align-items: flex-start;
  38. justify-content: center;
  39. height: 100%;
  40. width: 100%;
  41. position: relative;
  42. &::before {
  43. content: '';
  44. background: var(--neutral-90);
  45. opacity: 0;
  46. position: absolute;
  47. top: 0;
  48. left: 0;
  49. width: 100%;
  50. height: 100%;
  51. border-radius: var(--border-radius-base);
  52. transition: opacity 0.15s ease-in-out;
  53. }
  54. img {
  55. @include shadow-md;
  56. width: 185px;
  57. border-radius: var(--border-radius-base);
  58. @include media-breakpoint-down(sm) {
  59. width: 35vw;
  60. }
  61. }
  62. &:hover {
  63. &::before {
  64. opacity: 0.08;
  65. transition: opacity 0.15s ease-in-out;
  66. }
  67. }
  68. }
  69. }
  70. .search-title {
  71. margin-bottom: var(--spacing-04);
  72. max-width: $templates-search-max-width;
  73. display: flex;
  74. align-items: center;
  75. a {
  76. @include heading-md;
  77. line-clamp: 2;
  78. display: -webkit-box;
  79. -webkit-line-clamp: 2;
  80. -webkit-box-orient: vertical;
  81. overflow-y: hidden;
  82. color: var(--content-primary);
  83. text-decoration: none;
  84. &:hover {
  85. text-decoration: underline;
  86. }
  87. @include media-breakpoint-down(lg) {
  88. @include heading-sm;
  89. }
  90. @include media-breakpoint-down(md) {
  91. @include heading-xs;
  92. line-clamp: 3;
  93. -webkit-line-clamp: 3;
  94. }
  95. }
  96. }
  97. .search-highlight {
  98. max-width: $templates-search-max-width;
  99. }
  100. .search-author {
  101. display: block;
  102. & + .badge-link-list {
  103. margin-top: var(--spacing-06);
  104. }
  105. }
  106. .gallery-official {
  107. margin-left: var(--spacing-06);
  108. vertical-align: text-top;
  109. }
  110. }
  111. }
  112. }