search.css 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. .body {
  2. margin-top: 90px;
  3. }
  4. .body .search {
  5. display: flex;
  6. flex-wrap: nowrap;
  7. align-items: center;
  8. }
  9. .body .search .my-search div {
  10. max-width: 600px;
  11. width: 500px;
  12. }
  13. @media screen and (max-width: 768px) {
  14. .body .search .my-search div {
  15. max-width: 300px;
  16. width: 100%;
  17. }
  18. }
  19. .body .search .button {
  20. margin-left: 5px;
  21. width: 60px;
  22. background-color: #03c762;
  23. text-align: center;
  24. letter-spacing: 5px;
  25. line-height: 34px;
  26. color: #fff;
  27. border-radius: 5px;
  28. }
  29. .body .content p {
  30. color: #777;
  31. }
  32. .body .content ul {
  33. list-style: none;
  34. padding: 0;
  35. }
  36. .body .content ul li {
  37. padding: 10px 0;
  38. }
  39. .body .content ul li a:hover {
  40. color: #777;
  41. }
  42. .body .content ul li a h5 {
  43. font-size: 18px;
  44. line-height: 22px;
  45. color: #2440b3;
  46. font-weight: 500;
  47. display: -webkit-box;
  48. -webkit-box-orient: vertical;
  49. -webkit-line-clamp: 2;
  50. overflow: hidden;
  51. margin: 5px 0;
  52. }
  53. @media screen and (max-width: 768px) {
  54. .body .content ul li a h5 {
  55. font-size: 15px;
  56. }
  57. }
  58. .body .content ul li a .flex {
  59. display: flex;
  60. justify-content: flex-start;
  61. align-items: flex-start;
  62. }
  63. .body .content ul li a img {
  64. max-width: 140px;
  65. border-radius: 5px;
  66. }
  67. .body .content ul li a img.flex-item {
  68. margin-right: 10px;
  69. }
  70. .body .content ul li a .flex-item > p:nth-child(2) {
  71. color: #777;
  72. }
  73. .body .content ul li a .flex-item p {
  74. color: black;
  75. margin-bottom: 5px;
  76. }
  77. .body .pagination .active > a {
  78. background-color: #03c762;
  79. border: 1px solid #03c762;
  80. }