Spaces:
Running
Running
Update style.css
Browse files
style.css
CHANGED
|
@@ -1,49 +1,104 @@
|
|
| 1 |
-
:root{
|
| 2 |
-
--bg:#0f1720;
|
| 3 |
-
--
|
| 4 |
-
--
|
| 5 |
-
--
|
| 6 |
-
--bubble:#111827;
|
| 7 |
}
|
| 8 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
.single-line{background:#07121a;border:1px solid rgba(255,255,255,0.03);color:#e6eef3;padding:10px;border-radius:8px;font-size:14px;outline:none}
|
| 21 |
-
.single-line::placeholder{color:rgba(230,238,243,0.5)}
|
| 22 |
-
.single-line{white-space:nowrap;overflow:auto}
|
| 23 |
-
|
| 24 |
|
| 25 |
-
.
|
| 26 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 27 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 28 |
|
| 29 |
-
.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
|
| 32 |
-
.message{
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
.assistant .bubble{background:#0f1720;border:1px solid rgba(255,255,255,0.03)}
|
| 37 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
|
| 39 |
-
.
|
|
|
|
|
|
|
| 40 |
|
|
|
|
|
|
|
|
|
|
| 41 |
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
|
|
|
| 45 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 46 |
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
:root {
|
| 2 |
+
--bg: #0f1720;
|
| 3 |
+
--accent: #10a37f;
|
| 4 |
+
--assistant-bg: #1f2937;
|
| 5 |
+
--user-bg: #0b2a2a;
|
|
|
|
| 6 |
}
|
| 7 |
|
| 8 |
+
* { box-sizing: border-box; }
|
| 9 |
+
body {
|
| 10 |
+
margin: 0;
|
| 11 |
+
background: var(--bg);
|
| 12 |
+
color: #f0f0f0;
|
| 13 |
+
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
|
| 14 |
+
display: flex;
|
| 15 |
+
justify-content: center;
|
| 16 |
+
align-items: center;
|
| 17 |
+
min-height: 100vh;
|
| 18 |
+
}
|
| 19 |
|
| 20 |
+
.chat-container {
|
| 21 |
+
width: 100%;
|
| 22 |
+
max-width: 900px;
|
| 23 |
+
height: 95vh;
|
| 24 |
+
display: flex;
|
| 25 |
+
flex-direction: column;
|
| 26 |
+
background: #0c131c;
|
| 27 |
+
border-radius: 10px;
|
| 28 |
+
overflow: hidden;
|
| 29 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
|
| 31 |
+
.chat-header {
|
| 32 |
+
padding: 12px 16px;
|
| 33 |
+
background: #0b1116;
|
| 34 |
+
text-align: center;
|
| 35 |
+
font-weight: 600;
|
| 36 |
+
border-bottom: 1px solid rgba(255,255,255,0.1);
|
| 37 |
+
}
|
| 38 |
|
| 39 |
+
.chat-window {
|
| 40 |
+
flex: 1;
|
| 41 |
+
padding: 16px;
|
| 42 |
+
overflow-y: auto;
|
| 43 |
+
}
|
| 44 |
|
| 45 |
+
.message {
|
| 46 |
+
display: flex;
|
| 47 |
+
margin-bottom: 12px;
|
| 48 |
+
gap: 8px;
|
| 49 |
+
max-width: 80%;
|
| 50 |
+
word-wrap: break-word;
|
| 51 |
+
}
|
| 52 |
|
| 53 |
+
.message.user {
|
| 54 |
+
justify-content: flex-end;
|
| 55 |
+
margin-left: auto;
|
| 56 |
+
}
|
| 57 |
|
| 58 |
+
.message.assistant {
|
| 59 |
+
justify-content: flex-start;
|
| 60 |
+
margin-right: auto;
|
| 61 |
+
}
|
|
|
|
| 62 |
|
| 63 |
+
.bubble {
|
| 64 |
+
padding: 10px 14px;
|
| 65 |
+
border-radius: 10px;
|
| 66 |
+
line-height: 1.4;
|
| 67 |
+
}
|
| 68 |
|
| 69 |
+
.user .bubble {
|
| 70 |
+
background: var(--user-bg);
|
| 71 |
+
}
|
| 72 |
|
| 73 |
+
.assistant .bubble {
|
| 74 |
+
background: var(--assistant-bg);
|
| 75 |
+
}
|
| 76 |
|
| 77 |
+
.chat-input-area {
|
| 78 |
+
display: flex;
|
| 79 |
+
border-top: 1px solid rgba(255,255,255,0.1);
|
| 80 |
+
}
|
| 81 |
|
| 82 |
+
.chat-input-area textarea {
|
| 83 |
+
flex: 1;
|
| 84 |
+
resize: none;
|
| 85 |
+
background: #0b1116;
|
| 86 |
+
color: #f0f0f0;
|
| 87 |
+
border: none;
|
| 88 |
+
padding: 14px;
|
| 89 |
+
font-size: 15px;
|
| 90 |
+
outline: none;
|
| 91 |
+
}
|
| 92 |
|
| 93 |
+
.chat-input-area button {
|
| 94 |
+
background: var(--accent);
|
| 95 |
+
color: white;
|
| 96 |
+
border: none;
|
| 97 |
+
padding: 14px 20px;
|
| 98 |
+
cursor: pointer;
|
| 99 |
+
font-weight: bold;
|
| 100 |
+
}
|
| 101 |
+
.chat-input-area button:disabled {
|
| 102 |
+
opacity: 0.6;
|
| 103 |
+
cursor: not-allowed;
|
| 104 |
+
}
|