-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
203 lines (175 loc) · 4.81 KB
/
style.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
191
192
193
194
195
196
197
198
199
200
201
202
203
/* Estilo base para o corpo da página */
body {
font-family: 'Roboto', sans-serif;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-height: 100vh;
overflow-x: hidden;
}
/* Estilos para seções e containers */
.section, .logo-container, .loading-container, .categories-container, .emoji-line-container {
display: flex;
justify-content: center;
width: 100%;
}
.section {
flex-wrap: wrap;
}
.categories-container {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 5px;
padding: 5px;
box-sizing: border-box;
justify-items: center; /* Add this line */
}
/* Estilos específicos para elementos internos */
.logo, .loading-gif {
max-width: 100%;
height: auto;
}
.loading-container {
align-items: center;
height: 500px;
}
.emoji-thumbnail, .emoji-thumbnail:hover, .emoji-thumbnail:active, .emoji-thumbnail:focus {
font-size: 1vw;
height: 60px;
width: 60px;
align-items: center;
border: 1px solid #ccc;
border-radius: 10px;
padding: 10px;
margin: 2px;
box-sizing: border-box;
transition: transform 0.3s ease;
transform: none;
}
.emoji-thumbnail:hover {
transform: scale(1.05);
}
.emoji-line-container {
overflow-x: auto;
white-space: nowrap;
}
.emoji {
font-size: 3.5vw;
padding: 1vw;
}
/* Estilos para o campo de emojis selecionados */
#selected-emojis, #selected-emojis:focus {
width: 150%;
height: 50px;
line-height: 50px;
padding: 10px 20px;
font-size: 16px;
border: 3px solid #ddd;
border-radius: 30px;
box-shadow: 0 5px 10px rgba(0,0,0,0.15);
transition: border-color 0.3s, box-shadow 0.3s;
display: block;
margin: 0 auto 30px;
text-align: center;
box-sizing: border-box;
flex-grow: 1;
}
#selected-emojis:focus {
outline: none;
border-color: #007BFF;
box-shadow: 0 0 15px rgba(0,123,255,0.5);
}
/* Estilos para botões e ícones */
#generate-btn, #start-speech-recognition {
padding: 10px 20px;
display: flex;
align-items: center;
justify-content: center;
}
#generate-btn {
background-color: #FFA500;
transition: background-color 0.3s;
}
#generate-btn.clicked {
background-color: #007BFF;
}
#start-speech-recognition {
height: 50px; /* Altura correspondente à da caixa de texto */
padding: 10px 20px; /* Ajuste o preenchimento para corresponder à caixa de entrada */
display: flex; /* Isso irá aplicar a exibição flexível ao botão */
align-items: center; /* Isso centralizará o ícone verticalmente */
justify-content: center; /* Isso centralizará o ícone horizontalmente */
margin: 0; /* Remover qualquer margem externa para alinhamento */
}
.fas.fa-microphone {
/* Se o ícone não estiver centralizado, ajuste com o seguinte: */
margin: 0; /* Remove a margem do ícone */
}
#start-speech-recognition.listening {
background-color: #4CAF50;
color: white;
}
.emoji-clicked {
transform: scale(0.4);
transition: transform 0.4s;
}
/* Media Queries para ajustar layout em telas menores */
@media (max-width: 768px) {
.categories-container {
grid-template-columns: repeat(3, 1fr);
padding: 5px;
margin: 0 2px;
overflow-x: hidden;
}
.emoji {
font-size: 3.5vw;
padding: 1vw;
}
}
@media (max-width: 700px) {
.categories-container {
grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
justify-items: center;
}
.emoji-thumbnail {
font-size: 1vw;
height: 60px;
width: 60px;
border: 1px solid #ccc;
border-radius: 10px;
padding: 10px;
margin: 2px;
box-sizing: border-box;
transition: transform 0.3s ease;
transform: none;
}
.emoji {
font-size: 6.5vw;
}
.logo-container, .categories-container, .emoji-line-container {
padding: 0;
}
}
/* Estilos gerais para flex containers */
.flex.items-center {
display: flex;
align-items: center; /* This ensures vertical alignment */
gap: 4px; /* Maintain the gap as provided */
width: 100%; /* Add this line if not present */
}
.flex.items-center.gap-4 {
display: flex;
align-items: center; /* Isso deve alinhar verticalmente */
gap: 4px; /* Espaçamento horizontal entre itens */
}
.emoji-thumbnail:focus, #generate-btn:focus, #start-speech-recognition:focus {
outline: 3px solid #007BFF; /* Um contorno azul para indicar foco */
}
@media (prefers-reduced-motion: reduce) {
.emoji-thumbnail:hover {
transform: none;
}
}