tab2.page.scss 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216
  1. .custom-toolbar {
  2. --background: rgba(255, 255, 255, 0.8); /* 使工具栏背景透明 */
  3. display: flex; /* 使用 Flexbox 布局 */
  4. justify-content: center; /* 水平居中 */
  5. align-items: center; /* 垂直居中 */
  6. padding: 0; /* 去掉默认内边距 */
  7. }
  8. .search-bar {
  9. padding: 10px;
  10. text-align: center;
  11. }
  12. .custom-searchbar {
  13. --background: #ffffff;
  14. --border-radius: 20px;
  15. box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  16. }
  17. .header {
  18. height: 80px;
  19. margin-top:-10px
  20. }
  21. .knowledge {
  22. height: 100%;
  23. width: 100%;
  24. }
  25. .content {
  26. margin-top: -5px;
  27. -height: 100%;
  28. width: 100%;
  29. }
  30. ion-card-header {
  31. font-size: 1.5em;
  32. height: auto;
  33. }
  34. ion-card {
  35. width: 100%;
  36. height: 100%;
  37. margin: 0;
  38. padding: 0;
  39. border-radius: 0;
  40. box-shadow: none;
  41. }
  42. ion-card-content {
  43. font-size: 1.2em;
  44. width: 100%;
  45. height: auto;
  46. }
  47. ion-segment-view {
  48. height: auto;
  49. width: 100%;
  50. }
  51. ion-segment-content {
  52. // display: flex;
  53. align-items: center;
  54. justify-content: center;
  55. }
  56. // ion-segment-content:nth-of-type(5) {
  57. // background: lightpink;
  58. // }
  59. // ion-segment-content:nth-of-type(2) {
  60. // background: lightblue;
  61. // }
  62. // ion-segment-content:nth-of-type(3) {
  63. // background: lightgreen;
  64. // }
  65. .share-modal{
  66. --height: 30vh;
  67. --width: 100%;
  68. --offset-y: 0; /* 确保模态窗口从底部弹出 */
  69. }
  70. // 底部弹窗(modal)样式
  71. .bottom-modal {
  72. --height: 100vh;
  73. --width: 100%;
  74. --offset-y: 0; /* 确保模态窗口从底部弹出 */
  75. .modal-content {
  76. padding-left: 20px;
  77. padding-right: 20px;
  78. }
  79. .image-container {
  80. display: flex;
  81. justify-content: center;
  82. margin-bottom: 16px;
  83. }
  84. .medicine-image {
  85. object-fit: cover;
  86. border-radius: 8px;
  87. }
  88. }
  89. // .tabs {
  90. // display: flex;
  91. // justify-content: space-around;
  92. // padding: 0px 0;
  93. // background-color: #f8f8f8;
  94. // }
  95. // .tabs ion-button {
  96. // flex: 1;
  97. // text-align: center;
  98. // // border: none;
  99. // --background: transparent;
  100. // --color-checked: #4caf50;
  101. // --indicator-color: #4caf50;
  102. // --color: #666;
  103. // --color-focused: #4caf50;
  104. // --color-hover: #4caf50;
  105. // --color-activated: #4caf50;
  106. // --color-selected: #4caf50;
  107. // }
  108. // .tab {
  109. // cursor: pointer;
  110. // padding: 0px 0px;
  111. // }
  112. // .tab.active {
  113. // color: rgb(81, 255, 0);
  114. // background-color: rgb(255, 255, 255);
  115. // }
  116. //
  117. // 轮播图区域
  118. .carousel-container {
  119. position: relative;
  120. max-width: 800px;
  121. margin: 0 auto;
  122. overflow: hidden;
  123. }
  124. .carousel {
  125. display: flex;
  126. transition: transform 0.5s ease-in-out;
  127. }
  128. .slide {
  129. min-width: 100%;
  130. }
  131. .slide img {
  132. width: 100%;
  133. height: auto;
  134. }
  135. .prev, .next {
  136. position: absolute;
  137. top: 50%;
  138. transform: translateY(-50%);
  139. background: rgba(0, 0, 0, 0.5);
  140. color: white;
  141. padding: 16px;
  142. border: none;
  143. cursor: pointer;
  144. }
  145. .prev {
  146. left: 0;
  147. }
  148. .next {
  149. right: 0;
  150. }
  151. .dots {
  152. position: absolute;
  153. bottom: 20px;
  154. left: 50%;
  155. transform: translateX(-50%);
  156. text-align: center;
  157. }
  158. .dot {
  159. display: inline-block;
  160. width: 10px;
  161. height: 10px;
  162. margin: 0 5px;
  163. background: #bbb;
  164. border-radius: 50%;
  165. cursor: pointer;
  166. }
  167. .dot.active {
  168. background: #717171;
  169. }
  170. //