File tree 6 files changed +40
-26
lines changed
6 files changed +40
-26
lines changed Original file line number Diff line number Diff line change 91
91
>
92
92
{{svg "octicon-repo-forked"}}<span class="text not-mobile">{{ctx.Locale.Tr "repo.fork"}}</span>
93
93
</a>
94
- <div class="ui small modal" id="fork-repo-modal">
95
- <div class="header">
96
- {{ctx.Locale.Tr "repo.already_forked" .Name}}
97
- </div>
98
- <div class="content tw-text-left">
99
- <div class="ui list">
100
- {{range $.UserAndOrgForks}}
101
- <div class="ui item tw-py-2">
102
- <a href="{{.Link}}">{{svg "octicon-repo-forked" 16 "tw-mr-2"}}{{.FullName}}</a>
103
- </div>
104
- {{end}}
105
- </div>
106
- {{if $.CanSignedUserFork}}
107
- <div class="divider"></div>
108
- <a href="{{$.RepoLink}}/fork">{{ctx.Locale.Tr "repo.fork_to_different_account"}}</a>
109
- {{end}}
110
- </div>
111
- </div>
112
94
<a class="ui basic label" href="{{.Link}}/forks">
113
95
{{CountFmt .NumForks}}
114
96
</a>
115
97
</div>
98
+ <div class="ui small modal" id="fork-repo-modal">
99
+ <div class="header">
100
+ {{ctx.Locale.Tr "repo.already_forked" .Name}}
101
+ </div>
102
+ <div class="content tw-text-left">
103
+ <div class="ui list">
104
+ {{range $.UserAndOrgForks}}
105
+ <div class="ui item tw-py-2">
106
+ <a href="{{.Link}}">{{svg "octicon-repo-forked" 16 "tw-mr-2"}}{{.FullName}}</a>
107
+ </div>
108
+ {{end}}
109
+ </div>
110
+ {{if $.CanSignedUserFork}}
111
+ <div class="divider"></div>
112
+ <a href="{{$.RepoLink}}/fork">{{ctx.Locale.Tr "repo.fork_to_different_account"}}</a>
113
+ {{end}}
114
+ </div>
115
+ </div>
116
116
{{end}}
117
117
</div>
118
118
{{end}}
Original file line number Diff line number Diff line change 4
4
{{if $.IsStaringRepo}}{{$buttonText = ctx.Locale.Tr "repo.unstar"}}{{end}}
5
5
<button type="submit" class="ui compact small basic button"{{if not $.IsSigned}} disabled{{end}} aria-label="{{$buttonText}}">
6
6
{{if $.IsStaringRepo}}{{svg "octicon-star-fill"}}{{else}}{{svg "octicon-star"}}{{end}}
7
- <span class="not-mobile" aria-hidden="true">{{$buttonText}}</span>
7
+ <span aria-hidden="true">{{$buttonText}}</span>
8
8
</button>
9
9
<a hx-boost="false" class="ui basic label" href="{{$.RepoLink}}/stars">
10
10
{{CountFmt .Repository.NumStars}}
Original file line number Diff line number Diff line change 4
4
{{if $.IsWatchingRepo}}{{$buttonText = ctx.Locale.Tr "repo.unwatch"}}{{end}}
5
5
<button type="submit" class="ui compact small basic button"{{if not $.IsSigned}} disabled{{end}} aria-label="{{$buttonText}}">
6
6
{{svg "octicon-eye"}}
7
- <span class="not-mobile" aria-hidden="true">{{$buttonText}}</span>
7
+ <span aria-hidden="true">{{$buttonText}}</span>
8
8
</button>
9
9
<a hx-boost="false" class="ui basic label" href="{{.RepoLink}}/watchers">
10
10
{{CountFmt .Repository.NumWatches}}
Original file line number Diff line number Diff line change 63
63
}
64
64
.ui .labeled .button > .button {
65
65
margin : 0 ;
66
+ border-top-right-radius : 0 ;
67
+ border-bottom-right-radius : 0 ;
66
68
}
67
69
.ui .labeled .button > .label {
68
70
display : flex;
69
71
align-items : center;
70
72
margin : 0 0 0 -1px !important ;
71
73
font-size : 1em ;
72
74
border-color : var (--color-light-border );
75
+ border-top-left-radius : 0 ;
76
+ border-bottom-left-radius : 0 ;
77
+ }
78
+ .ui .labeled .button > .label : hover {
79
+ background : var (--color-hover );
80
+ }
81
+ .ui .labeled .button > .button : hover + .label {
82
+ border-left-color : var (--color-secondary-dark-2 );
73
83
}
74
84
75
85
.ui .button > .icon : not (.button ) {
Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ a.ui.label:hover {
107
107
a .ui .basic .label : hover {
108
108
text-decoration : none;
109
109
color : var (--color-text );
110
- border-color : var (--color-light-border );
110
+ border-color : var (--color-secondary-dark-2 );
111
111
background : var (--color-hover );
112
112
}
113
113
Original file line number Diff line number Diff line change 36
36
gap : 0.25em ;
37
37
}
38
38
39
- .repo-buttons .ui .labeled .button > .label : hover {
40
- color : var (--color-primary-light-2 );
41
- background : var (--color-light );
42
- }
43
-
44
39
.repo-buttons button [disabled ] ~ .label {
45
40
opacity : var (--opacity-disabled );
46
41
color : var (--color-text-dark );
67
62
.repo-buttons .ui .labeled .button .disabled > .button {
68
63
pointer-events : none !important ;
69
64
}
65
+
66
+ @media (max-width : 767.98px ) {
67
+ .repo-buttons .ui .button ,
68
+ .repo-buttons .ui .label {
69
+ padding-left : 8px ;
70
+ padding-right : 8px ;
71
+ margin : 0 ;
72
+ }
73
+ }
You can’t perform that action at this time.
0 commit comments