generate-option.component.scss 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246
  1. ion-header {
  2. background-color: #f8f8f8;
  3. padding: 10px;
  4. padding-top: 30px;
  5. color: black;
  6. height: 60px;
  7. box-shadow: none;
  8. .header-container {
  9. display: flex;
  10. align-items: center;
  11. justify-content: center;
  12. position: relative;
  13. height: 100%;
  14. /* 确保容器占满整个 header 高度 */
  15. padding: 10px;
  16. }
  17. .back-icon {
  18. position: absolute;
  19. left: 10px;
  20. /* 图标距左侧的距离 */
  21. cursor: pointer;
  22. }
  23. .header-title {
  24. font-size: 18px;
  25. /* 根据需要调整字体大小 */
  26. font-weight: bold;
  27. /* 可选,加粗字体 */
  28. margin: 0;
  29. }
  30. }
  31. ion-content {
  32. --background: #f8f8f8 !important;
  33. --color: black;
  34. //以下为性别选择框的样式
  35. #gender {
  36. width: 95%;
  37. margin: 15px auto;
  38. text-align: center;
  39. background-color: #f0a5d7;
  40. border-radius: 15px;
  41. padding: 10px;
  42. }
  43. #gender ion-card {
  44. display: inline-block;
  45. width: 46%;
  46. margin: 0 2%;
  47. border-radius: 15px;
  48. }
  49. // 以下为年龄选择框的样式
  50. #age {
  51. width: 95%;
  52. margin: 15px auto;
  53. text-align: center;
  54. background-color: #85e2ff;
  55. border-radius: 15px;
  56. padding: 10px;
  57. }
  58. #age ion-card {
  59. display: inline-block;
  60. width: 22%;
  61. margin: 0 1%;
  62. border-radius: 15px;
  63. }
  64. //以下为身高选择框的样式
  65. #height {
  66. width: 95%;
  67. margin: 15px auto;
  68. text-align: center;
  69. background-color: #b8a5f0;
  70. border-radius: 15px;
  71. padding: 10px;
  72. }
  73. #height ion-card {
  74. display: inline-block;
  75. width: 18%;
  76. margin: 0 1%;
  77. border-radius: 15px;
  78. }
  79. //以下为体重选择框的样式
  80. #weight {
  81. width: 95%;
  82. margin: 15px auto;
  83. text-align: center;
  84. background-color: #fafdad;
  85. border-radius: 15px;
  86. padding: 10px;
  87. }
  88. #weight ion-card {
  89. display: inline-block;
  90. width: 18%;
  91. margin: 0 1%;
  92. border-radius: 15px;
  93. }
  94. //以下为季节选择框的样式
  95. #season {
  96. width: 95%;
  97. margin: 15px auto;
  98. text-align: center;
  99. background-color: #ffd8a1;
  100. border-radius: 15px;
  101. padding: 10px;
  102. }
  103. #season ion-card {
  104. display: inline-block;
  105. width: 25%;
  106. margin: 0;
  107. }
  108. //以下为风格输入框的样式
  109. #styleDesc {
  110. width: 95%;
  111. margin: 15px auto;
  112. }
  113. ion-textarea {
  114. --border-radius: 15px;
  115. --background: #70e7ab;
  116. width: 100%;
  117. @font-face {
  118. font-family: 'handWritten';
  119. src: url(/assets/fonts/handWritten.woff);
  120. }
  121. font-family: 'handWritten';
  122. font-size: 22px;
  123. }
  124. #helper-text {
  125. font-family: 'handWritten';
  126. font-size: 14px;
  127. color: #999;
  128. }
  129. //以下为其他可选选项的样式
  130. #option-prompt {
  131. display: none;
  132. }
  133. .scroll-container {
  134. width: 95%;
  135. margin: 15px auto;
  136. padding: 10px;
  137. border-radius: 15px;
  138. }
  139. .scroll-x {
  140. overflow-x: auto;
  141. scrollbar-width: none;
  142. white-space: nowrap;
  143. }
  144. .scroll-x ion-card {
  145. height: 150px;
  146. width: 150px;
  147. border-radius: 20px;
  148. display: inline-block;
  149. ion-img {
  150. width: 100%;
  151. height: 100%;
  152. }
  153. }
  154. //以下为区域风格选择框的样式
  155. #areaStyle {
  156. background-color: #affffc;
  157. }
  158. //以下为场景功能选择框的样式
  159. #function {
  160. background-color: #ffb8fd;
  161. }
  162. //以下为设计理念选择框的样式
  163. #designIdea {
  164. background-color: #f3ffb8;
  165. }
  166. //以下为艺术风格选择框的样式
  167. #artStyle {
  168. background-color: #ffdab8;
  169. }
  170. }
  171. #container {
  172. position: absolute;
  173. width: 100%;
  174. height: 100%;
  175. background-color: rgba(0, 0, 0, 0.5);
  176. display: none;
  177. }
  178. #popover-container {
  179. position: absolute;
  180. width: 70%;
  181. height: 30%;
  182. top: 35%;
  183. left: 15%;
  184. background-color: white;
  185. display: grid;
  186. place-items: center;
  187. color: black;
  188. border-radius: 15px;
  189. }
  190. .checked {
  191. width: 100%;
  192. height: 100%;
  193. position: absolute;
  194. z-index: 20;
  195. top: 0;
  196. }
  197. .title {
  198. @font-face {
  199. font-family: 'title-font';
  200. src: url(/assets/fonts/title-font.TTF);
  201. }
  202. font-family: 'title-font';
  203. font-size: larger;
  204. margin:0;
  205. text-align: center;
  206. }
  207. .keyword {
  208. font-family: 'handWritten';
  209. font-size: larger;
  210. text-align: center;
  211. margin: 5px;
  212. }