ym923 | 6e0ddcf | 2025-06-09 20:14:11 +0800 | [diff] [blame] | 1 | /* FriendManager.css */ |
| 2 | |
| 3 | .friend-manager-container { |
| 4 | max-width: 800px; |
| 5 | margin: 20px auto; |
| 6 | padding: 0 15px; |
| 7 | } |
| 8 | |
| 9 | .friend-card { |
| 10 | border-radius: 10px; |
| 11 | box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); |
| 12 | } |
| 13 | |
| 14 | .friend-header { |
| 15 | display: flex; |
| 16 | align-items: center; |
| 17 | margin-bottom: 10px; |
| 18 | } |
| 19 | |
| 20 | .header-icon { |
| 21 | font-size: 24px; |
| 22 | color: #1890ff; |
| 23 | margin-right: 12px; |
| 24 | } |
| 25 | |
| 26 | .header-title { |
| 27 | margin: 0 !important; |
| 28 | } |
| 29 | |
| 30 | .search-section { |
| 31 | display: flex; |
| 32 | margin-bottom: 24px; |
| 33 | gap: 12px; |
| 34 | } |
| 35 | |
| 36 | .search-input { |
| 37 | flex: 1; |
| 38 | border-radius: 20px; |
| 39 | padding: 10px 16px; |
| 40 | } |
| 41 | |
| 42 | .search-button { |
| 43 | border-radius: 20px; |
| 44 | padding: 0 24px; |
| 45 | height: 40px; |
| 46 | } |
| 47 | |
| 48 | .search-results-container { |
| 49 | margin-bottom: 24px; |
| 50 | background: #fafafa; |
| 51 | border-radius: 8px; |
| 52 | padding: 16px; |
| 53 | border: 1px solid #f0f0f0; |
| 54 | } |
| 55 | |
| 56 | .results-title { |
| 57 | margin-bottom: 16px !important; |
| 58 | color: #333; |
| 59 | } |
| 60 | |
| 61 | .user-item { |
| 62 | padding: 12px; |
| 63 | border-radius: 8px; |
| 64 | transition: all 0.3s; |
| 65 | cursor: pointer; |
| 66 | } |
| 67 | |
| 68 | .user-item:hover { |
| 69 | background-color: #f5f7fa; |
| 70 | } |
| 71 | |
| 72 | .user-avatar { |
| 73 | background-color: #1890ff; |
| 74 | } |
| 75 | |
| 76 | .add-friend-button { |
| 77 | border-radius: 16px; |
| 78 | } |
| 79 | |
| 80 | .section-title { |
| 81 | margin-bottom: 16px !important; |
| 82 | color: #333; |
| 83 | position: relative; |
| 84 | padding-left: 10px; |
| 85 | } |
| 86 | |
| 87 | .section-title::before { |
| 88 | content: ''; |
| 89 | position: absolute; |
| 90 | left: 0; |
| 91 | top: 5px; |
| 92 | height: 20px; |
| 93 | width: 4px; |
| 94 | background-color: #1890ff; |
| 95 | border-radius: 2px; |
| 96 | } |
| 97 | |
| 98 | .request-item, |
| 99 | .friend-item { |
| 100 | padding: 12px 16px; |
| 101 | border-radius: 8px; |
| 102 | margin-bottom: 8px; |
| 103 | border: 1px solid #f0f0f0; |
| 104 | transition: all 0.3s; |
| 105 | } |
| 106 | |
| 107 | .request-item:hover, |
| 108 | .friend-item:hover { |
| 109 | box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); |
| 110 | transform: translateY(-2px); |
| 111 | border-color: #d0e0ff; |
| 112 | } |
| 113 | |
| 114 | .accept-button { |
| 115 | background-color: #52c41a; |
| 116 | border-color: #52c41a; |
| 117 | } |
| 118 | |
| 119 | .reject-button { |
| 120 | background-color: #f5222d; |
| 121 | border-color: #f5222d; |
| 122 | color: white; |
| 123 | } |
| 124 | |
| 125 | .delete-button { |
| 126 | border-radius: 16px; |
| 127 | } |
| 128 | |
| 129 | .friend-list-section { |
| 130 | margin-top: 24px; |
| 131 | } |
| 132 | |
| 133 | .friend-list-header { |
| 134 | display: flex; |
| 135 | justify-content: space-between; |
| 136 | margin-bottom: 16px; |
| 137 | } |
| 138 | |
| 139 | .refresh-button { |
| 140 | color: #1890ff; |
| 141 | } |
| 142 | |
| 143 | @media (max-width: 768px) { |
| 144 | .search-section { |
| 145 | flex-direction: column; |
| 146 | } |
| 147 | |
| 148 | .search-button { |
| 149 | width: 100%; |
| 150 | } |
| 151 | |
| 152 | .friend-card { |
| 153 | padding: 16px; |
| 154 | } |
| 155 | } |