From bd8cacd8825822b8f6d19fdfb42e57ebae45f59c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E6=AC=A3=E7=84=B6?= <12817866+yueranzhishang@user.noreply.gitee.com> Date: Wed, 11 Jun 2025 17:30:56 +0000 Subject: [PATCH] =?UTF-8?q?add=20neo/static/css/underWater.css.=20?= =?UTF-8?q?=E6=B0=B4=E4=B8=8B=E7=B3=BB=E7=BB=9F=E6=8F=90=E4=BA=A4css?= =?UTF-8?q?=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 刘欣然 <12817866+yueranzhishang@user.noreply.gitee.com> --- neo/static/css/underWater.css | 298 ++++++++++++++++++++++++++++++++++ 1 file changed, 298 insertions(+) create mode 100644 neo/static/css/underWater.css diff --git a/neo/static/css/underWater.css b/neo/static/css/underWater.css new file mode 100644 index 0000000..0dfd34e --- /dev/null +++ b/neo/static/css/underWater.css @@ -0,0 +1,298 @@ +* { + margin: 0; + padding: 0; + box-sizing: border-box; + font-family: 'Arial', sans-serif; +} + +body { + background-color: #e6f2ff; + color: #2c3e50; +} + +.navbar { + background-color: #6495ED; + color: white; + padding: 15px 20px; + box-shadow: 0 2px 10px rgba(100, 149, 237, 0.2); +} + +.container { + display: flex; + flex-direction: column; + gap: 20px; + padding: 20px; + flex-wrap: wrap; +} + +.panel { + background: white; + border-radius: 8px; + box-shadow: 0 2px 10px rgba(100, 149, 237, 0.1); + padding: 20px; + flex: 1; + min-width: 300px; + width: 100%; + margin-bottom: 20px; + border: 1px solid rgba(100, 149, 237, 0.15); +} + +.panel-header { + font-size: 18px; + font-weight: bold; + margin-bottom: 20px; + color: #6495ED; + border-bottom: 1px solid rgba(100, 149, 237, 0.2); + padding-bottom: 10px; +} + +.chart-container { + width: 100%; + height: 400px; + min-height: 300px; + background: white; + border-radius: 6px; + padding: 10px; + box-shadow: 0 1px 4px rgba(100, 149, 237, 0.1); +} + +.species-selector { + margin-bottom: 20px; +} + +select { + padding: 8px 12px; + border-radius: 4px; + border: 1px solid #c3d7f7; + font-size: 14px; + width: 200px; + background-color: #f5f9ff; + color: #2c3e50; +} + +.info-table { + width: 100%; + border-collapse: collapse; + margin-top: 20px; + background: white; + border-radius: 6px; + overflow: hidden; + box-shadow: 0 1px 4px rgba(100, 149, 237, 0.1); +} + +.info-table th, .info-table td { + padding: 12px 15px; + text-align: left; + border-bottom: 1px solid #e1ecfa; +} + +.info-table th { + background-color: #f0f6ff; + font-weight: bold; + color: #6495ED; +} + +.info-table tr:hover { + background-color: #f5f9ff; +} + +.stats-grid { + display: grid; + grid-template-columns: repeat(3, 1fr); + gap: 15px; + margin-top: 20px; +} + +.stat-card { + background: #f5f9ff; + padding: 15px; + border-radius: 6px; + text-align: center; + border: 1px solid #e1ecfa; + transition: all 0.3s ease; +} + +.stat-card:hover { + transform: translateY(-3px); + box-shadow: 0 4px 12px rgba(100, 149, 237, 0.15); +} + +.stat-value { + font-size: 24px; + font-weight: bold; + color: #6495ED; + margin: 5px 0; +} + +.stat-label { + font-size: 14px; + color: #5a7bb6; +} + +.species-info { + margin-top: 20px; +} + +.species-description { + background-color: #f5f9ff; + padding: 15px; + border-radius: 6px; + margin-bottom: 20px; + line-height: 1.6; + color: #2c3e50; + border: 1px solid #e1ecfa; +} + +.species-image { + width: 100%; + border-radius: 6px; + margin-top: 15px; + border: 1px solid #e1ecfa; + box-shadow: 0 2px 8px rgba(100, 149, 237, 0.1); +} + +.selector-label { + display: block; + margin-bottom: 8px; + font-size: 14px; + color: #6495ED; + font-weight: 600; +} + +.select-wrapper { + position: relative; + width: 100%; +} + +.styled-select { + width: 100%; + padding: 12px 15px; + border: 2px solid #c3d7f7; + border-radius: 8px; + background-color: #f5f9ff; + color: #2c3e50; + font-size: 14px; + appearance: none; + outline: none; + transition: all 0.3s ease; + cursor: pointer; + box-shadow: 0 2px 5px rgba(100, 149, 237, 0.1); +} + +.styled-select:focus { + border-color: #6495ED; + box-shadow: 0 0 0 3px rgba(100, 149, 237, 0.2); +} + +.select-arrow { + position: absolute; + top: 50%; + right: 15px; + transform: translateY(-50%); + color: #6495ED; + pointer-events: none; +} + +.styled-select option { + padding: 10px; + background: white; + color: #2c3e50; +} + +.styled-select option:hover { + background-color: #e6f2ff; +} + +.styled-select:hover { + border-color: #6495ED; +} + +.spacer { + height: 30px; +} + +.charts-horizontal { + display: flex; + flex-direction: row; + gap: 15px; + width: 100%; + margin-bottom: 20px; +} + +.charts-horizontal .chart-container { + flex: 1; + background: white; + border-radius: 6px; + padding: 10px; + box-shadow: 0 1px 4px rgba(100, 149, 237, 0.1); +} + +.mini-charts-container { + display: grid; + grid-template-columns: repeat(2, 1fr); + gap: 15px; +} + +.mini-chart { + height: 220px; + background: white; + border-radius: 8px; + padding: 15px; + box-shadow: 0 2px 8px rgba(100, 149, 237, 0.1); + border: 1px solid rgba(100, 149, 237, 0.15); +} + +button { + + right: 0; /* 按钮位于父元素的右侧 */ + margin: 10px; /* 按钮与父元素边界的间距 */ + padding: 10px 20px; /* 按钮的内边距 */ + background-color: #6495ED; /* 按钮的背景色 */ + color: white; /* 按钮文字颜色 */ + border: none; /* 移除按钮的边框 */ + border-radius: 5px; /* 按钮的圆角 */ + cursor: pointer; /* 鼠标悬停时显示为手型 */ + font-size: 16px; /* 按钮文字大小 */ + outline: none; /* 移除按钮的轮廓(点击时的边框) */ + transition: background-color 0.3s ease; /* 添加背景色过渡效果 */ +} + +button:hover { + background-color: #507cc0; /* 悬停时的背景色(稍微深一点) */ +} + +.filename-input { + flex-grow: 1; + padding: 10px; + border-radius: 4px; + border: 1px solid #ddd; + font-size: 16px; +} + +@media (max-width: 768px) { + .container { + flex-direction: column; + } + .stats-grid { + grid-template-columns: 1fr; + } + .styled-select { + padding: 10px 12px; + font-size: 13px; + } + .select-arrow { + right: 10px; + } + .charts-horizontal { + flex-direction: column; + } + .mini-charts-container { + grid-template-columns: 1fr; + } + .download-controls { + flex-direction: column; + } + .filename-input, select, button { + width: 100%; + } +} \ No newline at end of file -- Gitee