me.component.scss 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. ion-content {
  2. height: calc(100vh - 121px) !important;
  3. }
  4. ion-item {
  5. ion-icon {
  6. margin-right: 9px;
  7. }
  8. font-size: 0.9rem;
  9. }
  10. .foodContent {
  11. display: -webkit-box;
  12. -webkit-box-orient: vertical;
  13. -webkit-line-clamp: 2;
  14. overflow: hidden;
  15. text-overflow: ellipsis;
  16. }
  17. .myList {
  18. padding: 0%;
  19. ion-list {
  20. margin: 0%;
  21. }
  22. }
  23. .reminder-item {
  24. padding: 0%;
  25. ion-list {
  26. margin: 0%;
  27. }
  28. }
  29. .roleCard {
  30. margin: 0px;
  31. }
  32. .metadata-end-wrapper {
  33. position: absolute;
  34. bottom: 0px;
  35. inset-inline-end: 6px;
  36. font-size: 0.6rem;
  37. display: flex;
  38. align-items: center;
  39. }
  40. .metadata-end-wrapper-science {
  41. position: absolute;
  42. top: 0px;
  43. inset-inline-end: 0px;
  44. font-size: 0.6rem;
  45. display: flex;
  46. align-items: center;
  47. }
  48. ion-avatar img {
  49. width: 50px;
  50. height: 50px;
  51. object-fit: cover; /* 保持图片的宽高比 */
  52. }
  53. .bold-text {
  54. font-weight: bold; /* 加粗 */
  55. color: black; /* 黑色 */
  56. }
  57. .small-orange-text {
  58. font-size: 0.8em; /* 小一号字体 */
  59. color: orange; /* 橘色 */
  60. }
  61. .bold-text2 {
  62. color: rgb(40, 133, 248); /* 黑色 */
  63. }
  64. .small-orange-text2 {
  65. font-size: 0.8em; /* 小一号字体 */
  66. color: rgb(145, 146, 146); /* 橘色 */
  67. }
  68. .small-red-text {
  69. font-size: 0.8em; /* 小一号字体 */
  70. color: red; /* 红色 */
  71. }
  72. .larger-font {
  73. font-size: 1.2em;}
  74. .item-with-padding {
  75. padding-left: 16px; /* 左侧内边距 */
  76. padding-right: 16px; /* 右侧内边距 */
  77. }
  78. .ion-padding{
  79. background-color: #eff6f7 !important;
  80. }
  81. .days-badge {
  82. /* 字体大小和粗细 */
  83. font-size: 0.8em; /* 字体小一号,这里使用了相对单位em,相对于父元素的字体大小 */
  84. font-weight: 300; /* 字体更细一些,这里使用了300,表示轻量字体 */
  85. /* 其他样式 */
  86. --background: rgb(255, 170, 0); /* 背景颜色 */
  87. --color: #fff; /* 文本颜色 */
  88. margin-left: auto; /* 使徽章与左侧内容保持尽可能远的距离 */
  89. margin-right: 16px; /* 右边距,可以根据需要调整 */
  90. padding: 4px 8px; /* 内边距,可以根据需要调整 */
  91. border-radius: 4px; /* 圆角,可以根据需要调整 */
  92. }
  93. .card-container {
  94. width: 100%;
  95. }
  96. .card {
  97. background-color: #fff;
  98. padding: 20px;
  99. border-radius: 10px;
  100. box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  101. }
  102. .profile {
  103. text-align: center;
  104. display: flex;
  105. flex-direction: column;
  106. align-items: center;
  107. }
  108. ion-avatar {
  109. margin-bottom: 10px; /* 头像和名字之间的间距 */
  110. }