page-edit.component.scss 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. /* 页面整体样式 */
  2. ion-content {
  3. background-color: #f2f2f7; /* 背景色 */
  4. padding: 16px;
  5. }
  6. /* 标题部分 */
  7. ion-title {
  8. font-weight: bold;
  9. font-size: 22px;
  10. color: #4a4a4a;
  11. text-align: center;
  12. }
  13. /* 头像区域 */
  14. .avatar-item {
  15. margin-bottom: 25px;
  16. display: flex;
  17. align-items: center;
  18. justify-content: space-between;
  19. }
  20. .avatar {
  21. width: 70px;
  22. height: 70px;
  23. border-radius: 50%;
  24. box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  25. }
  26. ion-button {
  27. font-size: 14px;
  28. font-weight: bold;
  29. color: #3880ff;
  30. }
  31. /* 输入框样式 */
  32. .input-item {
  33. margin-bottom: 20px;
  34. }
  35. ion-label {
  36. font-size: 14px;
  37. color: #6b6b6b;
  38. }
  39. ion-input,
  40. ion-select {
  41. font-size: 15px;
  42. padding: 12px;
  43. border-radius: 12px;
  44. background-color: #fff;
  45. box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  46. border: 1px solid #e1e1e1;
  47. }
  48. ion-input:focus,
  49. ion-select:focus {
  50. border-color: #3880ff;
  51. }
  52. ion-select {
  53. padding-left: 10px;
  54. }
  55. /* 必填项标识 */
  56. .required {
  57. color: #ff3b30;
  58. }
  59. /* 按钮样式 */
  60. ion-buttons ion-button {
  61. font-size: 16px;
  62. font-weight: bold;
  63. }
  64. /* 取消按钮 */
  65. ion-button[color="secondary"] {
  66. --color: #555;
  67. --background: #f1f1f1;
  68. --border-radius: 10px;
  69. }
  70. /* 确认按钮 */
  71. ion-button[color="primary"] {
  72. --background: #3880ff;
  73. --color: white;
  74. --border-radius: 10px;
  75. }
  76. /* 错误提示的样式 */
  77. ion-input.ng-invalid {
  78. border-color: #ff3b30;
  79. }
  80. ion-input.ng-valid {
  81. border-color: #3880ff;
  82. }
  83. /* 响应式调整 */
  84. @media (max-width: 767px) {
  85. .avatar-item {
  86. flex-direction: column;
  87. align-items: center;
  88. text-align: center;
  89. }
  90. .avatar {
  91. width: 80px;
  92. height: 80px;
  93. }
  94. ion-label {
  95. font-size: 16px;
  96. }
  97. ion-input,
  98. ion-select {
  99. font-size: 16px;
  100. padding: 14px;
  101. }
  102. ion-button {
  103. width: 100%;
  104. margin-top: 12px;
  105. }
  106. }