index.wxss 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. /* pages/camera/index.wxss */
  2. .container{
  3. background: #000;
  4. overflow: hidden;
  5. }
  6. .c_top{
  7. width: 100%;
  8. height: 12%;
  9. position: relative;
  10. }
  11. .c_top > view{
  12. position: fixed;
  13. left: var(--left);
  14. top: var(--top);
  15. height: var(--h);
  16. width: var(--h);
  17. font-weight: bold;
  18. border-radius: 50%;
  19. background: rgba(255, 255, 255, 0.6);
  20. }
  21. .c_top .icon{
  22. color: #515151;
  23. font-size: 32rpx;
  24. transform: translate(-50%,-50%);
  25. top: 48%;
  26. left: 48%;
  27. position: absolute;
  28. }
  29. .c_top .icon >text{
  30. font-size: 30rpx;
  31. }
  32. .c_cam{
  33. width: 100%;
  34. height: 63%;
  35. position: relative;
  36. overflow: hidden;
  37. }
  38. .c_cam > camera{
  39. width: 100%;
  40. height: 100%;
  41. }
  42. .c_cam > image{
  43. width: 100%;
  44. min-height: 100%;
  45. }
  46. .c_cam > .mask{
  47. position: absolute;
  48. width: 100%;
  49. height: 100%;
  50. top: 50%;
  51. transform: translate(-50%,-50%);
  52. left: 50%;
  53. }
  54. .c_bottom{
  55. color: #fff;
  56. height: 25%;
  57. text-align: center;
  58. margin-top: 20rpx;
  59. position: relative;
  60. width: 100%;
  61. }
  62. .c_bottom > text{
  63. font-size: 28rpx;
  64. }
  65. .c_btn{
  66. display: flex;
  67. align-items: center;
  68. justify-content: center;
  69. position: absolute;
  70. width: 100%;
  71. bottom: 40%;
  72. left: 0;
  73. }
  74. .c_btn > .preview,.c_btn > .changePos{
  75. width: 120rpx;
  76. height: 80rpx;
  77. }
  78. .c_btn .txt{
  79. font-size: 24rpx;
  80. color: #D1D1D1;
  81. display: inline-block;
  82. width: 100%;
  83. margin-top: 20rpx;
  84. }
  85. .c_btn text{
  86. font-size: 80rpx;
  87. }
  88. .c_btn .iconfanzhuanxiangji1{
  89. font-size: 80rpx;
  90. }
  91. .c_btn > .take_photo{
  92. font-size: 120rpx;
  93. margin: 0 80rpx;
  94. }
  95. .handle_img{
  96. width: 100%;
  97. height: 100rpx;
  98. background: #1D1D1D;
  99. display: flex;
  100. align-items: center;
  101. justify-content: space-between;
  102. position: fixed;
  103. width: 100%;
  104. bottom: var(--bottom);
  105. left: 0;
  106. font-size: 0;
  107. }
  108. .handle_img > text{
  109. font-size: 32rpx;
  110. display: inline-block;
  111. margin: 0 40rpx;
  112. color: rgba(255, 255, 255, 0.7);
  113. }
  114. .handle_img > text:last-of-type{
  115. color: #fff;
  116. }