-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstyles.css
More file actions
308 lines (275 loc) · 7.3 KB
/
styles.css
File metadata and controls
308 lines (275 loc) · 7.3 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
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
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
body {
display: flex;
flex-direction: column;
justify-items: center;
justify-content: center;
align-items: center;
width: 100%;
background-color: #2a2a2a; /* Dark background color */
color: #ffffff; /* Light text color */
font-family: 'Courier New', Courier, monospace; /* Use a monospaced font */
font-size: 16px; /* Set font size */
padding: 1.5em 0 1.5em 0;
overflow-x: hidden;
}
h1 {
color: #ffffff; /* Light text color for headings */
}
h2 {
margin-top: -1em;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Modern sans-serif font */
}
.index{
display: flex;
flex-direction: row;
align-items: center;
height: 60vh;
}
#logo {
height: 4em;
margin-left: 1em;
}
/* Styles for generated text */
#textBox {
position: relative; /* Add relative positioning to enable absolute positioning */
padding-top: 1.5em;
background-color: #1e1e1e;
color: #d4d4d4;
font-family: 'Courier New', Courier, monospace;
font-size: 1em;
margin-top: 1em;
margin-left: 1em;
border-radius: 1em;
white-space: pre-wrap;
max-width: 64em;
min-width: 65vw;
min-height: 24em;
}
#copyText {
position: absolute; /* Position the copyText button absolutely */
top: 2em; /* Position it at the top */
right: 2em; /* Position it at the right */
display: flex;
align-items: center;
justify-content: center;
background: none;
border: none;
opacity: 0;
cursor: pointer; /* Change cursor to pointer on hover */
}
.copyIcon {
width: 4em;
content: url('clipboard.png');
}
.copyIcon:hover {
content: url('clipboard-color.png');
transition: all 1.5s ease;
}
.copyIconClicked {
width: 4em;
content: url('clipboard-check.png');
}
.copyIconClicked:hover {
content: url('clipboard-check-colored.png');
transition: all 1.5s ease;
}
#generatedText {
margin-top: -3em;
padding-left: 3em;
padding-right: 2.5em;
}
#inputBox {
padding-top: 1.5em;
background-color: #1e1e1e; /* Dark background color */
color: #d4d4d4; /* Light text color */
font-family: 'Courier New', Courier, monospace; /* Use a monospaced font */
font-size: 1em; /* Set font size */
margin-top: 1em; /* Adjust margin as needed */
margin-left: 1em; /* Adjust margin as needed */
border-radius: 1em; /* Add some border radius for aesthetics */
min-width: 75vw; /* Set minimum width */
}
.input-container {
display: flex;
align-items: center;
border: 1px solid #ccc;
border-radius: 1em;
margin: 1em;
}
.input-container input[type='text'] {
flex: 1;
margin-right: 10px;
padding: 5px;
border: none;
border-radius: 1em;
box-sizing: border-box;
}
.input-container button {
background-color: #ff7999; /* Pink background color for the button */
color: #ffffff; /* White text color for the button */
border: none; /* Remove border */
padding: 0.75em 1.25em; /* Add padding */
font-size: 1em; /* Increase font size */
cursor: pointer; /* Change cursor to pointer on hover */
transition: background-color 0.8s ease; /* Smooth transition for background color */
border-radius: 0.5em; /* Add some border radius for aesthetics */
}
.input-container button:hover {
filter: contrast(150%);
filter: brightness(80%);
filter: saturate(200%);
}
#inputText {
padding-left: 2.5em; /* Adjust padding as needed */
padding-right: 2.5em; /* Adjust padding as needed */
width: calc(100% - 5.5em); /* Calculate width */
border: none; /* Remove border */
background: none; /* Remove background */
color: inherit; /* Inherit text color */
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Modern sans-serif font */
font-size: 1.2em;
}
#inputText:focus {
outline: none; /* Remove focus outline */
}
#explanation-box {
max-width: 60em;
min-width: 61vw;
margin: 0.25em auto 0 auto;
padding: 1em 2em 1em 2em; /* Add padding for generated text */
}
#explanation {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Modern sans-serif font */
font-size: 1.1em; /* Set font size for generated text */
opacity: 0; /* Start with opacity 0 */
transition: opacity 1s ease; /* Add transition for opacity change */
text-justify: distribute-all-lines;
}
@keyframes fadeIn {
from {
opacity: 0; /* Start with opacity 0 */
}
to {
opacity: 1; /* End with opacity 1 */
}
}
#submit-button {
margin-top: 1em;
background-color: #ff7999; /* Pink background color for the button */
color: #ffffff; /* White text color for the button */
border: none; /* Remove border */
padding: 0.75em 1.25em; /* Add padding */
font-size: 1em; /* Increase font size */
cursor: pointer; /* Change cursor to pointer on hover */
transition: background-color 0.8s ease; /* Smooth transition for background color */
border-radius: 0.5em; /* Add some border radius for aesthetics */
}
#submit-button:hover {
background-color: #ff5e78; /* Darker pink background color on hover */
}
/* HTML: <div class="loader"></div> */
.loader {
margin-top: -17em;
margin-left: -10em;
width: 50px;
aspect-ratio: 1;
display: grid;
border: 4px solid #0000;
border-radius: 50%;
border-right-color: #ff7999;
animation: l15 1s infinite linear;
}
.loader::before,
.loader::after {
content: '';
grid-area: 1/1;
margin: 2px;
border: inherit;
border-radius: 50%;
animation: l15 2s infinite;
}
.loader::after {
margin: 8px;
animation-duration: 3s;
}
@keyframes l15 {
100% {
transform: rotate(1turn);
}
}
h2 {
color: #ffffff; /* Light text color for headings */
margin-bottom: 1em; /* Add some space below the heading */
}
form {
display: flex;
flex-direction: column;
align-items: center;
margin-top: 1em; /* Add space above the form */
}
input[type='file'] {
margin-bottom: 1em; /* Add some space below the file input */
}
#file-label {
font-family: 'Courier New', Courier, monospace;
width: 85%;
text-align: center;
}
p {
color: #ffffff; /* Light text color */
}
.upload {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-width: 65vw;
}
.upload-box {
width: 30em;
margin-top: 2vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-width: 35vw;
min-height: 40vh;
background-color: #1e1e1e; /* Dark background color for generated text */
border-radius: 1em; /* Add some border radius for aesthetics */
cursor: pointer; /* Change cursor to pointer on hover */
}
.upload-box.dragover {
background-color: #6a424c; /* Change background color when dragged over */
border: 2px dashed #ffffff; /* Add dashed border when dragged over */
}
.menu {
padding-top: 3.75em;
min-height: 5em;
margin: 1em 0 1em 0;
display: flex;
flex-direction: column;
justify-content: flex-start;
align-items: center;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Modern sans-serif font */
}
.menu-item {
color: #ffffff; /* White text color */
text-decoration: none;
padding: 1em 2em; /* Increased padding */
transition: color 0.3s ease;
font-size: 1.1em; /* Larger font size */
}
.menu-item:hover {
color: #ff7999; /* Change text color on hover */
}
.current-page {
color: #ff7999; /* Text color for current page */
}
.arrow {
color: #ffffff; /* White arrow color */
margin: 0 10px; /* Adjust margin as needed */
font-size: 1.5em; /* Larger arrow size */
}
.fa-angle-right {
font-size: inherit; /* Inherit font size from parent */
}