search.less 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. .body {
  2. margin-top: 90px;
  3. .search{
  4. display: flex;
  5. flex-wrap: nowrap;
  6. align-items: center;
  7. .my-search{
  8. div {
  9. max-width: 600px;
  10. width: 500px;
  11. @media screen and (max-width:768px) {
  12. &{
  13. max-width:300px;
  14. width: 100%;
  15. }
  16. }
  17. }
  18. }
  19. .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. }
  30. .content {
  31. p {
  32. color: #777;
  33. }
  34. ul {
  35. list-style: none;
  36. padding: 0;
  37. li {
  38. padding: 10px 0;
  39. a {
  40. &:hover {
  41. color: #777;
  42. }
  43. h5 {
  44. font-size: 18px;
  45. line-height: 22px;
  46. color: #2440b3;
  47. font-weight: 500;
  48. display: -webkit-box;
  49. -webkit-box-orient: vertical;
  50. -webkit-line-clamp: 2;
  51. overflow: hidden;
  52. margin: 5px 0;
  53. @media screen and (max-width:768px) {
  54. font-size: 15px;
  55. }
  56. }
  57. .flex {
  58. display: flex;
  59. justify-content: flex-start;
  60. align-items: flex-start;
  61. }
  62. img {
  63. max-width: 140px;
  64. border-radius: 5px;
  65. }
  66. img.flex-item {
  67. margin-right: 10px;
  68. }
  69. .flex-item {
  70. .label{
  71. padding: 3px 5px;
  72. color: #999;
  73. font-weight: normal;
  74. background-color: #f5f5f5;
  75. }
  76. &>p:nth-child(2) {
  77. color: #777;
  78. }
  79. ;
  80. p {
  81. color: black;
  82. margin-bottom: 5px;
  83. }
  84. }
  85. }
  86. }
  87. }
  88. }
  89. .pagination{
  90. .active>a{
  91. background-color: #03c762;
  92. border: 1px solid #03c762;
  93. }
  94. }
  95. }