-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstylebot.css
190 lines (171 loc) · 3.88 KB
/
stylebot.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
/* OK */
body {
font-family: Arial, sans-serif;
background-color: #262626; /* Fondo oscuro 0D0D0D */
color: white;
display: flex;
flex-direction: column;
align-items: center;
height: 100vh;
margin: 0;
}
/* OK */
header {
top: 0;
width: 100%;
background: #1A1A1A;
text-align: center;
font-size: 22px;
font-weight: bold;
padding: 15px 0;
z-index: 100;
box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
display: flex;
justify-content: space-between;
align-items: center;
}
.logomolon {
margin-left: 2%;
height: 50px;
}
/* Botón en la derecha */
.log-outButton {
align-self: right;
padding: 10px 15px;
background: #FFCC00; /* Rojo olímpico */
color: black;
border: none;
border-radius: 6px;
font-size: 16px;
cursor: pointer;
transition: background 0.3s;
margin-right: 2%;
}
.log-outButton:hover {
background: #0085C7; /* Azul olímpico */
}
/* OK */
.chat-history {
flex-grow: 1; /* Se expande para ocupar el espacio disponible */
min-height: 75.5%; /* Altura mínima desde el inicio */
max-height: 75.5%; /* Máxima altura para evitar crecimiento dinámico */
min-width: 95%;
max-width: 95%;
overflow-y: auto; /* Scroll cuando sea necesario */
padding: 15px;
display: flex;
flex-direction: column;
gap: 10px;
scrollbar-width: thin;
scrollbar-color: #555 #2b2b2b;
background-color: #303030;
margin-top: 2%;
margin-bottom: 2%;
}
@keyframes fadeIn {
from{
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* OK */
.message {
max-width: 75%;
padding: 12px 16px;
border-radius: 12px;
font-size: 14px;
line-height: 1.4;
word-wrap: break-word;
display: inline-block;
animation: fadeIn 0.3s ease-in-out;
}
/* OK */
.user-message {
align-self: flex-end;
background: #0085C7;
color: white;
text-align: right;
border-radius: 12px 12px 0 12px;
}
/* OK */
.bot-message {
align-self: flex-start;
background: #34A853;
color: white;
text-align: left;
border-radius: 12px 12px 12px 0;
}
/* OK */
.chat-input {
display: flex;
gap: 10px;
padding: 10px;
background: #262626;
position: fixed;
bottom: 0;
height: 35px;
width: 100%;
max-width: 600px;
box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);
}
/* OK */
input {
flex: 1;
padding: 12px;
border: none;
border-radius: 6px;
background: #FFCC00;
color: black;
font-size: 16px;
outline: none;
}
input::placeholder {
color: #333;
}
/* OK */
.sendbtn {
padding: 8px 8px;
border: none;
border-radius: 6px;
background: #FFCC00;
color: black;
cursor: pointer;
transition: background 0.3s;
}
.sendbtn:hover {
background: #34A853;
}
.delbtn {
padding: 8px 8px;
border: none;
border-radius: 6px;
background: #FFCC00;
color: black;
cursor: pointer;
transition: background 0.3s;
}
.delbtn:hover {
background: #D81E05;
}
h2 {
position: absolute;
left: 50%;
transform: translateX(-50%);
font-size: 1.5rem;
font-weight: bold;
text-align: center;
background: linear-gradient(90deg, #0085C7, #D81E05, #FFCC00, #34A853);
background-size: 300% 300%; /* Asegura que todos los colores se desplacen */
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
animation: animar-gradiente 5s infinite linear;
}
@keyframes animar-gradiente {
0% { background-position: 0% 50%; }
50% { background-position: 100% 50%; } /* Punto intermedio donde todos los colores aparecen */
100% { background-position: 0% 50%; }
}