From bf648dce6cf1ddc684fd5a1579b21686bcc672f7 Mon Sep 17 00:00:00 2001 From: Jiiks Date: Sun, 4 Feb 2018 11:51:35 +0200 Subject: [PATCH 1/3] Remove transforms so fixed positioning actually works. Chrome: 20574 wontfix lel --- client/src/styles/partials/generic/modals.scss | 2 +- client/src/styles/partials/sidebarview/content.scss | 4 +++- client/src/styles/partials/sidebarview/main.scss | 8 +++++++- client/src/ui/components/BdSettings.vue | 7 ++----- 4 files changed, 13 insertions(+), 8 deletions(-) diff --git a/client/src/styles/partials/generic/modals.scss b/client/src/styles/partials/generic/modals.scss index f5dea896..aacc5be4 100644 --- a/client/src/styles/partials/generic/modals.scss +++ b/client/src/styles/partials/generic/modals.scss @@ -1,5 +1,5 @@ .bd-backdrop { - position: absolute; + position: fixed; right: 0px; left: 0px; top: 0px; diff --git a/client/src/styles/partials/sidebarview/content.scss b/client/src/styles/partials/sidebarview/content.scss index 8a520ed3..62122d2a 100644 --- a/client/src/styles/partials/sidebarview/content.scss +++ b/client/src/styles/partials/sidebarview/content.scss @@ -36,7 +36,9 @@ > div:not(.active) { opacity: 0; position: absolute; - width: 100%; + left: 310px; + right: 0; + // width: 100%; height: 100%; pointer-events: none; } diff --git a/client/src/styles/partials/sidebarview/main.scss b/client/src/styles/partials/sidebarview/main.scss index f3e14e12..1bb9541c 100644 --- a/client/src/styles/partials/sidebarview/main.scss +++ b/client/src/styles/partials/sidebarview/main.scss @@ -39,9 +39,15 @@ backface-visibility: hidden; } + &.bd-stop { + .bd-content-region { + transform: none; + } + } + &.active { .bd-content-region { - animation: bd-slidein .6s forwards; + animation: bd-slidein .6s; } } } diff --git a/client/src/ui/components/BdSettings.vue b/client/src/ui/components/BdSettings.vue index 4be13fa5..5d986ae5 100644 --- a/client/src/ui/components/BdSettings.vue +++ b/client/src/ui/components/BdSettings.vue @@ -10,7 +10,7 @@