From 2e0f7cb5a5c8e99060a770445cdaaa5776d5c040 Mon Sep 17 00:00:00 2001 From: Nicolas Constant Date: Sat, 15 Jun 2019 19:26:21 -0400 Subject: [PATCH] add open image link --- .../media-viewer/media-viewer.component.html | 21 +++++++++++-------- .../media-viewer/media-viewer.component.scss | 21 +++++++++++++++---- src/sass/_commons.scss | 19 ++++++++++++++++- 3 files changed, 47 insertions(+), 14 deletions(-) diff --git a/src/app/components/media-viewer/media-viewer.component.html b/src/app/components/media-viewer/media-viewer.component.html index 9092d7c1..fbe6df09 100644 --- a/src/app/components/media-viewer/media-viewer.component.html +++ b/src/app/components/media-viewer/media-viewer.component.html @@ -1,5 +1,7 @@ -
- @@ -13,16 +15,17 @@ -
- +
+ + + -
diff --git a/src/app/components/media-viewer/media-viewer.component.scss b/src/app/components/media-viewer/media-viewer.component.scss index 80024d9b..2239266a 100644 --- a/src/app/components/media-viewer/media-viewer.component.scss +++ b/src/app/components/media-viewer/media-viewer.component.scss @@ -1,12 +1,13 @@ @import "variables"; +@import "commons"; @import "mixins"; .media-viewer-canvas { width: 100%; height: 100%; - background-color: rgba(0, 0, 0, 0.8); + // background-color: rgba(0, 0, 0, 0.8); overflow: hidden; - position: relative; + position: relative; &__button { @include clearButton; @@ -61,11 +62,13 @@ } &__attachement { - max-width: 100%; - height: 100vh; + // max-width: 100%; + // height: 100vh; } &__image { + z-index: 10; + @media screen and (min-width: $screen-break) { max-width: 85%; } @@ -89,6 +92,16 @@ } } +.background__close { + position: absolute; + top:0; + bottom: 0; + left: 0; + right: 0; + z-index: 0; + background-color: rgba(0, 0, 0, 0.8); +} + .collapsed { height: 0; } diff --git a/src/sass/_commons.scss b/src/sass/_commons.scss index 109b41c4..5af1a5c2 100644 --- a/src/sass/_commons.scss +++ b/src/sass/_commons.scss @@ -1,7 +1,7 @@ .waiting-icon { width: 40px; display: block; - margin: 5px auto; + margin: 5px auto; } .flexcroll { @@ -12,9 +12,11 @@ scrollbar-darkshadow-color: #08090d; scrollbar-track-color: #08090d; scrollbar-arrow-color: #08090d; + &::-webkit-scrollbar { width: 7px; } + &::-webkit-scrollbar-thumb { -webkit-border-radius: 0px; border-radius: 0px; @@ -35,4 +37,19 @@ width: 20px; height: 20px; vertical-align: middle; +} + +.noselect { + -webkit-touch-callout: none; + /* iOS Safari */ + -webkit-user-select: none; + /* Safari */ + -khtml-user-select: none; + /* Konqueror HTML */ + -moz-user-select: none; + /* Firefox */ + -ms-user-select: none; + /* Internet Explorer/Edge */ + user-select: none; + /* Non-prefixed version, currently supported by Chrome and Opera */ } \ No newline at end of file