tab1.page.scss 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. ion-header {
  2. background-color: #ffffff; // 设置头部背景色
  3. color: white; // 设置头部文字颜色
  4. }
  5. ion-title {
  6. flex: 1; // 使标题占据可用空间
  7. text-align: left; // 确保文字左对齐
  8. margin-left: 16px; // 左侧边距,可以根据需要调整
  9. margin-top: 5px;
  10. }
  11. ion-card {
  12. margin: 10px; // 设置卡片之间的间距
  13. border-radius: 10px; // 设置卡片圆角
  14. box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); // 添加阴影效果
  15. }
  16. ion-card-header {
  17. background-color: #d8e5fa; // 设置头部背景色
  18. color: white; // 设置头部文字颜色
  19. }
  20. ion-card-title {
  21. font-size: 1.2em; // 设置卡片标题字体大小
  22. font-weight: bold; // 设置卡片标题字体加粗
  23. }
  24. ion-item {
  25. --ion-item-background: transparent; // 设置列表项背景透明
  26. }
  27. ion-label {
  28. color: #333; // 设置标签文字颜色
  29. }
  30. ion-button {
  31. --background: #3880ff; // 设置按钮背景色
  32. --color: white; // 设置按钮文字颜色
  33. margin-top: 10px; // 设置按钮与上方内容的间距
  34. border-radius: 5px; // 设置按钮圆角
  35. }
  36. ion-avatar {
  37. border-radius: 50%; // 设置头像圆形
  38. width: 50px; // 设置头像宽度
  39. height: 50px; // 设置头像高度
  40. }
  41. h2 {
  42. font-size: 1em; // 设置二级标题字体大小
  43. margin: 0; // 去掉默认外边距
  44. }
  45. p {
  46. font-size: 0.9em; // 设置段落字体大小
  47. color: #666; // 设置段落文字颜色
  48. }
  49. ion-list {
  50. padding: 0; // 去掉列表内边距
  51. }
  52. ion-card-content {
  53. padding: 10px; // 设置卡片内容内边距
  54. }
  55. ion-content {
  56. --background: #f9f9f9; /* 设置内容背景色 */
  57. }
  58. swiper-container {
  59. width: 100%;
  60. height: 250px;
  61. }
  62. swiper-slide {
  63. display: flex;
  64. justify-content: center;
  65. align-items: center;
  66. padding: 10px;
  67. }
  68. .slide-card {
  69. width: 100%;
  70. height: 100%;
  71. margin: 0;
  72. img {
  73. width: 100%;
  74. height: 150px;
  75. object-fit: cover;
  76. }
  77. }
  78. .slide-content {
  79. padding: 10px;
  80. h3 {
  81. margin: 0;
  82. font-size: 1.2em;
  83. font-weight: bold;
  84. }
  85. p {
  86. margin: 5px 0;
  87. font-size: 0.9em;
  88. color: #666;
  89. }
  90. ion-badge {
  91. margin-top: 5px;
  92. }
  93. }