From 34a589c1cb5259478af10e4938082c5c9688208f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laura=20Kl=C3=BCnder?= Date: Tue, 16 May 2017 12:19:28 +0200 Subject: [PATCH] show loading icon only on load --- src/c3nav/editor/static/editor/css/editor.css | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/c3nav/editor/static/editor/css/editor.css b/src/c3nav/editor/static/editor/css/editor.css index b6446e7e..13ffdc49 100644 --- a/src/c3nav/editor/static/editor/css/editor.css +++ b/src/c3nav/editor/static/editor/css/editor.css @@ -33,10 +33,13 @@ nav.navbar { height: 100%; overflow: auto; z-index:2; - background: #ffffff url('/static/img/loader.gif') no-repeat center; + background-color: #ffffff; transition: width 300ms; -webkit-transition: width 300ms; } +#sidebar.loading { + background: #ffffff url('/static/img/loader.gif') no-repeat center; +} body:not(.map-enabled) #sidebar { width:100%; }