index.wxss 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  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 text{
  12. position: absolute;
  13. left: 40rpx;
  14. bottom: 60rpx;
  15. font-size: 24rpx;
  16. font-weight: bold;
  17. color: #333;
  18. padding: 10rpx;
  19. border-radius: 50%;
  20. background: rgba(255, 255, 255, 0.9);
  21. }
  22. .c_cam{
  23. width: 100%;
  24. height: 63%;
  25. position: relative;
  26. overflow: hidden;
  27. }
  28. .c_cam > camera{
  29. width: 100%;
  30. height: 100%;
  31. }
  32. .c_cam > image{
  33. width: 100%;
  34. min-height: 100%;
  35. }
  36. .c_cam > .mask{
  37. position: absolute;
  38. width: 100%;
  39. height: 100%;
  40. top: 50%;
  41. transform: translate(-50%,-50%);
  42. left: 50%;
  43. }
  44. .c_bottom{
  45. color: #fff;
  46. height: 25%;
  47. text-align: center;
  48. margin-top: 20rpx;
  49. position: relative;
  50. width: 100%;
  51. }
  52. .c_bottom > text{
  53. font-size: 28rpx;
  54. }
  55. .c_btn{
  56. display: flex;
  57. align-items: center;
  58. justify-content: center;
  59. position: absolute;
  60. width: 100%;
  61. bottom: 40%;
  62. left: 0;
  63. }
  64. .c_btn > .preview{
  65. width: 80rpx;
  66. height: 80rpx;
  67. }
  68. .c_btn text{
  69. font-size: 80rpx;
  70. }
  71. .c_btn .iconfanzhuanxiangji1{
  72. font-size: 90rpx;
  73. }
  74. .c_btn > .take_photo{
  75. font-size: 120rpx;
  76. margin: 0 80rpx;
  77. }
  78. .handle_img{
  79. width: 100%;
  80. height: 100rpx;
  81. background: #1D1D1D;
  82. display: flex;
  83. align-items: center;
  84. justify-content: space-between;
  85. position: fixed;
  86. width: 100%;
  87. bottom: var(--bottom);
  88. left: 0;
  89. font-size: 0;
  90. }
  91. .handle_img > text{
  92. font-size: 32rpx;
  93. display: inline-block;
  94. margin: 0 40rpx;
  95. color: rgba(255, 255, 255, 0.7);
  96. }
  97. .handle_img > text:last-of-type{
  98. color: #fff;
  99. }