File tree 2 files changed +15
-8
lines changed
2 files changed +15
-8
lines changed Original file line number Diff line number Diff line change 110
110
{{if eq $n 0}}
111
111
<div class="ui action tiny input" id="clone-panel">
112
112
{{template "repo/clone_buttons" .}}
113
- <div class="ui basic jump dropdown icon button poping up" data-content="{{.i18n.Tr "repo.download_archive"}}" data-variation="tiny inverted" data-position="top right">
113
+ <button id="download-btn" class="ui basic jump dropdown icon button poping up" data-content="{{.i18n.Tr "repo.download_archive"}}" data-variation="tiny inverted" data-position="top right">
114
114
{{svg "octicon-download"}}
115
115
<div class="menu">
116
116
<a class="item archive-link" data-url="{{$.RepoLink}}/archive/{{EscapePound $.BranchName}}.zip">{{svg "octicon-file-zip"}} ZIP</a>
117
117
<a class="item archive-link" data-url="{{$.RepoLink}}/archive/{{EscapePound $.BranchName}}.tar.gz">{{svg "octicon-file-zip"}} TAR.GZ</a>
118
118
</div>
119
- </div >
119
+ </button >
120
120
</div>
121
121
{{end}}
122
122
</div>
Original file line number Diff line number Diff line change 201
201
.clone.button {
202
202
font-size : 13px ;
203
203
padding : 7.5px 5px ;
204
-
205
- & :first-child {
206
- border-radius : var (--border-radius ) 0 0 var (--border-radius );
207
- }
208
204
}
209
205
210
206
#repo-clone-https ,
211
- #repo-clone-ssh ,
212
- #clipboard-btn {
207
+ #repo-clone-ssh {
213
208
border-right : none ;
214
209
}
215
210
211
+ #download-btn {
212
+ border-left : none ;
213
+ }
214
+
215
+ button :first-of-type {
216
+ border-radius : var (--border-radius ) 0 0 var (--border-radius ) !important ;
217
+ }
218
+
219
+ button :last-of-type {
220
+ border-radius : 0 var (--border-radius ) var (--border-radius ) 0 !important ;
221
+ }
222
+
216
223
.icon.button {
217
224
padding : 0 10px ;
218
225
}
You can’t perform that action at this time.
0 commit comments