health-news.page.scss 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. ion-list {
  2. margin-top: 20px;
  3. }
  4. ion-item {
  5. --background: #f9f9f9;
  6. --border-color: #ddd;
  7. --padding-start: 16px;
  8. --inner-padding-end: 16px;
  9. --min-height: 80px;
  10. border-radius: 8px;
  11. box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  12. margin-bottom: 16px;
  13. }
  14. ion-item ion-label h2 {
  15. font-weight: bold;
  16. margin-bottom: 4px;
  17. font-size: 1.2em;
  18. color: #333;
  19. }
  20. ion-item ion-label p {
  21. font-size: 0.9em;
  22. color: #666;
  23. }
  24. ion-icon {
  25. font-size: 24px;
  26. margin-right: 16px;
  27. color: #007aff;
  28. }
  29. ion-card-content div {
  30. white-space: pre-wrap; /* 确保换行符生效 */
  31. line-height: 1.6; /* 设置行高 */
  32. }
  33. ion-card-content ul {
  34. list-style-type: disc; /* 默认项目符号 */
  35. padding-left: 20px; /* 缩进列表项 */
  36. }
  37. ion-card-content li {
  38. margin-bottom: 8px; /* 列表项之间的间距 */
  39. }
  40. ion-card-content p {
  41. margin-bottom: 16px; /* 段落之间的间距 */
  42. }
  43. ion-card-content strong {
  44. font-weight: bold; /* 加粗文本 */
  45. color: #007aff;
  46. }
  47. ion-card-content h3 {
  48. font-weight: bold;
  49. margin-bottom: 8px;
  50. font-size: 1.1em;
  51. color: #333;
  52. }
  53. ion-card-content article {
  54. margin-bottom: 16px;
  55. }
  56. ion-card-content section {
  57. margin-bottom: 20px;
  58. }
  59. ion-card {
  60. margin-bottom: 16px;
  61. border-radius: 8px;
  62. box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  63. }
  64. ion-card-header {
  65. background-color: #f9f9f9;
  66. padding: 16px;
  67. border-bottom: 1px solid #ddd;
  68. }
  69. ion-card-header ion-card-subtitle {
  70. font-size: 1.2em;
  71. font-weight: bold;
  72. color: #333;
  73. }
  74. ion-card-content {
  75. padding: 16px;
  76. }