tab1.page.scss 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  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: 50%;
  44. animation: wave 4s infinite linear;
  45. }
  46. .wave-inner {
  47. width: 120px;
  48. height: 120px;
  49. background-color: #3f51b5;
  50. border-radius: 50%;
  51. display: flex;
  52. justify-content: center;
  53. align-items: center;
  54. cursor: pointer;
  55. transition: transform 0.3s ease-in-out;
  56. color: #ffffff;
  57. font-size: 1.2rem;
  58. font-weight: bold;
  59. text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
  60. }
  61. /* @keyframes wave {
  62. 0% {
  63. transform: translateX(-50%) translateY(-50%) rotate(0deg);
  64. }
  65. 100% {
  66. transform: translateX(-50%) translateY(-50%) rotate(360deg);
  67. }
  68. } */
  69. // 每日小习惯
  70. .daily-habit {
  71. display: flex;
  72. align-items: center;
  73. margin: 20px 0;
  74. }
  75. .daily-habit-line {
  76. width: 5px;
  77. height: 20px;
  78. background-color: green;
  79. margin-right: 10px;
  80. }
  81. .daily-habit-text {
  82. font-size: 1.2em;
  83. color: #666;
  84. }
  85. .habit-button {
  86. width: 60px;
  87. height: 60px;
  88. display: flex;
  89. justify-content: center;
  90. align-items: center;
  91. font-size: 0.8em;
  92. margin: 10px 0;
  93. background-color: #fff;
  94. border: 2px solid #000;
  95. border-radius: 50%;
  96. transition: background-color 0.3s;
  97. }
  98. .habit-button ion-icon {
  99. font-size: 1.5em;
  100. }
  101. .habit-label {
  102. text-align: center;
  103. font-size: 0.8em;
  104. color: #666;
  105. margin-top: 5px;
  106. }
  107. .habit-button.blue {
  108. background-color: #007bff; /* 蓝色背景 */
  109. }
  110. .habit-button.white {
  111. background-color: #fff; /* 白色背景 */
  112. }
  113. // .habit-button div {
  114. // font-size: 0.8em;
  115. // margin-top: 5px;
  116. // }
  117. .habit-button:active {
  118. transform: scale(0.9);
  119. box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  120. }