304 lines
5.0 KiB
CSS
304 lines
5.0 KiB
CSS
.layui-form-item {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.layui-form-item .layui-input-inline {
|
|
width: 700px;
|
|
}
|
|
|
|
.required {
|
|
color: red;
|
|
}
|
|
|
|
.layui-form-label {
|
|
width: 140px;
|
|
}
|
|
|
|
.btn-box {
|
|
width: 100%;
|
|
height: 80px;
|
|
box-sizing: border-box;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
.layui-form-label:has(+ .layui-input-inline input[data-required]) span::after,
|
|
.layui-form-label:has(+ .layui-input-inline[data-required]) span::after {
|
|
content: '*';
|
|
color: #f40;
|
|
margin-left: 3px;
|
|
}
|
|
|
|
.layui-upload {
|
|
width: 84%;
|
|
margin: auto;
|
|
}
|
|
|
|
:root {
|
|
--primary-color: #3498db;
|
|
--success-color: #2ecc71;
|
|
--warning-color: #f39c12;
|
|
--danger-color: #e74c3c;
|
|
--error-color: #e74c3c;
|
|
--gray-color: #95a5a6;
|
|
--light-bg: #f5f5f5;
|
|
--border-color: #ddd;
|
|
}
|
|
|
|
.status-icon {
|
|
width: 12px;
|
|
height: 12px;
|
|
border-radius: 50%;
|
|
}
|
|
|
|
.status-waiting {
|
|
color: var(--warning-color);
|
|
}
|
|
|
|
.status-waiting .status-icon {
|
|
background-color: var(--warning-color);
|
|
}
|
|
|
|
.status-uploading {
|
|
color: var(--primary-color);
|
|
}
|
|
|
|
.status-uploading .status-icon {
|
|
background-color: var(--primary-color);
|
|
}
|
|
|
|
.status-success {
|
|
color: var(--success-color);
|
|
}
|
|
|
|
.status-success .status-icon {
|
|
background-color: var(--success-color);
|
|
}
|
|
|
|
.status-error {
|
|
color: var(--danger-color);
|
|
}
|
|
|
|
.status-error .status-icon {
|
|
background-color: var(--danger-color);
|
|
}
|
|
|
|
.file-action {
|
|
color: var(--danger-color);
|
|
cursor: pointer;
|
|
font-size: 14px;
|
|
transition: color 0.2s;
|
|
}
|
|
|
|
.file-action:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
|
margin: 0;
|
|
padding: 0;
|
|
background-color: var(--light-bg);
|
|
color: #333;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.container {
|
|
max-width: 98%;
|
|
margin: 10px auto;
|
|
padding: 10px;
|
|
background: white;
|
|
border-radius: 8px;
|
|
box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
h1 {
|
|
color: var(--primary-color);
|
|
text-align: center;
|
|
margin-bottom: 30px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.upload-panel {
|
|
background: #f9f9f9;
|
|
padding: 10px 20px 10px 20px;
|
|
border-radius: 6px;
|
|
margin-bottom: 10px;
|
|
border: 1px dashed var(--border-color);
|
|
}
|
|
|
|
.upload-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 15px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 10px 20px;
|
|
border: none;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.btn-primary {
|
|
background-color: var(--primary-color);
|
|
color: white;
|
|
}
|
|
|
|
.btn-primary:hover {
|
|
background-color: #2980b9;
|
|
}
|
|
|
|
.btn-success {
|
|
background-color: var(--success-color);
|
|
color: white;
|
|
}
|
|
|
|
.btn-success:hover {
|
|
background-color: #27ae60;
|
|
}
|
|
|
|
.btn:disabled {
|
|
background-color: var(--gray-color);
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.file-counter {
|
|
margin-left: auto;
|
|
font-size: 14px;
|
|
color: #666;
|
|
}
|
|
|
|
.file-counter.warning {
|
|
color: var(--danger-color);
|
|
font-weight: bold;
|
|
}
|
|
|
|
.upload-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
margin-top: 5px;
|
|
}
|
|
|
|
.upload-table th {
|
|
background-color: #f2f2f2;
|
|
padding: 6px 15px;
|
|
text-align: left;
|
|
font-weight: 500;
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 10;
|
|
}
|
|
|
|
.upload-table td {
|
|
padding: 6px 15px;
|
|
border-bottom: 1px solid var(--border-color);
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.upload-table tr:hover {
|
|
background-color: #f9f9f9;
|
|
}
|
|
|
|
.progress-container {
|
|
width: 100%;
|
|
height: 20px;
|
|
background-color: #ececec;
|
|
border-radius: 10px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.progress-bar {
|
|
height: 100%;
|
|
background-color: var(--primary-color);
|
|
width: 0%;
|
|
transition: width 0.3s ease;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 12px;
|
|
color: white;
|
|
}
|
|
|
|
.file-status {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
|
|
|
|
.toast {
|
|
position: fixed;
|
|
top: 20px;
|
|
right: 20px;
|
|
padding: 15px 25px;
|
|
background-color: var(--danger-color);
|
|
color: white;
|
|
border-radius: 4px;
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
|
display: none;
|
|
z-index: 1000;
|
|
animation: fadeIn 0.3s;
|
|
}
|
|
|
|
@keyframes fadeIn {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(-20px);
|
|
}
|
|
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
.file-size {
|
|
font-family: 'Courier New', monospace;
|
|
color: #666;
|
|
}
|
|
|
|
.no-files {
|
|
text-align: center;
|
|
padding: 40px 0;
|
|
color: #999;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.container {
|
|
padding: 15px;
|
|
margin: 15px;
|
|
}
|
|
|
|
.upload-actions {
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.file-counter {
|
|
margin-left: 0;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.upload-table th,
|
|
.upload-table td {
|
|
padding: 8px 10px;
|
|
font-size: 14px;
|
|
}
|
|
} |