mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Issue and Pulls lists rework (#13594)
* Issue and Pulls lists rework Reorganized and restyled the issue and pull request lists. * color and layout tweaks * use new issue list on dashboard as well * move pagination into template * misc tweaks * fix label hover * fix milestone list * fix discrepancies between issue and milestone list, add new 'merge' helper * fmt * simplify merge helper * remove whitespace * fix startIndex * further simplify dict merging * rename helper to 'mergeinto' for clarity * allow bottom-row to wrap Co-authored-by: Lauris BH <lauris@nix.lv>
This commit is contained in:
		
							
								
								
									
										127
									
								
								web_src/less/shared/issuelist.less
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										127
									
								
								web_src/less/shared/issuelist.less
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,127 @@
 | 
			
		||||
.issue.list {
 | 
			
		||||
  list-style: none;
 | 
			
		||||
  margin-top: 1rem;
 | 
			
		||||
 | 
			
		||||
  a:not(.label):hover {
 | 
			
		||||
    color: var(--color-primary) !important;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  > .item {
 | 
			
		||||
    .issue-checkbox {
 | 
			
		||||
      margin-top: 1px;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    .issue-item-icon svg {
 | 
			
		||||
      margin-right: .75rem;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    .issue-item-icons-right > * + * {
 | 
			
		||||
      margin-left: .5rem;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    .issue-item-main {
 | 
			
		||||
      width: 100%;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    .issue-item-top-row {
 | 
			
		||||
      max-width: 100%;
 | 
			
		||||
      color: var(--color-text);
 | 
			
		||||
      font-size: 16px;
 | 
			
		||||
      min-width: 0;
 | 
			
		||||
      font-weight: 600;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    .issue-item-bottom-row {
 | 
			
		||||
      font-size: 13px;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    .title {
 | 
			
		||||
      color: var(--color-text);
 | 
			
		||||
      word-break: break-word;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    .issue-item-icon-right {
 | 
			
		||||
      min-width: 2rem;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    .assignee {
 | 
			
		||||
      position: relative;
 | 
			
		||||
      top: -2px;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    .assignee img {
 | 
			
		||||
      width: 20px;
 | 
			
		||||
      height: 20px;
 | 
			
		||||
      margin-right: 2px;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    .desc {
 | 
			
		||||
      color: #999999;
 | 
			
		||||
 | 
			
		||||
      a {
 | 
			
		||||
        color: inherit;
 | 
			
		||||
      }
 | 
			
		||||
 | 
			
		||||
      .time-since,
 | 
			
		||||
      a {
 | 
			
		||||
        margin-left: .25rem;
 | 
			
		||||
        margin-right: .25rem;
 | 
			
		||||
      }
 | 
			
		||||
 | 
			
		||||
      .waiting,
 | 
			
		||||
      .approvals,
 | 
			
		||||
      .rejects {
 | 
			
		||||
        padding-left: 5px;
 | 
			
		||||
      }
 | 
			
		||||
 | 
			
		||||
      .checklist {
 | 
			
		||||
        padding-left: 5px;
 | 
			
		||||
 | 
			
		||||
        .progress-bar {
 | 
			
		||||
          margin-left: 2px;
 | 
			
		||||
          width: 80px;
 | 
			
		||||
          height: 6px;
 | 
			
		||||
          display: inline-block;
 | 
			
		||||
          background-color: #eeeeee;
 | 
			
		||||
          overflow: hidden;
 | 
			
		||||
          border-radius: 3px;
 | 
			
		||||
          vertical-align: 2px !important;
 | 
			
		||||
 | 
			
		||||
          .progress {
 | 
			
		||||
            background-color: #cccccc;
 | 
			
		||||
            display: block;
 | 
			
		||||
            height: 100%;
 | 
			
		||||
          }
 | 
			
		||||
        }
 | 
			
		||||
      }
 | 
			
		||||
 | 
			
		||||
      .conflicting {
 | 
			
		||||
        padding-left: 5px;
 | 
			
		||||
      }
 | 
			
		||||
 | 
			
		||||
      .due-date {
 | 
			
		||||
        padding-left: 5px;
 | 
			
		||||
      }
 | 
			
		||||
 | 
			
		||||
      a.milestone {
 | 
			
		||||
        margin-left: 5px;
 | 
			
		||||
      }
 | 
			
		||||
 | 
			
		||||
      a.ref {
 | 
			
		||||
        margin-left: 8px;
 | 
			
		||||
 | 
			
		||||
        span {
 | 
			
		||||
          margin-right: -4px;
 | 
			
		||||
        }
 | 
			
		||||
      }
 | 
			
		||||
 | 
			
		||||
      .overdue {
 | 
			
		||||
        color: var(--color-red);
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  > .item + .item {
 | 
			
		||||
    border-top: 1px solid var(--color-secondary);
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user