mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-22 15:23:14 -05:00
Remove some transition related code (#26755)
Remove transition related code because the transition module has been removed by #26469
This commit is contained in:
parent
c533991519
commit
67daa7bcb0
3 changed files with 2 additions and 10 deletions
|
@ -1,11 +1,11 @@
|
|||
<!-- there is always at least one button (by context/repo.go) -->
|
||||
{{if $.CloneButtonShowHTTPS}}
|
||||
<button class="ui small compact clone button gt-no-transition" id="repo-clone-https" data-link="{{$.CloneButtonOriginLink.HTTPS}}">
|
||||
<button class="ui small compact clone button" id="repo-clone-https" data-link="{{$.CloneButtonOriginLink.HTTPS}}">
|
||||
HTTPS
|
||||
</button>
|
||||
{{end}}
|
||||
{{if $.CloneButtonShowSSH}}
|
||||
<button class="ui small compact clone button gt-no-transition" id="repo-clone-ssh" data-link="{{$.CloneButtonOriginLink.SSH}}">
|
||||
<button class="ui small compact clone button" id="repo-clone-ssh" data-link="{{$.CloneButtonOriginLink.SSH}}">
|
||||
SSH
|
||||
</button>
|
||||
{{end}}
|
||||
|
|
|
@ -105,8 +105,6 @@ Gitea's private styles use `g-` prefix.
|
|||
.gt-border-secondary-left { border-left: 1px solid var(--color-secondary) !important; }
|
||||
.gt-border-secondary-right { border-right: 1px solid var(--color-secondary) !important; }
|
||||
|
||||
.gt-no-transition { transition: none !important; }
|
||||
|
||||
.gt-bg-red { background: var(--color-red) !important; }
|
||||
.gt-bg-orange { background: var(--color-orange) !important; }
|
||||
.gt-bg-yellow { background: var(--color-yellow) !important; }
|
||||
|
|
|
@ -53,12 +53,6 @@ export function initRepoCloneLink() {
|
|||
return;
|
||||
}
|
||||
|
||||
// restore animation after first init
|
||||
setTimeout(() => {
|
||||
$repoCloneSsh.removeClass('gt-no-transition');
|
||||
$repoCloneHttps.removeClass('gt-no-transition');
|
||||
}, 100);
|
||||
|
||||
$repoCloneSsh.on('click', () => {
|
||||
localStorage.setItem('repo-clone-protocol', 'ssh');
|
||||
window.updateCloneStates();
|
||||
|
|
Loading…
Reference in a new issue