|
1 | 1 | .chat-container { |
2 | 2 | display: flex; |
3 | 3 | height: 100vh; |
4 | | - background-color: #f5f5f5; |
5 | | - color: #333; |
| 4 | + background-color: var(--primary-light-grey); |
| 5 | + box-shadow: 0 4px 6px -2px var(--shadow-dark-grey); |
| 6 | + color: var(--secondary-dark-grey); |
6 | 7 | font-family: 'Segoe UI', sans-serif; |
7 | 8 | } |
8 | 9 |
|
9 | 10 | .sidebar { |
10 | 11 | width: 320px; |
11 | | - background-color: #fff; |
12 | | - border-right: 1px solid #ddd; |
| 12 | + background-color: var(--primary-white); |
| 13 | + border-right: 1px solid var(--primary-white); |
13 | 14 | display: flex; |
14 | 15 | flex-direction: column; |
15 | 16 | } |
|
21 | 22 | width: 100%; |
22 | 23 | padding: 8px; |
23 | 24 | border-radius: 4px; |
24 | | - background-color: #efefef; |
25 | | - border: 1px solid #ccc; |
26 | | - color: #333; |
| 25 | + background-color: var(--primary-white); |
| 26 | + border: 1px solid var(--quaternary-light-grey); |
| 27 | + color: var(--secondary-dark-grey); |
27 | 28 | } |
28 | 29 | } |
29 | 30 |
|
|
43 | 44 | transition: background 0.2s; |
44 | 45 |
|
45 | 46 | &:hover { |
46 | | - background-color: #f0f0f0; |
| 47 | + background-color: var(--after-primary-light-grey); |
47 | 48 | } |
48 | 49 |
|
49 | 50 | &.selected { |
50 | | - background-color: #e0e0e0; |
| 51 | + background-color: var(--primary-light-grey); |
51 | 52 | } |
52 | 53 |
|
53 | 54 | .avatar { |
54 | | - background-color: #ccc; |
55 | | - color: #000; |
| 55 | + background-color: var(--quaternary-light-grey); |
| 56 | + color: var(--freinacht-black); |
56 | 57 | width: 40px; |
57 | 58 | height: 40px; |
58 | 59 | border-radius: 50%; |
|
72 | 73 |
|
73 | 74 | .last-message { |
74 | 75 | font-size: 0.85em; |
75 | | - color: #666; |
| 76 | + color: var(--tertiary-grey); |
76 | 77 | } |
77 | 78 | } |
78 | 79 |
|
79 | 80 | .timestamp { |
80 | 81 | font-size: 0.75em; |
81 | | - color: #999; |
| 82 | + color: var(--quintynary-light-grey); |
82 | 83 | } |
83 | 84 | } |
84 | 85 |
|
85 | 86 | .chat-view { |
86 | 87 | flex-grow: 1; |
87 | 88 | display: flex; |
88 | 89 | flex-direction: column; |
89 | | - background-color: #fafafa; |
| 90 | + background-color: var(--after-primary-light-grey); |
90 | 91 | overflow: hidden; |
91 | 92 | padding: 0; |
92 | 93 | } |
|
102 | 103 | font-weight: bold; |
103 | 104 | font-size: 1.2em; |
104 | 105 | padding: 12px 0; |
105 | | - border-bottom: 1px solid #ccc; |
106 | | - color: #333; |
| 106 | + border-bottom: 1px solid var(--quaternary-light-grey); |
| 107 | + color: var(--secondary-dark-grey); |
107 | 108 | flex-shrink: 0; |
108 | 109 | display: flex; |
109 | 110 | justify-content: space-between; |
|
130 | 131 |
|
131 | 132 | &.sent { |
132 | 133 | align-self: flex-end; |
133 | | - background-color: #daf1ff; |
134 | | - color: #003d66; |
| 134 | + background-color: var(--primary-light-green); |
| 135 | + color: var(--freinacht-black); |
135 | 136 | } |
136 | 137 |
|
137 | 138 | &.received { |
138 | 139 | align-self: flex-start; |
139 | | - background-color: #e8e8e8; |
140 | | - color: #222; |
| 140 | + background-color: var(--shadow-dark-grey); |
| 141 | + color: var(--freinacht-black); |
141 | 142 | } |
142 | 143 |
|
143 | 144 | .message-time { |
144 | 145 | font-size: 0.75em; |
145 | | - color: #777; |
| 146 | + color: var(--quintynary-light-grey); |
146 | 147 | margin-top: 4px; |
147 | 148 | text-align: right; |
148 | 149 | } |
149 | 150 | } |
150 | 151 |
|
151 | 152 | .placeholder-text { |
152 | | - color: #999; |
| 153 | + color: var(--quaternary-light-grey); |
153 | 154 | font-size: 1.2em; |
154 | 155 | text-align: center; |
155 | 156 | } |
156 | 157 |
|
157 | 158 | .message-input-container { |
158 | 159 | display: flex; |
159 | 160 | padding: 12px 0; |
160 | | - border-top: 1px solid #ccc; |
| 161 | + border-top: 1px solid var(--quaternary-light-grey); |
161 | 162 | margin-top: auto; |
162 | 163 |
|
163 | 164 | input { |
164 | 165 | flex-grow: 1; |
165 | 166 | padding: 10px 14px; |
166 | | - border: 1px solid #ccc; |
| 167 | + border: 1px solid var(--quaternary-light-grey); |
167 | 168 | border-radius: 20px; |
168 | 169 | font-size: 14px; |
169 | 170 | outline: none; |
170 | 171 | margin-right: 10px; |
171 | 172 | } |
172 | | - |
173 | | - button { |
174 | | - background-color: #007bff; |
175 | | - border: none; |
176 | | - color: white; |
177 | | - font-size: 16px; |
178 | | - padding: 10px 16px; |
179 | | - border-radius: 50%; |
180 | | - cursor: pointer; |
181 | | - transition: background 0.3s; |
182 | | - |
183 | | - &:hover { |
184 | | - background-color: #0056b3; |
185 | | - } |
186 | | - } |
187 | 173 | } |
188 | 174 |
|
189 | 175 | .client-info-button { |
190 | 176 | font-size: 1.5rem; |
191 | | - background-color: #f0f0f0; |
| 177 | + background-color: var(--after-primary-light-grey); |
192 | 178 | border: none; |
193 | 179 | border-radius: 50%; |
194 | 180 | padding: 0.5rem; |
195 | 181 | cursor: pointer; |
196 | | - box-shadow: 0 2px 5px rgb(0 0 0 / 20%); |
| 182 | + box-shadow: 0 2px 5px var(--shadow-dark-grey); |
197 | 183 | transition: background-color 0.2s ease; |
198 | 184 | width: 52px; |
199 | 185 |
|
200 | 186 | &:hover { |
201 | | - background-color: #e0e0e0; |
202 | | - } |
203 | | - |
204 | | - &:focus { |
205 | | - outline: 2px solid #007bff; |
206 | | - outline-offset: 2px; |
| 187 | + background-color: var(--secondary-grey); |
207 | 188 | } |
208 | 189 | } |
209 | 190 |
|
210 | 191 | .client-info-panel { |
211 | | - background-color: #f3f3f3; |
212 | | - border-top: 1px solid #ccc; |
| 192 | + background-color: var(--primary-light-grey); |
| 193 | + border-top: 1px solid var(--quintynary-light-grey); |
213 | 194 | padding: 1rem; |
214 | 195 | font-size: 0.95rem; |
215 | 196 | animation: fade-in-panel 250ms ease-in-out; |
216 | | - box-shadow: inset 0 1px 3px rgb(0 0 0 / 5%); |
| 197 | + box-shadow: inset 0 1px 3px var(--shadow-dark-grey); |
217 | 198 |
|
218 | 199 | strong { |
219 | | - color: #333; |
| 200 | + color: var(--secondary-dark-grey); |
220 | 201 | } |
221 | 202 | } |
222 | 203 |
|
|
238 | 219 | align-items: center; |
239 | 220 | min-height: 100vh; |
240 | 221 | } |
| 222 | + |
| 223 | +.send-message-button { |
| 224 | + display: flex; |
| 225 | + align-items: center; |
| 226 | + justify-content: center; |
| 227 | + background-color: var(--primary-green); |
| 228 | + border: none; |
| 229 | + color: var(--primary-white); |
| 230 | + width: 42px; |
| 231 | + height: 42px; |
| 232 | + border-radius: 50%; |
| 233 | + cursor: pointer; |
| 234 | + transition: background-color 0.3s; |
| 235 | + |
| 236 | + svg { |
| 237 | + display: block; |
| 238 | + width: 30px; |
| 239 | + height: 30px; |
| 240 | + transform: rotate(180deg); |
| 241 | + } |
| 242 | + |
| 243 | + &:hover { |
| 244 | + background-color: var(--secondary-dark-green); |
| 245 | + } |
| 246 | + |
| 247 | + &:focus { |
| 248 | + outline: 2px solid var(--primary-green); |
| 249 | + outline-offset: 2px; |
| 250 | + } |
| 251 | +} |
0 commit comments