index.less 1.9 KB

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