index.css 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. .recommend {
  2. padding-top: 30px;
  3. padding-bottom: 30px;
  4. margin-top: 10px;
  5. }
  6. .recommend .head {
  7. display: -webkit-box;
  8. display: -webkit-flex;
  9. display: -moz-box;
  10. display: -ms-flexbox;
  11. display: flex;
  12. -webkit-box-pack: justify;
  13. -webkit-justify-content: space-between;
  14. -moz-box-pack: justify;
  15. -ms-flex-pack: justify;
  16. justify-content: space-between;
  17. -webkit-box-align: end;
  18. -webkit-align-items: flex-end;
  19. -moz-box-align: end;
  20. -ms-flex-align: end;
  21. align-items: flex-end;
  22. font-weight: bold;
  23. font-size: 24px;
  24. color: #333;
  25. }
  26. .recommend .head div span {
  27. margin-left: 10px;
  28. font-weight: normal;
  29. font-size: 16px;
  30. color: #999;
  31. }
  32. .recommend .head .el-link.el-link--default {
  33. font-size: 14px;
  34. color: #666;
  35. }
  36. .recommend .el-row {
  37. margin-top: 30px;
  38. }
  39. .recommend2 .el-row a {
  40. position: relative;
  41. display: block;
  42. border-radius: 8px;
  43. overflow: hidden;
  44. }
  45. .recommend2 .el-image {
  46. display: block;
  47. width: 100%;
  48. height: 224px;
  49. }
  50. .recommend2 .el-row a > div:nth-child(2) {
  51. position: absolute;
  52. right: 0;
  53. bottom: 0;
  54. left: 0;
  55. z-index: 2;
  56. padding-left: 25px;
  57. background: -webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0.3)), to(#000));
  58. background: -webkit-linear-gradient(top, rgba(0, 0, 0, 0.3) 0%, #000 100%);
  59. background: -moz-linear-gradient(top, rgba(0, 0, 0, 0.3) 0%, #000 100%);
  60. background: -o-linear-gradient(top, rgba(0, 0, 0, 0.3) 0%, #000 100%);
  61. background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, #000 100%);
  62. font-weight: bold;
  63. font-size: 18px;
  64. line-height: 62px;
  65. color: #fff;
  66. }
  67. .recommend2 .el-row a:hover > div:nth-child(2) {
  68. opacity: 0;
  69. }
  70. .recommend2 .el-row a > div:nth-child(2) span {
  71. position: relative;
  72. padding-left: 15px;
  73. margin-left: 12px;
  74. font-weight: normal;
  75. font-size: 14px;
  76. }
  77. .recommend2 .el-row a > div:nth-child(2) span::before {
  78. content: "/";
  79. position: absolute;
  80. bottom: 0;
  81. left: 0;
  82. z-index: 2;
  83. font-size: 12px;
  84. line-height: normal;
  85. }
  86. .recommend2 .el-row a > div:last-child {
  87. position: absolute;
  88. top: 0;
  89. right: 0;
  90. bottom: 0;
  91. left: 0;
  92. z-index: 2;
  93. padding-top: 40px;
  94. padding-right: 20px;
  95. padding-left: 20px;
  96. background-color: rgba(0, 0, 0, 0.8);
  97. font-size: 14px;
  98. color: #fff;
  99. opacity: 0;
  100. -webkit-transition: 0.3s;
  101. -o-transition: 0.3s;
  102. -moz-transition: 0.3s;
  103. transition: 0.3s;
  104. }
  105. .recommend2 .el-row a:hover > div:last-child {
  106. opacity: 1;
  107. }
  108. .recommend2 .el-row a > div:last-child > div:first-child {
  109. font-weight: bold;
  110. font-size: 18px;
  111. }
  112. .recommend2 .el-row a > div:last-child > div:nth-child(2) {
  113. position: relative;
  114. padding-top: 10px;
  115. padding-bottom: 29px;
  116. font-size: 0;
  117. }
  118. .recommend2 .el-row a > div:last-child > div:nth-child(2)::after {
  119. content: "/";
  120. position: absolute;
  121. bottom: 0;
  122. left: 10px;
  123. z-index: 2;
  124. font-size: 12px;
  125. }
  126. .recommend2 .el-tag {
  127. height: 29px;
  128. padding-right: 9px;
  129. padding-left: 9px;
  130. border-color: #6a6a6a;
  131. border-radius: 2px;
  132. background-color: #6a6a6a;
  133. font-size: 14px;
  134. line-height: 27px;
  135. color: #fff;
  136. }
  137. .recommend2 .el-tag ~ .el-tag {
  138. margin-left: 6px;
  139. }
  140. .recommend2 .el-row a > div:last-child > div:last-child {
  141. display: -webkit-box;
  142. -webkit-box-orient: vertical;
  143. -webkit-line-clamp: 3;
  144. margin-top: 7px;
  145. overflow: hidden;
  146. line-height: 36px;
  147. }
  148. .recommend2 .el-col-6 {
  149. width: 20%;
  150. padding-right: 7px !important;
  151. padding-left: 7px !important;
  152. margin-bottom: 14px;
  153. }