This commit is contained in:
parent
674dbf8bb7
commit
3843e9fa17
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -428,9 +428,12 @@ if($(".page-node-type-programme").length > 0 || $(".page-node-type-projet").leng
|
|||||||
if($(".page-node-type-static").length > 0){
|
if($(".page-node-type-static").length > 0){
|
||||||
$(".field_titre").on("click", function(){
|
$(".field_titre").on("click", function(){
|
||||||
let elem = $(this).find('div:not([class])').html();
|
let elem = $(this).find('div:not([class])').html();
|
||||||
console.log(elem);
|
|
||||||
$(".block-region-second").find(".field_titre").each(function(){
|
$(".block-region-second").find(".field_titre").each(function(){
|
||||||
let title = $(this).html();
|
let title = $(this).html();
|
||||||
|
|
||||||
|
if($(".field_groupe_documents").length > 0){
|
||||||
|
title = $($(title)[2]).html();
|
||||||
|
}
|
||||||
if(title == elem){
|
if(title == elem){
|
||||||
$('html,body').animate({
|
$('html,body').animate({
|
||||||
scrollTop: $(this).offset().top
|
scrollTop: $(this).offset().top
|
||||||
|
47
web/themes/custom/popsu/sass/pages/_presse.scss
Normal file
47
web/themes/custom/popsu/sass/pages/_presse.scss
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
.page-node-type-static{
|
||||||
|
#node\:field_groupe_documents{
|
||||||
|
.paragraph--type--groupe-document{
|
||||||
|
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
flex-direction: row;
|
||||||
|
flex: 1;
|
||||||
|
justify-content: left;
|
||||||
|
align-items: center;
|
||||||
|
|
||||||
|
.field_titre{
|
||||||
|
font-weight: 800;
|
||||||
|
font-size: $font-medium;
|
||||||
|
margin: 1rem 0;
|
||||||
|
}
|
||||||
|
.paragraph{
|
||||||
|
.field_titre{
|
||||||
|
font-weight: 400;
|
||||||
|
font-size: $font-normal;
|
||||||
|
margin: 0rem 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.field_vignette{
|
||||||
|
width: auto;
|
||||||
|
float: left;
|
||||||
|
height: 100%;
|
||||||
|
position: relative;
|
||||||
|
margin: 0 1rem 0 0;
|
||||||
|
|
||||||
|
display: flex;
|
||||||
|
flex: 1;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
.field_texte{
|
||||||
|
flex-wrap: wrap;
|
||||||
|
flex-direction: row;
|
||||||
|
display: flex;
|
||||||
|
flex: 1;
|
||||||
|
}
|
||||||
|
.field_document{
|
||||||
|
margin: .5rem 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -35,4 +35,5 @@
|
|||||||
@import "pages/archives";
|
@import "pages/archives";
|
||||||
@import "pages/node-evenement-actu";
|
@import "pages/node-evenement-actu";
|
||||||
@import "pages/themes";
|
@import "pages/themes";
|
||||||
|
@import "pages/presse";
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user