diff --git a/css/material.css b/css/material.css new file mode 100644 index 0000000..c864784 --- /dev/null +++ b/css/material.css @@ -0,0 +1,319 @@ +* { + margin: 0; + padding: 0; + box-sizing: border-box; +} + +body { + font-family: 'Roboto', sans-serif; + background-color: #f5f5f5; + color: #333; + line-height: 1.6; +} + +.header { + background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%); + color: white; + padding: 16px 24px; + box-shadow: 0 2px 4px rgba(0,0,0,0.1); + position: sticky; + top: 0; + z-index: 100; +} + +.header h1 { + font-size: 24px; + font-weight: 400; + margin: 0; + display: flex; + align-items: center; + gap: 12px; +} + +.nav-menu { + background: white; + box-shadow: 0 2px 4px rgba(0,0,0,0.1); + padding: 0; + margin-bottom: 24px; +} + +.nav-menu ul { + list-style: none; + display: flex; + margin: 0; + padding: 0; +} + +.nav-menu li { + flex: 1; +} + +.nav-menu a { + display: flex; + align-items: center; + justify-content: center; + gap: 8px; + padding: 16px; + text-decoration: none; + color: #1976d2; + font-weight: 500; + transition: all 0.3s ease; + border-bottom: 3px solid transparent; +} + +.nav-menu a:hover, .nav-menu a.active { + background-color: #e3f2fd; + border-bottom-color: #1976d2; +} + +.container { + max-width: 1200px; + margin: 0 auto; + padding: 0 24px; +} + +.card { + background: white; + border-radius: 8px; + box-shadow: 0 2px 4px rgba(0,0,0,0.1); + margin-bottom: 24px; + overflow: hidden; +} + +.card-header { + padding: 20px 24px; + border-bottom: 1px solid #e0e0e0; + background-color: #fafafa; +} + +.card-title { + font-size: 20px; + font-weight: 500; + color: #333; + margin: 0; + display: flex; + align-items: center; + gap: 12px; +} + +.card-content { + padding: 24px; +} + +.btn { + display: inline-flex; + align-items: center; + gap: 8px; + padding: 12px 24px; + border: none; + border-radius: 4px; + font-size: 14px; + font-weight: 500; + cursor: pointer; + text-decoration: none; + transition: all 0.3s ease; + box-shadow: 0 2px 4px rgba(0,0,0,0.2); +} + +.btn-primary { + background-color: #1976d2; + color: white; +} + +.btn-primary:hover { + background-color: #1565c0; + box-shadow: 0 4px 8px rgba(0,0,0,0.3); +} + +.btn-success { + background-color: #388e3c; + color: white; +} + +.btn-success:hover { + background-color: #2e7d32; +} + +.btn-warning { + background-color: #f57c00; + color: white; +} + +.btn-warning:hover { + background-color: #ef6c00; +} + +.btn-danger { + background-color: #d32f2f; + color: white; +} + +.btn-danger:hover { + background-color: #c62828; +} + +.btn-small { + padding: 8px 16px; + font-size: 12px; +} + +.form-group { + margin-bottom: 20px; +} + +.form-label { + display: block; + margin-bottom: 8px; + font-weight: 500; + color: #555; +} + +.form-control { + width: 100%; + padding: 12px 16px; + border: 2px solid #e0e0e0; + border-radius: 4px; + font-size: 16px; + transition: border-color 0.3s ease; + background-color: white; +} + +.form-control:focus { + outline: none; + border-color: #1976d2; + box-shadow: 0 0 0 3px rgba(25,118,210,0.1); +} + +.table-responsive { + overflow-x: auto; + box-shadow: 0 2px 4px rgba(0,0,0,0.1); + border-radius: 8px; +} + +.table { + width: 100%; + border-collapse: collapse; + background: white; +} + +.table th { + background-color: #1976d2; + color: white; + padding: 16px; + text-align: left; + font-weight: 500; + border: none; +} + +.table td { + padding: 16px; + border-bottom: 1px solid #e0e0e0; +} + +.table tr:hover { + background-color: #f5f5f5; +} + +.icon { + width: 24px; + height: 24px; + display: inline-block; + vertical-align: middle; +} + +.status-badge { + padding: 4px 12px; + border-radius: 16px; + font-size: 12px; + font-weight: 500; +} + +.status-pending { + background-color: #fff3e0; + color: #f57c00; +} + +.status-processing { + background-color: #e3f2fd; + color: #1976d2; +} + +.status-completed { + background-color: #e8f5e8; + color: #388e3c; +} + +.grid { + display: grid; + gap: 24px; +} + +.grid-2 { + grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); +} + +.grid-3 { + grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); +} + +.alert { + padding: 16px; + border-radius: 4px; + margin-bottom: 20px; +} + +.alert-success { + background-color: #e8f5e8; + border-left: 4px solid #388e3c; + color: #2e7d32; +} + +.alert-error { + background-color: #ffebee; + border-left: 4px solid #d32f2f; + color: #c62828; +} + +.modal { + position: fixed; + top: 0; + left: 0; + width: 100%; + height: 100%; + background-color: rgba(0,0,0,0.5); + z-index: 1000; + display: none; +} + +.modal-content { + position: absolute; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); + background: white; + border-radius: 8px; + padding: 24px; + max-width: 500px; + width: 90%; + max-height: 80vh; + overflow-y: auto; +} + +@media (max-width: 768px) { + .nav-menu ul { + flex-direction: column; + } + + .container { + padding: 0 16px; + } + + .card-content { + padding: 16px; + } + + .table th, .table td { + padding: 12px 8px; + font-size: 14px; + } +} \ No newline at end of file diff --git a/css/style.css b/css/style.css new file mode 100644 index 0000000..2dd2dd1 --- /dev/null +++ b/css/style.css @@ -0,0 +1,13 @@ +body +{ + width:920px; + margin:0 auto; + font-size:14px;font-family:"微软雅黑"; +} +table +{ + width:800px;margin:0 auto;text-align: center; +} +a:link{text-decoration: none ;color:black;} +td,th{text-align: center;} +.tl{width:300px;} \ No newline at end of file