index.wxss 1.3 KB

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