|
1 | 1 | #repo-files-table { |
2 | 2 | width: 100%; |
3 | 3 | display: grid; |
4 | | - grid-template-columns: auto 1fr auto; |
| 4 | + grid-template-columns: 2fr 3fr auto; |
5 | 5 | border: 1px solid var(--color-light-border); |
| 6 | + background: var(--color-box-body); |
6 | 7 | border-radius: var(--border-radius); |
7 | 8 | margin: 10px 0; /* match the "clone-panel-popup" margin to avoid "visual double-border" */ |
8 | 9 | } |
9 | 10 |
|
| 11 | +@media (max-width: 767.98px) { |
| 12 | + #repo-files-table { |
| 13 | + grid-template-columns: 1fr 1fr auto; |
| 14 | + } |
| 15 | +} |
| 16 | + |
| 17 | +#repo-files-table .repo-file-cell.name .svg { |
| 18 | + margin-right: 2px; |
| 19 | +} |
| 20 | + |
10 | 21 | #repo-files-table .svg.octicon-file-directory-fill, |
11 | 22 | #repo-files-table .svg.octicon-file-submodule { |
12 | 23 | color: var(--color-primary); |
|
22 | 33 | display: contents; |
23 | 34 | } |
24 | 35 |
|
25 | | -#repo-files-table .repo-file-item:hover > .repo-file-cell { |
| 36 | +#repo-files-table .repo-file-item:hover > .repo-file-cell, |
| 37 | +#repo-files-table .parent-link:hover { |
26 | 38 | background: var(--color-hover); |
27 | 39 | } |
28 | 40 |
|
29 | 41 | #repo-files-table .repo-file-line, |
30 | 42 | #repo-files-table .repo-file-cell { |
31 | | - border-top: 1px solid var(--color-light-border); |
32 | | - padding: 6px 10px; |
| 43 | + border-top: .5px solid var(--color-light-border); |
| 44 | + border-bottom: .5px solid var(--color-light-border); |
| 45 | + padding: 8px 10px; |
33 | 46 | } |
34 | 47 |
|
35 | 48 | #repo-files-table .repo-file-line:first-child { |
36 | 49 | border-top: none; |
| 50 | + border-radius: var(--border-radius) var(--border-radius) 0 0; |
| 51 | +} |
| 52 | + |
| 53 | +#repo-files-table .repo-file-item:last-child .repo-file-line, |
| 54 | +#repo-files-table .repo-file-item:last-child .repo-file-cell { |
| 55 | + border-bottom: none; |
| 56 | +} |
| 57 | + |
| 58 | +#repo-files-table .repo-file-item:last-child { |
| 59 | + border-bottom: none; |
| 60 | +} |
| 61 | + |
| 62 | +#repo-files-table .repo-file-item:last-child .repo-file-cell:first-child { |
| 63 | + border-bottom-left-radius: calc(var(--border-radius) - 1px); |
| 64 | +} |
| 65 | + |
| 66 | +#repo-files-table .repo-file-item:last-child .repo-file-cell:last-child { |
| 67 | + border-bottom-right-radius: calc(var(--border-radius) - 1px); |
37 | 68 | } |
38 | 69 |
|
39 | 70 | #repo-files-table .repo-file-line { |
|
49 | 80 | } |
50 | 81 |
|
51 | 82 | #repo-files-table .repo-file-cell.name { |
52 | | - max-width: 300px; |
53 | 83 | white-space: nowrap; |
54 | 84 | overflow: hidden; |
55 | 85 | text-overflow: ellipsis; |
56 | 86 | } |
57 | 87 |
|
| 88 | +@media (max-width: 767.98px) { |
| 89 | + #repo-files-table .repo-file-cell.name { |
| 90 | + max-width: 35vw; |
| 91 | + } |
| 92 | +} |
| 93 | + |
58 | 94 | #repo-files-table .repo-file-cell.message { |
59 | 95 | white-space: nowrap; |
60 | 96 | overflow: hidden; |
|
68 | 104 | color: var(--color-text-light-1); |
69 | 105 | } |
70 | 106 |
|
71 | | -@media (max-width: 767.98px) { |
72 | | - #repo-files-table .repo-file-cell.name { |
73 | | - max-width: 150px; |
74 | | - } |
| 107 | +#repo-files-table .parent-link { |
| 108 | + width: 100%; |
| 109 | + text-decoration-line: none; |
75 | 110 | } |
0 commit comments