feat:PC 端搜索框样式

This commit is contained in:
hzm
2026-02-14 19:58:45 +08:00
parent 49d820d1f1
commit 7e9c3e4394
2 changed files with 240 additions and 99 deletions

View File

@@ -101,6 +101,7 @@ body {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
}
.brand {
@@ -108,6 +109,92 @@ body {
align-items: center;
gap: 8px;
font-weight: 600;
flex: 1 1 auto;
min-width: 0;
transition: flex 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.brand.search-focused-sibling {
flex: 0 0 auto;
}
.navbar-add-fund {
flex: 0 1 auto;
width: 100%;
min-width: 260px;
max-width: 280px;
padding: 0;
background: transparent;
border: none;
box-shadow: none;
backdrop-filter: none;
transition: max-width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.navbar-add-fund.search-focused {
max-width: 800px;
flex: 1;
}
.navbar-add-fund .form {
width: 100%;
}
.navbar-add-fund .search-input-wrapper {
position: relative;
flex: 1;
}
.navbar-add-fund .input {
width: 100%;
border-radius: 999px;
background: rgba(11, 18, 32, 0.9);
}
.navbar-search-icon {
position: absolute;
left: 14px;
display: inline-flex;
align-items: center;
justify-content: center;
color: var(--muted);
pointer-events: none;
z-index: 2;
}
.navbar-input-shell {
display: flex;
align-items: center;
gap: 8px;
padding-left: 40px;
padding-right: 12px;
padding-top: 6px !important;
padding-bottom: 6px !important;
min-height: 44px;
flex-wrap: wrap;
position: relative;
z-index: 1;
height: auto;
}
.navbar-input-field {
flex: 1;
min-width: 120px;
height: 24px;
border: none;
outline: none;
background: transparent;
color: var(--text);
font-size: 14px;
margin-left: 20px;
}
.navbar-input-field::placeholder {
color: var(--muted);
}
.navbar-add-fund .button {
display: none;
}
.content {
@@ -116,7 +203,7 @@ body {
@media (max-width: 640px) {
.content {
padding-top: 90px;
padding-top: 140px;
}
.navbar {
@@ -127,10 +214,20 @@ body {
border-top: none;
border-left: none;
border-right: none;
flex-wrap: wrap;
gap: 12px;
}
.add-fund-section {
margin-top: 60px;
.navbar-add-fund {
order: 3;
width: 100%;
min-width: 0;
max-width: none;
margin-top: 8px;
}
.navbar-add-fund .button {
display: inline-flex;
}
}
@@ -142,7 +239,8 @@ body {
.input {
flex: 1;
height: 44px;
min-height: 44px;
height: auto;
padding: 0 14px;
border-radius: 12px;
border: 1px solid var(--border);
@@ -394,6 +492,14 @@ input[type="number"] {
display: inline-flex;
align-items: center;
gap: 8px;
flex: 1 1 auto;
justify-content: flex-end;
min-width: 0;
transition: flex 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.actions.search-focused-sibling {
flex: 0 0 auto;
}
.icon-button {
@@ -659,6 +765,14 @@ input[type="number"] {
.filter-bar {
transition: all 0.3s ease;
position: sticky;
top: 90px;
z-index: 40;
background: rgba(15, 23, 42, 0.85);
backdrop-filter: blur(12px);
padding: 8px 12px;
border-radius: 12px;
border: 1px solid rgba(255, 255, 255, 0.05);
}
@media (max-width: 640px) {
@@ -972,6 +1086,7 @@ input[type="number"] {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-left: 24px;
}
.fund-chip {