ocr.wxss 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. .container {
  2. width: 100%;
  3. height: 100vh;
  4. display: flex;
  5. flex-direction: column;
  6. background-color: #f8f8f8;
  7. }
  8. /* 相机样式 */
  9. .camera-container {
  10. width: 100%;
  11. height: 100%;
  12. position: relative;
  13. }
  14. .camera {
  15. width: 100%;
  16. height: 100%;
  17. }
  18. .camera-controls {
  19. position: absolute;
  20. bottom: 40rpx;
  21. left: 0;
  22. right: 0;
  23. display: flex;
  24. justify-content: center;
  25. align-items: center;
  26. }
  27. .btn-capture {
  28. width: 280rpx;
  29. height: 100rpx;
  30. line-height: 100rpx;
  31. background-color: #ffffff;
  32. margin: 0 20rpx;
  33. border-radius: 30rpx;
  34. }
  35. /* 结果视图样式 */
  36. .result-container {
  37. width: 100%;
  38. height: 100%;
  39. display: flex;
  40. flex-direction: column;
  41. }
  42. .image-container {
  43. width: 100%;
  44. height: 50%;
  45. display: flex;
  46. justify-content: center;
  47. align-items: center;
  48. background-color: #000;
  49. }
  50. .preview-image, .highlight-canvas {
  51. width: 100%;
  52. height: 100%;
  53. object-fit: contain;
  54. }
  55. .text-list {
  56. flex: 1;
  57. width: 100%;
  58. background-color: #fff;
  59. border-top-left-radius: 20rpx;
  60. border-top-right-radius: 20rpx;
  61. margin-top: -20rpx;
  62. padding: 20rpx;
  63. box-sizing: border-box;
  64. display: flex;
  65. flex-direction: column;
  66. }
  67. .text-list-header {
  68. font-size: 32rpx;
  69. font-weight: bold;
  70. padding: 20rpx 0;
  71. border-bottom: 1rpx solid #eee;
  72. }
  73. .text-scroll {
  74. flex-wrap: wrap;
  75. width: 100%;
  76. }
  77. .no-result {
  78. text-align: center;
  79. color: #999;
  80. padding: 40rpx 0;
  81. }
  82. .text-item {
  83. border: 1rpx solid #f0f0f0;
  84. margin: 10rpx;
  85. padding: 5rpx 10rpx;
  86. background-color: #eee;
  87. }
  88. .text-content {
  89. font-size: 30rpx;
  90. color: #333;
  91. padding: 3rpx 5rpx;
  92. line-height: 1.5;
  93. border-radius: 10rpx;
  94. }
  95. .text-tip {
  96. font-size: 24rpx;
  97. color: #999;
  98. margin-top: 10rpx;
  99. }
  100. .bottom-controls {
  101. padding: 20rpx;
  102. display: flex;
  103. justify-content: center;
  104. }
  105. .btn-retake {
  106. background-color: #07c160;
  107. color:#fff;
  108. }
  109. .Title{
  110. width: 650rpx;
  111. height:100rpx;
  112. font-size:36rpx;
  113. justify-content: flex-start;
  114. align-items: flex-start;
  115. margin: 30rpx 0;
  116. }
  117. .Title1{
  118. font-size:28rpx;
  119. color:#1d1d1d;
  120. }
  121. /* 英语单词标签页内容样式 */
  122. .english-tab-content {
  123. display: flex;
  124. flex-direction: column;
  125. height: 100%;
  126. }
  127. .generate-article-btn {
  128. padding: 20rpx;
  129. margin-top: 20rpx;
  130. }
  131. .generate-article-btn button {
  132. width: 100%;
  133. border-radius: 40rpx;
  134. }
  135. .textSelected1{
  136. background-color: #07c160;
  137. color:#fff;
  138. }