news.scss 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. .main {
  2. .container {
  3. &.news-list {
  4. .title {
  5. font-size: 34px;
  6. text-align: center;
  7. margin: 80px 0;
  8. }
  9. .new {
  10. display: block;
  11. transition: all 0.4s;
  12. margin-bottom: 40px;
  13. .cover {
  14. width: 290px;
  15. height: 190px;
  16. img {
  17. display: block;
  18. width: 100%;
  19. height: 100%;
  20. }
  21. }
  22. &:hover {
  23. box-shadow: 0 6px 30px rgba(6, 136, 210, 0.2);
  24. .name {
  25. color: #0688d2;
  26. }
  27. }
  28. .content {
  29. width: 780px;
  30. margin-left: 49px;
  31. box-sizing: border-box;
  32. padding: 32px 0;
  33. .name {
  34. font-size: 20px;
  35. transition: all 0.4s;
  36. }
  37. .date {
  38. font-size: 16px;
  39. color: #999999;
  40. margin-top: 14px;
  41. }
  42. .line {
  43. width: 100%;
  44. height: 1px;
  45. background: #e8e8e8;
  46. margin: 18px 0;
  47. }
  48. .desc {
  49. font-size: 16px;
  50. color: #505050;
  51. }
  52. }
  53. }
  54. }
  55. .pagination {
  56. display: flex;
  57. justify-content: center;
  58. align-items: center;
  59. padding-top: 25px;
  60. li {
  61. background: #e8e8e8;
  62. margin: 0 8px;
  63. &.active {
  64. background: #0688d2;
  65. a {
  66. color: #fff;
  67. }
  68. }
  69. &.more {
  70. background: transparent !important;
  71. a {
  72. color: #505050 !important;
  73. min-width: unset !important;
  74. padding: 0 !important;
  75. }
  76. }
  77. &:hover {
  78. background: #0688d2;
  79. a {
  80. color: #fff;
  81. }
  82. }
  83. a {
  84. display: block;
  85. height: 32px;
  86. line-height: 32px;
  87. padding: 0 10px;
  88. font-size: 12px;
  89. color: #505050;
  90. min-width: 32px;
  91. box-sizing: border-box;
  92. text-align: center;
  93. }
  94. }
  95. }
  96. }
  97. }
  98. .footer {
  99. margin-top: 40px;
  100. }