index.wxss 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. .mediaBox {
  2. position: fixed;
  3. top: 0px;
  4. left: 0px;
  5. align-items: center;
  6. width: 100vw;
  7. height: 100vh;
  8. display: flex;
  9. justify-content: center;
  10. background-color: rgba(0, 0, 0, 0.35);
  11. }
  12. .mediaBox .poster {
  13. position: relative;
  14. margin-bottom: 120rpx;
  15. width: 646rpx;
  16. height: 959rpx;
  17. }
  18. .mediaBox .poster .close {
  19. position: absolute;
  20. width: 60rpx;
  21. height: 60rpx;
  22. top: -71rpx;
  23. right: -26rpx;
  24. }
  25. .mediaBox .poster .img {
  26. width: 100%;
  27. height: 100%;
  28. border-radius: 20rpx;
  29. overflow: hidden;
  30. }
  31. .mediaBox .btns {
  32. position: absolute;
  33. bottom: 0;
  34. left: 0;
  35. width: 100%;
  36. display: flex;
  37. align-items: center;
  38. justify-content: space-between;
  39. box-sizing: border-box;
  40. padding: 25rpx 60rpx;
  41. padding-bottom: calc(env(safe-area-inset-bottom) + 25rpx);
  42. background-color: white;
  43. }
  44. .mediaBox .btns .btn {
  45. width: 275rpx;
  46. padding: 13rpx 0;
  47. text-align: center;
  48. font-size: 32rpx;
  49. color: #FFFFFF;
  50. background: linear-gradient(180deg, #6EC8FF 0%, #31BDFE 100%);
  51. box-shadow: 0rpx 6rpx 4rpx 0rpx rgba(0, 0, 0, 0.08);
  52. border-radius: 39rpx;
  53. }
  54. .mediaBox .canvas {
  55. width: 646rpx;
  56. height: 959rpx;
  57. position: absolute;
  58. left: -9999rpx;
  59. top: -9999rpx;
  60. }
  61. /* 转圈动画 */
  62. @keyframes falsh-identifier {
  63. 0% {
  64. transform: rotate(0deg) scale(0.7);
  65. }
  66. 50% {
  67. transform: rotate(180deg) scale(1);
  68. }
  69. 100% {
  70. transform: rotate(360deg) scale(0.7);
  71. }
  72. }
  73. @keyframes falsh-scale {
  74. 0% {
  75. transform: scale(1);
  76. }
  77. 50% {
  78. transform: scale(1.2);
  79. }
  80. 100% {
  81. transform: scale(1);
  82. }
  83. }