CSS: zoom-in cursor utility

This commit is contained in:
2018-09-18 12:49:06 +02:00
parent fe86f76617
commit 3e1273d56c
3 changed files with 5 additions and 6 deletions

View File

@@ -485,8 +485,8 @@ section.node-preview
color: $color-text-light-primary
flex-shrink: 0 // prevents content/comments to make preview dissappear
max-height: calc((9 / 16) * 133vh)
min-height: 200px
overflow: hidden
min-height: 200px
iframe
width: 100%
@@ -501,10 +501,6 @@ section.node-preview
+media-xs
width: 100%
&.image
cursor: zoom-in
overflow: hidden
&.video
background-color: black
position: relative

View File

@@ -645,6 +645,9 @@
.cursor-pointer
cursor: pointer
.cursor-zoom-in
cursor: zoom-in
.user-select-none
user-select: none

View File

@@ -3,7 +3,7 @@
| {% block node_preview %}
| {% if node.picture %}
| {% if current_user.has_cap('subscriber') or node.permissions.world %}
section.node-preview.d-flex.justify-content-center(
section.node-preview.d-flex.justify-content-center.cursor-zoom-in(
class="js-node-preview-image")
img.node-preview-thumbnail(
src="{{ node.picture.thumbnail('l', api=api) }}",