From e0840daaba0f997390ec7cdfa5bcc575617b3eeb Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Tue, 13 Jun 2017 18:42:56 +0200 Subject: [PATCH] #1445 @0.5 --- style/mixins.less | 4 ++++ style/slider.less | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/style/mixins.less b/style/mixins.less index 0cd8e376..2e893964 100644 --- a/style/mixins.less +++ b/style/mixins.less @@ -2,4 +2,8 @@ background-color: rgba(0, 0, 0, 0.5); transition: opacity 400ms; opacity: 0; +} + +.hideifnot(@display) when not (@display) { + display: none; } \ No newline at end of file diff --git a/style/slider.less b/style/slider.less index f053b445..d4fd99f0 100644 --- a/style/slider.less +++ b/style/slider.less @@ -1,11 +1,11 @@ @slider-background: rgba(0, 0, 0, 0.1); -@slider-thumb-background: @menu-background; #slider { position: absolute; height: 6px; bottom: 20px; cursor: pointer; + .hideifnot(@slider-display); .visible { height: 6px; -- 2.39.5