From b78f7066c211b02127326a37afa2d9890bd1b283 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mart=C3=ADn?= Date: Wed, 21 Sep 2016 12:52:26 +0200 Subject: [PATCH] B #4794: Add scroll hints to confirm dialogs --- src/sunstone/public/scss/_layout.scss | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/sunstone/public/scss/_layout.scss b/src/sunstone/public/scss/_layout.scss index 2b72e66c81..c602a9840d 100644 --- a/src/sunstone/public/scss/_layout.scss +++ b/src/sunstone/public/scss/_layout.scss @@ -108,9 +108,23 @@ opacity: 0.25; } +// Source: http://lea.verou.me/more-css-secrets +.scroll-shadows { + background: + linear-gradient(white 30%, hsla(0,0%,100%,0)), + linear-gradient(hsla(0,0%,100%,0), white 70%) bottom, + radial-gradient(at top, rgba(0,0,0,.2), transparent 70%), + radial-gradient(at bottom, rgba(0,0,0,.2), transparent 70%) bottom; + background-repeat: no-repeat; + background-size: 100% 40px, 100% 40px, 100% 14px, 100% 14px; + background-attachment: local, local, scroll, scroll; +} + // Dialogs .confirm-resources-header { + @extend .scroll-shadows; + overflow-y: auto; max-height: 6em; } \ No newline at end of file