123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126 |
- /* 页面整体样式 */
- ion-content {
- background-color: #f2f2f7; /* 背景色 */
- padding: 16px;
- }
- /* 标题部分 */
- ion-title {
- font-weight: bold;
- font-size: 22px;
- color: #4a4a4a;
- text-align: center;
- }
- /* 头像区域 */
- .avatar-item {
- margin-bottom: 25px;
- display: flex;
- align-items: center;
- justify-content: space-between;
- }
- .avatar {
- width: 70px;
- height: 70px;
- border-radius: 50%;
- box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
- }
- ion-button {
- font-size: 14px;
- font-weight: bold;
- color: #3880ff;
- }
- /* 输入框样式 */
- .input-item {
- margin-bottom: 20px;
- }
- ion-label {
- font-size: 14px;
- color: #6b6b6b;
- }
- ion-input,
- ion-select {
- font-size: 15px;
- padding: 12px;
- border-radius: 12px;
- background-color: #fff;
- box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
- border: 1px solid #e1e1e1;
- }
- ion-input:focus,
- ion-select:focus {
- border-color: #3880ff;
- }
- ion-select {
- padding-left: 10px;
- }
- /* 必填项标识 */
- .required {
- color: #ff3b30;
- }
- /* 按钮样式 */
- ion-buttons ion-button {
- font-size: 16px;
- font-weight: bold;
- }
- /* 取消按钮 */
- ion-button[color="secondary"] {
- --color: #555;
- --background: #f1f1f1;
- --border-radius: 10px;
- }
- /* 确认按钮 */
- ion-button[color="primary"] {
- --background: #3880ff;
- --color: white;
- --border-radius: 10px;
- }
- /* 错误提示的样式 */
- ion-input.ng-invalid {
- border-color: #ff3b30;
- }
- ion-input.ng-valid {
- border-color: #3880ff;
- }
- /* 响应式调整 */
- @media (max-width: 767px) {
- .avatar-item {
- flex-direction: column;
- align-items: center;
- text-align: center;
- }
- .avatar {
- width: 80px;
- height: 80px;
- }
- ion-label {
- font-size: 16px;
- }
- ion-input,
- ion-select {
- font-size: 16px;
- padding: 14px;
- }
- ion-button {
- width: 100%;
- margin-top: 12px;
- }
- }
|