videoDetails.wxss 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. page {
  2. height: 100vh;
  3. width: 100vw;
  4. display: -webkit-flex;
  5. display: flex;
  6. flex-direction: column;
  7. background: #fff;
  8. overflow: hidden;
  9. padding-bottom: constant(safe-area-inset-bottom);
  10. padding-bottom: env(safe-area-inset-bottom);
  11. }
  12. .avatar, .comments cover-image {
  13. width: 70rpx;
  14. height: 70rpx;
  15. }
  16. .circle {
  17. margin-right: .5em
  18. }
  19. .commentsContatiner {
  20. background: #fff;
  21. padding-bottom: constant(safe-area-inset-bottom);
  22. padding-bottom: env(safe-area-inset-bottom);
  23. }
  24. .comment .input {
  25. background: #efefef;
  26. padding: .2em .5em;
  27. border-radius: 1em
  28. }
  29. .comment cover-image {
  30. height: 1em;
  31. width: 1em;
  32. margin-right: .3em;
  33. }
  34. .comment .row {
  35. margin-right: 1em
  36. }
  37. .comment .row:last-child {
  38. margin-right: 0
  39. }
  40. .comments .nickname {
  41. color: #002063;
  42. }
  43. .comments .content {
  44. padding-bottom: 1.2em
  45. }
  46. .comments {
  47. height: 400rpx;
  48. }
  49. video {
  50. position: relative
  51. }
  52. .videoContent {
  53. background: linear-gradient(-180deg, rgba(0, 0, 0, 0.00) 0%, rgba(0, 0, 0, 0.70) 100%);
  54. position: absolute;
  55. left: 0;
  56. right: 0;
  57. bottom: 0;
  58. color: #fff;
  59. transform: translateY(400rpx);
  60. transition: transform .3s ease-in-out 0s;
  61. }
  62. .videoContent.showComments {
  63. transform: translateY(0rpx);
  64. }
  65. .videoContent .avatar {
  66. height: 70rpx;
  67. width: 70rpx;
  68. }
  69. .videoPlay {
  70. height: 100rpx;
  71. width: 100rpx;
  72. }