réglage sidebar css

This commit is contained in:
armansansd 2022-01-18 13:40:40 +01:00
parent 0ed35bbf6a
commit 0a02c44a75
5 changed files with 26 additions and 5 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -236,9 +236,21 @@ $(function(){
}); });
//// PAGE POPSU //// //menu ouvertur sur page event et actu
if($(".page-node-type-evenement").length > 0 || $(".page-node-type-actualite").length > 0){
if($(".page-node-type-programme").length > 0 || $(".page-node-type-projet").length > 0 || $(".page-node-type-theme").length > 0 || $(".page-node-type-evenement").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();
});
}
if($(".page-node-type-programme").length > 0 || $(".page-node-type-projet").length > 0 || $(".page-node-type-theme").length > 0 ){
$(".field_ressources_liees article").each(function(){ $(".field_ressources_liees article").each(function(){
let title = $(this).find("h2").clone(); let title = $(this).find("h2").clone();
@ -254,7 +266,7 @@ if($(".page-node-type-programme").length > 0 || $(".page-node-type-projet").leng
$('.view-grouping-header').click(function(){ $('.view-grouping-header').click(function(){
$(this).parent().find(".view-grouping-content").slideToggle(); $(this).parent().find(".view-grouping-content").slideToggle();
}) });
//test hauteur //test hauteur
let hb = $(".block-region-second .body").height(); let hb = $(".block-region-second .body").height();

View File

@ -3,6 +3,9 @@
.view-grouping-header{ .view-grouping-header{
display: none; display: none;
} }
.views-field-title{
padding-left: 1rem;
}
} }
} }

View File

@ -4,6 +4,12 @@
.field_programme{ .field_programme{
display: none; display: none;
} }
#programme_toc-block_10{
.views-row{
padding-left: 1rem;
}
}
@include breakpoint(small down) { @include breakpoint(small down) {
text-align: center; text-align: center;