Spaces:
Running
Running
Update style.css
Browse files
style.css
CHANGED
|
@@ -1,76 +1,49 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
|
|
|
| 6 |
}
|
| 7 |
|
| 8 |
-
html,
|
| 9 |
-
body {
|
| 10 |
-
height: 100%;
|
| 11 |
-
}
|
| 12 |
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
}
|
|
|
|
|
|
|
|
|
|
| 16 |
|
| 17 |
-
body,
|
| 18 |
-
#container {
|
| 19 |
-
display: flex;
|
| 20 |
-
flex-direction: column;
|
| 21 |
-
justify-content: center;
|
| 22 |
-
align-items: center;
|
| 23 |
-
}
|
| 24 |
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
height: 640px;
|
| 31 |
-
max-width: 100%;
|
| 32 |
-
max-height: 100%;
|
| 33 |
-
|
| 34 |
-
border: 2px dashed #D1D5DB;
|
| 35 |
-
border-radius: 0.75rem;
|
| 36 |
-
overflow: hidden;
|
| 37 |
-
cursor: pointer;
|
| 38 |
-
margin: 1rem;
|
| 39 |
-
|
| 40 |
-
background-size: 100% 100%;
|
| 41 |
-
background-position: center;
|
| 42 |
-
background-repeat: no-repeat;
|
| 43 |
-
font-size: 18px;
|
| 44 |
-
}
|
| 45 |
|
| 46 |
-
#upload {
|
| 47 |
-
display: none;
|
| 48 |
-
}
|
| 49 |
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
}
|
| 53 |
|
| 54 |
-
#example {
|
| 55 |
-
font-size: 14px;
|
| 56 |
-
text-decoration: underline;
|
| 57 |
-
cursor: pointer;
|
| 58 |
-
}
|
| 59 |
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 63 |
|
| 64 |
-
.bounding-box {
|
| 65 |
-
position: absolute;
|
| 66 |
-
box-sizing: border-box;
|
| 67 |
-
border: solid 2px;
|
| 68 |
-
}
|
| 69 |
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
position: absolute;
|
| 73 |
-
font-size: 12px;
|
| 74 |
-
margin: -16px 0 0 -2px;
|
| 75 |
-
padding: 1px;
|
| 76 |
}
|
|
|
|
| 1 |
+
:root{
|
| 2 |
+
--bg:#0f1720; /* dark background */
|
| 3 |
+
--panel:#0b1116;
|
| 4 |
+
--muted:#9aa4ad;
|
| 5 |
+
--accent:#10a37f;
|
| 6 |
+
--bubble:#111827;
|
| 7 |
}
|
| 8 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
|
| 10 |
+
*{box-sizing:border-box}
|
| 11 |
+
html,body{height:100%;margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto, "Helvetica Neue",Arial}
|
| 12 |
+
body{background:linear-gradient(180deg,#071018 0%, #0b1520 100%);color:#e6eef3}
|
| 13 |
+
.app{max-width:900px;margin:28px auto;padding:20px}
|
| 14 |
+
.app-header h1{margin:0 0 12px;font-size:20px}
|
| 15 |
+
.chat-area{display:grid;grid-template-columns:320px 1fr;gap:18px}
|
| 16 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
|
| 18 |
+
.controls{background:var(--panel);padding:14px;border-radius:12px;display:flex;flex-direction:column;gap:8px}
|
| 19 |
+
.label{font-size:12px;color:var(--muted)}
|
| 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 |
+
.send-btn{margin-top:6px;padding:10px;border-radius:10px;border:none;background:var(--accent);color:white;font-weight:600;cursor:pointer}
|
| 26 |
+
.send-btn:disabled{opacity:0.6;cursor:not-allowed}
|
|
|
|
| 27 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 28 |
|
| 29 |
+
.chat-display{background:linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));padding:16px;border-radius:12px;min-height:520px;overflow:auto}
|
| 30 |
+
|
| 31 |
+
|
| 32 |
+
.message{display:flex;gap:12px;margin-bottom:12px}
|
| 33 |
+
.msg-meta{font-size:12px;color:var(--muted);margin-bottom:6px}
|
| 34 |
+
.bubble{padding:12px;border-radius:12px;max-width:78%;line-height:1.4}
|
| 35 |
+
.user .bubble{background:#0b2a2a;border:1px solid rgba(255,255,255,0.02);margin-left:auto}
|
| 36 |
+
.assistant .bubble{background:#0f1720;border:1px solid rgba(255,255,255,0.03)}
|
| 37 |
+
|
| 38 |
+
|
| 39 |
+
.app-footer{margin-top:16px;color:var(--muted);font-size:13px}
|
| 40 |
+
|
| 41 |
+
|
| 42 |
+
/* make the chat display look like stacked messages */
|
| 43 |
+
.message.user{justify-content:flex-end}
|
| 44 |
+
.message.assistant{justify-content:flex-start}
|
| 45 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 46 |
|
| 47 |
+
@media (max-width:780px){
|
| 48 |
+
.chat-area{grid-template-columns:1fr;}
|
|
|
|
|
|
|
|
|
|
|
|
|
| 49 |
}
|