Browse Source

Merge branch 'master' of gogs-figureslibres.io:bachir/popsu-d9

bach 2 years ago
parent
commit
0f4ee6eceb

File diff suppressed because it is too large
+ 0 - 0
web/themes/custom/popsu/assets/css/styles.min.css


File diff suppressed because it is too large
+ 0 - 0
web/themes/custom/popsu/assets/js/main.js


+ 23 - 0
web/themes/custom/popsu/lib/script.js

@@ -325,6 +325,29 @@ if($(".page-node-type-programme").length > 0 || $(".page-node-type-projet").leng
 		
 	});
 
+	$(".field_ressources_liees div:nth-of-type(2)").slick({
+		slidesToShow: 3,
+		slidesToScroll: 1,
+		centerMode: true,
+		centerPadding: '60px',
+		infinite: true,
+		responsive: [
+			{
+				breakpoint: 800,
+				settings: {
+					slidesToShow: 2,
+					centerPadding: '0',
+				}	
+			},
+			{
+				breakpoint: 400,
+				settings: {
+					slidesToShow: 1,
+					centerPadding: '0',
+				}
+			}]
+	});
+
 };
 
 

+ 31 - 23
web/themes/custom/popsu/sass/pages/_themes.scss

@@ -3,43 +3,42 @@
         display: block;
     }
     &.programme-1{
-        .field_programme{
-            background: $col-1;
-        }
+        // .field_programme{
+        //     background: $col-1;
+        // }
         
     }
     &.programme-2{
-        .field_programme{
-            background: $col-2;
-        }
+        // .field_programme{
+        //     background: $col-2;
+        // }
     }
     &.programme-3{
         
-        .field_programme{
-            background: $col-eur;
-        }
+        // .field_programme{
+        //     background: $col-eur;
+        // }
     }
     &.programme-4{
-        .field_programme{
-            background: $col-1;
-        }
+        // .field_programme{
+        //     background: $col-1;
+        // }
     }
     &.programme-5{
-        .field_programme{
-                background: $col-mond;
-        }
+        // .field_programme{
+        //         background: $col-mond;
+        // }
     }
     &.programme-6{
-        .field_programme{
-                background: $col-ter;
-        }
+        // .field_programme{
+        //         background: $col-ter;
+        // }
     }
     &.programme-7{
-        .field_programme{
-                background: $col-met;
-        }
+        // .field_programme{
+        //         background: $col-met;
+        // }
     }
-    //tmp hidden
     .block-region-first{
         padding: 1rem;
         .field_programme{
@@ -99,8 +98,10 @@
             font-weight: 600;
             margin-bottom: 1rem;
         }
+        
         #node\:field_image,.field_diaporama{
             width: 150%;
+            
             margin-bottom: 1rem;
             max-height: 22rem;
             overflow: hidden;
@@ -525,10 +526,13 @@
                     }
                 }
             }
+            
             .field_diaporama {
                 position: relative;
                 width: 100%;
                 overflow: hidden;
+                margin-top: -.5rem;
+                z-index: -1;
                 a{
                     position: absolute;
                     height: 100%;
@@ -634,5 +638,9 @@
             
         }
     }
-
+    #node\:field_ressources_liees{
+        h2{
+            text-align: center;
+        }
+    }
 }

+ 0 - 2
web/themes/custom/popsu/sass/setup/_globals.scss

@@ -102,8 +102,6 @@ i, em{
 	font-style: italic;
 }
 
-//TEMP
-
 
 .slick-arrow{
 	font-size: 0;

Some files were not shown because too many files changed in this diff