mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-29 10:57:44 +09:00 
			
		
		
		
	Use octicons for all repo header buttons (#11890)
* Use octicons for all repo header buttons * ensure margin isn't set on any other svg outside repo buttons Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: Lauris BH <lauris@nix.lv>
This commit is contained in:
		
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							3b685e1f0d
						
					
				
				
					commit
					c1a2887c02
				
			| @@ -25,7 +25,7 @@ | |||||||
| 						{{$.CsrfTokenHtml}} | 						{{$.CsrfTokenHtml}} | ||||||
| 						<div class="ui labeled button" tabindex="0"> | 						<div class="ui labeled button" tabindex="0"> | ||||||
| 							<button type="submit" class="ui compact basic button"> | 							<button type="submit" class="ui compact basic button"> | ||||||
| 								<i class="icon fa-eye{{if not $.IsWatchingRepo}}-slash{{end}}"></i>{{if $.IsWatchingRepo}}{{$.i18n.Tr "repo.unwatch"}}{{else}}{{$.i18n.Tr "repo.watch"}}{{end}} | 								{{if $.IsWatchingRepo}}{{svg "octicon-eye-closed" 16}}{{$.i18n.Tr "repo.unwatch"}}{{else}}{{svg "octicon-eye" 16}}{{$.i18n.Tr "repo.watch"}}{{end}} | ||||||
| 							</button> | 							</button> | ||||||
| 							<a class="ui basic label" href="{{.Link}}/watchers"> | 							<a class="ui basic label" href="{{.Link}}/watchers"> | ||||||
| 								{{.NumWatches}} | 								{{.NumWatches}} | ||||||
| @@ -36,7 +36,8 @@ | |||||||
| 						{{$.CsrfTokenHtml}} | 						{{$.CsrfTokenHtml}} | ||||||
| 						<div class="ui labeled button" tabindex="0"> | 						<div class="ui labeled button" tabindex="0"> | ||||||
| 							<button type="submit" class="ui compact basic button"> | 							<button type="submit" class="ui compact basic button"> | ||||||
| 								<i class="icon star{{if not $.IsStaringRepo}} outline{{end}}"></i>{{if $.IsStaringRepo}}{{$.i18n.Tr "repo.unstar"}}{{else}}{{$.i18n.Tr "repo.star"}}{{end}} | 								<!-- TODO use star-filled once octicons v2 are in place */ --> | ||||||
|  | 								{{if $.IsStaringRepo}}{{svg "octicon-star" 16}}{{$.i18n.Tr "repo.unstar"}}{{else}}{{svg "octicon-star" 16}}{{$.i18n.Tr "repo.star"}}{{end}} | ||||||
| 							</button> | 							</button> | ||||||
| 							<a class="ui basic label" href="{{.Link}}/stars"> | 							<a class="ui basic label" href="{{.Link}}/stars"> | ||||||
| 								{{.NumStars}} | 								{{.NumStars}} | ||||||
| @@ -46,7 +47,7 @@ | |||||||
| 					{{if and (not .IsEmpty) ($.Permission.CanRead $.UnitTypeCode)}} | 					{{if and (not .IsEmpty) ($.Permission.CanRead $.UnitTypeCode)}} | ||||||
| 						<div class="ui labeled button {{if and ($.IsSigned) (not $.CanSignedUserFork)}}disabled-repo-button{{end}}" tabindex="0"> | 						<div class="ui labeled button {{if and ($.IsSigned) (not $.CanSignedUserFork)}}disabled-repo-button{{end}}" tabindex="0"> | ||||||
| 							<a class="ui compact basic button {{if or (not $.IsSigned) (not $.CanSignedUserFork)}}poping up{{end}}" {{if $.CanSignedUserFork}}href="{{AppSubUrl}}/repo/fork/{{.ID}}"{{else if $.IsSigned}} data-content="{{$.i18n.Tr "repo.fork_from_self"}}" {{ else }} data-content="{{$.i18n.Tr "repo.fork_guest_user" }}" rel="nofollow" href="{{AppSubUrl}}/user/login?redirect_to={{AppSubUrl}}/repo/fork/{{.ID}}" {{end}} data-position="top center" data-variation="tiny"> | 							<a class="ui compact basic button {{if or (not $.IsSigned) (not $.CanSignedUserFork)}}poping up{{end}}" {{if $.CanSignedUserFork}}href="{{AppSubUrl}}/repo/fork/{{.ID}}"{{else if $.IsSigned}} data-content="{{$.i18n.Tr "repo.fork_from_self"}}" {{ else }} data-content="{{$.i18n.Tr "repo.fork_guest_user" }}" rel="nofollow" href="{{AppSubUrl}}/user/login?redirect_to={{AppSubUrl}}/repo/fork/{{.ID}}" {{end}} data-position="top center" data-variation="tiny"> | ||||||
| 								{{svg "octicon-repo-forked" 15}}{{$.i18n.Tr "repo.fork"}} | 								{{svg "octicon-repo-forked" 16}}{{$.i18n.Tr "repo.fork"}} | ||||||
| 							</a> | 							</a> | ||||||
| 							<a class="ui basic label" href="{{.Link}}/forks"> | 							<a class="ui basic label" href="{{.Link}}/forks"> | ||||||
| 								{{.NumForks}} | 								{{.NumForks}} | ||||||
|   | |||||||
| @@ -32,8 +32,8 @@ | |||||||
|             white-space: nowrap; |             white-space: nowrap; | ||||||
|         } |         } | ||||||
|  |  | ||||||
|         .svg.octicon-repo-forked { |         .repo-buttons .svg { | ||||||
|             margin-top: -1px; |             margin: 0 .42857143em 0 -.21428571em; | ||||||
|         } |         } | ||||||
|  |  | ||||||
|         .button { |         .button { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user