diff --git a/sass/_media.scss b/sass/_media.scss index 01a80a1..1976442 100644 --- a/sass/_media.scss +++ b/sass/_media.scss @@ -1,3 +1,17 @@ +img { + transition: var(--transition-longer); + + &:not(.no-hover) { + cursor: zoom-in; + } + + &:not(.no-hover):hover { + border-radius: 0; + box-shadow: var(--shadow-raised); + transform: scale(1.1); + } +} + img, video { border-radius: var(--rounded-corner); @@ -17,19 +31,9 @@ video { &.transparent { border-radius: 0; box-shadow: none; - } -} - -img { - transition: var(--transition-longer); - - &:not(.no-hover) { - cursor: zoom-in; - } - - &:not(.no-hover):hover { - border-radius: 0; - box-shadow: var(--shadow-raised); - transform: scale(1.1); + + &:hover { + box-shadow: none; + } } }