From 23fe0ac5df2d7cffe9bf6e367934cb4c1e28cc34 Mon Sep 17 00:00:00 2001 From: nklhrstv Date: Fri, 13 Mar 2020 16:25:04 +0200 Subject: [PATCH] immerse bars only if not sliding --- src/routes/Player/styles.less | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/src/routes/Player/styles.less b/src/routes/Player/styles.less index d368c5678..2b48b0311 100644 --- a/src/routes/Player/styles.less +++ b/src/routes/Player/styles.less @@ -1,11 +1,26 @@ @import (reference) '~stremio-colors/dist/less/stremio-colors.less'; +:import('~stremio/common/Slider/styles.less') { + active-slider-within: active-slider-within; +} + :import('~stremio/common/NavBar/HorizontalNavBar/styles.less') { nav-bar-button-container: button-container; nav-bar-title: title; nav-bar-icon: icon; } +html:not(.active-slider-within) { + .player-container.immersed { + cursor: none; + + .nav-bar-layer, .control-bar-layer, .menu-layer { + opacity: 0; + transition: opacity 200ms; + } + } +} + .player-container { position: relative; z-index: 0; @@ -13,15 +28,6 @@ height: 100%; background-color: @color-background-dark2; - &.immersed { - cursor: none; - - .nav-bar-layer, .control-bar-layer, .menu-layer { - opacity: 0; - transition: opacity 200ms; - } - } - .layer { position: absolute; top: 0;