From f7890b696d398c3efb4076ac422e99b97dec9b61 Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 5 Mar 2019 20:45:19 +0900 Subject: [PATCH] [Client] Better transition --- src/client/app/theme.ts | 2 +- src/client/style.styl | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/client/app/theme.ts b/src/client/app/theme.ts index 2a2b3fd53..ba5eabad2 100644 --- a/src/client/app/theme.ts +++ b/src/client/app/theme.ts @@ -47,7 +47,7 @@ export function applyTheme(theme: Theme, persisted = true) { setTimeout(() => { document.documentElement.classList.remove('changing-theme'); - }, 500); + }, 1000); // Deep copy const _theme = JSON.parse(JSON.stringify(theme)); diff --git a/src/client/style.styl b/src/client/style.styl index dc45e0026..5c1f0a1b6 100644 --- a/src/client/style.styl +++ b/src/client/style.styl @@ -22,9 +22,7 @@ html, body html.changing-theme &, * - transition-property all - transition-duration 0.5s - transition-timing-function ease + transition background 1s ease a text-decoration none