Show More
@@ -1,514 +1,524 b'' | |||
|
1 | 1 | |
|
2 | 2 | // tables.less |
|
3 | 3 | // For use in RhodeCode application tables; |
|
4 | 4 | // see style guide documentation for guidelines. |
|
5 | 5 | |
|
6 | 6 | // TABLES |
|
7 | 7 | |
|
8 | 8 | .rctable, |
|
9 | 9 | table.rctable, |
|
10 | 10 | table.dataTable { |
|
11 | 11 | clear:both; |
|
12 | 12 | width: 100%; |
|
13 | 13 | margin: 0 auto @padding; |
|
14 | 14 | padding: 0; |
|
15 | 15 | vertical-align: baseline; |
|
16 | 16 | line-height:1.5em; |
|
17 | 17 | border: none; |
|
18 | 18 | outline: none; |
|
19 | 19 | border-collapse: collapse; |
|
20 | 20 | border-spacing: 0; |
|
21 | 21 | color: @grey2; |
|
22 | 22 | |
|
23 | 23 | b { |
|
24 | 24 | font-weight: normal; |
|
25 | 25 | } |
|
26 | 26 | |
|
27 | 27 | em { |
|
28 | 28 | font-weight: bold; |
|
29 | 29 | font-style: normal; |
|
30 | 30 | } |
|
31 | 31 | |
|
32 | .td-user { | |
|
33 | .rc-user { | |
|
34 | white-space: nowrap; | |
|
35 | } | |
|
36 | } | |
|
37 | ||
|
38 | .td-email { | |
|
39 | white-space: nowrap; | |
|
40 | } | |
|
41 | ||
|
32 | 42 | th, |
|
33 | 43 | td { |
|
34 | 44 | height: auto; |
|
35 | 45 | max-width: 20%; |
|
36 | 46 | padding: .65em 0 .65em 1em; |
|
37 | 47 | vertical-align: middle; |
|
38 | 48 | border-bottom: @border-thickness solid @grey5; |
|
39 | 49 | white-space: normal; |
|
40 | 50 | |
|
41 | 51 | &.td-radio, |
|
42 | 52 | &.td-checkbox { |
|
43 | 53 | padding-right: 0; |
|
44 | 54 | text-align: center; |
|
45 | 55 | |
|
46 | 56 | input { |
|
47 | 57 | margin: 0 1em; |
|
48 | 58 | } |
|
49 | 59 | } |
|
50 | 60 | |
|
51 | 61 | &.truncate-wrap { |
|
52 | 62 | white-space: nowrap !important; |
|
53 | 63 | } |
|
54 | 64 | |
|
55 | 65 | pre { |
|
56 | 66 | margin: 0; |
|
57 | 67 | } |
|
58 | 68 | |
|
59 | 69 | .show_more { |
|
60 | 70 | height: inherit; |
|
61 | 71 | } |
|
62 | 72 | } |
|
63 | 73 | |
|
64 | 74 | .expired td { |
|
65 | 75 | background-color: @grey7; |
|
66 | 76 | } |
|
67 | 77 | .inactive td { |
|
68 | 78 | background-color: @grey6; |
|
69 | 79 | } |
|
70 | 80 | th { |
|
71 | 81 | text-align: left; |
|
72 | 82 | font-weight: @text-semibold-weight; |
|
73 | 83 | font-family: @text-semibold; |
|
74 | 84 | } |
|
75 | 85 | |
|
76 | 86 | .hl { |
|
77 | 87 | td { |
|
78 | 88 | background-color: lighten(@alert4,25%); |
|
79 | 89 | } |
|
80 | 90 | } |
|
81 | 91 | |
|
82 | 92 | // Special Data Cell Types |
|
83 | 93 | // See style guide for desciptions and examples. |
|
84 | 94 | |
|
85 | 95 | td { |
|
86 | 96 | |
|
87 | 97 | &.user { |
|
88 | 98 | padding-left: 1em; |
|
89 | 99 | } |
|
90 | 100 | |
|
91 | 101 | &.td-rss { |
|
92 | 102 | width: 20px; |
|
93 | 103 | min-width: 0; |
|
94 | 104 | margin: 0; |
|
95 | 105 | } |
|
96 | 106 | |
|
97 | 107 | &.quick_repo_menu { |
|
98 | 108 | width: 15px; |
|
99 | 109 | text-align: center; |
|
100 | 110 | |
|
101 | 111 | &:hover { |
|
102 | 112 | background-color: @grey5; |
|
103 | 113 | } |
|
104 | 114 | } |
|
105 | 115 | |
|
106 | 116 | &.td-icon { |
|
107 | 117 | min-width: 20px; |
|
108 | 118 | width: 20px; |
|
109 | 119 | } |
|
110 | 120 | |
|
111 | 121 | &.td-hash { |
|
112 | 122 | min-width: 80px; |
|
113 | 123 | width: 200px; |
|
114 | 124 | |
|
115 | 125 | .obsolete { |
|
116 | 126 | text-decoration: line-through; |
|
117 | 127 | color: lighten(@grey2,25%); |
|
118 | 128 | } |
|
119 | 129 | } |
|
120 | 130 | |
|
121 | 131 | &.td-sha { |
|
122 | 132 | white-space: nowrap; |
|
123 | 133 | } |
|
124 | 134 | |
|
125 | 135 | &.td-graphbox { |
|
126 | 136 | width: 100px; |
|
127 | 137 | max-width: 100px; |
|
128 | 138 | min-width: 100px; |
|
129 | 139 | } |
|
130 | 140 | |
|
131 | 141 | &.td-time { |
|
132 | 142 | width: 160px; |
|
133 | 143 | white-space: nowrap; |
|
134 | 144 | } |
|
135 | 145 | |
|
136 | 146 | &.annotate{ |
|
137 | 147 | padding-right: 0; |
|
138 | 148 | |
|
139 | 149 | div.annotatediv{ |
|
140 | 150 | margin: 0 0.7em; |
|
141 | 151 | } |
|
142 | 152 | } |
|
143 | 153 | |
|
144 | 154 | &.tags-col { |
|
145 | 155 | padding-right: 0; |
|
146 | 156 | } |
|
147 | 157 | |
|
148 | 158 | &.td-description { |
|
149 | 159 | min-width: 350px; |
|
150 | 160 | |
|
151 | 161 | &.truncate, .truncate-wrap { |
|
152 | 162 | white-space: nowrap; |
|
153 | 163 | overflow: hidden; |
|
154 | 164 | text-overflow: ellipsis; |
|
155 | 165 | max-width: 350px; |
|
156 | 166 | } |
|
157 | 167 | } |
|
158 | 168 | |
|
159 | 169 | &.td-grid-name { |
|
160 | 170 | white-space: nowrap; |
|
161 | 171 | min-width: 300px; |
|
162 | 172 | } |
|
163 | 173 | |
|
164 | 174 | &.td-componentname { |
|
165 | 175 | white-space: nowrap; |
|
166 | 176 | } |
|
167 | 177 | |
|
168 | 178 | &.td-name { |
|
169 | 179 | |
|
170 | 180 | } |
|
171 | 181 | |
|
172 | 182 | &.td-journalaction { |
|
173 | 183 | min-width: 300px; |
|
174 | 184 | |
|
175 | 185 | .journal_action_params { |
|
176 | 186 | // waiting for feedback |
|
177 | 187 | } |
|
178 | 188 | } |
|
179 | 189 | |
|
180 | 190 | &.td-active { |
|
181 | 191 | padding-left: .65em; |
|
182 | 192 | } |
|
183 | 193 | |
|
184 | 194 | &.td-url { |
|
185 | 195 | white-space: nowrap; |
|
186 | 196 | } |
|
187 | 197 | |
|
188 | 198 | &.td-comments { |
|
189 | 199 | min-width: 3em; |
|
190 | 200 | } |
|
191 | 201 | |
|
192 | 202 | &.td-buttons { |
|
193 | 203 | padding: .3em 0; |
|
194 | 204 | } |
|
195 | 205 | &.td-align-top { |
|
196 | 206 | vertical-align: text-top |
|
197 | 207 | } |
|
198 | 208 | &.td-action { |
|
199 | 209 | // this is for the remove/delete/edit buttons |
|
200 | 210 | padding-right: 0; |
|
201 | 211 | min-width: 95px; |
|
202 | 212 | text-transform: capitalize; |
|
203 | 213 | |
|
204 | 214 | i { |
|
205 | 215 | display: none; |
|
206 | 216 | } |
|
207 | 217 | } |
|
208 | 218 | |
|
209 | 219 | // TODO: lisa: this needs to be cleaned up with the buttons |
|
210 | 220 | .grid_edit, |
|
211 | 221 | .grid_delete { |
|
212 | 222 | display: inline-block; |
|
213 | 223 | margin: 0 @padding/3 0 0; |
|
214 | 224 | font-family: @text-light; |
|
215 | 225 | |
|
216 | 226 | i { |
|
217 | 227 | display: none; |
|
218 | 228 | } |
|
219 | 229 | } |
|
220 | 230 | |
|
221 | 231 | .grid_edit + .grid_delete { |
|
222 | 232 | border-left: @border-thickness solid @grey5; |
|
223 | 233 | padding-left: @padding/2; |
|
224 | 234 | } |
|
225 | 235 | |
|
226 | 236 | &.td-compare { |
|
227 | 237 | |
|
228 | 238 | input { |
|
229 | 239 | margin-right: 1em; |
|
230 | 240 | } |
|
231 | 241 | |
|
232 | 242 | .compare-radio-button { |
|
233 | 243 | margin: 0 1em 0 0; |
|
234 | 244 | } |
|
235 | 245 | |
|
236 | 246 | |
|
237 | 247 | } |
|
238 | 248 | |
|
239 | 249 | &.td-tags { |
|
240 | 250 | padding: .5em 1em .5em 0; |
|
241 | 251 | width: 140px; |
|
242 | 252 | |
|
243 | 253 | .tag { |
|
244 | 254 | margin: 1px; |
|
245 | 255 | float: left; |
|
246 | 256 | } |
|
247 | 257 | } |
|
248 | 258 | |
|
249 | 259 | .icon-svn, .icon-hg, .icon-git { |
|
250 | 260 | font-size: 1.4em; |
|
251 | 261 | } |
|
252 | 262 | |
|
253 | 263 | &.collapse_commit, |
|
254 | 264 | &.expand_commit { |
|
255 | 265 | padding-right: 0; |
|
256 | 266 | padding-left: 1em; |
|
257 | 267 | cursor: pointer; |
|
258 | 268 | width: 20px; |
|
259 | 269 | } |
|
260 | 270 | } |
|
261 | 271 | |
|
262 | 272 | .perm_admin_row { |
|
263 | 273 | color: @grey4; |
|
264 | 274 | background-color: @grey6; |
|
265 | 275 | } |
|
266 | 276 | |
|
267 | 277 | .noborder { |
|
268 | 278 | border: none; |
|
269 | 279 | |
|
270 | 280 | td { |
|
271 | 281 | border: none; |
|
272 | 282 | } |
|
273 | 283 | } |
|
274 | 284 | } |
|
275 | 285 | .rctable.audit-log { |
|
276 | 286 | td { |
|
277 | 287 | vertical-align: top; |
|
278 | 288 | } |
|
279 | 289 | } |
|
280 | 290 | |
|
281 | 291 | // TRUNCATING |
|
282 | 292 | // TODO: lisaq: should this possibly be moved out of tables.less? |
|
283 | 293 | // for truncated text |
|
284 | 294 | // used inside of table cells and in code block headers |
|
285 | 295 | .truncate-wrap { |
|
286 | 296 | white-space: nowrap !important; |
|
287 | 297 | |
|
288 | 298 | //truncated text |
|
289 | 299 | .truncate { |
|
290 | 300 | max-width: 450px; |
|
291 | 301 | width: 300px; |
|
292 | 302 | overflow: hidden; |
|
293 | 303 | text-overflow: ellipsis; |
|
294 | 304 | -o-text-overflow: ellipsis; |
|
295 | 305 | -ms-text-overflow: ellipsis; |
|
296 | 306 | |
|
297 | 307 | &.autoexpand { |
|
298 | 308 | width: 120px; |
|
299 | 309 | margin-right: 200px; |
|
300 | 310 | } |
|
301 | 311 | } |
|
302 | 312 | &:hover .truncate.autoexpand { |
|
303 | 313 | overflow: visible; |
|
304 | 314 | } |
|
305 | 315 | |
|
306 | 316 | .tags-truncate { |
|
307 | 317 | width: 150px; |
|
308 | 318 | height: 22px; |
|
309 | 319 | overflow: hidden; |
|
310 | 320 | |
|
311 | 321 | .tag { |
|
312 | 322 | display: inline-block; |
|
313 | 323 | } |
|
314 | 324 | |
|
315 | 325 | &.truncate { |
|
316 | 326 | height: 22px; |
|
317 | 327 | max-height:2em; |
|
318 | 328 | width: 140px; |
|
319 | 329 | } |
|
320 | 330 | } |
|
321 | 331 | } |
|
322 | 332 | |
|
323 | 333 | .apikeys_wrap { |
|
324 | 334 | margin-bottom: @padding; |
|
325 | 335 | |
|
326 | 336 | table.rctable td:first-child { |
|
327 | 337 | width: 340px; |
|
328 | 338 | } |
|
329 | 339 | } |
|
330 | 340 | |
|
331 | 341 | |
|
332 | 342 | |
|
333 | 343 | // SPECIAL CASES |
|
334 | 344 | |
|
335 | 345 | // Repository Followers |
|
336 | 346 | table.rctable.followers_data { |
|
337 | 347 | width: 75%; |
|
338 | 348 | margin: 0; |
|
339 | 349 | } |
|
340 | 350 | |
|
341 | 351 | // Repository List |
|
342 | 352 | // Group Members List |
|
343 | 353 | table.rctable.group_members, |
|
344 | 354 | table#repo_list_table { |
|
345 | 355 | min-width: 600px; |
|
346 | 356 | } |
|
347 | 357 | |
|
348 | 358 | // Keyboard mappings |
|
349 | 359 | table.keyboard-mappings { |
|
350 | 360 | th { |
|
351 | 361 | text-align: left; |
|
352 | 362 | font-weight: @text-semibold-weight; |
|
353 | 363 | font-family: @text-semibold; |
|
354 | 364 | } |
|
355 | 365 | } |
|
356 | 366 | |
|
357 | 367 | // Branches, Tags, and Bookmarks |
|
358 | 368 | #obj_list_table.dataTable { |
|
359 | 369 | td.td-time { |
|
360 | 370 | padding-right: 1em; |
|
361 | 371 | } |
|
362 | 372 | } |
|
363 | 373 | |
|
364 | 374 | // User Admin |
|
365 | 375 | .rctable.useremails, |
|
366 | 376 | .rctable.account_emails { |
|
367 | 377 | .tag, |
|
368 | 378 | .btn { |
|
369 | 379 | float: right; |
|
370 | 380 | } |
|
371 | 381 | .btn { //to line up with tags |
|
372 | 382 | margin-right: 1.65em; |
|
373 | 383 | } |
|
374 | 384 | } |
|
375 | 385 | |
|
376 | 386 | // User List |
|
377 | 387 | #user_list_table { |
|
378 | 388 | |
|
379 | 389 | td.td-user { |
|
380 | 390 | min-width: 100px; |
|
381 | 391 | } |
|
382 | 392 | } |
|
383 | 393 | |
|
384 | 394 | // Pull Request List Table |
|
385 | 395 | #pull_request_list_table.dataTable { |
|
386 | 396 | |
|
387 | 397 | //TODO: lisa: This needs to be removed once the description is adjusted |
|
388 | 398 | // for using an expand_commit button (see issue 765) |
|
389 | 399 | td { |
|
390 | 400 | vertical-align: middle; |
|
391 | 401 | } |
|
392 | 402 | } |
|
393 | 403 | |
|
394 | 404 | // Settings (no border) |
|
395 | 405 | table.rctable.dl-settings { |
|
396 | 406 | td { |
|
397 | 407 | border: none; |
|
398 | 408 | vertical-align: baseline; |
|
399 | 409 | } |
|
400 | 410 | } |
|
401 | 411 | |
|
402 | 412 | |
|
403 | 413 | // Statistics |
|
404 | 414 | table.trending_language_tbl { |
|
405 | 415 | width: 100%; |
|
406 | 416 | line-height: 1em; |
|
407 | 417 | |
|
408 | 418 | td div { |
|
409 | 419 | overflow: visible; |
|
410 | 420 | } |
|
411 | 421 | } |
|
412 | 422 | |
|
413 | 423 | .trending_language_tbl, .trending_language_tbl td { |
|
414 | 424 | border: 0; |
|
415 | 425 | margin: 0; |
|
416 | 426 | padding: 0; |
|
417 | 427 | background: transparent; |
|
418 | 428 | } |
|
419 | 429 | |
|
420 | 430 | .trending_language_tbl, .trending_language_tbl tr { |
|
421 | 431 | border-spacing: 0 3px; |
|
422 | 432 | } |
|
423 | 433 | |
|
424 | 434 | .trending_language { |
|
425 | 435 | position: relative; |
|
426 | 436 | overflow: hidden; |
|
427 | 437 | color: @text-color; |
|
428 | 438 | width: 400px; |
|
429 | 439 | |
|
430 | 440 | .lang-bar { |
|
431 | 441 | z-index: 1; |
|
432 | 442 | overflow: hidden; |
|
433 | 443 | background-color: @rcblue; |
|
434 | 444 | color: #FFF; |
|
435 | 445 | text-decoration: none; |
|
436 | 446 | } |
|
437 | 447 | |
|
438 | 448 | } |
|
439 | 449 | |
|
440 | 450 | // Changesets |
|
441 | 451 | #changesets.rctable { |
|
442 | 452 | th { |
|
443 | 453 | padding: 0 1em 0.65em 0; |
|
444 | 454 | } |
|
445 | 455 | |
|
446 | 456 | // td must be fixed height for graph |
|
447 | 457 | td { |
|
448 | 458 | height: 32px; |
|
449 | 459 | padding: 0 1em 0 0; |
|
450 | 460 | vertical-align: middle; |
|
451 | 461 | white-space: nowrap; |
|
452 | 462 | |
|
453 | 463 | &.td-description { |
|
454 | 464 | white-space: normal; |
|
455 | 465 | } |
|
456 | 466 | |
|
457 | 467 | &.expand_commit { |
|
458 | 468 | padding-right: 0; |
|
459 | 469 | cursor: pointer; |
|
460 | 470 | width: 20px; |
|
461 | 471 | } |
|
462 | 472 | } |
|
463 | 473 | } |
|
464 | 474 | |
|
465 | 475 | // Compare |
|
466 | 476 | table.compare_view_commits { |
|
467 | 477 | margin-top: @space; |
|
468 | 478 | |
|
469 | 479 | td.td-time { |
|
470 | 480 | padding-left: .5em; |
|
471 | 481 | } |
|
472 | 482 | |
|
473 | 483 | // special case to not show hover actions on hidden indicator |
|
474 | 484 | tr.compare_select_hidden:hover { |
|
475 | 485 | cursor: inherit; |
|
476 | 486 | |
|
477 | 487 | td { |
|
478 | 488 | background-color: inherit; |
|
479 | 489 | } |
|
480 | 490 | } |
|
481 | 491 | |
|
482 | 492 | tr:hover { |
|
483 | 493 | cursor: pointer; |
|
484 | 494 | |
|
485 | 495 | td { |
|
486 | 496 | background-color: lighten(@alert4,25%); |
|
487 | 497 | } |
|
488 | 498 | } |
|
489 | 499 | |
|
490 | 500 | |
|
491 | 501 | } |
|
492 | 502 | |
|
493 | 503 | .file_history { |
|
494 | 504 | td.td-actions { |
|
495 | 505 | text-align: right; |
|
496 | 506 | } |
|
497 | 507 | } |
|
498 | 508 | |
|
499 | 509 | |
|
500 | 510 | // Gist List |
|
501 | 511 | #gist_list_table { |
|
502 | 512 | td { |
|
503 | 513 | vertical-align: middle; |
|
504 | 514 | |
|
505 | 515 | div{ |
|
506 | 516 | display: inline-block; |
|
507 | 517 | vertical-align: middle; |
|
508 | 518 | } |
|
509 | 519 | |
|
510 | 520 | img{ |
|
511 | 521 | vertical-align: middle; |
|
512 | 522 | } |
|
513 | 523 | } |
|
514 | 524 | } |
General Comments 0
You need to be logged in to leave comments.
Login now