gitea源码

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. #project-board {
  2. display: flex;
  3. align-items: stretch;
  4. flex-direction: row;
  5. flex-wrap: nowrap;
  6. overflow: auto;
  7. margin: 0 0.5em;
  8. min-height: max(calc(100vh - 400px), 300px);
  9. max-height: calc(100vh - 120px);
  10. }
  11. .project-header {
  12. padding: 0.5em 0;
  13. flex-wrap: wrap;
  14. }
  15. .project-header h2 {
  16. white-space: nowrap;
  17. margin: 0;
  18. }
  19. .project-column {
  20. flex: 0 0 auto;
  21. display: flex;
  22. flex-direction: column;
  23. background-color: var(--color-project-column-bg);
  24. border: 1px solid var(--color-secondary);
  25. border-radius: var(--border-radius);
  26. margin: 0 0.5rem;
  27. padding: 0.5rem;
  28. width: 320px;
  29. overflow: visible;
  30. }
  31. .project-column-header {
  32. display: flex;
  33. align-items: center;
  34. justify-content: space-between;
  35. gap: 0.5em;
  36. }
  37. .ui.label.project-column-issue-count {
  38. color: inherit;
  39. }
  40. .project-column > .ui.cards {
  41. flex: 1;
  42. display: flex;
  43. flex-wrap: nowrap;
  44. flex-direction: column;
  45. overflow: clip auto;
  46. gap: .25rem;
  47. margin: 0;
  48. padding: 0;
  49. }
  50. .project-column > .divider {
  51. margin: 5px 0;
  52. border-color: currentcolor;
  53. opacity: .5;
  54. }
  55. .project-column:first-child {
  56. margin-left: auto !important;
  57. }
  58. .project-column:last-child {
  59. margin-right: auto !important;
  60. }
  61. .card-attachment-images {
  62. display: inline-block;
  63. white-space: nowrap;
  64. overflow: auto;
  65. cursor: default;
  66. scroll-snap-type: x mandatory;
  67. text-align: center;
  68. }
  69. .card-attachment-images img {
  70. display: inline-block;
  71. max-height: 50px;
  72. border-radius: var(--border-radius);
  73. text-align: left;
  74. scroll-snap-align: center;
  75. margin-right: 2px;
  76. aspect-ratio: 1;
  77. object-fit: contain;
  78. }
  79. .card-attachment-images img:only-child {
  80. max-height: 90px;
  81. margin: auto;
  82. }
  83. .card-ghost {
  84. border-color: var(--color-secondary-dark-4) !important;
  85. border-style: dashed !important;
  86. background: none !important;
  87. }
  88. .card-ghost * {
  89. opacity: 0;
  90. }
  91. .fullscreen.projects-view {
  92. position: absolute;
  93. inset: 0;
  94. display: flex;
  95. flex-direction: column;
  96. }
  97. /* Hide project-description in full-screen due to its variable height. No need to show it for better space use. */
  98. .fullscreen.projects-view .project-description {
  99. display: none;
  100. }
  101. .fullscreen.projects-view #project-board {
  102. flex: 1;
  103. max-height: unset;
  104. padding-bottom: 0.5em;
  105. }