photo.css 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414
  1. /* 头部吸顶 */
  2. .header {
  3. padding: 0 16px;
  4. padding-top: 0;
  5. background-color: #000;
  6. z-index: 1;
  7. }
  8. .loginBox {
  9. position: fixed;
  10. right: 0;
  11. top: 0;
  12. width: 100%;
  13. height: 100%;
  14. z-index: 9;
  15. background-color: rgba(0, 0, 0, .7);
  16. display: none;
  17. }
  18. .loginCenterBox {
  19. position: fixed;
  20. top: 50%;
  21. left: 50%;
  22. transform: translate(-50%,-50%);
  23. background-color: #262626;
  24. border-radius: 12px;
  25. display: flex;
  26. flex-direction: column;
  27. /* justify-content: center; */
  28. align-items: center;
  29. width: 7rem;
  30. height: 4.5rem;
  31. }
  32. .accountRightText {
  33. background-color: #333333;
  34. border-radius: 15px;
  35. width: 6.46rem;
  36. height: 1.1rem;
  37. line-height: 1.1rem;
  38. font-size: .32rem;
  39. text-align: center;
  40. margin-top: .6rem;
  41. color: #fff;
  42. }
  43. #login {
  44. margin-top: .26rem;
  45. }
  46. .guanbi {
  47. width: .5rem;
  48. height: .5rem;
  49. margin-top: .62rem;
  50. }
  51. /* 账户信息 */
  52. .account {
  53. display: flex;
  54. justify-content: space-between;
  55. align-items: center;
  56. /* height: .88rem; */
  57. height: 44px;
  58. }
  59. .accountLeft {
  60. display: flex;
  61. justify-content: center;
  62. align-items: center;
  63. height: 100%;
  64. }
  65. .logo {
  66. width: 80px;
  67. height: 40px;
  68. }
  69. .accountRight {
  70. }
  71. .userImg {
  72. width: 20px;
  73. height: 22px;
  74. }
  75. /* 导航分类 */
  76. .nav {
  77. margin-top: 15px;
  78. display: flex;
  79. justify-content: space-between;
  80. align-items: center;
  81. }
  82. .nav li{
  83. display: flex;
  84. flex-direction: column;
  85. justify-content: center;
  86. align-items: center;
  87. }
  88. .nav li img {
  89. width: 20px;
  90. height: 20px;
  91. }
  92. .nav li .newImg {
  93. width: 30px;
  94. height: 20px;
  95. }
  96. .navText {
  97. margin-top: 10px;
  98. text-align: center;
  99. }
  100. .searchInputContent {
  101. display: flex;
  102. justify-content: space-between;
  103. align-items: center;
  104. width: 100%;
  105. }
  106. .clearTextImg {
  107. width: 20px;
  108. height: 20px;
  109. }
  110. /* 搜索 */
  111. .search {
  112. margin-top: 20px;
  113. display: flex;
  114. justify-content: space-between;
  115. align-items: center;
  116. height: 45px;
  117. border-radius: 22.5px;
  118. background-color: #2F2F2F;
  119. }
  120. .searchLeft {
  121. display: flex;
  122. justify-content: center;
  123. align-items: center;
  124. width: 80px;
  125. }
  126. .searchImg {
  127. width: 20px;
  128. height: 20px;
  129. }
  130. .searchInput {
  131. background-color: #2f2f2f;
  132. border: none;
  133. outline: none;
  134. resize: none;
  135. height: 100%;
  136. line-height: 100%;
  137. width: 100%;
  138. color: #fff;
  139. text-align: left;
  140. }
  141. .searchBtn {
  142. text-align: center;
  143. width: 130px;
  144. height: 50px;
  145. line-height: 50px;
  146. color: #EAEAEA;
  147. font-size: 16px;
  148. }
  149. /* 主要展示区 */
  150. .main {
  151. padding: 0 .26rem 1rem .26rem;
  152. }
  153. /* 视频 */
  154. .videopage {
  155. }
  156. .video {
  157. display: grid;
  158. text-align: center;
  159. /* // 设置网格布局 */
  160. grid-template-columns: 1fr 1fr;
  161. /* // 列的比例分布,分成三例,每列占比总宽度的1/3 */
  162. grid-gap: .2rem;
  163. /* // 各网格间距为10px */
  164. padding-bottom: .12rem;
  165. padding-top: .3rem;
  166. }
  167. /* 单条视频 */
  168. .videoContent {
  169. background-color: #1C1A1B;
  170. width: 3.4rem;
  171. min-height: 3.64rem;
  172. border-radius: 5px;
  173. }
  174. .loading {
  175. display: flex;
  176. flex-direction: column;
  177. align-items: center;
  178. justify-content: center;
  179. }
  180. .loadingImg {
  181. width: 80px;
  182. height: 76px;
  183. }
  184. .loadingText {
  185. text-align: center;
  186. margin-top: 4px;
  187. color: #8E8D8D;
  188. font-size: 12px;
  189. }
  190. .videoPhoto {
  191. width: 3.4rem;
  192. height: 2.4rem;
  193. background-repeat: no-repeat;
  194. background-position: 50% 50%;
  195. background-size: cover;
  196. border-top-left-radius:0.12rem;
  197. border-top-right-radius:0.12rem;
  198. }
  199. h2 {
  200. margin-top: 20px;
  201. min-height: 27px;
  202. line-height: 27px;
  203. }
  204. .videoImg {
  205. width:100%;
  206. height:100%;
  207. }
  208. .videoTitle {
  209. height: .9rem;
  210. text-align: left;
  211. font-size: .28rem;
  212. margin: .2rem .3rem 0 .3rem;
  213. /* 两行展示 */
  214. overflow: hidden;
  215. display: -webkit-box;
  216. -webkit-line-clamp: 2;
  217. -webkit-box-orient: vertical;
  218. word-break: break-all;
  219. }
  220. .videoData {
  221. width: 2.8rem;
  222. display: flex;
  223. justify-content: space-between;
  224. align-items: center;
  225. margin: .1rem .3rem .2rem .3rem;
  226. }
  227. .videoDataLeft {
  228. display: flex;
  229. align-items: center;
  230. margin-right: .1rem;
  231. }
  232. .videoDataImgLook {
  233. width:.3rem;
  234. height: .2rem;
  235. }
  236. .videoDataImgZan {
  237. width:.28rem;
  238. height: .3rem;
  239. }
  240. .videoText {
  241. margin-left: .1rem;
  242. font-size: .24rem;
  243. }
  244. .videoDataRgiht {
  245. display: flex;
  246. align-items: center;
  247. }
  248. /* 热门标签 */
  249. .labelpage{
  250. display: none;
  251. padding-top: .3rem;
  252. }.hotLabel {
  253. /* text-align: center; */
  254. /* display: grid; */
  255. /* // 设置网格布局 */
  256. /* grid-template-columns: 1fr 1fr 1fr 1fr 1fr; */
  257. /* // 列的比例分布,分成三例,每列占比总宽度的1/3 */
  258. /* grid-gap: .08rem; */
  259. /* // 各网格间距为10px */
  260. /* padding-bottom: .12rem; */
  261. display: flex;
  262. flex-wrap: wrap;
  263. }
  264. .label {
  265. margin-right: .12rem;
  266. margin-bottom: .12rem;
  267. /* width: 1.32rem; */
  268. padding: .2rem .2rem;
  269. border-radius: .2rem;
  270. /* height: 1rem; */
  271. background-color: #262626;
  272. font-size: .28rem;
  273. text-align: center;
  274. }
  275. .backToTop {
  276. position: fixed;
  277. bottom: 1.3rem;
  278. right: .3rem;
  279. width: .68rem;
  280. height: .68rem;
  281. display: none;
  282. }
  283. .backToTopImg {
  284. width: 100%;
  285. height: 100%;
  286. opacity: .5;
  287. }
  288. button {
  289. display: inline-block;
  290. padding: 6px 12px;
  291. font-weight: 400;
  292. line-height: 1.42857143;
  293. text-align: center;
  294. vertical-align: middle;
  295. cursor: pointer;
  296. border: 1px solid transparent;
  297. border-radius: 4px;
  298. border-color: #28a4c9;
  299. color: #fff;
  300. background-color: #5bc0de;
  301. margin: 20px 20px 0 0;
  302. }
  303. .box {
  304. width: 100%;
  305. padding-bottom: 20px;
  306. height: 80px;
  307. display: none;
  308. }
  309. .page {
  310. width: 100%;
  311. }
  312. .info {
  313. width: 200px;
  314. height: 34px;
  315. line-height: 34px;
  316. }
  317. .fl {
  318. float: left;
  319. }
  320. /* 底部标签栏 */
  321. .tabbar {
  322. position: fixed;
  323. bottom: 0;
  324. left: 0;
  325. height: .88rem;
  326. width: 100%;
  327. padding-top: .12rem;
  328. background-color: #000;
  329. z-index: 1;
  330. font-size: .24rem;
  331. }
  332. .currentTab {
  333. display: block;
  334. color: #CE5C2A;
  335. }
  336. .tabbar li {
  337. list-style: none;
  338. display: flex;
  339. flex-direction: column;
  340. justify-content: center;
  341. align-items: center;
  342. float: left;
  343. /* width: 33.33%; */
  344. width: 50%;
  345. text-align: center;
  346. }
  347. .tabbar li img {
  348. width: .36rem;
  349. height: .36rem;
  350. margin-bottom: .12rem;
  351. }
  352. .textwrap {
  353. display: flex;
  354. justify-content: center;
  355. align-items: center;
  356. }
  357. .tiptext {
  358. background-color: #000;
  359. border-radius: .1rem;
  360. text-align: center;
  361. padding: .1rem .2rem;
  362. }
  363. .bottomLoadContent {
  364. display: none;
  365. }
  366. .quanWrap {
  367. display: flex;
  368. justify-content: center;
  369. align-items: center;
  370. }
  371. .quanText {
  372. font-size: .3rem;
  373. color: #fff;
  374. }
  375. .quanquan {
  376. margin-left: 20px;
  377. width: 20px;
  378. height: 20px;
  379. }
  380. .tip {
  381. width: 6rem;
  382. height: 1rem;
  383. color: #fff;
  384. position: fixed;
  385. top: 53%;
  386. left: 50%;
  387. transform: translate(-50%,-53%);
  388. display: none;
  389. }