This commit is contained in:
parent
a96ff17ae7
commit
7bbad8d84b
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -240,7 +240,12 @@ $(function(){
|
|||||||
|
|
||||||
if($(".page-node-type-programme").length > 0 || $(".page-node-type-projet").length > 0 || $(".page-node-type-theme").length > 0){
|
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(){
|
||||||
|
let title = $(this).find("h2").clone();
|
||||||
|
$(this).find("h2").remove();
|
||||||
|
$(this).find("div").first().append(title);
|
||||||
|
|
||||||
|
})
|
||||||
|
|
||||||
$('.views-element-container header').click(function(){
|
$('.views-element-container header').click(function(){
|
||||||
$(this).parent().find(".view-grouping").fadeToggle();
|
$(this).parent().find(".view-grouping").fadeToggle();
|
||||||
|
@ -367,7 +367,7 @@
|
|||||||
text-transform: initial;
|
text-transform: initial;
|
||||||
margin-top: 1rem;
|
margin-top: 1rem;
|
||||||
padding: .4rem 0;
|
padding: .4rem 0;
|
||||||
border-top: 3px dotted gray;
|
border-bottom: 3px dotted gray;
|
||||||
|
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
display: grid;
|
display: grid;
|
||||||
@ -660,63 +660,89 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
#node\:field_ressources_liees{
|
#node\:field_ressources_liees{
|
||||||
h2{
|
// h2{
|
||||||
text-align: center;
|
// text-align: center;
|
||||||
}
|
// }
|
||||||
article{
|
article{
|
||||||
background: white;
|
|
||||||
margin: 1rem;
|
|
||||||
padding: 1rem;
|
|
||||||
a{
|
a{
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
display:grid !important;
|
// display:grid !important;
|
||||||
grid-template-columns: 1fr 1fr;
|
// grid-template-columns: 1fr 1fr;
|
||||||
h2{
|
h2{
|
||||||
grid-column: 1 / span 2;
|
grid-column: 2;
|
||||||
grid-row: 2;
|
grid-row: 1;
|
||||||
text-align:left;
|
text-align:left;
|
||||||
}
|
}
|
||||||
.field_image{
|
&>div{
|
||||||
padding-bottom: 100%;
|
display: grid !important;
|
||||||
|
grid-template-columns: 1fr 1fr;
|
||||||
|
align-items: center;
|
||||||
|
background: #fff;
|
||||||
position: relative;
|
position: relative;
|
||||||
a{
|
height: auto;
|
||||||
position: absolute;
|
padding: 1rem;
|
||||||
height: 100%;
|
background-clip: content-box;
|
||||||
width: 100%;
|
|
||||||
img{
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
object-fit: contain;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.field_type_de_ressource{
|
||||||
|
|
||||||
|
grid-column: 2;
|
||||||
}
|
}
|
||||||
|
.field_sous_titre{
|
||||||
|
|
||||||
|
grid-column: 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
///////
|
||||||
|
.field_image{
|
||||||
|
grid-row: 2 / span 3;
|
||||||
|
// margin-top: -1.5rem;
|
||||||
|
z-index: 0;
|
||||||
|
padding: .5rem;
|
||||||
|
}
|
||||||
|
div{
|
||||||
|
margin-bottom: .5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
h2{
|
||||||
|
font-weight: 400;
|
||||||
|
grid-row: 3 / span 1;
|
||||||
|
grid-column: 2;
|
||||||
|
font-style: italic;
|
||||||
|
|
||||||
|
text-transform: none;
|
||||||
|
|
||||||
|
}
|
||||||
|
.field_type_de_ressource{
|
||||||
|
font-weight: 400;
|
||||||
|
}
|
||||||
|
.field_sous_titre{
|
||||||
|
grid-row: 4 / span 1;
|
||||||
}
|
}
|
||||||
.field_programme{
|
.field_programme{
|
||||||
grid-row:1;
|
|
||||||
margin-top: -1.8rem;
|
|
||||||
margin-bottom: .5rem;
|
|
||||||
z-index: 8;
|
|
||||||
&>div{
|
&>div{
|
||||||
|
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
width: auto;
|
width: auto;
|
||||||
padding: .3rem .5rem;
|
padding: .3rem .5rem;
|
||||||
a{
|
|
||||||
font-weight: 600;
|
|
||||||
color: white;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.field_type_de_ressource{
|
|
||||||
grid-row: 3;
|
|
||||||
}
|
|
||||||
.field_sous_titre{
|
|
||||||
grid-row: 4;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
padding-left: .5rem !important;
|
||||||
|
grid-row: 1 / span 1;
|
||||||
|
grid-column: 1 / span 2;
|
||||||
|
text-transform: uppercase;
|
||||||
|
margin-top: -.5rem;
|
||||||
&>div{
|
&>div{
|
||||||
display: grid;
|
font-weight: 600;
|
||||||
grid-column: 1 / span 2 ;
|
display: inline-block;
|
||||||
|
width: auto;
|
||||||
|
color: white;
|
||||||
|
padding: .02rem .3rem;
|
||||||
|
// margin-bottom: 1rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -10,7 +10,7 @@ body{
|
|||||||
color: $col-1;
|
color: $col-1;
|
||||||
}
|
}
|
||||||
article{
|
article{
|
||||||
h2,h3,h4,h5,h6,.field_titre{
|
h2,h3,h4,h5,h6,.field_titre,.field_type_de_ressource{
|
||||||
color: $col-1;
|
color: $col-1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -20,7 +20,7 @@ body{
|
|||||||
color: $col-2;
|
color: $col-2;
|
||||||
}
|
}
|
||||||
article{
|
article{
|
||||||
h2,h3,h4,h5,h6,.field_titre{
|
h2,h3,h4,h5,h6,.field_titre,.field_type_de_ressource{
|
||||||
color: $col-2;
|
color: $col-2;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -30,7 +30,7 @@ body{
|
|||||||
color: $col-eur;
|
color: $col-eur;
|
||||||
}
|
}
|
||||||
article{
|
article{
|
||||||
h2,h3,h4,h5,h6,.field_titre{
|
h2,h3,h4,h5,h6,.field_titre,.field_type_de_ressource{
|
||||||
color: $col-eur;
|
color: $col-eur;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -40,7 +40,7 @@ body{
|
|||||||
color: $col-1;
|
color: $col-1;
|
||||||
}
|
}
|
||||||
article{
|
article{
|
||||||
h2,h3,h4,h5,h6,.field_titre{
|
h2,h3,h4,h5,h6,.field_titre,.field_type_de_ressource{
|
||||||
color: $col-1;
|
color: $col-1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -50,7 +50,7 @@ body{
|
|||||||
color: $col-mond;
|
color: $col-mond;
|
||||||
}
|
}
|
||||||
article{
|
article{
|
||||||
h2,h3,h4,h5,h6,.field_titre{
|
h2,h3,h4,h5,h6,.field_titre,.field_type_de_ressource{
|
||||||
color: $col-mond;
|
color: $col-mond;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -60,7 +60,7 @@ body{
|
|||||||
color: $col-ter;
|
color: $col-ter;
|
||||||
}
|
}
|
||||||
article{
|
article{
|
||||||
h2,h3,h4,h5,h6,.field_titre{
|
h2,h3,h4,h5,h6,.field_titre,.field_type_de_ressource{
|
||||||
color: $col-ter;
|
color: $col-ter;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -70,7 +70,7 @@ body{
|
|||||||
color: $col-met;
|
color: $col-met;
|
||||||
}
|
}
|
||||||
article{
|
article{
|
||||||
h2,h3,h4,h5,h6,.field_titre{
|
h2,h3,h4,h5,h6,.field_titre,.field_type_de_ressource{
|
||||||
color: $col-met;
|
color: $col-met;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user