search.css 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. html,body{
  2. width: 100%;
  3. height: 100%;
  4. }
  5. .search-content{
  6. display: flex;
  7. flex-direction: column;
  8. align-items: center;
  9. width: 100%;
  10. font-family: "微软雅黑";
  11. }
  12. .search-content>div{
  13. display: flex;
  14. justify-content: flex-start;
  15. width: 85%;
  16. }
  17. .search-content>div>span{
  18. font-size: 16px;
  19. color: #333333;
  20. }
  21. .search-content>.search-box{
  22. display: flex;
  23. justify-content: space-between;
  24. align-items: center;
  25. padding: 20px 0 15px 0;
  26. }
  27. .search-content>.search-box>input{
  28. display: flex;
  29. width: 80%;
  30. line-height: 34px;
  31. border: none;
  32. border-radius: 5px;
  33. background-color: #e5e5e5;
  34. font-size: 15px;
  35. padding: 0 5px;
  36. color: #999999;
  37. }
  38. .search-content>.search-box>input:focus{
  39. /* outline: #4cd3df; */
  40. outline: none;
  41. box-shadow: 0 0 3px #4cd3df;
  42. border-radius: 5px;
  43. background-color: #ffffff;
  44. }
  45. .search-content>.search-box>button{
  46. background-color: #ffffff;
  47. border: none;
  48. border-radius: 5px;
  49. width: 46px;
  50. height: 30px;
  51. font-size: 16px;
  52. color: #333333;
  53. }
  54. .search-content>.search-box>button:focus{
  55. outline: none;
  56. border: 1px solid #4cd3df;
  57. border-radius: 5px;
  58. color: #35ff52;
  59. }
  60. .search-content>div>ul{
  61. display: flex;
  62. flex-wrap: wrap;
  63. margin: 8px 0;
  64. }
  65. .search-content>div>ul>li{
  66. margin: 8px;
  67. padding: 8px 6px;
  68. background-color: #e5e5e5;
  69. border-radius: 5px;
  70. }