增加数据-人民币汇率

This commit is contained in:
cheney
2026-04-25 19:48:19 +08:00
parent d232591a38
commit 306af38fdc
4 changed files with 333 additions and 5 deletions
+151
View File
@@ -493,3 +493,154 @@ main {
margin-bottom: 1rem;
}
/* Time range selector */
.chart-header {
display: flex;
justify-content: flex-end;
margin-bottom: 10px;
}
.time-range-picker {
position: relative;
display: inline-block;
}
.time-range-btn {
padding: 8px 16px;
border: 1px solid #ddd;
border-radius: 4px;
background-color: #fff;
cursor: pointer;
font-size: 14px;
display: flex;
align-items: center;
gap: 8px;
min-width: 150px;
justify-content: space-between;
transition: all 0.3s ease;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.time-range-btn:hover {
border-color: #333;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.dropdown-arrow {
font-size: 12px;
color: #666;
transition: transform 0.3s ease;
}
.time-range-dropdown {
position: absolute;
top: 100%;
right: 0;
margin-top: 8px;
background-color: #fff;
border: 1px solid #ddd;
border-radius: 4px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
padding: 16px;
min-width: 300px;
z-index: 1000;
}
.dropdown-section {
margin-bottom: 16px;
}
.dropdown-section:last-child {
margin-bottom: 0;
}
.dropdown-title {
font-size: 12px;
font-weight: 600;
color: #999;
margin-bottom: 8px;
text-transform: uppercase;
}
.dropdown-options {
list-style: none;
padding: 0;
margin: 0;
}
.dropdown-option {
padding: 8px 12px;
cursor: pointer;
border-radius: 4px;
transition: all 0.2s ease;
font-size: 14px;
}
.dropdown-option:hover {
background-color: #f0f0f0;
}
.dropdown-option.active {
background-color: #333;
color: #fff;
}
.custom-date-range {
display: flex;
align-items: center;
gap: 8px;
flex-wrap: wrap;
}
.custom-date-range input[type="date"] {
padding: 6px 8px;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 14px;
min-width: 120px;
}
.custom-date-range span {
font-size: 14px;
color: #666;
white-space: nowrap;
}
.apply-btn {
padding: 6px 12px;
border: 1px solid #333;
border-radius: 4px;
background-color: #333;
color: #fff;
cursor: pointer;
font-size: 14px;
transition: all 0.3s ease;
}
.apply-btn:hover {
background-color: #555;
border-color: #555;
}
.apply-btn:disabled {
background-color: #f0f0f0;
color: #999;
border-color: #ddd;
cursor: not-allowed;
}
/* Loading and error states */
.loading {
text-align: center;
padding: 40px;
font-size: 16px;
color: #666;
}
.error {
text-align: center;
padding: 40px;
font-size: 16px;
color: #e53935;
}