forked from gllmAR/prompt-gen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
266 lines (232 loc) · 4.77 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
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
/* Define color variables */
:root {
--background-color: #ffffff;
--text-color: #000000;
--input-bg-color: #f9f9f9;
--input-border-color: #cccccc;
--button-bg-color: #007BFF;
--button-text-color: #ffffff;
--success-color: #28a745; /* Green */
--error-color: #dc3545; /* Red */
}
[data-theme="dark"] {
--background-color: #121212;
--text-color: #ffffff;
--input-bg-color: #1e1e1e;
--input-border-color: #444444;
--button-bg-color: #1a73e8;
--button-text-color: #ffffff;
--success-color: #28a745;
--error-color: #dc3545;
}
/* General Styles */
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: var(--background-color);
color: var(--text-color);
}
.container {
max-width: 900px;
margin: auto;
padding: 10px;
}
/* Settings Section */
.settings {
display: flex;
justify-content: space-between;
align-items: center;
}
.language-selector {
position: relative;
}
.language-menu {
display: none;
position: absolute;
right: 0;
background-color: var(--input-bg-color);
border: 1px solid var(--input-border-color);
border-radius: 5px;
margin-top: 5px;
}
.language-menu button {
display: block;
width: 100%;
padding: 5px 10px;
background: none;
border: none;
text-align: left;
cursor: pointer;
color: var(--text-color);
}
.language-menu button:hover {
background-color: var(--button-bg-color);
color: var(--button-text-color);
}
#language-btn {
background: none;
border: none;
font-size: 16px;
cursor: pointer;
color: var(--text-color);
}
#theme-toggle {
font-size: 24px;
background: none;
border: none;
cursor: pointer;
color: var(--text-color);
}
h1 {
text-align: center;
margin: 10px 0;
}
/* Dropdown Groups */
#dropdown-groups {
display: flex;
flex-wrap: wrap;
gap: 10px;
margin-top: 10px;
margin-bottom: 120px; /* Space for prompt-section */
}
.dropdown-group {
flex: 1 1 calc(25% - 10px); /* 4 columns */
min-width: 150px;
}
.dropdown-group label {
font-weight: bold;
display: block;
margin-bottom: 5px;
color: var(--text-color);
}
.dropdown-group select {
width: 100%;
padding: 8px;
font-size: 14px;
border-radius: 5px;
border: 1px solid var(--input-border-color);
background-color: var(--input-bg-color);
color: var(--text-color);
}
/* Prompt Section */
.prompt-section {
position: fixed;
bottom: 0;
left: 0;
right: 0;
background-color: var(--background-color);
padding: 10px;
border-top: 1px solid var(--input-border-color);
}
.prompt-section .container {
max-width: 900px;
margin: auto;
}
#prompt {
width: 100%;
height: 60px;
font-size: 16px;
margin-top: 5px;
padding: 8px;
border: 1px solid var(--input-border-color);
border-radius: 5px;
background-color: var(--input-bg-color);
color: var(--text-color);
resize: none;
}
/* Action Buttons */
.buttons {
display: flex;
justify-content: space-around;
margin-top: 5px;
}
.buttons button {
flex: 1;
padding: 8px;
font-size: 20px;
cursor: pointer;
border: none;
background: none;
color: var(--text-color);
border: 2px solid transparent; /* Default border */
border-radius: 5px;
}
/* Hover effect */
.buttons button:hover {
color: var(--button-bg-color);
}
/* Success and Error Animations */
@keyframes fadeInOutSuccess {
0% {
border-color: var(--success-color);
opacity: 1;
}
100% {
border-color: transparent;
opacity: 1;
}
}
@keyframes fadeInOutError {
0% {
border-color: var(--error-color);
opacity: 1;
}
100% {
border-color: transparent;
opacity: 1;
}
}
.buttons button.success {
animation: fadeInOutSuccess 1s ease-in-out;
}
.buttons button.error {
animation: fadeInOutError 1s ease-in-out;
}
/* Ensure the border returns to default after animation */
.buttons button.success,
.buttons button.error {
border-color: transparent;
}
/* Highlight effect for the prompt textarea */
.highlight {
animation: highlightAnimation 0.5s ease-in-out;
}
@keyframes highlightAnimation {
0% {
border-color: gold;
box-shadow: 0 0 10px gold;
}
100% {
border-color: var(--input-border-color);
box-shadow: none;
}
}
/* Responsive Design */
/* Adjust for screens wider than 1200px */
@media (min-width: 1200px) {
.dropdown-group {
flex: 1 1 calc(25% - 10px); /* 4 columns */
}
}
/* Adjust for screens between 900px and 1199px */
@media (min-width: 900px) and (max-width: 1199px) {
.dropdown-group {
flex: 1 1 calc(33.33% - 10px); /* 3 columns */
}
}
/* Adjust for screens between 600px and 899px */
@media (min-width: 600px) and (max-width: 899px) {
.dropdown-group {
flex: 1 1 calc(50% - 10px); /* 2 columns */
}
}
/* For screens less than 600px */
@media (max-width: 599px) {
.dropdown-group {
flex: 1 1 100%; /* 1 column */
}
#prompt {
height: 80px;
}
}