chatapp-h5/h5/transfer/transfer.css
2026-04-24 21:13:53 +08:00

333 lines
5.0 KiB
CSS

* {
box-sizing: border-box;
margin: 0;
padding: 0;
font-family: "Baloo 2", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
line-height: 1.35;
}
html,
body {
width: 100%;
min-height: 100%;
background: #edf8f1;
color: rgba(0, 0, 0, 0.8);
-webkit-text-size-adjust: 100%;
-webkit-overflow-scrolling: touch;
-webkit-tap-highlight-color: transparent;
}
button {
border: 0;
background: transparent;
color: inherit;
font: inherit;
}
.transfer {
width: 100vw;
min-height: 100vh;
background: #edf8f1;
}
.page-header {
position: sticky;
top: 0;
z-index: 10;
display: grid;
grid-template-columns: 44px 1fr 58px;
align-items: center;
min-height: calc(48px + env(safe-area-inset-top));
padding: env(safe-area-inset-top) 10px 0;
background: #f8fff9;
border-bottom: 1px solid #cce9d7;
box-shadow: 0 4px 14px rgba(75, 137, 95, 0.14);
}
.page-header h1 {
min-width: 0;
color: #153d28;
font-size: 1.25em;
font-weight: 800;
text-align: center;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.header-icon,
.lang-button {
min-width: 36px;
height: 36px;
display: flex;
align-items: center;
justify-content: center;
color: #1f6f46;
font-weight: 800;
}
.header-icon {
padding: 6px;
}
.header-icon img {
width: 100%;
height: 100%;
display: block;
}
.lang-button {
justify-self: end;
padding: 0 10px;
border-radius: 999px;
background: #dff5e7;
font-size: 0.86em;
}
.content {
position: relative;
z-index: 2;
display: flex;
flex-direction: column;
gap: 14px;
padding: 16px;
}
.section-row {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 10px;
}
.section-title {
margin-bottom: 10px;
color: #244735;
font-weight: 800;
}
.section-row .section-title {
margin-bottom: 0;
}
.details-link {
display: flex;
align-items: center;
color: rgba(0, 0, 0, 0.42);
font-weight: 700;
}
.details-link img {
width: 16px;
height: 16px;
margin-left: 4px;
}
.surface-card {
border: 1px solid #b7e0c6;
border-radius: 18px;
background: #fbfffc;
box-shadow: 0 8px 20px rgba(69, 129, 89, 0.12);
}
.info-card {
display: flex;
align-items: center;
gap: 8px;
padding: 16px;
}
.info-label {
font-size: 1em;
font-weight: 700;
}
.balance-value {
color: #173a28;
font-size: 1.1em;
font-weight: 900;
}
.loading-text {
color: #6d7e72;
font-weight: 700;
}
.payee-card {
min-height: 78px;
}
.payee-empty {
display: flex;
align-items: center;
justify-content: center;
padding: 16px;
}
.search-button {
padding: 10px 16px;
border-radius: 8px;
background: #fff3c8;
color: rgba(0, 0, 0, 0.8);
font-weight: 800;
}
.payee-selected {
width: 100%;
}
.payee-row {
display: flex;
align-items: center;
gap: 8px;
padding: 16px;
}
.avatar-wrap {
width: 3.5em;
height: 3.5em;
flex: 0 0 3.5em;
}
.avatar-wrap img {
display: block;
width: 100%;
height: 100%;
border-radius: 50%;
object-fit: cover;
background: #dff5e7;
}
.payee-info {
flex: 1;
min-width: 0;
}
.payee-name {
margin-bottom: 4px;
color: #333;
font-weight: 800;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.payee-id {
color: #666;
font-size: 0.9em;
}
.change-button {
padding: 2px 8px;
border: 1px solid #d9eadf;
border-radius: 12px;
color: rgba(0, 0, 0, 0.42);
font-weight: 700;
}
.amount-card {
margin-bottom: 12px;
padding: 16px;
}
.amount-grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 12px;
}
.coin-item {
aspect-ratio: 1 / 1;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
border: 2px solid #cce9d7;
border-radius: 12px;
background: #e9f8ef;
cursor: pointer;
transition: transform 0.2s, border-color 0.2s, background 0.2s;
}
.coin-item.selected {
border-color: #49a86d;
background: #c9efd7;
}
.coin-item:active {
transform: scale(0.98);
}
.coin-item img {
width: 40%;
margin-bottom: 6px;
}
.coin-price {
color: #131111;
font-weight: 800;
}
.button-wrap {
display: flex;
justify-content: center;
margin-top: 10px;
}
.transfer-button {
width: 70%;
border-radius: 32px;
background: #ff9500;
padding: 12px;
color: #fff;
font-weight: 800;
}
.transfer-button:disabled {
background: #c5c5c5;
color: #fff;
}
.toast {
position: fixed;
left: 50%;
bottom: calc(22px + env(safe-area-inset-bottom));
z-index: 30;
max-width: calc(100% - 40px);
transform: translateX(-50%);
padding: 9px 13px;
border-radius: 999px;
background: rgba(22, 56, 36, 0.92);
color: #fff;
font-size: 0.9em;
font-weight: 700;
text-align: center;
}
[hidden] {
display: none !important;
}
[dir="rtl"] .details-link img,
[dir="rtl"] .header-icon img {
transform: scaleX(-1);
}
@media screen and (max-width: 360px) {
* {
font-size: 10px;
}
}
@media screen and (min-width: 360px) {
* {
font-size: 12px;
}
}
@media screen and (min-width: 768px) {
* {
font-size: 24px;
}
}