Skip to content

Commit b7dd4fb

Browse files
committed
Move button styles, swap arc-green primary colors, misc fixes
1 parent 0cf9e53 commit b7dd4fb

File tree

9 files changed

+833
-753
lines changed

9 files changed

+833
-753
lines changed

templates/repo/clone_buttons.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<!-- there is always at least one button (by context/repo.go) -->
22
{{if $.CloneButtonShowHTTPS}}
3-
<button class="ui basic small compact clone button gt-no-transition" id="repo-clone-https" data-link="{{$.CloneButtonOriginLink.HTTPS}}">
3+
<button class="ui small compact clone button gt-no-transition" id="repo-clone-https" data-link="{{$.CloneButtonOriginLink.HTTPS}}">
44
HTTPS
55
</button>
66
{{end}}
77
{{if $.CloneButtonShowSSH}}
8-
<button class="ui basic small compact clone button gt-no-transition" id="repo-clone-ssh" data-link="{{$.CloneButtonOriginLink.SSH}}">
8+
<button class="ui small compact clone button gt-no-transition" id="repo-clone-ssh" data-link="{{$.CloneButtonOriginLink.SSH}}">
99
SSH
1010
</button>
1111
{{end}}

templates/repo/clone_script.tmpl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,12 @@
1414
if (httpsBtn) {
1515
httpsBtn.textContent = window.origin.split(':')[0].toUpperCase();
1616
httpsBtn.classList[!isSSH ? 'add' : 'remove']('primary');
17+
httpsBtn.classList[!isSSH ? 'remove' : 'add']('basic');
18+
}
19+
if (sshBtn) {
20+
sshBtn.classList[isSSH ? 'add' : 'remove']('primary');
21+
sshBtn.classList[isSSH ? 'remove' : 'add']('basic');
1722
}
18-
if (sshBtn) sshBtn.classList[isSSH ? 'add' : 'remove']('primary');
1923

2024
const btn = isSSH ? sshBtn : httpsBtn;
2125
if (!btn) return;

0 commit comments

Comments
 (0)