tab1.page_20241228121121.scss 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. /* 整体ion-content背景 */
  2. ion-content {
  3. --background: url('https://nova-cloud.obs.cn-south-1.myhuaweicloud.com/storage/aigc/imagine/4RHC2Jhp2l-0.png') no-repeat fixed!important;
  4. --background-size: cover; /* 使背景图片覆盖整个屏幕 */
  5. }
  6. /* 设置卡片的样式 */
  7. ion-card {
  8. margin: 10px; /* 卡片之间的间距 */
  9. border-radius: 10px; /* 圆角效果 */
  10. box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* 阴影效果 */
  11. }
  12. ion-card-title {
  13. font-weight:bold;
  14. }
  15. ion-button {
  16. font-size: 15px; /* 增大字体大小 */
  17. margin-top: 8px; /* 上间距,仅在需要时添加 */
  18. text-transform: none; /* 按钮文字不变形 */
  19. height: 35px;
  20. flex: 1; /* 每个按钮等分空间 */
  21. margin: 1 7px; /* 按钮之间的间距 */
  22. color: rgb(42, 50, 77);
  23. }
  24. /* 按钮颜色为暖色系 */
  25. .custom-button {
  26. --background: #f9dd94; /* 浅粉色,作为示例的暖色系 */
  27. --color: #FFFFFF; /* 白色文本 */
  28. font-size: 15px; /* 增大字体大小 */
  29. margin-top: 8px; /* 上间距,仅在需要时添加 */
  30. text-transform: none; /* 按钮文字不变形 */
  31. height: 40px; /* 按钮高度 */
  32. }
  33. /* 设置搜索框的样式 */
  34. ion-searchbar {
  35. padding: 10px; /* 内边距 */
  36. border-radius: 4px; /* 圆角 */
  37. font-size: 16px; /* 字体大小 */
  38. }
  39. /* 设置用户评价星星的样式 */
  40. ion-icon[name="star"] {
  41. color: gold; /* 星星颜色 */
  42. font-size: 1.2rem; /* 星星大小 */
  43. }
  44. ion-card-header {
  45. --background: #ffffff; /* 使用CSS变量设置背景颜色为白色 */
  46. /* 或者,如果你不使用CSS变量,可以直接使用background-color属性 */
  47. position: relative; /* 设置相对定位 */
  48. }
  49. /* 实际上,ion-toolbar默认会继承ion-card-header的样式,但你可以显式地设置它以确保一致性 */
  50. ion-toolbar {
  51. --background: #ffffff; /* 同样使用CSS变量,但通常不是必需的 */
  52. }
  53. /* 确保按钮的文本颜色是白色 */
  54. .button-text {
  55. color: #ffffff !important; /* 使用!important可以确保这个规则具有更高的优先级,但通常不推荐,除非确实需要 */
  56. }
  57. ion-avatar {
  58. width: 50px; /* 或者你需要的任何尺寸 */
  59. height: 50px; /* 保持宽高一致,避免变形 */
  60. }
  61. ion-avatar img {
  62. width: 100%; /* 让图片填满avatar */
  63. height: auto; /* 保持图片比例 */
  64. }
  65. .header-image {
  66. width: 100%;
  67. height: auto; /* 保持图片比例 */
  68. border-radius: 50%; /* 可选:将图片设置为圆形 */
  69. }
  70. .button-toolbar {
  71. display: flex;
  72. justify-content: space-between; /* 均匀分布按钮 */
  73. background-color: transparent; /* 背景透明 */
  74. }
  75. .button-container {
  76. display: flex;
  77. width: 100%; /* 使按钮容器占满整个宽度 */
  78. background-color: transparent; /* 背景透明 */
  79. }
  80. ion-item {
  81. background: rgba(18, 10, 0, 0.01); /* 列表项背景为半透明白色 */
  82. margin-bottom: 10px; /* 列表项之间的间距 */
  83. padding: 0.5px; /* 内边距 */
  84. }