-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathindex.css
More file actions
155 lines (139 loc) · 3.99 KB
/
index.css
File metadata and controls
155 lines (139 loc) · 3.99 KB
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
/*
Atenção: scrollbar-width e scrollbar-color só funcionam no Firefox e Chrome 121+.
Para Chrome/Safari/Edge/Opera, use também os seletores ::-webkit-scrollbar abaixo.
Não há impacto negativo: navegadores que não suportam apenas ignoram essas propriedades.
*/
.custom-scrollbar {
scrollbar-width: thin; /* Firefox, Chrome 121+ */
scrollbar-color: #38bdf8 #1e293b; /* Firefox, Chrome 121+ */
}
.custom-scrollbar::-webkit-scrollbar {
width: 8px;
background: #1e293b;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
background: #38bdf8;
border-radius: 4px;
}
/* Navegadores sem suporte mostrarão a barra padrão */
.rag-progress-bar {
height: 0.5rem;
border-radius: 0.25rem;
background-color: #0ea5e9; /* sky-500 */
transition: width 0.3s;
}
/* Fallback para custom scrollbars em navegadores baseados em Webkit (Chrome, Edge, Safari) */
.custom-scrollbar {
scrollbar-width: thin;
scrollbar-color: #334155 #1e293b;
}
.custom-scrollbar::-webkit-scrollbar {
width: 8px;
background: #1e293b;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
background: #334155;
border-radius: 4px;
}
.custom-scrollbar::-webkit-scrollbar-track {
background: #1e293b;
}
.custom-inline-style {
/* Adicione aqui as propriedades que estavam no style inline */
}
.score-bar {
height: 100%;
background-color: #0891b2; /* Azul semelhante ao Tailwind sky-500 */
border-radius: 0.25rem;
transition: width 0.3s;
width: var(--bar-width, 100%);
}
/* Para aplicar largura dinâmica via JS, use style ou inline style mínima, pois CSS puro não lê data-score como width. */
/* Estilo para botões de ação do chat (menus dinâmicos, checklist, etc) */
.action-buttons-container {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
margin-top: 1rem;
}
.action-button {
padding: 0.5rem 1rem;
border-radius: 0.375rem;
font-size: 0.85rem;
font-weight: 500;
background: #0369a1;
color: #fff;
border: none;
cursor: pointer;
transition: background 0.2s, box-shadow 0.2s;
box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.action-button:hover {
background: #0ea5e9;
color: #fff;
box-shadow: 0 2px 8px rgba(3,105,161,0.12);
}
.action-button:active {
background: #075985;
}
/* Botão de destaque para sugestões do RAG */
.action-button.rag-suggestion {
background: #15803d;
}
.action-button.rag-suggestion:hover {
background: #22c55e;
}
/* Responsividade */
@media (max-width: 600px) {
.action-buttons-container {
flex-direction: column;
gap: 0.75rem;
}
.action-button {
width: 100%;
font-size: 1rem;
}
}
/* Scrollbar cross-browser styling */
.custom-scrollbar {
scrollbar-width: thin; /* Firefox */
scrollbar-color: #38bdf8 #1e293b; /* Firefox */
}
.custom-scrollbar::-webkit-scrollbar {
width: 8px;
background: #1e293b;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
background: #38bdf8;
border-radius: 4px;
}
/* Barra de relevância RAG dinâmica por data-score */
.score-bar[data-score] { min-width: 5%; }
.score-bar[data-score="0"] { width: 5%; }
.score-bar[data-score="0.1"] { width: 10%; }
.score-bar[data-score="0.2"] { width: 20%; }
.score-bar[data-score="0.3"] { width: 30%; }
.score-bar[data-score="0.4"] { width: 40%; }
.score-bar[data-score="0.5"] { width: 50%; }
.score-bar[data-score="0.6"] { width: 60%; }
.score-bar[data-score="0.7"] { width: 70%; }
.score-bar[data-score="0.8"] { width: 80%; }
.score-bar[data-score="0.9"] { width: 90%; }
.score-bar[data-score="1"] { width: 100%; }
/*
As regras abaixo para scrollbar-width e scrollbar-color são suportadas apenas em Firefox e Chrome 121+.
Para Chrome < 121, Safari, iOS e Samsung Internet, o fallback é feito via ::-webkit-scrollbar, ::-webkit-scrollbar-thumb e ::-webkit-scrollbar-track.
Não há impacto negativo: navegadores que não suportam apenas ignoram essas propriedades.
*/
.autor-img-bg {
background: #222;
}
/* Custom scrollbar for Webkit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
width: 8px;
background: #222;
}
::-webkit-scrollbar-thumb {
background: #444;
border-radius: 4px;
}