123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284 |
- ion-toolbar {
- --background: #ffffff;
- --border-width: 0;
- --padding-top: 12px;
- --padding-bottom: 8px;
- }
-
- .user-info {
- text-align: center;
- padding: 0 16px;
-
- .user-name {
- font-weight: bold;
- font-size: 16px;
- color: #333;
- }
-
- .user-stats {
- font-size: 12px;
- color: #666;
-
- .secondary-stats {
- margin-top: 2px;
- font-size: 10px;
- }
- }
- }
-
- .challenge-badge {
- margin-right: 8px;
- font-size: 12px;
- font-weight: normal;
- border-radius: 12px;
- padding: 4px 8px;
- }
-
- .data-card {
- margin: 16px;
- border-radius: 16px;
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
-
- ion-card-header {
- padding-bottom: 0;
-
- ion-card-title {
- font-size: 24px;
-
- .warning-text {
- color: var(--ion-color-danger);
- display: flex;
- align-items: center;
-
- ion-icon {
- margin-right: 8px;
- }
- }
- }
- }
-
- ion-card-content {
- padding-top: 0;
-
- ion-button {
- --padding-start: 0;
- --padding-end: 0;
- font-size: 14px;
- color: var(--ion-color-medium);
- }
- }
- }
-
- .weight-card {
- margin: 16px;
- border-radius: 16px;
-
- .weight-content {
- display: flex;
- justify-content: space-between;
- align-items: center;
-
- .weight-value {
- font-size: 28px;
- font-weight: bold;
-
- small {
- font-size: 16px;
- font-weight: normal;
- color: var(--ion-color-medium);
- }
- }
-
- .weight-controls {
- display: flex;
- align-items: center;
-
- ion-select {
- width: 100px;
- max-width: 100%;
- --padding-start: 8px;
- --padding-end: 8px;
- }
-
- .chart-button {
- margin-right: 8px;
- }
- }
- }
- }
-
- .vip-card {
- margin: 16px;
- background: linear-gradient(135deg, #f8e3b8, #e8c275);
-
- ion-card-header {
- ion-card-title {
- display: flex;
- justify-content: space-between;
- align-items: center;
- color: #8a6d3b;
-
- .vip-action {
- font-size: 14px;
- font-weight: normal;
- }
- }
- }
-
- .vip-item, .vip-promo {
- display: flex;
- align-items: center;
- padding: 8px 0;
- border-bottom: 1px solid rgba(138, 109, 59, 0.2);
-
- ion-icon {
- margin-right: 8px;
- color: #8a6d3b;
- }
-
- .countdown {
- color: var(--ion-color-danger);
- font-weight: bold;
- animation: blink 1s infinite;
- }
- }
-
- .vip-promo {
- border-bottom: none;
- }
- }
-
- @keyframes blink {
- 0% { opacity: 1; }
- 50% { opacity: 0.5; }
- 100% { opacity: 1; }
- }
-
- .function-grid {
- padding: 0;
- margin: 16px;
-
- ion-row {
- border-bottom: 1px solid var(--ion-color-light-shade);
-
- &:last-child {
- border-bottom: none;
- }
- }
-
- ion-col {
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- padding: 16px 8px;
- text-align: center;
-
- ion-icon {
- font-size: 24px;
- margin-bottom: 8px;
- color: var(--ion-color-primary);
- transition: transform 0.2s ease;
- }
-
- div {
- font-size: 14px;
- color: #333;
- }
-
- &:active ion-icon {
- transform: scale(1.2);
- }
- &.diet-col {
- .grid-icon, div {
- color: var(--ion-color-primary); // 使用主色调
- opacity: 1; // 移除半透明效果
- }
- }
- }
-
- .disabled {
- opacity: 0.5;
-
- ion-icon, div {
- color: var(--ion-color-medium);
- }
- }
- }
-
- .fab-container {
- margin-bottom: 80px;
- }
-
- ion-fab-button {
- --box-shadow: 0 4px 12px rgba(var(--ion-color-primary-rgb), 0.3);
- }
-
- ion-fab-list {
- ion-fab-button {
- width: 120px;
- margin-bottom: 8px;
-
- ion-icon {
- font-size: 20px;
- }
-
- ion-label {
- margin-left: 8px;
- font-size: 12px;
- }
- }
- }
- ion-toolbar {
- --background: #f8f8f8;
- --border-width: 0;
- padding: 8px 12px;
-
- .header-avatar {
- width: 40px;
- height: 40px;
- margin-right: 12px;
- background: var(--ion-color-primary);
-
- .avatar-icon {
- font-size: 24px;
- color: white;
- }
- }
-
- .header-user-info {
- flex-grow: 1;
- text-align: left;
-
- .username {
- font-weight: bold;
- font-size: 16px;
- color: #333;
- margin-bottom: 2px;
- }
-
- .user-stats {
- font-size: 12px;
- color: #666;
-
- .secondary-stats {
- margin-top: 2px;
- font-size: 10px;
- }
- }
- }
-
- .challenge-badge {
- margin-right: 8px;
- font-size: 12px;
- font-weight: normal;
- border-radius: 12px;
- padding: 4px 8px;
- }
-
- .settings-btn {
- --padding-start: 0;
- --padding-end: 0;
- --color: #333;
- }
- }
|