From b69ef27a48c4d2d296e722cb3025d87f528c448a Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Wed, 25 Apr 2018 01:43:07 +0400 Subject: Add style image Signed-off-by: Valentin Popov --- _scss/components/theme/_image.scss | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 _scss/components/theme/_image.scss diff --git a/_scss/components/theme/_image.scss b/_scss/components/theme/_image.scss new file mode 100644 index 0000000..dfb2513 --- /dev/null +++ b/_scss/components/theme/_image.scss @@ -0,0 +1,29 @@ +@import 'utilities/boxshadow'; + +img { + max-width: 100%; + width: auto; + + &:hover { + @include box-shadow(0 0 10px rgba(0, 0, 0, .5)); + } +} + +.fullscreen { + background: rgba(0, 0, 0, .5); + display: none; + height: 100%; + left: 0; + position: fixed; + text-align: center; + top: 0; + width: 100%; + + &:target { + display: block; + } + + img { + margin-top: 10rem; + } +} -- cgit v1.2.3