armansansd 3 年之前
父节点
当前提交
027bed62cf

文件差异内容过多而无法显示
+ 0 - 0
web/themes/custom/popsu/assets/css/styles.min.css


文件差异内容过多而无法显示
+ 0 - 0
web/themes/custom/popsu/assets/js/main.js


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

@@ -239,11 +239,18 @@ $(function(){
 //// PAGE POPSU //// 
 
 if($(".page-node-type-programme").length > 0 || $(".page-node-type-projet").length > 0 || $(".page-node-type-theme").length > 0){
+
+
+
 	$('.views-element-container header').click(function(){
 		$(this).parent().find(".view-grouping").fadeToggle();
 		$(this).parent().find(".views-row").fadeToggle();
 	});
 
+	$('.view-grouping-header').click(function(){
+		$(this).parent().find(".view-grouping-content").slideToggle();
+	})
+
 	//test hauteur
 	let hb = $(".block-region-second .body").height();
 	let ttp = 0;

+ 35 - 0
web/themes/custom/popsu/sass/pages/_programme.scss

@@ -1,4 +1,39 @@
+.page-node-type-programme:not(.programme-2){
+    #programme_toc-block_4{
+        .view-grouping-header{
+            display: none;
+        }
+    }
+    
+}
+.page-node-type-programme.programme-2{
+    .view-grouping{
+        width: 130%;
+    }
+    .view-grouping-content{
+        background: $col-2;
+        padding: .5rem 1rem;
+        display:none;
+    }
+    #programme_toc-block_9{
+        .view-grouping-header{
+            cursor: pointer;
+            font-weight: 600;
+            margin-bottom: .3rem;
+        }
+        h3{
+            font-weight: 600;
+            text-transform: uppercase;
+            margin-top: .5rem;
+        }
+        .views-field-title{
+            padding-left: .2rem;
+        }
+    }
+    
+}
 .page-node-type-programme{
+    
     &.programme-2,&.programme-3,&.programme-4{
         #programme_toc-block_5{
             display: none;

部分文件因为文件数量过多而无法显示