gitea源码

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. #repo-files-table {
  2. width: 100%;
  3. display: grid;
  4. grid-template-columns: 2fr 3fr auto;
  5. border: 1px solid var(--color-secondary);
  6. background: var(--color-box-body);
  7. border-radius: var(--border-radius);
  8. margin: 10px 0; /* match the "clone-panel-popup" margin to avoid "visual double-border" */
  9. }
  10. @media (max-width: 767.98px) {
  11. #repo-files-table {
  12. grid-template-columns: auto 1fr auto;
  13. }
  14. }
  15. #repo-files-table .repo-file-item {
  16. display: contents;
  17. }
  18. #repo-files-table .repo-file-item:hover > .repo-file-cell,
  19. #repo-files-table .parent-link:hover {
  20. background: var(--color-hover-opaque);
  21. }
  22. #repo-files-table .repo-file-line,
  23. #repo-files-table .repo-file-cell {
  24. border-top: 1px solid var(--color-secondary);
  25. padding: 8px 10px;
  26. }
  27. #repo-files-table .repo-file-line:first-child {
  28. border-top: none;
  29. border-radius: var(--border-radius) var(--border-radius) 0 0;
  30. }
  31. #repo-files-table .repo-file-item:last-child .repo-file-cell:first-child {
  32. border-bottom-left-radius: calc(var(--border-radius) - 1px);
  33. }
  34. #repo-files-table .repo-file-item:last-child .repo-file-cell:last-child {
  35. border-bottom-right-radius: calc(var(--border-radius) - 1px);
  36. }
  37. #repo-files-table .repo-file-line {
  38. grid-column: 1 / span 3;
  39. display: flex;
  40. align-items: center;
  41. gap: 0.5em;
  42. }
  43. #repo-files-table .repo-file-last-commit {
  44. min-width: 0; /* otherwise the flex axis is not limited and the text might overflow in Pale Moon */
  45. background: var(--color-box-header);
  46. }
  47. #repo-files-table .repo-file-cell.name {
  48. display: flex;
  49. align-items: center;
  50. gap: 0.5em;
  51. overflow: hidden;
  52. }
  53. #repo-files-table .repo-file-cell.name > a,
  54. #repo-files-table .repo-file-cell.name > span {
  55. flex-shrink: 0;
  56. white-space: nowrap;
  57. overflow: hidden;
  58. text-overflow: ellipsis;
  59. }
  60. #repo-files-table .repo-file-cell.name .entry-name {
  61. flex-shrink: 1;
  62. min-width: 1ch; /* leave about one letter space when shrinking, need to fine tune the "shrinks" in this grid in the future */
  63. }
  64. @media (max-width: 767.98px) {
  65. #repo-files-table .repo-file-cell.name {
  66. max-width: 35vw;
  67. }
  68. }
  69. #repo-files-table .repo-file-cell.message {
  70. white-space: nowrap;
  71. overflow: hidden;
  72. text-overflow: ellipsis;
  73. color: var(--color-text-light-1);
  74. }
  75. #repo-files-table .repo-file-cell.age {
  76. text-align: right;
  77. white-space: nowrap;
  78. color: var(--color-text-light-1);
  79. }