|
1 | 1 | #repo-files-table {
|
2 | 2 | width: 100%;
|
3 | 3 | display: grid;
|
4 |
| - grid-template-columns: auto 1fr auto; |
5 |
| - border: 1px solid var(--color-light-border); |
| 4 | + grid-template-columns: 2fr 3fr auto; |
| 5 | + border: 1px solid var(--color-secondary); |
| 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: auto 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 { |
26 |
| - background: var(--color-hover); |
| 36 | +#repo-files-table .repo-file-item:hover > .repo-file-cell, |
| 37 | +#repo-files-table .parent-link:hover { |
| 38 | + background: var(--color-hover-opaque); |
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); |
| 43 | + border-top: 1px solid var(--color-secondary); |
32 | 44 | padding: 8px 10px;
|
33 | 45 | }
|
34 | 46 |
|
35 | 47 | #repo-files-table .repo-file-line:first-child {
|
36 | 48 | border-top: none;
|
| 49 | + border-radius: var(--border-radius) var(--border-radius) 0 0; |
| 50 | +} |
| 51 | + |
| 52 | +#repo-files-table .repo-file-item:last-child .repo-file-cell:first-child { |
| 53 | + border-bottom-left-radius: calc(var(--border-radius) - 1px); |
| 54 | +} |
| 55 | + |
| 56 | +#repo-files-table .repo-file-item:last-child .repo-file-cell:last-child { |
| 57 | + border-bottom-right-radius: calc(var(--border-radius) - 1px); |
37 | 58 | }
|
38 | 59 |
|
39 | 60 | #repo-files-table .repo-file-line {
|
|
48 | 69 | }
|
49 | 70 |
|
50 | 71 | #repo-files-table .repo-file-cell.name {
|
51 |
| - max-width: 300px; |
52 | 72 | white-space: nowrap;
|
53 | 73 | overflow: hidden;
|
54 | 74 | text-overflow: ellipsis;
|
55 | 75 | }
|
56 | 76 |
|
| 77 | +@media (max-width: 767.98px) { |
| 78 | + #repo-files-table .repo-file-cell.name { |
| 79 | + max-width: 35vw; |
| 80 | + } |
| 81 | +} |
| 82 | + |
57 | 83 | #repo-files-table .repo-file-cell.message {
|
58 | 84 | white-space: nowrap;
|
59 | 85 | overflow: hidden;
|
|
66 | 92 | white-space: nowrap;
|
67 | 93 | color: var(--color-text-light-1);
|
68 | 94 | }
|
69 |
| - |
70 |
| -@media (max-width: 767.98px) { |
71 |
| - #repo-files-table .repo-file-cell.name { |
72 |
| - max-width: 150px; |
73 |
| - } |
74 |
| -} |
|
0 commit comments