photo.css 6.4 KB

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