]> _ Git - pmi.git/commitdiff
wip #2755
authornael <nael@cubedesigners.com>
Wed, 12 Jun 2019 15:42:33 +0000 (17:42 +0200)
committernael <nael@cubedesigners.com>
Wed, 12 Jun 2019 15:42:33 +0000 (17:42 +0200)
public/_modules/news-article/index.html
public/_modules/news-article/style.styl

index 1c282ec179de75218afa5aa004f9df1111f00ab3..b3bb54272c2dde65959e45f09fbad6540a8cfac7 100644 (file)
@@ -20,7 +20,7 @@
 
     <div class="article flex sm:flex-col">
         <div class="img">
-            <img src="img/news.png" alt="">
+            <img class="img-article" src="img/news.png" alt="">
         </div>
     <div class="content ml-12 sm:ml-0 flex flex-col text-grey-dark">
         <span class="news-date ">12/01/19</span>
index 92e3b0356a982c9c9727c218c1ef189b7ca57e43..14c6856e5de06a723ae1a35a99518fdad7c4315d 100644 (file)
@@ -33,4 +33,10 @@ $verylightgrey =#E7E9F3
       width 100%
   .event-title
     font-family: $barlow
-    font-weight: 500
\ No newline at end of file
+    font-weight: 500
+  .img-article
+    position: sticky;
+    position: -webkit-sticky;
+    top: 96px;
+    @media (max-width : 499px)
+      position: static
\ No newline at end of file