From 3a748859ffd961552f272f751c7329e3021ac375 Mon Sep 17 00:00:00 2001 From: Devaev Maxim Date: Tue, 31 Jul 2018 21:57:20 +0300 Subject: js-based windows centering --- kvmd/web/css/windows.css | 6 +----- kvmd/web/index.html | 4 ++-- kvmd/web/js/ui.js | 42 +++++++++++++++++++++++------------------- 3 files changed, 26 insertions(+), 26 deletions(-) (limited to 'kvmd') diff --git a/kvmd/web/css/windows.css b/kvmd/web/css/windows.css index a5dc6bfb..8f632b86 100644 --- a/kvmd/web/css/windows.css +++ b/kvmd/web/css/windows.css @@ -6,14 +6,10 @@ div.window { border-radius: 8px; box-sizing: border-box; box-shadow: var(--big-shadow); - display: block; + visibility: hidden; white-space: nowrap; background-color: var(--bg-color-light); padding: 30px 9px 9px 9px; - -webkit-transform: translate(-50%, -50%); - transform: translate(-50%, -50%); - top: 50%; - left: 50%; } div.window:focus { border: var(--intensive-border) !important; diff --git a/kvmd/web/index.html b/kvmd/web/index.html index 4233c01b..8d843fb8 100644 --- a/kvmd/web/index.html +++ b/kvmd/web/index.html @@ -208,7 +208,7 @@ Loading... -