_search-results.scss 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285
  1. // SEARCH RESULTS
  2. // -----------------------------------------------------------------------------
  3. /* Change Content Background Color */
  4. html.search-results {
  5. body {
  6. background: #FFF;
  7. }
  8. }
  9. // WRAPPER
  10. // -----------------------------------------------------------------------------
  11. /* Search Results Wrapper */
  12. .search-content {
  13. margin: -($content-body-padding);
  14. .search-control-wrapper {
  15. background: darken( #FFF, 3% );
  16. border-bottom: 1px solid darken( #FFF, 8% );
  17. margin-top: 3px;
  18. padding: ($content-body-padding / 2);
  19. }
  20. }
  21. // WRAPPER
  22. // -----------------------------------------------------------------------------
  23. /* Search Results Tabs */
  24. .search-content {
  25. .search-toolbar {
  26. border-bottom :1px solid #ebebeb;
  27. margin: 0 0 $content-body-padding;
  28. .nav-pills {
  29. margin: 0 $content-body-padding;
  30. li {
  31. margin: 0 15px 0 0;
  32. &:last-child {
  33. margin-right: 0;
  34. }
  35. a {
  36. padding-left: 5px;
  37. padding-right: 5px;
  38. &,
  39. &:hover,
  40. &:focus {
  41. background: none;
  42. border-radius: 0;
  43. border-bottom: 2px solid #FFF;
  44. border-top: 2px solid #FFF;
  45. color: #777;
  46. }
  47. }
  48. a {
  49. &:hover,
  50. &:focus {
  51. background: none;
  52. border-radius: 0;
  53. border-bottom: 2px solid #FFF;
  54. border-top: 2px solid #FFF;
  55. color: #555;
  56. }
  57. }
  58. &.active {
  59. a {
  60. color: $color-primary;
  61. border-bottom-color: $color-primary;
  62. }
  63. }
  64. }
  65. }
  66. }
  67. > .tab-content {
  68. border: none;
  69. box-shadow: none;
  70. padding: 0 $content-body-padding;
  71. }
  72. }
  73. // TOTALS
  74. // -----------------------------------------------------------------------------
  75. /* Search Result Totals */
  76. .search-content {
  77. .total-results {
  78. margin-top: -25px;
  79. }
  80. }
  81. // LIST
  82. // -----------------------------------------------------------------------------
  83. /* Search Results List */
  84. .search-results-list {
  85. max-width: 750px;
  86. li {
  87. border-bottom: 1px solid #EEE;
  88. margin-bottom: 15px;
  89. padding-bottom: 15px;
  90. position: relative;
  91. &:last-child {
  92. border-bottom: none;
  93. margin-bottom: 0;
  94. padding-bottom: 0;
  95. }
  96. }
  97. .result-type {
  98. right: 5px;
  99. position: absolute;
  100. top: 5px;
  101. }
  102. a {
  103. border-radius: 4px;
  104. display: block;
  105. padding: 25px;
  106. text-decoration: none;
  107. .title {
  108. margin-top: 0;
  109. }
  110. .description {
  111. color: #777;
  112. }
  113. p:last-child {
  114. margin-bottom: 0;
  115. }
  116. &:hover {
  117. background: darken( #FFF, 3% );
  118. }
  119. }
  120. .has-thumb {
  121. display: table;
  122. width: 100%;
  123. .result-thumb,
  124. .result-data {
  125. display: table-cell;
  126. vertical-align: top;
  127. }
  128. }
  129. .result-thumb {
  130. padding-right: 25px;
  131. img,
  132. .fa {
  133. height: 75px;
  134. width: 75px;
  135. }
  136. .fa {
  137. background: $color-primary;
  138. color: $color-primary-inverse;
  139. @include font-size(36);
  140. @include line-height(75);
  141. text-align: center;
  142. }
  143. }
  144. }
  145. // RESPONSIVENESS
  146. // -----------------------------------------------------------------------------
  147. /* Search Results Responsive */
  148. @media only screen and (max-width: 767px) {
  149. .search-content {
  150. margin: -($content-body-padding / 2);
  151. }
  152. }
  153. @media only screen and (max-width: 480px) {
  154. .search-results-list {
  155. .has-thumb {
  156. @include clearfix();
  157. display: block;
  158. .result-thumb,
  159. .result-data {
  160. display: block;
  161. }
  162. .result-thumb {
  163. float: left;
  164. }
  165. .result-data {
  166. .title {
  167. margin-top: 3px;
  168. }
  169. }
  170. }
  171. .result-thumb {
  172. img,
  173. .fa {
  174. height: 35px;
  175. width: 35px;
  176. }
  177. .fa {
  178. @include font-size(16);
  179. @include line-height(35);
  180. }
  181. }
  182. }
  183. }
  184. // DARK
  185. // -----------------------------------------------------------------------------
  186. /* dark */
  187. html.dark {
  188. .search-content {
  189. .search-control-wrapper {
  190. background: $dark-color-1;
  191. border-bottom-color: $dark-color-3;
  192. }
  193. .tab-content {
  194. background: transparent;
  195. }
  196. .search-toolbar {
  197. background: $dark-color-2;
  198. border-bottom-color: $dark-color-2;
  199. .nav-pills {
  200. a {
  201. &,
  202. &:hover,
  203. &:focus {
  204. border-bottom-color: $dark-color-2;
  205. border-top-color: $dark-color-2;
  206. color: $dark-default-text;
  207. }
  208. }
  209. a {
  210. &:hover,
  211. &:focus {
  212. border-bottom-color: $dark-color-2;
  213. border-top-color: $dark-color-2;
  214. color: #555;
  215. }
  216. }
  217. li.active {
  218. a {
  219. &,
  220. &:hover,
  221. &:focus {
  222. color: $color-primary;
  223. border-bottom-color: $color-primary;
  224. }
  225. }
  226. }
  227. }
  228. }
  229. .search-results-list {
  230. li {
  231. border-bottom-color: $dark-color-3;
  232. }
  233. a {
  234. .description {
  235. color: $dark-default-text;
  236. }
  237. &:hover {
  238. background: lighten( $dark-bg, 5% );
  239. }
  240. }
  241. }
  242. }
  243. }