暂无描述
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216
  1. /*--------------------------------------------------------------
  2. 22. Post
  3. ----------------------------------------------------------------*/
  4. .cs_post.cs_style_1 {
  5. .cs_post_thumb {
  6. display: block;
  7. margin-bottom: 24px;
  8. }
  9. .cs_post_meta {
  10. margin-bottom: 5px;
  11. }
  12. .cs_post_title {
  13. overflow: hidden;
  14. text-overflow: ellipsis;
  15. display: -webkit-box;
  16. -webkit-line-clamp: 2;
  17. -webkit-box-orient: vertical;
  18. margin-bottom: 12px;
  19. }
  20. .cs_post_subtitle {
  21. margin-bottom: 27px;
  22. overflow: hidden;
  23. text-overflow: ellipsis;
  24. display: -webkit-box;
  25. -webkit-line-clamp: 3;
  26. -webkit-box-orient: vertical;
  27. margin-bottom: 16px;
  28. }
  29. .cs_post_btn {
  30. position: relative;
  31. padding-bottom: 2px;
  32. &::after {
  33. content: '';
  34. width: 100%;
  35. height: 1px;
  36. background-color: $primary;
  37. position: absolute;
  38. left: 0;
  39. bottom: 0;
  40. transform: scaleX(0);
  41. transform-origin: right center;
  42. transition: transform 0.3s ease;
  43. }
  44. .cs_btn_arrow {
  45. position: absolute;
  46. top: 2px;
  47. right: -20px;
  48. transform: rotate(-35deg);
  49. transition: all 0.3s ease;
  50. }
  51. &:hover {
  52. &::after {
  53. transform: scaleX(1);
  54. transform-origin: left center;
  55. }
  56. }
  57. }
  58. }
  59. .cs_post.cs_style_2 {
  60. display: flex;
  61. align-items: center;
  62. gap: 20px;
  63. @media (max-width: 991px) {
  64. flex-direction: column;
  65. }
  66. .cs_post_thumb {
  67. flex: none;
  68. @media (max-width: 991px) {
  69. width: 100%;
  70. }
  71. }
  72. .cs_post_meta {
  73. margin-bottom: 5px;
  74. }
  75. .cs_post_title,
  76. .cs_post_subtitle {
  77. overflow: hidden;
  78. text-overflow: ellipsis;
  79. display: -webkit-box;
  80. -webkit-line-clamp: 2;
  81. -webkit-box-orient: vertical;
  82. }
  83. .cs_post_title {
  84. margin-bottom: 12px;
  85. }
  86. .cs_post_subtitle {
  87. margin-bottom: 16px;
  88. }
  89. .cs_post_btn {
  90. position: relative;
  91. padding-bottom: 2px;
  92. &::after {
  93. content: '';
  94. width: 100%;
  95. height: 1px;
  96. background-color: $primary;
  97. position: absolute;
  98. left: 0;
  99. bottom: 0;
  100. transform: scaleX(0);
  101. transform-origin: right center;
  102. transition: transform 0.3s ease;
  103. }
  104. .cs_btn_arrow {
  105. position: absolute;
  106. top: 2px;
  107. right: -20px;
  108. transform: rotate(-35deg);
  109. transition: all 0.3s ease;
  110. }
  111. &:hover {
  112. &::after {
  113. transform: scaleX(1);
  114. transform-origin: left center;
  115. }
  116. }
  117. }
  118. }
  119. .cs_post.cs_style_3 {
  120. width: 100%;
  121. height: 100%;
  122. display: flex;
  123. flex-direction: column;
  124. justify-content: flex-end;
  125. @media (max-width: 1199px) {
  126. height: 450px;
  127. }
  128. .cs_post_info {
  129. padding: 35px;
  130. }
  131. .cs_post_meta {
  132. margin-bottom: 5px;
  133. color: rgba($white, 0.8);
  134. }
  135. .cs_post_title {
  136. color: $white;
  137. margin-bottom: 12px;
  138. }
  139. .cs_post_subtitle {
  140. margin-bottom: 16px;
  141. color: rgba($white, 0.8);
  142. }
  143. .cs_post_btn {
  144. position: relative;
  145. padding-bottom: 2px;
  146. &::after {
  147. content: '';
  148. width: 100%;
  149. height: 1px;
  150. background-color: $accent;
  151. position: absolute;
  152. left: 0;
  153. bottom: 0;
  154. transform: scaleX(0);
  155. transform-origin: right center;
  156. transition: transform 0.3s ease;
  157. }
  158. .cs_btn_arrow {
  159. position: absolute;
  160. top: 2px;
  161. right: -20px;
  162. transform: rotate(-35deg);
  163. transition: all 0.3s ease;
  164. }
  165. &:hover {
  166. &::after {
  167. transform: scaleX(1);
  168. transform-origin: left center;
  169. }
  170. }
  171. }
  172. }
  173. .cs_post.cs_style_4 {
  174. display: flex;
  175. align-items: center;
  176. gap: 15px;
  177. margin-bottom: 25px;
  178. &:last-child {
  179. margin-bottom: 0;
  180. }
  181. .cs_post_thumb {
  182. width: 60px;
  183. height: 60px;
  184. flex: none;
  185. }
  186. .cs_post_title,
  187. .cs_post_subtitle {
  188. overflow: hidden;
  189. text-overflow: ellipsis;
  190. display: -webkit-box;
  191. -webkit-line-clamp: 1;
  192. -webkit-box-orient: vertical;
  193. }
  194. .cs_post_title {
  195. margin-bottom: 2px;
  196. }
  197. }