index.less 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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. }
  56. /* 转圈动画 */
  57. @keyframes falsh-identifier {
  58. 0% {
  59. transform: rotate(0deg) scale(0.7);
  60. }
  61. 50% {
  62. transform: rotate(180deg) scale(1);
  63. }
  64. 100% {
  65. transform: rotate(360deg) scale(0.7);
  66. }
  67. }
  68. @keyframes falsh-scale {
  69. 0% {
  70. transform: scale(1);
  71. }
  72. 50% {
  73. transform: scale(1.2);
  74. }
  75. 100% {
  76. transform: scale(1);
  77. }
  78. }