_search.scss 1.8 KB

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