gitea源码

home.css 1.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. .repo-grid-filelist-sidebar {
  2. display: grid;
  3. grid-template-columns: auto 280px;
  4. grid-template-rows: auto auto 1fr;
  5. gap: var(--page-spacing);
  6. }
  7. .repo-home-filelist {
  8. min-width: 0;
  9. grid-column: 1;
  10. grid-row: 1 / 4;
  11. }
  12. .repo-home-sidebar-top {
  13. grid-column: 2;
  14. grid-row: 1;
  15. }
  16. .repo-home-sidebar-bottom {
  17. grid-column: 2;
  18. grid-row: 2;
  19. }
  20. .repo-home-sidebar-bottom .flex-list > :first-child {
  21. border-top: 1px solid var(--color-secondary); /* same to .flex-list > .flex-item + .flex-item */
  22. }
  23. @media (max-width: 767.98px) {
  24. .repo-grid-filelist-sidebar {
  25. grid-template-columns: 100%;
  26. grid-template-rows: auto auto auto;
  27. }
  28. .repo-home-filelist {
  29. grid-column: 1;
  30. grid-row: 2;
  31. }
  32. .repo-home-sidebar-top {
  33. grid-column: 1;
  34. grid-row: 1;
  35. padding-left: 0;
  36. }
  37. .repo-home-sidebar-bottom {
  38. grid-column: 1;
  39. grid-row: 3;
  40. padding-left: 0;
  41. }
  42. .repo-home-sidebar-bottom .flex-list > :first-child {
  43. border-top: 0;
  44. }
  45. }
  46. .repo-view-container {
  47. display: flex;
  48. gap: var(--page-spacing);
  49. }
  50. .repo-view-container .repo-view-file-tree-container {
  51. flex: 0 0 15%;
  52. min-width: 0;
  53. max-height: 100vh;
  54. position: sticky;
  55. top: 0;
  56. bottom: 0;
  57. height: 100%;
  58. overflow-y: hidden;
  59. }
  60. .repo-view-content {
  61. flex: 1;
  62. min-width: 0;
  63. }
  64. .language-stats {
  65. display: flex;
  66. gap: 2px;
  67. padding: 0;
  68. height: 10px;
  69. white-space: nowrap;
  70. border-radius: 5px;
  71. overflow: hidden;
  72. width: 100%;
  73. margin-top: 1rem;
  74. margin-bottom: 5px;
  75. }
  76. .language-stats-details {
  77. display: flex;
  78. flex-wrap: wrap;
  79. }
  80. .language-stats-details .item {
  81. height: 30px;
  82. display: flex;
  83. align-items: center;
  84. justify-content: center;
  85. gap: 0.25em;
  86. padding: 0 0.5em; /* make the UI look better for narrow (mobile) view */
  87. text-decoration: none;
  88. }