From: Vincent Vanwaelscappel Date: Tue, 13 Jun 2017 16:42:56 +0000 (+0200) Subject: #1445 @0.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=e0840daaba0f997390ec7cdfa5bcc575617b3eeb;p=fluidbook-html5.git #1445 @0.5 --- 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;