|
@@ -404,12 +404,235 @@ $transition: all 0.2s ease;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-// 自定义对话框样式
|
|
|
+// 自定义对话框样式 - 以深蓝色和白色为主色调
|
|
|
+.add-employee-dialog-container {
|
|
|
+ .mat-dialog-container {
|
|
|
+ background-color: #1e293b;
|
|
|
+ color: white;
|
|
|
+ border-radius: 12px;
|
|
|
+ padding: 0;
|
|
|
+ overflow: hidden;
|
|
|
+ box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
|
|
|
+ }
|
|
|
+
|
|
|
+ .mat-dialog-title {
|
|
|
+ color: white;
|
|
|
+ font-size: 24px;
|
|
|
+ font-weight: 600;
|
|
|
+ padding: 24px 24px 0;
|
|
|
+ margin: 0;
|
|
|
+ }
|
|
|
+
|
|
|
+ .mat-dialog-content {
|
|
|
+ padding: 24px;
|
|
|
+ background-color: white;
|
|
|
+ color: #1e293b;
|
|
|
+ margin: 0;
|
|
|
+ }
|
|
|
+
|
|
|
+ .mat-dialog-actions {
|
|
|
+ padding: 16px 24px;
|
|
|
+ background-color: #1e293b;
|
|
|
+ justify-content: flex-end;
|
|
|
+ margin: 0;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
.custom-dialog {
|
|
|
+ // 对话框容器样式
|
|
|
.mat-dialog-container {
|
|
|
+ border-radius: $border-radius;
|
|
|
+ box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.15), 0 10px 15px -6px rgba(0, 0, 0, 0.1);
|
|
|
+ overflow: hidden;
|
|
|
+ background-color: $bg-primary; // 使用白色作为主背景
|
|
|
+ border: 2px solid $primary-color; // 深蓝色边框
|
|
|
+ max-width: 700px; // 增加对话框宽度
|
|
|
+ width: 95vw;
|
|
|
+ animation: slideIn 0.3s ease-out; // 添加动画效果
|
|
|
+ }
|
|
|
+
|
|
|
+ // 对话框标题样式
|
|
|
+ h2 {
|
|
|
+ font-size: 24px; // 增大标题字体
|
|
|
+ font-weight: 700;
|
|
|
+ color: $primary-color; // 使用深蓝色标题
|
|
|
+ margin: 0;
|
|
|
+ }
|
|
|
+
|
|
|
+ // 输入框样式
|
|
|
+ .mat-input-element {
|
|
|
+ color: $text-primary;
|
|
|
+ font-size: 16px; // 增大输入框字体
|
|
|
+ font-weight: 500;
|
|
|
+ }
|
|
|
+
|
|
|
+ .mat-form-field {
|
|
|
+ width: 100%;
|
|
|
+ transition: all 0.2s ease;
|
|
|
+ }
|
|
|
+
|
|
|
+ .mat-form-field-appearance-fill .mat-form-field-flex {
|
|
|
+ background-color: $bg-primary; // 输入框白色背景
|
|
|
+ border-radius: $border-radius;
|
|
|
+ border: 1px solid $border-color;
|
|
|
+ transition: all 0.2s ease;
|
|
|
+ }
|
|
|
+
|
|
|
+ .mat-form-field-appearance-fill .mat-form-field-outline {
|
|
|
+ border: none;
|
|
|
+ }
|
|
|
+
|
|
|
+ .mat-form-field-appearance-fill .mat-form-field-underline {
|
|
|
+ display: none;
|
|
|
+ }
|
|
|
+
|
|
|
+ // 输入框聚焦效果增强
|
|
|
+ .mat-form-field-appearance-fill .mat-form-field-focus-overlay {
|
|
|
+ background-color: rgba(30, 64, 175, 0.08);
|
|
|
+ }
|
|
|
+
|
|
|
+ .mat-form-field:focus-within .mat-form-field-flex {
|
|
|
+ border-color: $primary-color;
|
|
|
+ box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
|
|
|
+ }
|
|
|
+
|
|
|
+ // 选择框样式增强
|
|
|
+ .mat-select {
|
|
|
+ color: $text-primary;
|
|
|
+ font-size: 16px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .mat-select-panel {
|
|
|
+ background-color: $bg-primary;
|
|
|
border-radius: $border-radius;
|
|
|
box-shadow: $shadow-lg;
|
|
|
+ margin-top: 8px;
|
|
|
+ border: 1px solid $border-color;
|
|
|
+ animation: slideIn 0.2s ease-out;
|
|
|
+ }
|
|
|
+
|
|
|
+ .mat-option {
|
|
|
+ color: $text-primary;
|
|
|
+ padding: 12px 20px; // 增加选项间距
|
|
|
+ font-size: 16px; // 增大选项字体
|
|
|
+ font-weight: 500;
|
|
|
+ transition: all 0.2s ease;
|
|
|
+ border-radius: $border-radius;
|
|
|
+ margin: 2px 8px;
|
|
|
+
|
|
|
+ &:hover {
|
|
|
+ background-color: rgba(30, 64, 175, 0.1);
|
|
|
+ transform: translateX(4px); // 悬停时轻微移动
|
|
|
+ }
|
|
|
+
|
|
|
+ &.mat-selected {
|
|
|
+ background-color: color-mix(in srgb, $primary-color 20%, transparent);
|
|
|
+ color: $primary-color;
|
|
|
+ font-weight: 600;
|
|
|
+ }
|
|
|
+
|
|
|
+ &:active {
|
|
|
+ transform: scale(0.98);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ // 按钮样式优化
|
|
|
+ button[mat-button] {
|
|
|
+ color: $text-secondary;
|
|
|
+ font-size: 16px; // 增大按钮字体
|
|
|
+ font-weight: 600;
|
|
|
+ padding: 10px 24px;
|
|
|
+ transition: all 0.2s ease;
|
|
|
+ border-radius: $border-radius;
|
|
|
+
|
|
|
+ &:hover {
|
|
|
+ color: $primary-color;
|
|
|
+ background-color: rgba(30, 64, 175, 0.08);
|
|
|
+ transform: translateY(-1px);
|
|
|
+ }
|
|
|
+
|
|
|
+ &:active {
|
|
|
+ transform: translateY(0);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ button[mat-raised-button][color="primary"] {
|
|
|
+ background-color: $primary-color;
|
|
|
+ color: white;
|
|
|
+ font-size: 16px; // 增大按钮字体
|
|
|
+ font-weight: 600;
|
|
|
+ border-radius: $border-radius;
|
|
|
+ padding: 12px 32px;
|
|
|
+ transition: all 0.2s ease;
|
|
|
+ box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
|
|
|
+
|
|
|
+ &:hover {
|
|
|
+ background-color: $primary-light;
|
|
|
+ transform: translateY(-2px);
|
|
|
+ box-shadow: 0 6px 16px rgba(30, 64, 175, 0.4);
|
|
|
+ }
|
|
|
+
|
|
|
+ &:active {
|
|
|
+ transform: translateY(0);
|
|
|
+ box-shadow: 0 4px 10px rgba(30, 64, 175, 0.3);
|
|
|
+ }
|
|
|
+
|
|
|
+ &:disabled {
|
|
|
+ background-color: $text-tertiary;
|
|
|
+ transform: none;
|
|
|
+ box-shadow: none;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ // 日期选择器样式增强
|
|
|
+ .mat-datepicker-toggle {
|
|
|
+ color: $text-tertiary;
|
|
|
+ transition: all 0.2s ease;
|
|
|
+
|
|
|
+ &:hover {
|
|
|
+ color: $primary-color;
|
|
|
+ transform: scale(1.1);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .mat-datepicker-content {
|
|
|
+ border-radius: $border-radius;
|
|
|
overflow: hidden;
|
|
|
+ border: 1px solid $border-color;
|
|
|
+ }
|
|
|
+
|
|
|
+ // 表单标签样式增强
|
|
|
+ label {
|
|
|
+ color: $text-primary;
|
|
|
+ font-weight: 600;
|
|
|
+ font-size: 16px;
|
|
|
+ margin-bottom: 8px;
|
|
|
+ display: block;
|
|
|
+ }
|
|
|
+
|
|
|
+ // 必填标记样式
|
|
|
+ .required-mark {
|
|
|
+ color: $error-color;
|
|
|
+ font-size: 16px;
|
|
|
+ margin-left: 4px;
|
|
|
+ }
|
|
|
+
|
|
|
+ // 错误状态样式增强
|
|
|
+ .mat-error {
|
|
|
+ color: $error-color;
|
|
|
+ font-size: 14px;
|
|
|
+ margin-top: 6px;
|
|
|
+ display: block;
|
|
|
+ font-weight: 500;
|
|
|
+ }
|
|
|
+
|
|
|
+ .mat-form-field-invalid .mat-form-field-flex {
|
|
|
+ border-color: $error-color;
|
|
|
+ background-color: rgba(239, 68, 68, 0.05);
|
|
|
+ }
|
|
|
+
|
|
|
+ .mat-form-field-invalid .mat-input-element {
|
|
|
+ color: $error-color;
|
|
|
}
|
|
|
}
|
|
|
|