tab2.page.scss 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. $primary-color: #3880ff; // 主色调
  2. $secondary-color: #f4f4f4; // 辅助色调
  3. $accent-color: #ff4081; // 强调色
  4. $font-family: 'Helvetica Neue', Arial, sans-serif;
  5. ion-header {
  6. background-color: $primary-color;
  7. color: white;
  8. ion-toolbar {
  9. display: flex;
  10. justify-content: center;
  11. align-items: center;
  12. ion-title {
  13. font-size: 24px;
  14. font-weight: bold;
  15. }
  16. }
  17. }
  18. ion-content {
  19. padding: 16px;
  20. background-color: $secondary-color;
  21. .custom-segment {
  22. display: flex;
  23. justify-content: space-around;
  24. margin-bottom: 16px;
  25. .nav-button {
  26. flex: 1;
  27. text-align: center;
  28. padding: 10px;
  29. font-size: 16px;
  30. color: $primary-color;
  31. &.activated {
  32. background-color: $primary-color;
  33. color: white;
  34. }
  35. }
  36. }
  37. .info-section {
  38. background-color: white;
  39. border-radius: 8px;
  40. padding: 16px;
  41. box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  42. margin-bottom: 16px;
  43. .input-row {
  44. display: flex;
  45. justify-content: space-between;
  46. margin-bottom: 16px;
  47. .input-group {
  48. flex: 1;
  49. margin-right: 8px;
  50. &:last-child {
  51. margin-right: 0;
  52. }
  53. label {
  54. font-weight: bold;
  55. margin-bottom: 4px;
  56. display: block;
  57. }
  58. .input-box {
  59. width: 100%;
  60. padding: 8px;
  61. border: 1px solid #ccc;
  62. border-radius: 4px;
  63. }
  64. .unit {
  65. font-size: 14px;
  66. margin-left: 4px;
  67. }
  68. }
  69. }
  70. .gender-section {
  71. display: flex;
  72. align-items: center;
  73. .gender-option {
  74. padding: 8px 12px;
  75. border: 1px solid #ccc;
  76. border-radius: 4px;
  77. margin-right: 8px;
  78. cursor: pointer;
  79. &.selected {
  80. background-color: $primary-color;
  81. color: white;
  82. }
  83. }
  84. }
  85. }
  86. .textarea-section {
  87. background-color: white;
  88. border-radius: 8px;
  89. padding: 16px;
  90. box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  91. margin-bottom: 16px;
  92. .textarea-input {
  93. width: 100%;
  94. height: 120px;
  95. border: 1px solid #ccc;
  96. border-radius: 4px;
  97. padding: 8px;
  98. resize: none;
  99. }
  100. }
  101. .analysis-button {
  102. width: 100%;
  103. margin-top: 16px;
  104. background-color: $primary-color;
  105. color: white;
  106. padding: 12px;
  107. border-radius: 4px;
  108. font-size: 16px;
  109. transition: background-color 0.3s;
  110. &.generating {
  111. background-color: $accent-color;
  112. }
  113. &:hover {
  114. background-color: darken($primary-color, 10%);
  115. }
  116. }
  117. .bigbox1 {
  118. background-color: white;
  119. border-radius: 8px;
  120. padding: 16px;
  121. box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  122. margin-top: 16px;
  123. .content-style {
  124. font-size: 16px;
  125. line-height: 1.5;
  126. }
  127. }
  128. .center-button {
  129. display: flex;
  130. justify-content: center;
  131. align-items: flex-start;
  132. width: 100%;
  133. height: 100%;
  134. text-align: center;
  135. padding-top: 20px; /* 减小顶部间距,缩短按钮与顶部的距离 */
  136. margin-bottom: 10px; /* 调整按钮之间的间距,减少底部间距 */
  137. }
  138. /* 对按钮进行样式调整 */
  139. .center-button ion-button {
  140. font-size: 18px;
  141. padding: 14px 24px;
  142. border-radius: 8px;
  143. }
  144. }