Browse Source

update img expand hover strategy

axolotle 1 year ago
parent
commit
92af23580e
2 changed files with 2 additions and 2 deletions
  1. 1 1
      public/index.html
  2. 1 1
      src/assets/scss/classes/_img-wrapper.scss

+ 1 - 1
public/index.html

@@ -15,7 +15,7 @@
     <div id="app"></div>
 
     <template id="expand-image-tmp">
-      <div class="node-view-img-wrapper">
+      <div class="node-view-img-wrapper on-hover">
         <img>
 
         <button aria-label="Agrandir" type="button" class="btn btn-expand btn-depart rounded-pill">

+ 1 - 1
src/assets/scss/classes/_img-wrapper.scss

@@ -2,7 +2,7 @@
   display: inline-block;
   position: relative;
 
-  &:not(:hover) .btn-expand {
+  &.on-hover:not(:hover) .btn-expand {
     display: none;
   }