fix buttons style
This commit is contained in:
		
							parent
							
								
									c0a899b151
								
							
						
					
					
						commit
						5c5ccddb02
					
				
					 6 changed files with 12 additions and 24 deletions
				
			
		
							
								
								
									
										2
									
								
								public/css/gogs.min.css
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								public/css/gogs.min.css
									
									
									
									
										vendored
									
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							|  | @ -184,18 +184,6 @@ pre { | |||
| 			display: none!important; | ||||
| 		} | ||||
| 	} | ||||
| 
 | ||||
| 	&.tabs.buttons { | ||||
| 		.active { | ||||
| 			font-weight: 900; | ||||
| 			&.green { | ||||
| 		    box-shadow: 0 0 0 2px #13ae38 inset!important; | ||||
| 			} | ||||
| 			&.red { | ||||
| 		    box-shadow: 0 0 0 2px #d41515 inset!important; | ||||
| 			} | ||||
| 		} | ||||
| 	} | ||||
| } | ||||
| 
 | ||||
| .overflow.menu { | ||||
|  |  | |||
|  | @ -9,12 +9,12 @@ | |||
| 			</div> | ||||
| 		</div> | ||||
| 		<div class="ui divider"></div> | ||||
| 		<div class="ui tiny tabs buttons"> | ||||
| 		  <a class="ui green basic button {{if not .IsShowClosed}}active{{end}}" href="{{$.Link}}?type={{$.ViewType}}&sort={{$.SortType}}&state=open&labels={{.SelectLabels}}&milestone={{.MilestoneID}}&assignee={{.AssigneeID}}"> | ||||
| 		<div class="ui tiny basic buttons"> | ||||
| 		  <a class="ui {{if not .IsShowClosed}}green active{{end}} basic button" href="{{$.Link}}?type={{$.ViewType}}&sort={{$.SortType}}&state=open&labels={{.SelectLabels}}&milestone={{.MilestoneID}}&assignee={{.AssigneeID}}"> | ||||
| 		  	<i class="octicon octicon-issue-opened"></i> | ||||
| 		  	{{.i18n.Tr "repo.issues.open_tab" .IssueStats.OpenCount}} | ||||
| 		  </a> | ||||
| 		  <a class="ui red basic button {{if .IsShowClosed}}active{{end}}" href="{{$.Link}}?type={{.ViewType}}&sort={{$.SortType}}&state=closed&labels={{.SelectLabels}}&milestone={{.MilestoneID}}&assignee={{.AssigneeID}}"> | ||||
| 		  <a class="ui {{if .IsShowClosed}}red active{{end}} basic button" href="{{$.Link}}?type={{.ViewType}}&sort={{$.SortType}}&state=closed&labels={{.SelectLabels}}&milestone={{.MilestoneID}}&assignee={{.AssigneeID}}"> | ||||
| 		  	<i class="octicon octicon-issue-closed"></i> | ||||
| 		  	{{.i18n.Tr "repo.issues.close_tab" .IssueStats.ClosedCount}} | ||||
| 		  </a> | ||||
|  |  | |||
|  | @ -12,12 +12,12 @@ | |||
| 		</div> | ||||
| 		<div class="ui divider"></div> | ||||
| 		{{template "base/alert" .}} | ||||
| 		<div class="ui tiny buttons"> | ||||
| 		  <a class="ui green basic button {{if not .IsShowClosed}}active{{end}}" href="{{.RepoLink}}/milestones?state=open"> | ||||
| 		<div class="ui tiny basic buttons"> | ||||
| 		  <a class="ui {{if not .IsShowClosed}}green active{{end}} basic button" href="{{.RepoLink}}/milestones?state=open"> | ||||
| 		  	<i class="octicon octicon-milestone"></i> | ||||
| 		  	{{.i18n.Tr "repo.milestones.open_tab" .OpenCount}} | ||||
| 		  </a> | ||||
| 		  <a class="ui red basic button {{if .IsShowClosed}}active{{end}}" href="{{.RepoLink}}/milestones?state=closed"> | ||||
| 		  <a class="ui {{if .IsShowClosed}}red active{{end}} basic button" href="{{.RepoLink}}/milestones?state=closed"> | ||||
| 		  	<i class="octicon octicon-milestone"></i> | ||||
| 		  	{{.i18n.Tr "repo.milestones.close_tab" .ClosedCount}} | ||||
| 		  </a> | ||||
|  |  | |||
|  | @ -26,12 +26,12 @@ | |||
|   			</div> | ||||
|   		</div> | ||||
| 			<div class="twelve wide column content"> | ||||
| 				<div class="ui tiny tabs buttons"> | ||||
| 				  <a class="ui green basic button {{if not .IsShowClosed}}active{{end}}" href="{{.Link}}?type={{$.ViewType}}&repo={{.RepoID}}&state=open"> | ||||
| 				<div class="ui tiny basic buttons"> | ||||
| 				  <a class="ui {{if not .IsShowClosed}}green active{{end}} basic button" href="{{.Link}}?type={{$.ViewType}}&repo={{.RepoID}}&state=open"> | ||||
| 				  	<i class="octicon octicon-issue-opened"></i> | ||||
| 				  	{{.i18n.Tr "repo.issues.open_tab" .IssueStats.OpenCount}} | ||||
| 				  </a> | ||||
| 				  <a class="ui red basic button {{if .IsShowClosed}}active{{end}}" href="{{.Link}}?type={{$.ViewType}}&repo={{.RepoID}}&state=closed"> | ||||
| 				  <a class="ui {{if .IsShowClosed}}red active{{end}} basic button" href="{{.Link}}?type={{$.ViewType}}&repo={{.RepoID}}&state=closed"> | ||||
| 				  	<i class="octicon octicon-issue-closed"></i> | ||||
| 				  	{{.i18n.Tr "repo.issues.close_tab" .IssueStats.ClosedCount}} | ||||
| 				  </a> | ||||
|  |  | |||
|  | @ -10,12 +10,12 @@ | |||
| 				{{.i18n.Tr "home.switch_dashboard_context"}} | ||||
| 			</div> | ||||
|       <div class="items"> | ||||
|       	<a class="{{if eq .ContextUser.Id .SignedUser.Id}}active selected{{end}} item" href="{{AppSubUrl}}/issues"> | ||||
|       	<a class="{{if eq .ContextUser.Id .SignedUser.Id}}active selected{{end}} item" href="{{AppSubUrl}}/{{if .PageIsIssues}}issues{{else}}pulls{{end}}"> | ||||
|         	<img class="ui avatar image" src="{{.SignedUser.AvatarLink}}"> | ||||
|       		{{.SignedUser.Name}} | ||||
|       	</a> | ||||
|         {{range .Orgs}} | ||||
|         <a class="{{if eq $.ContextUser.Id .Id}}active selected{{end}} item" href="{{AppSubUrl}}/org/{{.Name}}/issues"> | ||||
|         <a class="{{if eq $.ContextUser.Id .Id}}active selected{{end}} item" href="{{AppSubUrl}}/org/{{.Name}}/{{if $.PageIsIssues}}issues{{else}}pulls{{end}}"> | ||||
|           <img class="ui avatar image" src="{{.AvatarLink}}"> | ||||
|           {{.Name}} | ||||
|         </a> | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue