File size: 1,570 Bytes
727a40a | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 | .search_box {
background: var(--bg-color);
border-radius: 20px;
width: 100%;
max-width: 450px;
max-height: 900px;
display: flex;
height: 100vh;
flex-direction: column;
box-shadow: 0 8px 16px var(--shadow-color);
}
.search-bar {
display: flex;
align-items: center;
margin: 15px;
background: var(--friend-item-hover);
padding: 10px;
border-radius: 10px;
}
.search-bar input {
flex: 1;
padding: 8px 10px;
border: none;
background: transparent;
color: var(--text-color);
font-size: 16px;
outline: none;
}
.search-bar button {
background: transparent;
border: none;
cursor: pointer;
display: flex;
align-items: center;
}
.search-bar img {
width: 24px;
height: 24px;
filter: var(--icon-color);
}
.results-list {
flex: 1;
background-color: var(--bg-color);
margin-top: 1px;
overflow-y: auto;
}
.result-item {
display: flex;
align-items: center;
justify-content: space-between;
padding: 14px;
border-bottom: 1px solid var(--shadow-color);
cursor: pointer;
transition: background-color 0.3s ease;
transition: transform 0.3s ease;
}
.result-item:hover {
background-color: var(--friend-item-hover);
}
.result-item img {
width: 45px;
height: 45px;
border-radius: 50%;
margin-right: 15px;
}
.result-item .details {
flex: 1;
}
.result-item .details p {
margin: 2px 0;
color: var(--text-color);
}
.result-item .details .name {
font-weight: bold;
font-size: 16px;
} |