index.wxss 1.4 KB

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