Files
vd_test_fixture/edc-web/app/static/css/style.css
wangfq 70dd3f8246 feat: 新增 edc-web Flask 前端管理系统 + 需求文档
- edc-web: Flask 项目骨架(设备管理、测试操作、测试信息三大页面)
- edc_server: 升级子模块(tb_serialnet 透传支持)
- docs: 测试工装EDC管理系统需求文档
2026-05-28 09:40:45 +08:00

103 lines
5.1 KiB
CSS

/* === Reset & Base === */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: #f5f6fa; color: #333; }
/* === Top Menu === */
.top-menu { background: #2c3e50; padding: 0 24px; display: flex; gap: 0; }
.top-menu a { color: #bdc3c7; text-decoration: none; padding: 14px 24px; font-size: 15px; transition: .2s; }
.top-menu a:hover { color: #fff; background: #34495e; }
.top-menu a.active { color: #fff; background: #3498db; }
/* === Container === */
.container { max-width: 1400px; margin: 24px auto; padding: 0 24px; }
/* === Table === */
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
th { background: #ecf0f1; text-align: left; padding: 12px 14px; font-size: 13px; font-weight: 600; color: #555; }
td { padding: 10px 14px; font-size: 13px; border-bottom: 1px solid #f0f0f0; }
tr:hover { background: #f8f9fa; }
/* === Online Status === */
.status-online { color: #27ae60; font-weight: 600; }
.status-offline { color: #bdc3c7; }
/* === Editable Name === */
.editable-name { cursor: pointer; border-bottom: 1px dashed transparent; }
.editable-name:hover { border-bottom-color: #3498db; }
.editable-name input { width: 120px; padding: 2px 6px; border: 1px solid #3498db; border-radius: 3px; font-size: 13px; }
/* === Buttons === */
.btn-test { padding: 4px 14px; background: #3498db; color: #fff; border: none; border-radius: 4px; cursor: pointer; font-size: 12px; }
.btn-test:hover { background: #2980b9; }
/* === Test Page Layout === */
.test-header { margin-bottom: 20px; }
.test-header a { color: #3498db; text-decoration: none; font-size: 14px; }
.test-layout { display: flex; gap: 24px; }
.test-control { flex: 1; min-width: 380px; }
.test-control h3 { margin: 16px 0 10px; font-size: 15px; color: #555; }
.test-control h3:first-child { margin-top: 0; }
.test-info { flex: 1; min-width: 350px; }
.test-info h3 { margin: 0 0 10px; font-size: 15px; color: #555; }
/* === Command Buttons === */
.cmd-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-cmd { padding: 10px 16px; background: #ecf0f1; border: 1px solid #ddd; border-radius: 6px; cursor: pointer; font-size: 13px; transition: .15s; }
.btn-cmd:hover { background: #3498db; color: #fff; border-color: #3498db; }
/* === Automation === */
.automation { background: #fff; padding: 16px; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,.08); margin-top: 12px; }
.automation label { font-size: 14px; }
.automation input[type="number"] { width: 80px; padding: 4px 8px; margin: 0 8px; border: 1px solid #ccc; border-radius: 4px; }
.btn-start, .btn-stop { padding: 8px 24px; border: none; border-radius: 6px; cursor: pointer; font-size: 14px; color: #fff; margin-left: 12px; }
.btn-start { background: #27ae60; }
.btn-start:hover { background: #219a52; }
.btn-stop { background: #e74c3c; }
.btn-stop:hover { background: #c0392b; }
/* === Progress === */
.progress-container { margin: 14px 0 8px; background: #ecf0f1; border-radius: 10px; height: 24px; overflow: hidden; position: relative; }
.progress-bar { height: 100%; background: linear-gradient(90deg, #27ae60, #2ecc71); border-radius: 10px; width: 0%; transition: width .3s; }
.progress-text { position: absolute; top: 0; left: 0; right: 0; text-align: center; line-height: 24px; font-size: 12px; color: #333; }
.stats { display: flex; gap: 20px; font-size: 13px; }
.stats strong { font-size: 16px; }
/* === Latest Result === */
#latest-result { background: #fff; padding: 14px; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,.08); min-height: 60px; }
#latest-result p { margin: 4px 0; font-size: 13px; }
#latest-result .placeholder { color: #999; font-style: italic; }
/* === Average Table === */
#avg-table { margin-top: 12px; }
#avg-table td { padding: 6px 10px; }
#avg-table td:nth-child(2) { font-weight: 600; text-align: right; }
#avg-table td:nth-child(3) { color: #888; font-size: 12px; }
/* === Search Bar === */
.search-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.search-bar label { font-size: 13px; }
.search-bar input { padding: 6px 10px; border: 1px solid #ccc; border-radius: 4px; font-size: 13px; }
.search-bar input[type="text"] { width: 180px; }
.btn-search, .btn-export { padding: 6px 16px; border: none; border-radius: 4px; cursor: pointer; font-size: 13px; color: #fff; }
.btn-search { background: #3498db; }
.btn-export { background: #27ae60; margin-left: auto; }
/* === Pagination === */
.pagination { display: flex; gap: 6px; margin-top: 16px; justify-content: center; }
.pagination button { padding: 6px 12px; border: 1px solid #ddd; background: #fff; border-radius: 4px; cursor: pointer; font-size: 13px; }
.pagination button.active { background: #3498db; color: #fff; border-color: #3498db; }
.pagination button:hover:not(.active):not(:disabled) { background: #ecf0f1; }
.pagination button:disabled { opacity: .4; cursor: not-allowed; }
/* === Responsive === */
@media (max-width: 900px) {
.test-layout { flex-direction: column; }
.search-bar { justify-content: center; }
.btn-export { margin-left: 0; }
}