-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.css
More file actions
279 lines (252 loc) · 4.92 KB
/
index.css
File metadata and controls
279 lines (252 loc) · 4.92 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
/* Reset and base */
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
html, body {
height: 100%;
font-family: Arial, sans-serif;
color: #333;
background-color: #f9f9f9;
}
/* Header */
.header {
background-color: #fff;
border-bottom: 1px solid #ddd;
padding: 1rem;
}
.header-title {
font-size: 1.5rem;
font-weight: bold;
}
/* Main container: table + sidebar with margins and gap */
.main-container {
display: flex;
margin: 1rem;
gap: 1rem;
height: calc(100% - 66px - 2rem);
}
/* Table wrapper: contains scrollable table and pagination below */
.table-wrapper {
flex: 1;
display: flex;
flex-direction: column;
margin-bottom: 1rem;
}
/* Table container: scrollable with border */
.table-container {
flex: 1;
position: relative;
overflow: auto;
background-color: #fff;
border: 1px solid #ddd;
border-bottom: none;
border-radius: 10px;
padding-bottom: 0;
}
/* The table */
table {
width: 100%;
border-collapse: collapse;
}
thead {
background-color: #f0f0f0;
border-bottom: 2px solid #ddd;
}
th, td {
padding: 0.75rem 1rem;
text-align: left;
}
.name-col {
width: 40%;
}
.topic-col, .difficulty-col {
width: 30%;
position: relative;
}
/* Styling for question links in the table */
table a {
text-decoration: none;
color: #1E90FF; /* Light blue color */
font-family: "Segoe UI", sans-serif;
font-weight: 500;
}
table a:hover {
text-decoration: underline;
}
/* Clickable area for column headers */
.clickable-area {
display: inline-flex;
align-items: center;
cursor: pointer;
padding: 0.25rem 0.5rem 0.25rem 0; /* top, right, bottom, left */
border-radius: 4px;
}
/* Arrow styling */
.arrow {
font-size: 0.8rem;
margin-left: 0.3rem;
color: gray;
}
/* Table body alternating row colors */
tbody tr:nth-child(odd) {
background-color: #fff;
}
tbody tr:nth-child(even) {
background-color: #f7f7f7;
}
/* Search bar in table container */
.search-bar {
position: absolute;
top: 0.5rem;
right: 0.5rem;
}
.search-bar input {
padding: 0.3rem 0.5rem;
border: 1px solid #ccc;
border-radius: 6px;
}
/* Dropdown menus for topic/difficulty */
.dropdown {
position: absolute;
top: 2.3rem;
left: 0;
background-color: #fff;
border: 1px solid #ccc;
border-radius:8px;
z-index: 999;
padding: 0.5rem;
min-width: 150px;
}
.dropdown.hidden {
display: none;
}
.dropdown div {
padding: 0.3rem 0;
cursor: pointer;
}
.dropdown div:hover {
background-color: #eee;
}
/* Star button in difficulty cell */
.star-btn {
float: right;
cursor: pointer;
color: #ccc;
font-size: 1rem;
margin-left: 1rem;
}
.star-btn.solved {
color: gold;
}
/* Container for action buttons in the difficulty cell */
.btn-container {
float: right;
}
/* Styling for solved/unsolved button */
.solved-btn {
margin-left: 0.5rem;
cursor: pointer;
border: none;
border-radius: 4px;
padding: 0.2rem 0.5rem;
background-color: #dc3545; /* Default: Unsolved (Red) */
color: #fff;
}
/* Ensure class-based styling instead of :active */
.solved-btn.solved {
background-color: #28a745; /* Solved (Green) */
}
.clear-filters button {
padding: 0.3rem 0.6rem;
border: none;
border-radius: 4px;
background-color: #007bff;
color: #fff;
cursor: pointer;
}
.clear-filters button:hover {
background-color: #0056b3;
}
/* Pagination for questions table placed below the table */
.table-pagination {
width: 100%;
background-color: #fff;
border-top: 1px solid #ddd;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0.5rem 1rem;
margin-top: 0.5rem;
}
.results-count {
font-size: 0.9rem;
color: #555;
}
.page-size-select {
display: flex;
align-items: center;
gap: 0.5rem;
}
.page-controls button {
cursor: pointer;
padding: 0.3rem 0.6rem;
margin: 0 0.2rem;
}
.page-controls span {
margin: 0 0.5rem;
}
/* Sidebar for companies */
.sidebar {
width: 420px;
background-color: #ffffff;
padding: 1rem;
display: flex;
flex-direction: column;
align-self: flex-start;
box-sizing: border-box;
border: 1px solid #ddd;
border-radius: 20px;
}
/* Sidebar header */
.sidebar h2 {
margin-bottom: 1rem;
}
/* Company search in sidebar */
.company-search {
margin-bottom: 1rem;
}
.company-search input {
width: 100%;
padding: 0.4rem;
border: 1px solid #ccc;
border-radius: 8px;
}
/* Companies container: fixed height of 400px with scrolling */
.companies-container {
height: 400px;
overflow-y: auto;
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
}
/* Company chip styling with fixed height */
.company-chip {
height: 40px; /* fixed height */
line-height: 40px; /* vertical centering */
background-color: #f0f0f0;
border-radius: 15px;
padding: 0 0.75rem; /* horizontal padding only */
cursor: pointer;
display: inline-flex;
align-items: center;
gap: 0.5rem;
}
.company-chip:hover {
background-color: #e0e0e0;
}
.company-chip.selected {
background-color: #007bff;
color: #fff;
}