diff options
author | Valentin Popov <info@valentineus.link> | 2018-04-25 00:43:07 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2018-04-25 00:43:07 +0300 |
commit | b69ef27a48c4d2d296e722cb3025d87f528c448a (patch) | |
tree | 164a01c9799b72b25ad5b2c6846930a701fd14d0 /_scss/components | |
parent | 5406687510bb8602ff6ce12af24190e0d1021f65 (diff) | |
download | popov.link-b69ef27a48c4d2d296e722cb3025d87f528c448a.tar.xz popov.link-b69ef27a48c4d2d296e722cb3025d87f528c448a.zip |
Add style image
Signed-off-by: Valentin Popov <info@valentineus.link>
Diffstat (limited to '_scss/components')
-rw-r--r-- | _scss/components/theme/_image.scss | 29 |
1 files changed, 29 insertions, 0 deletions
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; + } +} |