316 lines
4.7 KiB
CSS
316 lines
4.7 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,
|
|
input {
|
|
border: 0;
|
|
background: transparent;
|
|
color: inherit;
|
|
font: inherit;
|
|
}
|
|
|
|
.search-payee {
|
|
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 {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 14px;
|
|
padding: 16px;
|
|
}
|
|
|
|
.search-row {
|
|
display: flex;
|
|
gap: 4px;
|
|
}
|
|
|
|
.search-box {
|
|
flex: 1;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
border: 1px solid #cce9d7;
|
|
border-radius: 32px;
|
|
background: #fff;
|
|
padding: 4px 12px;
|
|
}
|
|
|
|
.search-box img {
|
|
width: 1.5em;
|
|
opacity: 0.65;
|
|
}
|
|
|
|
.search-input {
|
|
flex: 1;
|
|
width: 100%;
|
|
outline: none;
|
|
padding: 4px 0;
|
|
}
|
|
|
|
.search-action {
|
|
color: rgba(0, 0, 0, 0.45);
|
|
font-weight: 800;
|
|
}
|
|
|
|
.search-action.strong {
|
|
color: #173a28;
|
|
}
|
|
|
|
.results {
|
|
margin: 6px 0;
|
|
}
|
|
|
|
.result-card {
|
|
margin-bottom: 12px;
|
|
border: 1px solid #b7e0c6;
|
|
border-radius: 18px;
|
|
background: #fbfffc;
|
|
box-shadow: 0 8px 20px rgba(69, 129, 89, 0.12);
|
|
padding: 16px;
|
|
}
|
|
|
|
.result-row {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 4px;
|
|
}
|
|
|
|
.result-main {
|
|
flex: 1;
|
|
min-width: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.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;
|
|
}
|
|
|
|
.result-info {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.result-name {
|
|
font-weight: 900;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.result-id {
|
|
color: rgba(0, 0, 0, 0.45);
|
|
font-size: 0.9em;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.add-button {
|
|
width: auto;
|
|
border-radius: 12px;
|
|
background: #ff9500;
|
|
color: #fff;
|
|
font-size: 0.9em;
|
|
font-weight: 800;
|
|
padding: 4px 10px;
|
|
}
|
|
|
|
.state {
|
|
padding: 20px 0;
|
|
color: #5f7468;
|
|
font-weight: 800;
|
|
text-align: center;
|
|
}
|
|
|
|
.modal-layer {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 20;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: rgba(0, 0, 0, 0.45);
|
|
}
|
|
|
|
.modal-card {
|
|
width: 80%;
|
|
max-width: 420px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 20px;
|
|
border-radius: 12px;
|
|
background: #fff;
|
|
}
|
|
|
|
.modal-title {
|
|
color: rgba(0, 0, 0, 0.8);
|
|
font-size: 1.2em;
|
|
font-weight: 900;
|
|
}
|
|
|
|
.modal-message {
|
|
color: rgba(0, 0, 0, 0.45);
|
|
font-size: 1em;
|
|
font-weight: 700;
|
|
text-align: center;
|
|
}
|
|
|
|
.modal-actions {
|
|
width: 100%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-around;
|
|
}
|
|
|
|
.modal-primary,
|
|
.modal-secondary {
|
|
width: 45%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-height: 38px;
|
|
padding: 8px 12px;
|
|
border-radius: 70px;
|
|
font-weight: 900;
|
|
}
|
|
|
|
.modal-primary {
|
|
background: #ff9500;
|
|
color: #fff;
|
|
}
|
|
|
|
.modal-secondary {
|
|
border: 1px solid #ffb805;
|
|
background: #fff;
|
|
color: #ff9500;
|
|
}
|
|
|
|
.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"] .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;
|
|
}
|
|
}
|