tab1.page.scss 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. .swiper-container {
  2. width: 100%;
  3. height: 300px; /* 设置轮播图高度 */
  4. }
  5. .ion-header {
  6. background-color: rgb(255, 255, 255); /* 设置ion-header的背景色为透明 */
  7. width: 410px;
  8. height: 50px;
  9. margin-left: 6px;
  10. }
  11. .ion-toolbar {
  12. //background-color: #2e91dc; /* 设置ion-toolbar的背景色为透明 */
  13. width: 410px;
  14. height: 50px;
  15. }
  16. .ion-header-title{
  17. background-color: #71509e; /* 设置ion-toolbar的背景色为透明 */
  18. width: 410px;
  19. height: 57px;
  20. }
  21. .swiper-wrapper {
  22. width: 100%;
  23. display: flex;
  24. }
  25. .swiper-slide {
  26. flex: 0 0 100%; /* 设置每个轮播项占据横向空间的比例 */
  27. padding: 10px; /* 设置内边距 */
  28. }
  29. .arrow-button {
  30. position: absolute;
  31. top: 50%;
  32. transform: translateY(-50%);
  33. width: 40px;
  34. height: 40px;
  35. border-radius: 50%;
  36. background-color: rgba(225, 215, 215, 0.5);
  37. color: rgb(44, 40, 40);
  38. font-size: 20px;
  39. text-align: center;
  40. line-height: 40px;
  41. cursor: pointer;
  42. }
  43. .prev-button {
  44. left: 10px;
  45. }
  46. .next-button {
  47. right: 10px;
  48. }
  49. ion-card {
  50. margin: 20px;
  51. }
  52. .slide-img {
  53. width: 100%;
  54. height: auto;
  55. border: 2px solid #2e91dc; /* 设置边框样式 */
  56. border-radius: 10px; /* 设置边框圆角 */
  57. }
  58. ion-card-header {
  59. display: flex;
  60. //align-items:;
  61. }
  62. ion-card-title {
  63. font-weight:normal;
  64. }
  65. ion-card-subtitle {
  66. color: gray;
  67. }
  68. .custom-subtitle {
  69. position: absolute;
  70. bottom: 0;
  71. right: 0;
  72. padding: 5px;
  73. color: white;
  74. }
  75. ion-card {
  76. position: relative;
  77. }
  78. .lvyou-img {
  79. width: 60px; /* 调整头像宽度 */
  80. height: 60px; /* 调整头像高度 */
  81. border-radius: 50%; /* 将头像设置为圆形 */
  82. margin-right: 10px; /* 调整头像与作者昵称的间距 */
  83. }
  84. ion-card-title {
  85. font-weight: bold;
  86. }
  87. ion-card-subtitle {
  88. color: gray;
  89. }
  90. .custom-button {
  91. display: flex;
  92. flex-direction: column;
  93. justify-content: center;
  94. align-items: center;
  95. height: 100%;
  96. }
  97. .custom-button ion-icon {
  98. font-size: 24px; /* 调整图标大小 */
  99. }
  100. .custom-button ion-label {
  101. margin-top: 5px; /* 调整文字与图标之间的间距 */
  102. }