sleepEvaluation.wxss 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  1. /* pages/survey/survey.wxss */
  2. /* 通用样式 */
  3. .container {
  4. width: 100%;
  5. display: block;
  6. background: #CCEDF5;
  7. }
  8. .section {
  9. width: calc(100%);
  10. padding: 30rpx 0;
  11. margin-top: 30rpx;
  12. background: #FBFDFC;
  13. border-radius: 24rpx;
  14. display: flex;
  15. flex-direction: column;
  16. }
  17. .section-top {
  18. margin: 0 auto;
  19. width: 672rpx;
  20. position: relative;
  21. }
  22. .tips {
  23. position: absolute;
  24. top: 40rpx;
  25. left: 40rpx;
  26. right: 40rpx;
  27. width: 592rpx;
  28. line-height: 40rpx;
  29. color: #5A5A5A;
  30. font-size: 24rpx;
  31. }
  32. .section text {
  33. margin: 0 30rpx;
  34. font-size: 32rpx;
  35. line-height: 48rpx;
  36. color: #333333;
  37. }
  38. .radio-view {
  39. width: 100vw;
  40. display: flex;
  41. margin-top: 30rpx;
  42. flex-direction: row;
  43. align-items: center;
  44. }
  45. .radio-icon {
  46. width: 36rpx;
  47. margin-left: 10rpx;
  48. height: 36rpx;
  49. }
  50. .radio-title {
  51. font-size: 28rpx;
  52. margin: 0 20rpx;
  53. }
  54. .title {
  55. text-align: center;
  56. font-size: 38rpx;
  57. color: #0BC3AA;
  58. font-weight: bold;
  59. margin: auto;
  60. margin-top: 10rpx;
  61. }
  62. .title_1 {
  63. width: 100%;
  64. text-align: center;
  65. color: #333333;
  66. font-size: 32rpx;
  67. margin: 60rpx auto auto;
  68. }
  69. /* 标题样式 */
  70. /* .title {
  71. font-size: 18px;
  72. font-weight: bold;
  73. margin-bottom: 10px;
  74. } */
  75. /* 输入框和选择器的样式 */
  76. .input-area,
  77. .picker-area {
  78. margin-bottom: 20px;
  79. }
  80. .input-area input,
  81. .picker-area picker {
  82. width: 100%;
  83. padding: 10px;
  84. box-sizing: border-box;
  85. /* 包括内边距和边框在总宽度内 */
  86. border: 1px solid #ccc;
  87. border-radius: 4px;
  88. font-size: 16px;
  89. }
  90. /* 特别是针对选择器的样式(微信小程序中没有原生的<picker>标签,这里仅作为示例) */
  91. /* 实际上,您可能会使用微信小程序的picker组件,并通过自定义类来样式化它周围的容器 */
  92. .picker-container {
  93. position: relative;
  94. }
  95. .picker-container picker {
  96. /* 注意:这里的picker是假设的,微信小程序中picker组件的样式需要通过其他方式控制,如自定义模态框 */
  97. /* 实际上,您可能不需要直接对picker进行样式化,而是样式化触发picker的按钮或容器 */
  98. }
  99. /* 提交按钮的样式 */
  100. .submit-btn {
  101. display: block;
  102. width: 100%;
  103. padding: 10px;
  104. background-color: #007aff;
  105. color: white;
  106. font-size: 16px;
  107. border: none;
  108. border-radius: 4px;
  109. cursor: pointer;
  110. margin-top: 20px;
  111. }
  112. .submit-btn:hover {
  113. /* 注意:微信小程序中不支持:hover伪类,这里仅作为Web开发的参考 */
  114. background-color: #0056b3;
  115. }
  116. /* 如果有多选问题,可能需要为checkbox或radio列表添加样式 */
  117. .checkbox-group,
  118. .radio-group {
  119. margin-bottom: 20px;
  120. }
  121. .checkbox-group label,
  122. .radio-group label {
  123. display: block;
  124. margin-bottom: 10px;
  125. }
  126. .full-width-textarea {
  127. width: 690rpx;
  128. background: #F5F7FB;
  129. /* 使textarea宽度占满其父容器的宽度 */
  130. border: none;
  131. border-radius: 2px;
  132. /* 可选:添加轻微的边框圆角 */
  133. padding: 10px;
  134. margin: auto;
  135. font-size: 28rpx;
  136. line-height: 48rpx;
  137. margin-top: 30rpx;
  138. /* 可选:添加内边距,让文本不紧贴边框 */
  139. box-sizing: border-box;
  140. /* 确保padding不会增加textarea的总宽度 */
  141. }
  142. .custom-input {
  143. width: 100%;
  144. /* 使input宽度占满其父容器的宽度 */
  145. border: none;
  146. /* 移除默认的边框 */
  147. border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  148. /* 只设置底部边框为半透明细线 */
  149. padding: 10px 0;
  150. /* 只在垂直方向上添加内边距,避免底部边框被内边距遮挡 */
  151. background-color: transparent;
  152. /* 移除背景色 */
  153. box-shadow: none;
  154. /* 移除可能的阴影效果(如果默认有的话) */
  155. }
  156. input {
  157. width: calc(100% - 200rpx);
  158. margin: 15rpx auto auto;
  159. padding: 0 20rpx;
  160. line-height: 70rpx;
  161. border-radius: 5rpx;
  162. color: #333333;
  163. font-size: 28rpx;
  164. height: 70rpx;
  165. border-bottom: 1rpx solid #666666;
  166. }
  167. .commit-btn {
  168. line-height: 90rpx;
  169. border-radius: 45rpx;
  170. text-align: center;
  171. width: calc(100vw - 120rpx);
  172. display: block;
  173. color: #FFFFFF;
  174. font-size: 32rpx;
  175. margin: 80rpx auto 80rpx auto;
  176. background: linear-gradient(278deg, #0ABCA4 0%, rgba(11, 195, 170, 0.8) 100%);
  177. }
  178. .custom-radio-class {
  179. /* width: calc(100vw - 40rpx) !important; */
  180. /* padding: 15rpx 20rpx; */
  181. /* display: flex;
  182. align-items: flex-start !important;
  183. flex-direction: row; */
  184. }
  185. .van-radio__label,
  186. .van-checkbox__label {
  187. flex: 1;
  188. margin-right: 30rpx;
  189. }
  190. .van-radio-group {
  191. /* margin-top: 15rpx; */
  192. margin-bottom: 15tpx;
  193. }
  194. .bottom-view {
  195. display: flex;
  196. flex-direction: column;
  197. align-items: center;
  198. width: calc(100% - 60rpx);
  199. margin: 60rpx auto 30rpx auto;
  200. }