Yuchan5386 commited on
Commit
b093db4
·
verified ·
1 Parent(s): 3da013f

Create style.css

Browse files
Files changed (1) hide show
  1. style.css +245 -0
style.css ADDED
@@ -0,0 +1,245 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* Kossistant 스타일 CSS */
2
+
3
+ * {
4
+ box-sizing: border-box;
5
+ -webkit-tap-highlight-color: transparent;
6
+ }
7
+
8
+ body {
9
+ margin: 0;
10
+ padding: 0;
11
+ font-family: 'Pretendard', 'Segoe UI', 'Apple SD Gothic Neo', sans-serif;
12
+ background-color: #121212;
13
+ color: #FFF;
14
+ overflow-x: hidden;
15
+ transition: background-color 0.3s ease;
16
+ }
17
+
18
+ .gradio-container {
19
+ background-color: #121212 !important;
20
+ color: white;
21
+ }
22
+
23
+ h1 {
24
+ text-align: center;
25
+ font-size: 2rem;
26
+ color: #00f7ff;
27
+ margin: 30px 0;
28
+ text-transform: uppercase;
29
+ letter-spacing: 1px;
30
+ animation: fadeIn 1.5s ease-in-out;
31
+ }
32
+
33
+ .chat-wrapper {
34
+ background-color: #1A1A1A;
35
+ border-radius: 20px;
36
+ padding: 30px 35px;
37
+ max-width: 768px;
38
+ margin: auto;
39
+ box-shadow: 0 0 20px rgba(0,0,0,0.3);
40
+ height: 75vh;
41
+ display: flex;
42
+ flex-direction: column;
43
+ justify-content: space-between;
44
+ transition: background-color 0.3s ease, box-shadow 0.3s ease;
45
+ }
46
+
47
+ .chat-wrapper:hover {
48
+ box-shadow: 0 0 30px rgba(0,0,0,0.5);
49
+ }
50
+
51
+ .chat-container {
52
+ overflow-y: auto;
53
+ flex-grow: 1;
54
+ padding-right: 10px;
55
+ margin-bottom: 30px;
56
+ scrollbar-width: thin;
57
+ scrollbar-color: #444 #1A1A1A;
58
+ }
59
+
60
+ .chat-container::-webkit-scrollbar {
61
+ width: 6px;
62
+ }
63
+
64
+ .chat-container::-webkit-scrollbar-thumb {
65
+ background-color: #444;
66
+ border-radius: 3px;
67
+ }
68
+
69
+ .message {
70
+ margin-bottom: 14px;
71
+ display: flex;
72
+ animation: slideIn 0.3s ease-in-out;
73
+ flex-direction: column;
74
+ gap: 8px;
75
+ }
76
+
77
+ .user {
78
+ justify-content: flex-end;
79
+ }
80
+
81
+ .bot {
82
+ justify-content: flex-start;
83
+ }
84
+
85
+ .bubble {
86
+ max-width: 80%;
87
+ padding: 12px 16px;
88
+ border-radius: 20px;
89
+ line-height: 1.6;
90
+ font-size: 0.98rem;
91
+ position: relative;
92
+ animation: fadeIn 0.5s ease-in-out;
93
+ word-break: break-word;
94
+ white-space: pre-wrap;
95
+ transition: background-color 0.3s ease, box-shadow 0.3s ease;
96
+ }
97
+
98
+ .user-bubble {
99
+ background-color: #00796B;
100
+ color: white;
101
+ border-bottom-right-radius: 0;
102
+ align-self: flex-end;
103
+ box-shadow: 0 4px 8px rgba(0, 121, 107, 0.3);
104
+ padding: 14px 18px;
105
+ border-radius: 18px;
106
+ transition: all 0.3s ease-in-out;
107
+ }
108
+
109
+ .user-bubble:after {
110
+ content: '';
111
+ position: absolute;
112
+ right: -10px;
113
+ top: 10px;
114
+ border: 6px solid transparent;
115
+ border-left-color: #00796B;
116
+ }
117
+
118
+ .user-bubble:hover {
119
+ background-color: #004d40;
120
+ transform: scale(1.05);
121
+ }
122
+
123
+ .bot-bubble {
124
+ background-color: #2F3136;
125
+ color: white;
126
+ border-bottom-left-radius: 0;
127
+ align-self: flex-start;
128
+ box-shadow: 0 4px 8px rgba(255, 255, 255, 0.1);
129
+ padding: 14px 18px;
130
+ border-radius: 18px;
131
+ transition: all 0.3s ease-in-out;
132
+ }
133
+
134
+ .bot-bubble:after {
135
+ content: '';
136
+ position: absolute;
137
+ left: -10px;
138
+ top: 10px;
139
+ border: 6px solid transparent;
140
+ border-right-color: #2F3136;
141
+ }
142
+
143
+ .bot-bubble:hover {
144
+ background-color: #1a1a1a;
145
+ transform: scale(1.05);
146
+ }
147
+
148
+ textarea, input[type="text"] {
149
+ background-color: #2C2C2C !important;
150
+ color: white !important;
151
+ border: 1px solid #555 !important;
152
+ border-radius: 14px !important;
153
+ padding: 12px 14px !important;
154
+ font-size: 1rem;
155
+ width: 100%;
156
+ transition: all 0.2s ease-in-out;
157
+ }
158
+
159
+ textarea:focus, input[type="text"]:focus {
160
+ outline: none;
161
+ border-color: #00f7ff !important;
162
+ box-shadow: 0 0 5px #00f7ff55;
163
+ }
164
+
165
+ button {
166
+ background-color: #00C896 !important;
167
+ color: white !important;
168
+ font-weight: bold;
169
+ border: none !important;
170
+ border-radius: 14px !important;
171
+ padding: 12px 18px !important;
172
+ font-size: 1rem;
173
+ transition: all 0.2s ease-in-out;
174
+ }
175
+
176
+ button:hover {
177
+ background-color: #00a67e !important;
178
+ transform: scale(1.05);
179
+ }
180
+
181
+ ::selection {
182
+ background: #00f7ff;
183
+ color: #000;
184
+ }
185
+
186
+ @keyframes slideIn {
187
+ 0% { transform: translateY(10px); opacity: 0; }
188
+ 100% { transform: translateY(0); opacity: 1; }
189
+ }
190
+
191
+ @keyframes fadeIn {
192
+ 0% { opacity: 0; }
193
+ 100% { opacity: 1; }
194
+ }
195
+
196
+ /* gradio 기본 요소 추가 커스터마이징 */
197
+ .gradio-textbox input, .gradio-textbox textarea {
198
+ background-color: #2C2C2C;
199
+ color: white;
200
+ border-radius: 14px;
201
+ padding: 12px 16px;
202
+ border: 1px solid #444;
203
+ }
204
+
205
+ .gradio-textbox input:focus, .gradio-textbox textarea:focus {
206
+ border-color: #00f7ff;
207
+ outline: none;
208
+ box-shadow: 0 0 5px rgba(0, 247, 255, 0.5);
209
+ }
210
+
211
+ .gradio-button {
212
+ background-color: #00C896;
213
+ color: white;
214
+ padding: 12px 18px;
215
+ border-radius: 14px;
216
+ font-size: 1rem;
217
+ transition: all 0.2s ease;
218
+ }
219
+
220
+ .gradio-button:hover {
221
+ background-color: #00a67e;
222
+ transform: scale(1.05);
223
+ }
224
+
225
+ @media screen and (max-width: 1024px) {
226
+ .chat-wrapper {
227
+ padding: 20px 25px;
228
+ }
229
+ .message {
230
+ gap: 12px;
231
+ }
232
+ }
233
+
234
+ @media screen and (max-width: 768px) {
235
+ .chat-wrapper {
236
+ padding: 15px 20px;
237
+ border-radius: 0;
238
+ }
239
+ .bubble {
240
+ font-size: 0.95rem;
241
+ }
242
+ .message {
243
+ gap: 8px;
244
+ }
245
+ }