From 9cb3c78defdad7ff1b0600c17a6677bc2f852f46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl=20M=C3=A9tais?= Date: Sun, 16 Aug 2015 14:03:55 +0200 Subject: [PATCH] Hide scrollbars on screenshot (show then on hover) --- front/src/css/main.css | 5 ++++- front/src/less/main.less | 6 +++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/front/src/css/main.css b/front/src/css/main.css index 1fc06d5..1d698ba 100644 --- a/front/src/css/main.css +++ b/front/src/css/main.css @@ -192,8 +192,11 @@ a.linkButton { background: #000; } .screenshotWrapper > div { - overflow: scroll; position: relative; + overflow: hidden; +} +.screenshotWrapper > div:hover { + overflow: auto; } .screenshotWrapper .screenshotImage { width: 100%; diff --git a/front/src/less/main.less b/front/src/less/main.less index dafdc21..2aac50b 100644 --- a/front/src/less/main.less +++ b/front/src/less/main.less @@ -132,8 +132,12 @@ a.linkButton { background: #000; > div { - overflow: scroll; position: relative; + overflow: hidden; + + &:hover { + overflow: auto; + } } .screenshotImage {