_search.scss 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. .search-listpage-icon {
  2. font-size: 16px;
  3. color: #999;
  4. }
  5. .search-input-group {
  6. display: inline-block;
  7. margin-bottom: 0;
  8. width: 200px;
  9. vertical-align: bottom;
  10. }
  11. .search-listpage-input {
  12. }
  13. .search-top {
  14. .search-top-input-group {
  15. .search-top-input {
  16. }
  17. &:focus {
  18. width: 400px;
  19. transition: .3s ease;
  20. }
  21. }
  22. }
  23. .search-suggest {
  24. // => dicided by JS
  25. // top: 43px;
  26. // left: 125px;
  27. //display: none;
  28. position: absolute;
  29. width: 500px;
  30. background: #fff;
  31. border: solid 1px #ccc;
  32. box-shadow: 0 0 1px rgba(0,0,0,.3);
  33. padding: 16px;
  34. .searching {
  35. color: #666;
  36. }
  37. }
  38. .search-result {
  39. .search-result-list {
  40. nav {
  41. &.affix {
  42. top: 8px;
  43. width: 33.33333%;
  44. padding-right: 30px;
  45. padding-bottom: 50px;
  46. height: 100%;
  47. overflow-y: scroll;
  48. }
  49. .nav {
  50. > li {
  51. padding: 0px 11px 0 8px;
  52. &.active {
  53. padding: 0px 8px;
  54. border-right: solid 3px #666;
  55. background: #f0f0f0;
  56. }
  57. }
  58. }
  59. }
  60. }
  61. .search-result-content {
  62. .search-result-meta {
  63. margin-bottom: 16px;
  64. font-weight: bold;
  65. }
  66. .search-result-page {
  67. > h2 {
  68. font-size: 20px;
  69. }
  70. &:first-child > h2 {
  71. margin-top: 0;
  72. }
  73. .wiki {
  74. border: solid 1px #ccc;
  75. padding: 16px;
  76. border-radius: 3px;
  77. font-size: 13px;
  78. }
  79. }
  80. }
  81. }