sleepEvaluation.wxss 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. /* pages/survey/survey.wxss */
  2. /* 通用样式 */
  3. .container {
  4. width: 100%;
  5. padding: 20rpx;
  6. text-align: left;
  7. }
  8. .section {
  9. margin-bottom: 15rpx;
  10. margin-top: 25rpx;
  11. }
  12. .section_age {
  13. margin-bottom: 15rpx;
  14. margin-top: 25rpx;
  15. margin-right:355rpx;
  16. }
  17. .section_stayExper {
  18. margin-bottom: 15rpx;
  19. margin-top: 25rpx;
  20. margin-right:60rpx;
  21. }
  22. .title {
  23. text-align: center;
  24. font-size: 38rpx;
  25. color: #000000;
  26. font-weight: bold;
  27. margin: auto;
  28. margin-top: 10rpx;
  29. }
  30. .title_1 {
  31. text-align: left;
  32. font-size: 30rpx;
  33. color: #000000;
  34. font-weight: bold;
  35. margin: auto;
  36. margin-top: 10rpx;
  37. }
  38. /* 标题样式 */
  39. /* .title {
  40. font-size: 18px;
  41. font-weight: bold;
  42. margin-bottom: 10px;
  43. } */
  44. /* 输入框和选择器的样式 */
  45. .input-area, .picker-area {
  46. margin-bottom: 20px;
  47. }
  48. .input-area input, .picker-area picker {
  49. width: 100%;
  50. padding: 10px;
  51. box-sizing: border-box; /* 包括内边距和边框在总宽度内 */
  52. border: 1px solid #ccc;
  53. border-radius: 4px;
  54. font-size: 16px;
  55. }
  56. /* 特别是针对选择器的样式(微信小程序中没有原生的<picker>标签,这里仅作为示例) */
  57. /* 实际上,您可能会使用微信小程序的picker组件,并通过自定义类来样式化它周围的容器 */
  58. .picker-container {
  59. position: relative;
  60. }
  61. .picker-container picker {
  62. /* 注意:这里的picker是假设的,微信小程序中picker组件的样式需要通过其他方式控制,如自定义模态框 */
  63. /* 实际上,您可能不需要直接对picker进行样式化,而是样式化触发picker的按钮或容器 */
  64. }
  65. /* 提交按钮的样式 */
  66. .submit-btn {
  67. display: block;
  68. width: 100%;
  69. padding: 10px;
  70. background-color: #007aff;
  71. color: white;
  72. font-size: 16px;
  73. border: none;
  74. border-radius: 4px;
  75. cursor: pointer;
  76. margin-top: 20px;
  77. }
  78. .submit-btn:hover { /* 注意:微信小程序中不支持:hover伪类,这里仅作为Web开发的参考 */
  79. background-color: #0056b3;
  80. }
  81. /* 如果有多选问题,可能需要为checkbox或radio列表添加样式 */
  82. .checkbox-group, .radio-group {
  83. margin-bottom: 20px;
  84. }
  85. .checkbox-group label, .radio-group label {
  86. display: block;
  87. margin-bottom: 10px;
  88. }
  89. .full-width-textarea {
  90. width: 100%; /* 使textarea宽度占满其父容器的宽度 */
  91. border: 1px solid rgba(0, 0, 0, 0.1);
  92. border-radius: 2px; /* 可选:添加轻微的边框圆角 */
  93. padding: 10px; /* 可选:添加内边距,让文本不紧贴边框 */
  94. box-sizing: border-box; /* 确保padding不会增加textarea的总宽度 */
  95. }
  96. .custom-input {
  97. width: 100%; /* 使input宽度占满其父容器的宽度 */
  98. border: none; /* 移除默认的边框 */
  99. border-bottom: 1px solid rgba(0, 0, 0, 0.1); /* 只设置底部边框为半透明细线 */
  100. padding: 10px 0; /* 只在垂直方向上添加内边距,避免底部边框被内边距遮挡 */
  101. background-color: transparent; /* 移除背景色 */
  102. box-shadow: none; /* 移除可能的阴影效果(如果默认有的话) */
  103. }