summaryrefslogtreecommitdiffstats
path: root/web_src/less
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2020-11-26 21:31:09 +0100
committerGitHub <noreply@github.com>2020-11-26 22:31:09 +0200
commit7bc0c8cff66d42c9aa01d2ec107edac60d4a08f3 (patch)
tree59430e3085862bec9e110f6cf0293f65262aca82 /web_src/less
parentb2de034278560f0fec9fc0919f1b75fa005de25c (diff)
downloadgitea-7bc0c8cff66d42c9aa01d2ec107edac60d4a08f3.tar.gz
gitea-7bc0c8cff66d42c9aa01d2ec107edac60d4a08f3.zip
Prevent clone protocol button flash on page load (#13626)
* Prevent clone protocol button flash on page load Previously, the saved active buttons would flash on page load because if delay involved in JS execution. Prevent these flashes bydisabling transitions on page load and run the script right after. It's not an ideal solution (which would require server-side storage of user settings like this) but I'd say better than before. * add defer Co-authored-by: zeripath <art27@cantab.net>
Diffstat (limited to 'web_src/less')
-rw-r--r--web_src/less/helpers.less2
1 files changed, 2 insertions, 0 deletions
diff --git a/web_src/less/helpers.less b/web_src/less/helpers.less
index 60d50883c5..f5c5d710f2 100644
--- a/web_src/less/helpers.less
+++ b/web_src/less/helpers.less
@@ -24,6 +24,8 @@
.rounded-left { border-radius: var(--border-radius) 0 0 var(--border-radius) !important; }
.rounded-right { border-radius: 0 var(--border-radius) var(--border-radius) 0 !important; }
+.no-transition { transition: none !important; }
+
.bg-red { background: var(--color-red) !important; }
.bg-orange { background: var(--color-orange) !important; }
.bg-yellow { background: var(--color-yellow) !important; }