_search.scss 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. @import "./page_list";
  2. .search-listpage-icon {
  3. font-size: 16px;
  4. color: #999;
  5. }
  6. .search-listpage-clear {
  7. z-index: 3;
  8. display: none;
  9. position: absolute;
  10. right: 8px;
  11. z-index: 10;
  12. font-size: 0.6em;
  13. width: 22px;
  14. height: 22px;
  15. color: #ccc;
  16. padding: 8px;
  17. }
  18. .search-input-group {
  19. display: inline-block;
  20. margin-left: 20px;
  21. margin-bottom: 0;
  22. width: 200px;
  23. vertical-align: bottom;
  24. }
  25. .search-top {
  26. .search-top-input-group {
  27. .search-top-clear {
  28. position: absolute;
  29. right: 40px;
  30. z-index: 10;
  31. width: 22px;
  32. height: 22px;
  33. top: 7px;
  34. color: #ccc;
  35. padding: 0;
  36. }
  37. }
  38. // using react-bootstrap-typeahead
  39. // see: https://github.com/ericgio/react-bootstrap-typeahead
  40. .bootstrap-typeahead-menu {
  41. li a span {
  42. .picture {
  43. width: 14px;
  44. height: 14px;
  45. }
  46. .page-path {
  47. display: inline;
  48. padding: 0 4px;
  49. color: inherit;
  50. }
  51. .page-list-meta {
  52. font-size: .9em;
  53. color: #999;
  54. >span {
  55. margin-right: .3rem;
  56. }
  57. }
  58. }
  59. }
  60. }
  61. .search-result {
  62. .search-result-list {
  63. nav {
  64. &.affix {
  65. top: 8px;
  66. width: 32%;
  67. padding-right: 0;
  68. padding-bottom: 50px;
  69. height: 100%;
  70. overflow-y: scroll;
  71. }
  72. .nav {
  73. > li {
  74. padding: 0px 10px 0 0;
  75. &.active {
  76. padding-right: 7px;
  77. border-right: solid 3px #666;
  78. background: #f0f0f0;
  79. }
  80. }
  81. }
  82. }
  83. .search-result-meta {
  84. margin-bottom: 16px;
  85. font-weight: bold;
  86. }
  87. .search-result-list-delete-checkbox {
  88. margin: 0 10px 0 0;
  89. vertical-align: middle;
  90. }
  91. }
  92. .search-result-content {
  93. padding-bottom: 32px;
  94. .search-result-page {
  95. > h2 {
  96. font-size: 20px;
  97. }
  98. &:first-child > h2 {
  99. margin-top: 0;
  100. }
  101. .wiki {
  102. border: solid 1px #ccc;
  103. padding: 16px;
  104. border-radius: 3px;
  105. font-size: 13px;
  106. }
  107. }
  108. }
  109. }
  110. // Smartphone and Tablet
  111. @media (max-width: $screen-xs-max) {
  112. .search-top {
  113. margin-top: 4px 0 0 0;
  114. padding: 0;
  115. border-style: none !important;
  116. box-shadow: none !important;
  117. -webkit-box-shadow: none !important;
  118. }
  119. .search-result {
  120. .search-result-content {
  121. .search-result-page {
  122. .wiki {
  123. h1, h2, h3, h4, h5, h6 {
  124. font-size: medium;
  125. }
  126. height: 250px;
  127. overflow: scroll;
  128. }
  129. }
  130. }
  131. }
  132. }
  133. .search-top .search-form {
  134. @media (min-width: $screen-sm-max) {
  135. // using react-bootstrap-typeahead
  136. // see: https://github.com/ericgio/react-bootstrap-typeahead
  137. .bootstrap-typeahead-input input {
  138. width: 500px;
  139. }
  140. }
  141. @media (min-width: $screen-sm-min) and (max-width: $screen-sm-max) {
  142. background-color: #0f0;
  143. // using react-bootstrap-typeahead
  144. // see: https://github.com/ericgio/react-bootstrap-typeahead
  145. .bootstrap-typeahead-input input {
  146. width: 270px;
  147. }
  148. }
  149. @media (min-width: $screen-xs-min) and (max-width: $screen-xs-max) {
  150. width: 70%;
  151. }
  152. @media (min-width: $screen-xs-min*2/3) and (max-width: $screen-xs-min) {
  153. width: 58%;
  154. }
  155. @media (max-width: $screen-xs-min*2/3) {
  156. width: 40%;
  157. min-width: 120px;
  158. }
  159. }