search.css 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. @charset "UTF-8";
  2. /*主色调*/
  3. /*文字文本*/
  4. /*单行省略号*/
  5. /*多行省略号*/
  6. /*箭头*/
  7. /**a标签hoverboder效果**/
  8. /**使用vw适配**/
  9. .search-wrap {
  10. max-width: 800px;
  11. padding: 0 15px;
  12. margin: 0 auto;
  13. overflow: hidden;
  14. }
  15. .search-box {
  16. margin: 30px 0 20px;
  17. position: relative;
  18. height: 40px;
  19. line-height: 40px;
  20. border-radius: 6px;
  21. overflow: hidden;
  22. }
  23. @media (min-width: 768px) {
  24. .search-box {
  25. margin: 80px 0 30px;
  26. height: 48px;
  27. line-height: 48px;
  28. }
  29. }
  30. .search-box .input {
  31. position: relative;
  32. display: block;
  33. margin-right: 80px;
  34. height: 100%;
  35. }
  36. @media (min-width: 768px) {
  37. .search-box .input {
  38. margin-right: 120px;
  39. }
  40. }
  41. .search-box .input input {
  42. display: block;
  43. width: 100%;
  44. height: 100%;
  45. line-height: 24px;
  46. padding: 12px;
  47. padding-right: 40px;
  48. border: 0;
  49. border-width: 1px 0 1px 1px;
  50. border-color: #dedede;
  51. border-style: solid;
  52. border-top-left-radius: 6px;
  53. border-bottom-left-radius: 6px;
  54. }
  55. .search-box .input i {
  56. cursor: pointer;
  57. position: absolute;
  58. right: 0;
  59. top: 0;
  60. width: 40px;
  61. height: 100%;
  62. background: url("/assets/image/search-x.png") no-repeat center;
  63. background-size: 15px;
  64. display: none;
  65. }
  66. .search-box a {
  67. display: block;
  68. position: absolute;
  69. width: 80px;
  70. height: 100%;
  71. text-align: center;
  72. background: #ed4747;
  73. right: 0;
  74. top: 0;
  75. color: #fff;
  76. font-size: 14px;
  77. }
  78. @media (min-width: 768px) {
  79. .search-box a {
  80. width: 120px;
  81. font-size: 16px;
  82. }
  83. }
  84. .search-tab {
  85. border-bottom: 1px solid #dedede;
  86. }
  87. .search-tab a {
  88. display: inline-block;
  89. margin-right: 20px;
  90. height: 48px;
  91. line-height: 48px;
  92. border-bottom: 1px solid #fff;
  93. color: #666;
  94. font-size: 14px;
  95. padding: 0 5px;
  96. -webkit-transition: all .5s ease;
  97. transition: all .5s ease;
  98. }
  99. @media (min-width: 768px) {
  100. .search-tab a {
  101. margin-right: 70px;
  102. height: 54px;
  103. line-height: 54px;
  104. font-size: 16px;
  105. }
  106. }
  107. .search-tab a.cur, .search-tab a:hover {
  108. color: #ed4747;
  109. border-color: #ed4747;
  110. }
  111. .search-tab-con li {
  112. border-bottom: 1px solid #dedede;
  113. padding: 15px 0;
  114. -webkit-transition: all .5s ease;
  115. transition: all .5s ease;
  116. }
  117. @media (min-width: 768px) {
  118. .search-tab-con li {
  119. padding: 25px 0;
  120. }
  121. }
  122. .search-tab-con li:hover, .search-tab-con li:active {
  123. padding-left: 5px;
  124. }
  125. .search-tab-con li a {
  126. display: block;
  127. }
  128. .search-tab-con li a:hover h2, .search-tab-con li a:active h2 {
  129. color: #ed4747;
  130. }
  131. .search-tab-con li span {
  132. color: #999;
  133. font-size: 14px;
  134. }
  135. .search-tab-con li h2 {
  136. color: #111;
  137. line-height: 1.6;
  138. margin: 10px 0;
  139. font-size: 16px;
  140. -webkit-transition: all .5s ease;
  141. transition: all .5s ease;
  142. }
  143. @media (min-width: 768px) {
  144. .search-tab-con li h2 {
  145. font-size: 24px;
  146. }
  147. }
  148. @media (min-width: 1200px) {
  149. .search-tab-con li h2 {
  150. font-size: 28px;
  151. }
  152. }