armansansd 10 miesięcy temu
rodzic
commit
e3d2d6389a

Plik diff jest za duży
+ 0 - 0
web/themes/custom/popsu/assets/css/styles.min.css


Plik diff jest za duży
+ 0 - 0
web/themes/custom/popsu/assets/js/main.js


+ 15 - 1
web/themes/custom/popsu/lib/script.js

@@ -302,9 +302,23 @@ if($(".page-node-type-programme").length > 0 || $(".page-node-type-projet").leng
 
 	$('.views-element-container header').click(function(){
 		$(this).parent().find(".view-grouping").fadeToggle();
-		$(this).parent().find(".views-row").fadeToggle();
+
+		$(this).parent().find(".views-row:visible").fadeToggle();
+
 		$(this).parent().find("h3").fadeToggle();
 	});
+	//page projet
+	$("#programme_toc-block_10 h3").click(function(){
+		console.log(this);
+		$(this).nextUntil("h3").fadeToggle();
+
+	});
+	//page programme
+	$("#programme_toc-block_4 h3").click(function(){
+		console.log(this);
+		$(this).nextUntil("h3").fadeToggle();
+
+	});
 
 	$('.view-grouping-header').click(function(){
 		$(this).parent().find(".view-grouping-content").slideToggle();

+ 1 - 1
web/themes/custom/popsu/sass/pages/_default.scss

@@ -60,7 +60,7 @@ article, .paragraph{
 }
 .block-region-third{
     h2{
-        margin: 1.5rem 0 .5rem 0;
+        //margin: 1.5rem 0 .5rem 0;
     }
     .field_document{
         padding: 0.5rem 0.5rem;

+ 6 - 0
web/themes/custom/popsu/sass/pages/_home.scss

@@ -86,6 +86,12 @@
 		background: $col-exode !important;
 	}
 }
+
+.last-news .programme-883{
+	.views-field:not(.views-field-field-image){
+		background: $col-transition !important;
+	}
+}
 .last-news{
 	margin-top: 2rem;
 	height: auto;

+ 4 - 1
web/themes/custom/popsu/sass/pages/_programme.scss

@@ -427,7 +427,9 @@
             h3{
                 display: none;
                 padding-left: .4rem;
+                margin-bottom: .4rem;
                 font-weight: 600;
+                cursor: pointer;
             }
                    
         }
@@ -444,6 +446,7 @@
         a.prog-palpite-link,
         a.prog-ressources-link,
         a.prog-exodeurbain-link{
+            text-transform: uppercase;
             font-family: "duke";
             font-size: $font-large;
             cursor: pointer;
@@ -487,7 +490,7 @@
             .views-row, .view-grouping{
                 display: none;
                 padding: 0 0 0 1.2rem;
-                margin-bottom: .5rem;
+                margin-bottom: .1rem;
                 a{
                     text-decoration: none;
                     &:hover{

+ 3 - 1
web/themes/custom/popsu/sass/pages/_themes.scss

@@ -12,7 +12,9 @@
             h3{
                 display: none;
                 padding-left: .4rem;
+                margin-bottom: .4rem;
                 font-weight: 600;
+                cursor: pointer;
             }
 		}
         // @include breakpoint(small down) {
@@ -65,7 +67,7 @@
             .views-row, .view-grouping{
                 display: none;
                 padding: 0 0 0 1.2rem;
-                margin-bottom: .5rem;
+                margin-bottom: .1rem;
                 a{
                     text-decoration: none;
                     &:hover{

Niektóre pliki nie zostały wyświetlone z powodu dużej ilości zmienionych plików