tab1.page.scss 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. ion-searchbar {
  2. --background: #f4f4f4;
  3. margin: 10px;
  4. border-radius: 10px;
  5. }
  6. .info-box {
  7. text-align: center;
  8. font-weight: bold;
  9. }
  10. .info-value {
  11. text-align: center;
  12. margin-top: 10px;
  13. font-size: 1.2em;
  14. color: #888;
  15. }
  16. .wave-container {
  17. display: flex;
  18. justify-content: center;
  19. align-items: center;
  20. height: 200px;
  21. position: relative;
  22. margin: 20px 0;
  23. }
  24. .wave-circle {
  25. width: 150px;
  26. height: 150px;
  27. background: radial-gradient(circle at 50% 50%, #6ec1e4, #378ab7);
  28. border-radius: 50%;
  29. position: relative;
  30. overflow: hidden;
  31. display: flex;
  32. justify-content: center;
  33. align-items: center;
  34. box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  35. }
  36. .wave {
  37. position: absolute;
  38. width: 200%;
  39. height: 200%;
  40. top: -75%;
  41. left: -50%;
  42. background: rgba(255, 255, 255, 0.4);
  43. border-radius: 45%;
  44. animation: wave 4s infinite linear;
  45. }
  46. @keyframes wave {
  47. 0% {
  48. transform: rotate(0deg);
  49. }
  50. 100% {
  51. transform: rotate(360deg);
  52. }
  53. }
  54. // 每日小习惯
  55. .daily-habit {
  56. display: flex;
  57. align-items: center;
  58. margin: 20px 0;
  59. }
  60. .daily-habit-line {
  61. width: 5px;
  62. height: 20px;
  63. background-color: green;
  64. margin-right: 10px;
  65. }
  66. .daily-habit-text {
  67. font-size: 1.2em;
  68. color: #666;
  69. }
  70. .habit-button {
  71. width: 60px;
  72. height: 60px;
  73. display: flex;
  74. justify-content: center;
  75. align-items: center;
  76. font-size: 0.8em;
  77. margin: 10px 0;
  78. background-color: #fff;
  79. border: 2px solid #000;
  80. border-radius: 50%;
  81. transition: background-color 0.3s;
  82. }
  83. .habit-button ion-icon {
  84. font-size: 1.5em;
  85. }
  86. .habit-label {
  87. text-align: center;
  88. font-size: 0.8em;
  89. color: #666;
  90. margin-top: 5px;
  91. }
  92. .habit-button.blue {
  93. background-color: #007bff; /* 蓝色背景 */
  94. }
  95. .habit-button.white {
  96. background-color: #fff; /* 白色背景 */
  97. }
  98. // .habit-button div {
  99. // font-size: 0.8em;
  100. // margin-top: 5px;
  101. // }
  102. .habit-button:active {
  103. transform: scale(0.9);
  104. box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  105. }