scan.wxss 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. /* page {
  2. background-repeat: no-repeat;
  3. background-size: 100% 100%;
  4. -moz-background-size: 100% 100%;
  5. background-color: #333;
  6. } */
  7. .container {
  8. display: flex;
  9. flex-direction: column;
  10. align-items: center;
  11. justify-content: center;
  12. height: 100vh;
  13. /* background-color: #f0f4f8; */
  14. /* background-color: #ffffff; */
  15. padding: 10px;
  16. background: -webkit-linear-gradient(bottom,rgb(145, 145, 253),rgb(72, 0, 240),rgb(70, 0, 221));
  17. /* background-image: url("../../static/images/s.png");
  18. background-size: 100% 100%;
  19. background-repeat: no-repeat; */
  20. }
  21. .scan-button {
  22. display: flex;
  23. flex-direction: column;
  24. align-items: center;
  25. justify-content: center;
  26. width: 400rpx;
  27. height: 400rpx;
  28. border-radius: 50%; /* 圆形按钮 */
  29. /* border: 5rpx solid #ff5500; */
  30. /* background: -webkit-linear-gradient(bottom,rgb(157, 146, 168),rgb(125, 96, 168),rgb(112, 56, 168, 0.9)); */
  31. box-shadow: 0 8rpx 20rpx rgba(170, 255, 255, 0.1), 0 8px 20px rgba(85, 255, 127, 0.1); /* 阴影效果 */
  32. margin-bottom: 40rpx;
  33. }
  34. .scan-icon {
  35. width: 160rpx;
  36. height: 160rpx;
  37. }
  38. .scan-text {
  39. font-size: 45rpx;
  40. color: #30aa30; /* 文字颜色 */
  41. text-align: center;
  42. margin-top: 10px;
  43. }
  44. .scan-tip {
  45. font-size: 30rpx;
  46. color: #c6c6c6; /* 提示文字颜色 */
  47. text-align: center;
  48. }
  49. .scan-tip-top {
  50. font-size: 60rpx;
  51. margin:0rpx 0 150rpx 0;
  52. font-weight: 900;
  53. color: transparent; /* 文本颜色设置为透明,以便显示渐变背景 */
  54. background-clip: text; /* 背景裁剪为文本 */
  55. -webkit-background-clip: text; /* 兼容 Safari */
  56. background-image: linear-gradient(to right, #91a4ea, #9e7fec); /* 应用渐变背景 */
  57. text-align: center;
  58. }
  59. .top-image {
  60. width: 100%; /* 宽度为屏幕宽度 */
  61. height: 100%; /* 高度为100rpx */
  62. position: fixed; /* 固定在屏幕顶部 */
  63. top: 0; /* 距离顶部0rpx */
  64. left: 0; /* 距离左侧0rpx */
  65. z-index: 999; /* 设置较高的z-index以确保在其他内容之上 */
  66. }