tab2.page.scss 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. ion-header {
  2. color: #333; /* 中文字的颜色 */
  3. font-weight: bold; /* 按钮字体加粗 */
  4. box-shadow: none;
  5. }
  6. ion-toolbar {
  7. --background: #00ffcc; /* 设置工具栏背景色 */
  8. }
  9. ion-title {
  10. // font-size: 1.8em;
  11. font-weight: bold;
  12. color: white; /* 设置标题文字颜色 */
  13. }
  14. ion-content {
  15. --background: #f4f4f4; /* 设置页面背景色 */
  16. padding: 20px;
  17. font-family: 'Arial', sans-serif;
  18. }
  19. h1 {
  20. font-size: 1.6em;
  21. margin-bottom: 15px;
  22. color: #333;
  23. }
  24. ion-input,
  25. ion-textarea {
  26. width: 100%; /* 确保宽度相同 */
  27. --padding-start: 10px; /* 设置统一的左内边距 */
  28. --padding-end: 10px; /* 设置统一的右内边距 */
  29. --border-radius: 8px; /* 设置圆角 */
  30. --box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* 添加阴影效果 */
  31. font-size: 1em; /* 设置相同的字体大小 */
  32. padding: 12px; /* 统一内边距 */
  33. margin-bottom: 20px; /* 统一下边距 */
  34. }
  35. ion-input {
  36. --background: white;
  37. }
  38. ion-textarea {
  39. --background: white;
  40. }
  41. // ion-button {
  42. // --background: #33ffcc; /* 设置按钮背景色 */
  43. // --color: white; /* 设置按钮文字颜色 */
  44. // --border-radius: 8px; /* 设置按钮圆角 */
  45. // padding: 12px;
  46. // font-size: 1.1em;
  47. // margin-top: 20px;
  48. // transition: transform 0.2s ease-in-out;
  49. // }
  50. ion-button:hover {
  51. transform: scale(1.05); /* 按钮悬停效果 */
  52. }
  53. .content-style {
  54. background-color: #fff;
  55. padding: 20px;
  56. border-radius: 8px;
  57. box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* 添加卡片阴影效果 */
  58. margin-top: 20px;
  59. font-size: 1.2em;
  60. line-height: 1.6;
  61. }
  62. /* 为父容器添加 flex 布局 */
  63. .input-group-container {
  64. flex: 1; /* 确保每个容器占据相同的空间 */
  65. margin-right: 20px; /* 容器之间的间距 */
  66. }
  67. /* 为容器的父元素添加 flex 布局,使得两个 .input-group-container 并排显示 */
  68. .input-group-container-wrapper {
  69. display: flex; /* 设置父容器为弹性布局 */
  70. justify-content: space-between; /* 容器之间的间距均等 */
  71. gap: 20px; /* 控制容器之间的间隙 */
  72. }
  73. /* 调整每个 input-group-container 内部元素的布局 */
  74. .input-group-container h1 {
  75. margin-bottom: 10px; /* 减少标题和输入框之间的间距 */
  76. }
  77. /* 为 ion-input 添加一些宽度设置 */
  78. ion-input {
  79. width: 100%; /* 确保输入框宽度填满容器 */
  80. box-sizing: border-box; /* 让宽度计算包括内边距 */
  81. }
  82. ion-input,
  83. ion-textarea {
  84. --background: white;
  85. --box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1); /* 添加输入框阴影 */
  86. padding: 12px;
  87. font-size: 1em;
  88. }
  89. div {
  90. padding: 10px;
  91. background-color: #f8f8f8;
  92. border-radius: 8px;
  93. margin-top: 10px;
  94. font-size: 1.1em;
  95. color: #333;
  96. }
  97. @media (max-width: 767px) {
  98. ion-title {
  99. font-size: 1.4em;
  100. }
  101. h1 {
  102. font-size: 1.4em;
  103. }
  104. ion-input,
  105. ion-textarea {
  106. font-size: 1em;
  107. padding: 10px;
  108. }
  109. ion-button {
  110. font-size: 1em;
  111. padding: 10px;
  112. }
  113. }
  114. .response-container {
  115. background-color: rgba(255, 255, 255, 0.8); /* 半透明白色背景 */
  116. border-radius: 12px; /* 圆角边框 */
  117. padding: 16px; /* 内边距,确保内容不会贴边 */
  118. margin-top: 16px; /* 顶部间距 */
  119. margin-bottom: 16px; /* 底部间距 */
  120. box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 轻微的阴影效果 */
  121. overflow: hidden; /* 防止内容溢出圆角边界 */
  122. }
  123. /* 可选:如果需要让Markdown内容更好地展示 */
  124. .content-style {
  125. font-size: 16px; /* 设置字体大小 */
  126. line-height: 1.6; /* 行间距 */
  127. color: #333; /* 字体颜色 */
  128. }