|
|
@@ -1,136 +1,148 @@
|
|
|
-ion-title {
|
|
|
- flex: 1; // 使标题占据可用空间
|
|
|
- text-align: left; // 确保文字左对齐
|
|
|
- margin-left: 16px; // 左侧边距,可以根据需要调整
|
|
|
- margin-top: 5px;
|
|
|
+ /* 全局样式 */
|
|
|
+ body {
|
|
|
+ font-family: Arial, sans-serif;
|
|
|
+ margin: 0;
|
|
|
+ padding: 0;
|
|
|
+ background-color: #f4f4f4;
|
|
|
}
|
|
|
+
|
|
|
+ ion-content {
|
|
|
+ padding: 20px;
|
|
|
+ }
|
|
|
+
|
|
|
+ /* 个人中心模块样式 */
|
|
|
+ .profile-container1 {
|
|
|
+ background: rgba(232, 223, 223, 0.8);
|
|
|
+ backdrop-filter: blur(10px);/* 模糊背景 */
|
|
|
+ border-radius: 10px;
|
|
|
+ box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
|
|
|
+ width: 100%;
|
|
|
+ max-width: 400px;
|
|
|
+ margin: 0 auto;
|
|
|
+ margin-bottom: 20px;
|
|
|
+ overflow: hidden;
|
|
|
+ position: relative;
|
|
|
+ height: calc(1/5 * 100vh); /* 大致占据页面长的1/5 */
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ justify-content: space-between;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ .profile-container {
|
|
|
+ background:rgb(248, 204, 204, 0.8);
|
|
|
+ backdrop-filter: blur(10px);/* 模糊背景 */
|
|
|
+ border-radius: 10px;
|
|
|
+ box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
|
|
|
+ width: 100%;
|
|
|
+ max-width: 400px;
|
|
|
+ margin: 0 auto;
|
|
|
+ margin-bottom: 20px;
|
|
|
+ overflow: hidden;
|
|
|
+ position: relative;
|
|
|
+ height: calc(1/3 * 100vh); /* 大致占据页面长的1/3 */
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ justify-content: space-between;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ .avatar-container {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ padding: 15px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .avatar {
|
|
|
+ width: 80px;
|
|
|
+ height: 80px;
|
|
|
+ border-radius: 50%;
|
|
|
+ overflow: hidden;
|
|
|
+ margin-right: 15px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .avatar img {
|
|
|
+ width: 100%;
|
|
|
+ height: 100%;
|
|
|
+ object-fit: cover;
|
|
|
+ }
|
|
|
+
|
|
|
+ .user-info {
|
|
|
+ flex-grow: 1;
|
|
|
+ }
|
|
|
+
|
|
|
+ .username {
|
|
|
+ font-size: 20px;
|
|
|
+ font-weight: bold;
|
|
|
+ text-decoration: none;
|
|
|
+ color: #000000;
|
|
|
+ }
|
|
|
+
|
|
|
+ .bio {
|
|
|
+ padding-left: 15px;
|
|
|
+ padding-top: 10px;
|
|
|
+ font-size: 16px;
|
|
|
+ color: #4c4a4a;
|
|
|
+ }
|
|
|
+
|
|
|
+ .button {
|
|
|
+ background:#036a99!important;
|
|
|
+ text-transform: uppercase;
|
|
|
+ font-size: 15px;
|
|
|
+ font-weight: bold;
|
|
|
+ margin-left: 30%;
|
|
|
+ margin-right: 30%;
|
|
|
+ margin-bottom: 5px;
|
|
|
+ align-items: center;
|
|
|
+ }
|
|
|
+
|
|
|
+ .edit{
|
|
|
+ padding-left: 15px;
|
|
|
+ padding-top: 10px;
|
|
|
+ font-size: 16px;
|
|
|
+ color: #555050;
|
|
|
+ align-items: center;
|
|
|
+}
|
|
|
|
|
|
- ion-header {
|
|
|
- background-color: #007aff; // 设置头部背景色为鲜艳的蓝色
|
|
|
- color: white; // 设置头部文字颜色
|
|
|
- }
|
|
|
-
|
|
|
- ion-card {
|
|
|
- margin: 10px; // 设置卡片之间的间距
|
|
|
- border-radius: 15px; // 设置卡片圆角
|
|
|
- box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2); // 添加更明显的阴影效果
|
|
|
- transition: transform 0.2s; // 添加过渡效果
|
|
|
- }
|
|
|
-
|
|
|
- ion-card:hover {
|
|
|
- transform: scale(1.02); // 鼠标悬停时放大卡片
|
|
|
- }
|
|
|
-
|
|
|
- ion-card-header {
|
|
|
- background-color: #e3f2fd; // 设置卡片头部背景色为浅蓝色
|
|
|
- }
|
|
|
-
|
|
|
- ion-card-title {
|
|
|
- font-size: 1.5em; // 设置卡片标题字体大小
|
|
|
- font-weight: bold; // 设置卡片标题字体加粗
|
|
|
- color: #0d47a1; // 设置标题颜色为深蓝色
|
|
|
- }
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
+ /* 设置与帮助等模块样式 */
|
|
|
+ .settings-container {
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ gap: 10px;
|
|
|
+ }
|
|
|
+
|
|
|
+ ion-row {
|
|
|
+ display: flex;
|
|
|
+ justify-content: center;
|
|
|
+ padding: 5px 0;
|
|
|
+ }
|
|
|
+
|
|
|
+ ion-col {
|
|
|
+ flex: 1;
|
|
|
+ max-width: 400px;
|
|
|
+ }
|
|
|
+
|
|
|
ion-item {
|
|
|
- --ion-item-background: transparent; // 设置列表项背景透明
|
|
|
- }
|
|
|
-
|
|
|
- ion-avatar {
|
|
|
- border-radius: 50%; // 设置头像圆形
|
|
|
- width: 60px; // 设置头像宽度
|
|
|
- height: 60px; // 设置头像高度
|
|
|
- border: 2px solid #007aff; // 添加边框
|
|
|
- }
|
|
|
-
|
|
|
- h2 {
|
|
|
- font-size: 1.2em; // 设置二级标题字体大小
|
|
|
- margin: 0; // 去掉默认外边距
|
|
|
- color: #1976d2; // 设置标题颜色为蓝色
|
|
|
- }
|
|
|
-
|
|
|
- p {
|
|
|
- font-size: 0.9em; // 设置段落字体大小
|
|
|
- color: #555; // 设置段落文字颜色
|
|
|
- }
|
|
|
-
|
|
|
- ion-thumbnail {
|
|
|
- width: 100px; // 设置封面图宽度
|
|
|
- height: 150px; // 设置封面图高度
|
|
|
- border-radius: 10px; // 设置封面图圆角
|
|
|
- }
|
|
|
-
|
|
|
- ion-button {
|
|
|
- --background: #007aff; // 设置按钮背景色为鲜艳的蓝色
|
|
|
- --color: white; // 设置按钮文字颜色
|
|
|
- border-radius: 20px; // 设置按钮圆角
|
|
|
- margin-left: 10px; // 设置按钮左边距
|
|
|
- font-weight: bold; // 设置按钮文字加粗
|
|
|
- }
|
|
|
-
|
|
|
- ion-list {
|
|
|
- padding: 0; // 去掉列表内边距
|
|
|
- }
|
|
|
- ion-avatar {
|
|
|
- width: 50px; /* 或者你需要的任何尺寸 */
|
|
|
- height: 50px; /* 保持宽高一致,避免变形 */
|
|
|
- }
|
|
|
-
|
|
|
- ion-avatar img {
|
|
|
- width: 100%; /* 让图片填满avatar */
|
|
|
- height: auto; /* 保持图片比例 */
|
|
|
- }
|
|
|
-
|
|
|
- ion-header {
|
|
|
- background: #f8f9fa; // 设置头部背景色
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- ion-item{
|
|
|
- border-radius: 8px; // 设置列表项圆角
|
|
|
- margin: 5px 0; // 添加列表项的上下外边距
|
|
|
- }
|
|
|
-
|
|
|
- ion-content{
|
|
|
- background: #f8f9fa; // 设置背景色
|
|
|
- }
|
|
|
-
|
|
|
- ion-col {
|
|
|
- text-align: center; /* 确保列内的内容居中(但这里可能由 .ion-text-center 类已经处理) */
|
|
|
- .avatar-container {
|
|
|
- display: flex;
|
|
|
- flex-direction: column; /* 垂直排列子元素 */
|
|
|
- align-items: center; /* 垂直居中容器内的内容(对于图像来说可能不是必需的,但对于整体布局有帮助) */
|
|
|
- margin-top: 20px; /* 可选:为容器添加一些顶部间距 */
|
|
|
-
|
|
|
- ion-avatar {
|
|
|
- width: 100px; /* 设置头像的宽度 */
|
|
|
- height: 100px; /* 设置头像的高度,与宽度相同以实现圆形 */
|
|
|
- border-radius: 50%; /* 将头像设置为圆形 */
|
|
|
- overflow: hidden; /* 确保图像不会溢出圆形框架 */
|
|
|
-
|
|
|
- img {
|
|
|
- width: 100%; /* 让图像填满头像容器 */
|
|
|
- height: auto; /* 保持图片比例 */
|
|
|
- object-fit: cover; /* 确保图像内容适应圆形框架,而不失真 */
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- .username {
|
|
|
- font-size: 40px;
|
|
|
- font-weight: bold;
|
|
|
- margin-top: 10px;
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
- }
|
|
|
- ion-col {
|
|
|
- ion-item {
|
|
|
- background-color: #ffffff;
|
|
|
- margin: 2px 0;
|
|
|
- padding: 2px;
|
|
|
- box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
|
|
|
- text-align: left;
|
|
|
- font-size: 15px;
|
|
|
- width: 100%;
|
|
|
- }
|
|
|
- }
|
|
|
+ background: rgba(255, 255, 255, 0.8);
|
|
|
+ backdrop-filter: blur(5px);
|
|
|
+ border-radius: 5px;
|
|
|
+ padding: 5px;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: space-between;
|
|
|
+ box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
|
|
+ }
|
|
|
+
|
|
|
+ ion-label {
|
|
|
+ flex-grow: 1;
|
|
|
+ font-size: 18px;
|
|
|
+ color: #333;
|
|
|
+ }
|
|
|
+
|
|
|
+ ion-icon {
|
|
|
+ font-size: 24px;
|
|
|
+ color: #37608a;
|
|
|
+ }
|