Skip to content

Commit 0fe7fa8

Browse files
committed
minor changes
1 parent 7b3215d commit 0fe7fa8

1 file changed

Lines changed: 1 addition & 166 deletions

File tree

Chat/style.css

Lines changed: 1 addition & 166 deletions
Original file line numberDiff line numberDiff line change
@@ -1,163 +1,4 @@
1-
.toast {
2-
position: fixed;
3-
bottom: 20px;
4-
right: 20px;
5-
color: white;
6-
padding: 10px 20px;
7-
border-radius: 5px;
8-
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
9-
z-index: 1000;
10-
opacity: 1;
11-
transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
12-
}
13-
14-
.toast-warning {
15-
background-color: #f39c12;
16-
}
17-
18-
.toast-info {
19-
background-color: #3498db;
20-
}
21-
22-
.toast-success {
23-
background-color: #2ecc71;
24-
}
25-
26-
.toast-error {
27-
background-color: #e74c3c;
28-
}
29-
30-
.toast.fade-out {
31-
opacity: 0;
32-
transform: translateY(20px);
33-
}
34-
35-
#map {
36-
height: 300px;
37-
z-index: 1;
38-
}
39-
40-
.attitude-indicator {
41-
background: linear-gradient(to bottom, #7bb6fa 0%, #1e88e5 100%);
42-
position: relative;
43-
overflow: hidden;
44-
}
45-
46-
.attitude-ball {
47-
position: absolute;
48-
width: 80%;
49-
height: 80%;
50-
background: rgba(0, 0, 0, 0.2);
51-
border-radius: 50%;
52-
top: 50%;
53-
left: 50%;
54-
transform: translate(-50%, -50%);
55-
}
56-
57-
.attitude-horizon {
58-
position: absolute;
59-
width: 100%;
60-
height: 2px;
61-
background-color: white;
62-
top: 50%;
63-
transform: translateY(-50%);
64-
}
65-
66-
.drone-marker {
67-
background: #e74c3c;
68-
border-radius: 50%;
69-
width: 24px;
70-
height: 24px;
71-
position: relative;
72-
display: flex;
73-
justify-content: center;
74-
align-items: center;
75-
}
76-
77-
.drone-marker:after {
78-
content: "";
79-
position: absolute;
80-
width: 0;
81-
height: 0;
82-
border-left: 6px solid transparent;
83-
border-right: 6px solid transparent;
84-
border-bottom: 12px solid white;
85-
top: -10px;
86-
left: 6px;
87-
}
88-
89-
.chat-message-user {
90-
background-color: #ebf8ff;
91-
border-radius: 0.5rem;
92-
padding: 0.75rem;
93-
margin-bottom: 0.5rem;
94-
align-self: flex-end;
95-
max-width: 80%;
96-
}
97-
98-
.chat-message-bot {
99-
background-color: #f3f4f6;
100-
border-radius: 0.5rem;
101-
padding: 0.75rem;
102-
margin-bottom: 0.5rem;
103-
align-self: flex-start;
104-
max-width: 80%;
105-
}
106-
107-
.battery-indicator {
108-
height: 20px;
109-
background: linear-gradient(to right, #e74c3c, #f39c12, #2ecc71);
110-
border-radius: 3px;
111-
overflow: hidden;
112-
}
113-
114-
.battery-level {
115-
height: 100%;
116-
background-color: rgba(0, 0, 0, 0.2);
117-
transition: width 0.5s ease;
118-
}
119-
120-
.command-history {
121-
max-height: 100px;
122-
overflow-y: auto;
123-
border-top: 1px solid #eee;
124-
padding-top: 5px;
125-
}
126-
127-
.command-history-item {
128-
padding: 2px 5px;
129-
cursor: pointer;
130-
border-radius: 3px;
131-
}
132-
133-
.command-history-item:hover {
134-
background-color: #f0f0f0;
135-
}
136-
137-
#chat-messages {
138-
max-height: 750px;
139-
/* Set a fixed height for the chat container */
140-
overflow-y: auto;
141-
/* Enable vertical scrolling */
142-
padding-right: 10px;
143-
}
144-
145-
#chat-messages::-webkit-scrollbar {
146-
width: 8px;
147-
}
148-
149-
#chat-messages::-webkit-scrollbar-thumb {
150-
background-color: #cbd5e0;
151-
/* Light gray */
152-
border-radius: 4px;
153-
}
154-
155-
#chat-messages::-webkit-scrollbar-thumb:hover {
156-
background-color: #a0aec0;
157-
/* Darker gray on hover */
158-
}
159-
160-
/* Chat message bubbles */
1+
/* Chat messages */
1612
.user-text {
1623
align-self: flex-end;
1634
background-color: #2563eb; /* blue-600 */
@@ -180,10 +21,4 @@
18021
margin: 4px 0;
18122
font-size: 1rem;
18223
box-shadow: 0 1px 2px rgba(0,0,0,0.07);
183-
}
184-
185-
/* Chat container flex direction */
186-
#chatBox {
187-
display: flex;
188-
flex-direction: column;
18924
}

0 commit comments

Comments
 (0)