news.scss 2.5 KB

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