123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173 |
- /* 页面整体布局 */
- ion-content {
- background-color: white; /* 将页面背景色改为白色 */
- padding: 16px;
- }
- /* 标题 */
- ion-toolbar {
- --background: white; /* 将工具栏背景色改为白色 */
- --color: black; /* 设置标题字体为黑色 */
- border-bottom: 1px solid #e1e1e1; /* 为工具栏底部添加轻微边框 */
- }
- ion-title {
- font-size: 22px;
- font-weight: bold;
- text-align: center;
- color: black; /* 标题字体颜色改为黑色 */
- }
- /* 用户信息区域 */
- .user-info {
- background-color: white;
- border-radius: 10px;
- padding: 16px;
- margin-bottom: 16px;
- box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
- }
- ion-avatar {
- width: 60px;
- height: 60px;
- margin-right: 16px;
- }
- ion-label h2 {
- font-size: 18px;
- font-weight: bold;
- color: #333; /* 用户名的字体颜色设置为深灰色 */
- margin: 0;
- }
- ion-label p {
- font-size: 14px;
- color: #888; /* 登录提示字体颜色设置为浅灰色 */
- margin-top: 4px;
- }
- .user-actions {
- display: flex;
- flex-direction: column;
- justify-content: center;
- align-items: flex-end;
- }
- .user-actions ion-button {
- margin-bottom: 8px;
- width: 100%;
- }
- /* 按钮样式 */
- ion-button {
- font-size: 14px;
- font-weight: bold;
- border-radius: 8px;
- }
- ion-button[color="primary"] {
- --background: #3880ff;
- --color: white;
- --border-radius: 10px;
- }
- ion-button[color="secondary"] {
- --background: #ffcd38;
- --color: white;
- }
- ion-button[color="tertiary"] {
- --background: #10dc60;
- --color: white;
- }
- ion-button[color="danger"] {
- --background: #eb445a;
- --color: white;
- }
- /* 锻炼计划和历史记录卡片 */
- ion-card {
- margin-bottom: 16px;
- border-radius: 10px;
- box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
- background-color: white;
- }
- ion-card-header {
- background-color: #3880ff;
- color: white;
- border-top-left-radius: 10px;
- border-top-right-radius: 10px;
- padding: 16px;
- }
- ion-card-title {
- font-size: 18px;
- font-weight: bold;
- margin: 0;
- }
- ion-card-content {
- padding: 16px;
- }
- ion-item {
- display: flex;
- align-items: center;
- justify-content: space-between;
- }
- ion-label {
- font-size: 16px;
- color: #333;
- }
- ion-button.expand-block {
- width: 100%;
- font-weight: bold;
- margin-top: 8px;
- }
- ion-item ion-button {
- border-radius: 8px;
- }
- /* 响应式调整 */
- @media (max-width: 767px) {
- /* 用户信息区域调整 */
- .user-info {
- padding: 12px;
- margin-bottom: 12px;
- }
- ion-avatar {
- width: 50px;
- height: 50px;
- }
- ion-label h2 {
- font-size: 16px;
- }
- ion-button {
- font-size: 14px;
- }
- /* 锻炼计划和历史记录卡片 */
- ion-card {
- margin-bottom: 12px;
- }
- ion-card-header {
- padding: 12px;
- }
- ion-card-title {
- font-size: 16px;
- }
- ion-button.expand-block {
- width: 100%;
- }
- }
|