-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstyles.css
More file actions
338 lines (290 loc) · 6.49 KB
/
styles.css
File metadata and controls
338 lines (290 loc) · 6.49 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
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
/* Ensure all text uses Helvetica */
* {
font-family: Helvetica, Arial, sans-serif;
box-sizing: border-box;
}
/* General body styling */
body {
font-family: Helvetica, Arial, sans-serif;
background-color: #000; /* Black background */
color: #fff; /* White text */
line-height: 1.5;
margin: 0;
padding: 0;
height: 100vh;
overflow-y: auto; /* Allow scrolling */
margin-top: 15%;
}
/* Ensure the parent containers (like .full-text-container, .sentiment-container, etc.) are positioned relatively */
.card {
position: relative;
}
/* Style the tooltip icon */
.tooltip-icon {
position: absolute;
margin-right: 5px;
top: 10px; /* Distance from the top of the container */
right: 10px; /* Distance from the right side of the container */
font-size: 18px; /* Adjust size if needed */
cursor: pointer; /* Change cursor to indicate it's clickable */
color: white; /* Optional: color for the icon */
}
/* Tooltip box styling */
.tooltip-icon::after {
content: attr(title);
position: absolute;
top: -5px;
left: 110%;
background-color: #333;
color: #fff;
padding: 10px;
font-size: 14px;
border-radius: 4px;
opacity: 0;
pointer-events: none;
white-space: normal; /* Allow the tooltip to wrap text */
width: 200px; /* Set width of the box */
height: auto;
max-width: 250px; /* Optional: limit the max width */
line-height: 1.4; /* Space between lines of text */
box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2); /* Add shadow for better visibility */
transition: opacity 0.2s;
z-index: 1;
}
/* Show the tooltip box when hovered */
.tooltip-icon:hover::after {
opacity: 1;
}
#inputText::placeholder,
#noteInput::placeholder {
text-align: left;
}
.button-container {
display: flex;
justify-content: flex-end; /* Align buttons to the right */
gap: 5px; /* Space between the buttons */
margin-top: 10px; /* Optional: Adjust space from the text area */
}
/* Container for the app */
.container {
text-align: center;
width: 90%;
max-width: 600px;
margin: 20px auto;
padding-bottom: 50px; /* Add space at the bottom for scroll comfort */
}
/* Header styling */
h1 {
font-size: 2rem;
margin-bottom: 20px; /* Extra spacing for clarity */
}
/* Card styling */
.card {
background-color: #1a1a1a;
border-radius: 15px;
padding: 20px;
box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.3);
margin-bottom: 30px;
}
/* Input text area */
#inputText {
width: 100%;
height: 80px;
padding: 10px;
font-size: 1rem;
border: none;
border-bottom: 2px solid #444; /* Minimalist underline */
background-color: transparent; /* Seamless with background */
color: #fff;
margin-bottom: 25px; /* Extra space */
box-sizing: border-box;
}
/* Placeholder text for empty areas */
.placeholder {
color: #666; /* Subtle gray for placeholders */
font-style: italic;
margin-top: 10px;
}
/* Buttons */
button {
background-color: #000; /* Same as background */
color: #fff; /* White text */
font-size: 1rem;
border: 1px solid #444; /* Subtle minimalist border */
border-radius: 50px; /* Fully rounded buttons */
padding: 10px 20px;
cursor: pointer;
margin: 10px 5px;
transition: background-color 0.3s ease, color 0.3s ease;
}
button:hover {
background-color: #444; /* Slight hover effect */
color: #fff;
}
/* Tabs container */
#tabs {
display: flex;
gap: 10px;
padding: 10px;
border-bottom: 1px solid #fff;
}
.tab-button {
background-color: #333;
color: #fff;
padding: 5px 10px;
border: none;
cursor: pointer;
border-radius: 5px;
font-size: 14px;
}
.tab-button.active-tab {
background-color: #555;
font-weight: bold;
}
/* Tab content */
.tab-content {
display: none;
padding: 10px;
}
.tab-content.active {
display: block;
}
/* Results container */
#resultsContainer {
margin-top: 10px;
margin-bottom: 5%;
}
.text-word {
transition: background-color 0.3s ease;
}
.text-word.highlight {
background-color: yellow; /* Highlight color */
}
.emotion-bars {
margin: 30px 0; /* More spacing */
line-height: 30px;
text-align: left;
}
.bar-container {
background-color: black;
width: 100%;
height: 20px;
position: relative;
border-radius: 5px;
}
.bar {
height: 100%;
}
.emotion-row {
align-items: center;
margin-bottom: 30px; /* Increase spacing between rows */
}
.emotion-label {
width: 150px;
text-align: left;
margin-right: 15px;
color: #fff; /* Ensure emotion label is visible */
font-weight: bold;
}
.emotion-percentile {
color: #fff; /* White text for percentiles */
font-size: 1rem;
margin-right: 10px; /* Space between label and bar */
}
.bar {
flex: 1;
height: 20px;
border-radius: 5px;
background-color: #444; /* Neutral background for bar container */
overflow: hidden;
position: relative;
}
.bar > div {
height: 100%;
border-radius: 5px;
background-color: #1a73e8; /* Default progress bar color */
}
/* Design relevance grid */
.design-grid {
display: grid;
grid-template-columns: 1fr 1fr; /* 2x2 grid */
gap: 20px; /* More space between cards */
margin: 30px 0; /* Space above and below */
}
.design-card {
background-color: black;
border-radius: 15px; /* Softer rounded corners */
border: 1px solid #444;
padding: 20px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.relevance-score {
font-size: 3.8rem;
margin-bottom: 10px;
}
.design-term {
font-size: 1rem;
color: #aaa;
}
/* Keyword pills */
.keyword-pills {
display: flex;
flex-wrap: wrap;
gap: 5px;
margin: 30px 0;
}
.pill {
display: inline-block;
padding: 5px 10px;
background-color: black;
border-radius: 15px;
cursor: pointer;
border: 1px solid #444;
font-size: 0.9rem;
transition: background-color 0.3s ease, color 0.3s ease;
}
.pill:hover {
background-color: #444;
color: #fff;
}
/* Full text */
.full-text {
margin-top: 15px;
line-height: 1.5;
}
.highlight {
transition: background-color 0.3s ease;
background-color: rgb(255, 255, 255);
color: black;
padding: 1px 3px;
border-radius: 10px;
}
/* Responsive design for smaller screens */
@media (max-width: 768px) {
.design-grid {
grid-template-columns: 1fr; /* Single column grid for small screens */
}
button {
font-size: 0.9rem;
padding: 8px 15px;
}
}
/* New input field for notes */
.note-input-wrapper {
margin-bottom: 15px;
}
#noteInput {
width: 100%;
padding: 10px;
font-size: 1rem;
border: none;
border-bottom: 2px solid #444;
background-color: transparent;
color: #fff;
margin-bottom: 10px;
box-sizing: border-box;
text-align: left;
}