|
|
@@ -1,9 +1,16 @@
|
|
|
.custom-toolbar {
|
|
|
- --background: rgba(173, 216, 230, 0.8); /* 偏蓝色背景 */
|
|
|
+ --background: linear-gradient(135deg, #87CEFA, #b2ebf2);
|
|
|
display: flex; /* 使用 Flexbox 布局 */
|
|
|
justify-content: center; /* 水平居中 */
|
|
|
align-items: center; /* 垂直居中 */
|
|
|
padding: 0; /* 去掉默认内边距 */
|
|
|
+
|
|
|
+ .custom-title {
|
|
|
+ font-size: 1.4em;
|
|
|
+ font-weight: 600;
|
|
|
+ color: #2c3e50;
|
|
|
+ letter-spacing: 1px;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
.custom-title {
|
|
|
@@ -26,7 +33,7 @@ ion-card {
|
|
|
ion-card-title {
|
|
|
font-size: 1.5em; /* 标题字体大小 */
|
|
|
font-weight: bold; /* 加粗 */
|
|
|
- color: #00796b; /* 深绿色字���,象征健康 */
|
|
|
+ color: #00796b; /* 深绿色字体,象征健康 */
|
|
|
margin: 0; /* 去掉默认的外边距 */
|
|
|
}
|
|
|
|
|
|
@@ -42,23 +49,27 @@ ion-card:hover {
|
|
|
}
|
|
|
|
|
|
.memo-card {
|
|
|
- background-color: #b2ebf2; /* 偏蓝色背景 */
|
|
|
- border-radius: 10px; /* 圆角边框 */
|
|
|
- padding: 20px; /* 内边距 */
|
|
|
- box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* 轻微的阴影效果 */
|
|
|
-}
|
|
|
-
|
|
|
-.memo-title {
|
|
|
- font-size: 1.8em; /* 标题字体大小 */
|
|
|
- font-weight: bold; /* 加粗 */
|
|
|
- color: #00796b; /* 深绿色字体,象征健康 */
|
|
|
- margin: 15px 0; /* 顶部和底部外边距 */
|
|
|
-}
|
|
|
-
|
|
|
-.memo-description {
|
|
|
- font-size: 1.1em; /* 描述字体大小 */
|
|
|
- color: #004d40; /* 更深的绿色字体 */
|
|
|
- margin-bottom: 20px; /* 底部外边距 */
|
|
|
+ background: white;
|
|
|
+ border-radius: 16px;
|
|
|
+ margin: 12px;
|
|
|
+ padding: 16px;
|
|
|
+ transition: all 0.3s ease;
|
|
|
+
|
|
|
+ &:hover {
|
|
|
+ transform: translateY(-3px);
|
|
|
+ box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
|
|
|
+ }
|
|
|
+
|
|
|
+ .memo-title {
|
|
|
+ color: #2c3e50;
|
|
|
+ font-size: 1.3em;
|
|
|
+ margin-bottom: 8px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .memo-description {
|
|
|
+ color: #666;
|
|
|
+ font-size: 1em;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
.tag-list {
|
|
|
@@ -81,21 +92,29 @@ ion-card:hover {
|
|
|
}
|
|
|
|
|
|
.card-header {
|
|
|
- display: flex; /* 使用 Flexbox 布局 */
|
|
|
- align-items: center; /* 垂直居中对齐 */
|
|
|
- padding: 10px; /* 内边距 */
|
|
|
-}
|
|
|
-
|
|
|
-.avatar {
|
|
|
- width: 50px; /* 头像宽度 */
|
|
|
- height: 50px; /* 头像高度 */
|
|
|
- border-radius: 50%; /* 圆形头像 */
|
|
|
- margin-right: 15px; /* 头像与文本之间的间距 */
|
|
|
- object-fit: cover; /* 确保图片覆盖区域并保持比例 */
|
|
|
-}
|
|
|
-
|
|
|
-.user-info {
|
|
|
- flex: 1; /* 使用户信息部分占据剩余空间 */
|
|
|
+ background: linear-gradient(135deg, #b2ebf2, #81D4FA);
|
|
|
+ border-radius: 20px 20px 0 0;
|
|
|
+ padding: 24px;
|
|
|
+
|
|
|
+ .avatar {
|
|
|
+ width: 80px;
|
|
|
+ height: 80px;
|
|
|
+ border: 4px solid white;
|
|
|
+ box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
|
|
|
+ }
|
|
|
+
|
|
|
+ .user-info {
|
|
|
+ ion-card-title {
|
|
|
+ font-size: 1.4em;
|
|
|
+ color: #2c3e50;
|
|
|
+ margin-bottom: 8px;
|
|
|
+ }
|
|
|
+
|
|
|
+ ion-card-subtitle {
|
|
|
+ color: #455A64;
|
|
|
+ line-height: 1.6;
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
ion-content {
|
|
|
@@ -103,13 +122,78 @@ ion-content {
|
|
|
justify-content: center;
|
|
|
align-items: center;
|
|
|
height: 68vh; /* 使内容区域高度为视口高度 */
|
|
|
+ --background: linear-gradient(135deg, #E0F7FA, #F5F5F5);
|
|
|
+
|
|
|
+ &::before {
|
|
|
+ content: '';
|
|
|
+ position: fixed;
|
|
|
+ top: 0;
|
|
|
+ left: 0;
|
|
|
+ width: 100%;
|
|
|
+ height: 100%;
|
|
|
+ background: url('/assets/tab1.img/商标.jpg') no-repeat center center fixed;
|
|
|
+ opacity: 0.05;
|
|
|
+ z-index: -1;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
.login-card {
|
|
|
- width: 94%; /* 可以根据需要调整宽度 */
|
|
|
- max-width: 400px; /* 设置最大宽度以避免过宽 */
|
|
|
- text-align: center; /* 文本居中 */
|
|
|
- padding: 10px; /* 添加内边距 */
|
|
|
+ background: rgba(255, 255, 255, 0.95);
|
|
|
+ border-radius: 20px;
|
|
|
+ margin: 16px;
|
|
|
+ box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
|
|
|
+
|
|
|
+ ion-card-header {
|
|
|
+ text-align: center;
|
|
|
+ padding: 24px 16px;
|
|
|
+
|
|
|
+ ion-card-title {
|
|
|
+ color: #2c3e50;
|
|
|
+ font-size: 1.8em;
|
|
|
+ margin-bottom: 16px;
|
|
|
+ }
|
|
|
+
|
|
|
+ ion-card-subtitle {
|
|
|
+ color: #666;
|
|
|
+ line-height: 1.6;
|
|
|
+ font-size: 1.1em;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .responsive-image {
|
|
|
+ width: 120px;
|
|
|
+ height: 120px;
|
|
|
+ border-radius: 60px;
|
|
|
+ margin: 20px auto;
|
|
|
+ box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
|
|
|
+ transition: transform 0.3s ease;
|
|
|
+
|
|
|
+ &:hover {
|
|
|
+ transform: scale(1.05);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ ion-button {
|
|
|
+ margin: 8px 16px;
|
|
|
+ --border-radius: 10px;
|
|
|
+ --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
|
|
|
+
|
|
|
+ &:first-child {
|
|
|
+ --background: #4CAF50;
|
|
|
+
|
|
|
+ &:hover {
|
|
|
+ --background: #43A047;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ &:last-child {
|
|
|
+ --background: #2196F3;
|
|
|
+
|
|
|
+ &:hover {
|
|
|
+ --background: #1E88E5;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
.image-container {
|
|
|
@@ -123,4 +207,24 @@ ion-content {
|
|
|
max-width: 80%; /* 最大宽度为容器宽度 */
|
|
|
height: auto; /* 高度自动 */
|
|
|
border-radius: 8px; /* 可选:添加圆角效果 */
|
|
|
+}
|
|
|
+
|
|
|
+@media (min-width: 768px) {
|
|
|
+ ion-content {
|
|
|
+ --padding-start: 10%;
|
|
|
+ --padding-end: 10%;
|
|
|
+ }
|
|
|
+
|
|
|
+ .login-card {
|
|
|
+ max-width: 600px;
|
|
|
+ margin: 24px auto;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+ion-button {
|
|
|
+ transition: transform 0.2s ease;
|
|
|
+
|
|
|
+ &:active {
|
|
|
+ transform: scale(0.95);
|
|
|
+ }
|
|
|
}
|