hsuwill000 commited on
Commit
26fc868
·
verified ·
1 Parent(s): e2becb6

Update style.css

Browse files
Files changed (1) hide show
  1. style.css +90 -35
style.css CHANGED
@@ -1,49 +1,104 @@
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
- }
 
 
 
 
 
 
 
 
 
 
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
+ }