collection.css 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  1. /* 返回 */
  2. .nav {
  3. background-color: #101010;
  4. z-index: 3;
  5. position: fixed;
  6. top: 0;
  7. left: 0;
  8. width: 100%;
  9. /* height: 10%; */
  10. height: .88rem;
  11. display: flex;
  12. }
  13. .back{
  14. position: absolute;
  15. left: 0;
  16. top: 0;
  17. z-index: 3;
  18. width: 10%;
  19. height: .88rem;
  20. display: flex;
  21. justify-content: center;
  22. align-items: center;
  23. }
  24. .back img {
  25. width: .18rem;
  26. }
  27. /* 页面标题 */
  28. .pageTitle {
  29. height: .88rem;
  30. width: 100%;
  31. display: flex;
  32. justify-content: center;
  33. align-items: center;
  34. }
  35. .pageTitle img {
  36. width: 1.6rem;
  37. height: .8rem;
  38. }
  39. /* 主要展示区 */
  40. .main {
  41. padding: 1rem .26rem;
  42. }
  43. /* 视频 */
  44. .video {
  45. display: grid;
  46. text-align: center;
  47. /* // 设置网格布局 */
  48. grid-template-columns: 1fr 1fr;
  49. /* // 列的比例分布,分成三例,每列占比总宽度的1/3 */
  50. grid-gap: .2rem;
  51. /* // 各网格间距为10px */
  52. padding-bottom: .12rem;
  53. padding-top: .3rem;
  54. }
  55. /* 单条视频 */
  56. .videoContent {
  57. background-color: #1C1A1B;
  58. background-color: #1C1A1B;
  59. width: 3.4rem;
  60. min-height: 3.64rem;
  61. border-radius: 5px;
  62. }
  63. .loading {
  64. display: flex;
  65. flex-direction: column;
  66. align-items: center;
  67. justify-content: center;
  68. }
  69. .loadingImg {
  70. width: 80px;
  71. height: 76px;
  72. }
  73. .loadingText {
  74. text-align: center;
  75. margin-top: 4px;
  76. color: #8E8D8D;
  77. font-size: 12px;
  78. }
  79. .videoPhoto {
  80. width: 3.4rem;
  81. height: 2.4rem;
  82. background-repeat: no-repeat;
  83. background-position: 50% 50%;
  84. background-size: cover;
  85. border-top-left-radius:0.12rem;
  86. border-top-right-radius:0.12rem;
  87. }
  88. .videoImg {
  89. width:100%;
  90. height:100%;
  91. }
  92. .videoTitle {
  93. height: .9rem;
  94. text-align: left;
  95. font-size: .28rem;
  96. margin: .2rem .3rem 0 .3rem;
  97. /* 两行展示 */
  98. overflow: hidden;
  99. display: -webkit-box;
  100. -webkit-line-clamp: 2;
  101. -webkit-box-orient: vertical;
  102. word-break: break-all;
  103. }
  104. .videoColumn {
  105. display: flex;
  106. justify-content: space-between;
  107. align-items: center;
  108. }
  109. .videoData {
  110. width: 2.8rem;
  111. display: flex;
  112. justify-content: space-between;
  113. align-items: center;
  114. margin: .1rem .3rem .2rem .3rem;
  115. }
  116. .close {
  117. width: .34rem;
  118. height: .34rem;
  119. }
  120. .closeImg {
  121. width: 100%;
  122. height: 100%;
  123. }
  124. .videoDataLeft {
  125. display: flex;
  126. align-items: center;
  127. margin-right: .1rem;
  128. }
  129. .videoDataImgLook {
  130. width:.3rem;
  131. height: .2rem;
  132. }
  133. .videoDataImgZan {
  134. width:.28rem;
  135. height: .3rem;
  136. }
  137. .videoText {
  138. margin-left: .1rem;
  139. font-size: .24rem;
  140. }
  141. .videoDataRgiht {
  142. display: flex;
  143. /* align-items: center; */
  144. }
  145. .backToTop {
  146. position: fixed;
  147. bottom: 1.3rem;
  148. right: .3rem;
  149. width: .68rem;
  150. height: .68rem;
  151. display: none;
  152. }
  153. .backToTopImg {
  154. width: 100%;
  155. height: 100%;
  156. opacity: .5;
  157. }
  158. .tip {
  159. width: 6rem;
  160. height: 1rem;
  161. color: #fff;
  162. position: fixed;
  163. top: 50%;
  164. left: 50%;
  165. transform: translate(-50%,-50%);
  166. display: none;
  167. }
  168. .textwrap {
  169. display: flex;
  170. justify-content: center;
  171. align-items: center;
  172. }
  173. .tiptext {
  174. background-color: #000;
  175. border-radius: .1rem;
  176. text-align: center;
  177. padding: .1rem .2rem;
  178. }