_search.scss 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. .search-results-container {
  2. display: block;
  3. padding: $spacer;
  4. position: relative;
  5. flex-grow: 10;
  6. margin-bottom: $space-md;
  7. background: $panel-bg;
  8. border: $panel-border;
  9. border-radius: 3px;
  10. // Fix for search scroller in mobile view
  11. height: unset;
  12. .label-tag {
  13. margin-top: 2px;
  14. margin-left: 6px;
  15. font-size: 11px;
  16. padding: 2px 6px;
  17. }
  18. .selected {
  19. .search-result-tag {
  20. opacity: 0.7;
  21. color: white;
  22. }
  23. }
  24. }
  25. .search-section {
  26. background: $panel-bg;
  27. border-bottom: 1px solid lightOrDark($gray95, $gray25);
  28. padding: 0px 4px 4px 4px;
  29. margin-bottom: 3px;
  30. }
  31. .search-section__header {
  32. font-size: $font-size-h6;
  33. padding: 7px 4px 3px 0;
  34. color: $text-color-weak;
  35. display: flex;
  36. flex-grow: 1;
  37. &:hover,
  38. &.selected {
  39. color: $text-color;
  40. }
  41. &:hover {
  42. .search-section__header__link {
  43. opacity: 1;
  44. }
  45. }
  46. }
  47. .search-section__header__icon {
  48. padding: 5px 0px;
  49. width: 43px;
  50. text-align: center;
  51. }
  52. .search-section__header__toggle {
  53. padding: 5px;
  54. }
  55. .search-section__header__text {
  56. flex-grow: 1;
  57. line-height: 24px;
  58. }
  59. .search-section__header__link {
  60. padding: 2px 10px 0;
  61. color: $text-muted;
  62. opacity: 0;
  63. transition: opacity 150ms ease-in-out;
  64. }
  65. .search-item {
  66. @include list-item();
  67. display: flex;
  68. flex-grow: 1;
  69. align-items: center;
  70. height: auto;
  71. min-height: 37px;
  72. white-space: initial;
  73. padding: 0px;
  74. &:hover,
  75. &.selected {
  76. background: $list-item-hover-bg;
  77. .search-item__body-title {
  78. color: $text-color-strong;
  79. }
  80. }
  81. }
  82. .search-item__body {
  83. flex: 1 1 auto;
  84. overflow: hidden;
  85. display: flex;
  86. flex-direction: column;
  87. justify-content: center;
  88. padding: 0 10px;
  89. }
  90. .search-item__body-folder-title {
  91. color: $text-color-weak;
  92. font-size: $font-size-xs;
  93. line-height: 11px;
  94. position: relative;
  95. top: -1px;
  96. }
  97. .search-item__icon {
  98. display: flex;
  99. align-items: center;
  100. flex: 0 0 auto;
  101. font-size: 19px;
  102. padding: 0 2px 0 10px;
  103. }
  104. .search-item__tags {
  105. display: none;
  106. padding: 10px;
  107. }
  108. .search-item__actions {
  109. flex: 0 0 auto;
  110. padding: 0 10px 0 0;
  111. }
  112. .search-item__actions__item {
  113. display: inline-block;
  114. opacity: 0;
  115. width: 0;
  116. transition: all 0.2s ease-in-out;
  117. .fa-star,
  118. .fa-star-o {
  119. color: $orange;
  120. line-height: 37px;
  121. }
  122. }
  123. .search-item:hover {
  124. .search-item__actions__item {
  125. width: 15px;
  126. opacity: 1;
  127. }
  128. }
  129. .search-button-row {
  130. text-align: center;
  131. padding: $spacer * 2 $spacer;
  132. background: $panel-bg;
  133. }
  134. @include media-breakpoint-up(md) {
  135. .search-item__tags {
  136. display: flex;
  137. flex: 1 1 auto;
  138. flex-wrap: wrap;
  139. justify-content: flex-end;
  140. margin-top: -2px;
  141. }
  142. }