Files
leaudit-platform-frontend/app/styles/pages/files_upload.css
T
2025-04-13 18:49:43 +08:00

281 lines
6.4 KiB
CSS

/**
* 文件上传页面样式
*/
.file-upload-page {
--primary-color: var(--color-primary, #00684a);
--primary-hover: var(--color-primary-hover, #005a40);
--primary-light: rgba(0, 104, 74, 0.1);
--success-color: var(--color-success, #52c41a);
--warning-color: var(--color-warning, #faad14);
--error-color: var(--color-error, #ff4d4f);
--text-color: rgba(0, 0, 0, 0.85);
--text-secondary: rgba(0, 0, 0, 0.45);
--border-color: #f0f0f0;
--bg-gray: #f5f5f5;
}
/* 页面头部 */
.file-upload-page .page-header {
@apply flex justify-between items-center mb-4;
}
.file-upload-page .page-title {
@apply text-xl font-medium;
}
/* 表单样式 */
.file-upload-page .form-group {
@apply mb-2;
}
/* 复选框样式 */
.file-upload-page .switch-container {
@apply flex items-center mt-2;
}
.file-upload-page .switch {
@apply relative inline-block w-10 h-5 mr-2;
}
.file-upload-page .switch input {
@apply opacity-0 w-0 h-0;
}
.file-upload-page .slider {
@apply absolute cursor-pointer inset-0 bg-gray-300 rounded-full transition-all duration-300;
}
.file-upload-page .slider:before {
@apply absolute content-[''] h-4 w-4 left-0.5 bottom-0.5 bg-white rounded-full transition-all duration-300;
}
.file-upload-page input:checked + .slider {
@apply bg-[var(--primary-color)];
}
.file-upload-page input:checked + .slider:before {
@apply transform translate-x-5;
}
/* 高级上传设置 */
/* 高级选项区域 */
.file-upload-page .advanced-options {
@apply mt-4;
}
.file-upload-page .advanced-options-toggle {
@apply text-[var(--primary-color)] cursor-pointer inline-flex items-center text-sm;
}
.file-upload-page .advanced-options-toggle i {
@apply ml-1 transition-transform duration-200;
}
.file-upload-page .advanced-options-toggle.open i {
@apply rotate-180;
}
.file-upload-page .advanced-options-content {
@apply mt-3 p-3 bg-gray-50 border border-gray-200 rounded-md hidden;
}
.file-upload-page .form-label {
@apply block text-sm font-medium text-gray-700 mb-2;
}
.file-upload-page .form-textarea {
@apply block w-full px-3 py-2 text-base rounded-md shadow-sm focus:outline-none border;
}
.file-upload-page .form-tip {
@apply text-xs text-gray-500 mt-1;
}
.file-upload-page .form-select {
@apply block w-full px-3 py-2 text-base rounded-md shadow-sm focus:outline-none;
}
.file-upload-page .form-select:focus {
@apply border-[#00684a] shadow-[0_0_0_2px_rgba(0,104,74,0.2)] outline-none;
}
/* 上传区域样式 */
.file-upload-page .upload-area {
@apply border-2 border-dashed border-gray-300 rounded-lg p-10 text-center bg-gray-50 cursor-pointer transition-all duration-300;
}
.file-upload-page .upload-area:hover,
.file-upload-page .upload-area.dragover {
@apply border-[var(--primary-color)] bg-[var(--primary-light)];
}
.file-upload-page .upload-icon {
@apply text-5xl text-gray-400 mb-4;
}
.file-upload-page .upload-text {
@apply text-gray-500 mb-2 font-medium;
}
.file-upload-page .upload-tip {
@apply text-xs text-gray-500;
}
/* 进度条样式 */
.file-upload-page .progress-container {
@apply my-6;
}
.file-upload-page .progress-bar {
@apply h-2 bg-gray-100 rounded overflow-hidden mb-2;
}
.file-upload-page .progress-bar-inner {
@apply h-full bg-[var(--primary-color)] rounded transition-[width] duration-300 ease-in-out w-0;
}
.file-upload-page .progress-text {
@apply flex justify-between text-xs text-gray-500;
}
/* 横向步骤样式 */
.file-upload-page .steps-container-horizontal {
@apply my-8 flex justify-between relative;
}
.file-upload-page .steps-container-horizontal::before {
content: "";
@apply absolute top-[14px] left-0 right-0 h-0.5 bg-gray-200 z-0;
}
.file-upload-page .step-item-horizontal {
@apply relative flex flex-col items-center flex-1 text-center z-[1];
}
.file-upload-page .step-icon-horizontal {
@apply w-[30px] h-[30px] rounded-full bg-gray-300 flex items-center justify-center mb-2 relative z-[2];
}
.file-upload-page .step-icon-horizontal i {
@apply hidden text-white text-base absolute left-1/2 top-1/2 transform -translate-x-1/2 -translate-y-1/2 m-0 p-0;
}
.file-upload-page .step-item-horizontal.active .step-icon-horizontal {
@apply bg-[var(--primary-color)];
}
.file-upload-page .step-item-horizontal.done .step-icon-horizontal {
@apply bg-[var(--success-color)];
}
.file-upload-page .step-item-horizontal.done .step-icon-horizontal i {
@apply inline-block;
}
.file-upload-page .step-item-horizontal.error .step-icon-horizontal {
@apply bg-[var(--error-color)];
}
.file-upload-page .step-content-horizontal {
@apply px-2 max-w-[140px];
}
.file-upload-page .step-title-horizontal {
@apply font-medium mb-1 text-sm whitespace-nowrap overflow-hidden text-ellipsis;
}
.file-upload-page .step-description-horizontal {
@apply text-xs text-gray-500 leading-tight mt-1;
}
.file-upload-page .step-item-horizontal.active .step-title-horizontal {
@apply text-[var(--primary-color)];
}
/* 文件信息样式 */
.file-upload-page .file-info-list {
@apply list-none p-0 m-0;
}
.file-upload-page .file-info-item {
@apply flex mb-2;
}
.file-upload-page .file-info-label {
@apply flex-none w-20 text-gray-500;
}
.file-upload-page .file-info-value {
@apply flex-1;
}
/* 文件类型徽章 */
.file-upload-page .file-type-badge {
@apply inline-flex items-center px-2 py-0.5 rounded text-xs font-medium;
}
.file-upload-page .file-type-badge i {
@apply mr-1 text-sm;
}
.file-upload-page .file-type-contract {
@apply bg-blue-100 text-blue-800;
}
.file-upload-page .file-type-license {
@apply bg-green-100 text-green-800;
}
.file-upload-page .file-type-punishment {
@apply bg-yellow-100 text-yellow-800;
}
/* 状态徽章 */
.file-upload-page .status-badge {
@apply inline-flex items-center px-2 py-0.5 rounded text-xs font-medium;
}
.file-upload-page .status-waiting {
@apply bg-purple-100 text-purple-800;
}
.file-upload-page .status-processing {
@apply bg-blue-100 text-blue-800;
}
.file-upload-page .status-success {
@apply bg-green-100 text-green-800;
}
.file-upload-page .status-error {
@apply bg-red-100 text-red-800;
}
/* 动画效果 */
@keyframes pulse {
0% {
transform: scale(1);
opacity: 1;
}
50% {
transform: scale(1.05);
opacity: 0.8;
}
100% {
transform: scale(1);
opacity: 1;
}
}
.file-upload-page .pulse-animation {
animation: pulse 1.5s ease-in-out infinite;
}
/* 响应式调整 */
@screen md {
.file-upload-page .file-info-grid {
@apply grid grid-cols-2 gap-6;
}
}