css sous-titre-actu

This commit is contained in:
2022-01-07 17:24:15 +01:00
parent 288163fae2
commit f0864e50c5
3 changed files with 52 additions and 25 deletions
+24 -15
View File
@@ -855,6 +855,10 @@ a {
padding-right: 1rem; padding-right: 1rem;
padding-left: 1rem; padding-left: 1rem;
content: "|"; } content: "|"; }
.path-node.page-node-type-actualite .layout--threecol-25-50-25 .layout__region--top .block-region-top .block-entity-fieldnodefield-sous-titre {
grid-column: 2 /span 7;
margin-top: 1rem;
font-weight: 800; }
.path-node.page-node-type-actualite .layout--threecol-25-50-25 .layout__region--top .block-region-top .block-entity-fieldnodefield-images { .path-node.page-node-type-actualite .layout--threecol-25-50-25 .layout__region--top .block-region-top .block-entity-fieldnodefield-images {
grid-column-start: 5; grid-column-start: 5;
grid-column-end: 9; } grid-column-end: 9; }
@@ -1123,25 +1127,27 @@ a {
.path-actualites .block-region-content .block-views .node-type-actualite div:first-child { .path-actualites .block-region-content .block-views .node-type-actualite div:first-child {
display: flex; display: flex;
flex-direction: column; } flex-direction: column; }
.path-actualites .block-region-content .block-views .node-type-actualite div:first-child :nth-child(1) {
order: 1; }
.path-actualites .block-region-content .block-views .node-type-actualite div:first-child :nth-child(4) {
order: 2; }
.path-actualites .block-region-content .block-views .node-type-actualite div:first-child :nth-child(5) {
order: 3; }
.path-actualites .block-region-content .block-views .node-type-actualite div:first-child a { .path-actualites .block-region-content .block-views .node-type-actualite div:first-child a {
color: #09398b; } color: #09398b; }
.path-actualites .block-region-content .block-views .node-type-actualite div:first-child .field--name-field-images .field__item img { .path-actualites .block-region-content .block-views .node-type-actualite div:first-child .field--name-field-images {
width: 100%; order: 1; }
max-height: 175px; .path-actualites .block-region-content .block-views .node-type-actualite div:first-child .field--name-field-images .field__item img {
object-fit: cover; } width: 100%;
.path-actualites .block-region-content .block-views .node-type-actualite div:first-child .field--name-field-images::after { max-height: 175px;
display: block; object-fit: cover; }
content: url('data:image/svg+xml,<svg width="160" height="40" xmlns="http://www.w3.org/2000/svg" version="1.1"> <line x1="0" x2="80" y1="20" y2="20" stroke-linecap="cube" stroke="rgb(9,57,139)" stroke-width="5"/></svg>'); } .path-actualites .block-region-content .block-views .node-type-actualite div:first-child .field--name-field-images::after {
display: block;
content: url('data:image/svg+xml,<svg width="160" height="40" xmlns="http://www.w3.org/2000/svg" version="1.1"> <line x1="0" x2="80" y1="20" y2="20" stroke-linecap="cube" stroke="rgb(9,57,139)" stroke-width="5"/></svg>'); }
.path-actualites .block-region-content .block-views .node-type-actualite div:first-child .field--name-field-sous-titre {
margin-top: 0.5rem;
font-size: 0.9rem;
font-weight: 800;
order: 4; }
.path-actualites .block-region-content .block-views .node-type-actualite div:first-child .field--name-field-date { .path-actualites .block-region-content .block-views .node-type-actualite div:first-child .field--name-field-date {
order: 2;
display: flex; display: flex;
flex-direction: row-reverse; flex-direction: row;
justify-content: flex-end; } justify-content: flex-start; }
.path-actualites .block-region-content .block-views .node-type-actualite div:first-child .field--name-field-date:not(:last-child):after { .path-actualites .block-region-content .block-views .node-type-actualite div:first-child .field--name-field-date:not(:last-child):after {
padding-right: 1rem; padding-right: 1rem;
content: "|"; } content: "|"; }
@@ -1150,6 +1156,8 @@ a {
font-weight: 800; font-weight: 800;
padding-right: 1rem; padding-right: 1rem;
width: fit-content; } width: fit-content; }
.path-actualites .block-region-content .block-views .node-type-actualite div:first-child .field--name-title {
order: 3; }
.path-actualites .block-region-content .block-views .node-type-actualite div:first-child .field:not(.field--name-field-images) { .path-actualites .block-region-content .block-views .node-type-actualite div:first-child .field:not(.field--name-field-images) {
width: 100%; } width: 100%; }
.path-actualites .block-region-content .block-views .node-type-actualite div:first-child h2 { .path-actualites .block-region-content .block-views .node-type-actualite div:first-child h2 {
@@ -1163,6 +1171,7 @@ a {
.path-actualites .block-region-content .block-views .node-type-actualite div:first-child .inline.links a { .path-actualites .block-region-content .block-views .node-type-actualite div:first-child .inline.links a {
display: none; } display: none; }
.path-actualites .block-region-content .block-views .node-type-actualite div:first-child .field--name-field-actu-type { .path-actualites .block-region-content .block-views .node-type-actualite div:first-child .field--name-field-actu-type {
order: 5;
padding-top: 1rem; } padding-top: 1rem; }
.node-id-4 { .node-id-4 {
@@ -46,6 +46,7 @@
font-weight: 500; font-weight: 500;
} }
} }
.block-entity-fieldnodefield-date{ .block-entity-fieldnodefield-date{
grid-column: 2 / span 3; grid-column: 2 / span 3;
text-transform: uppercase; text-transform: uppercase;
@@ -62,9 +63,14 @@
content: "|"; content: "|";
} }
} }
} }
.block-entity-fieldnodefield-sous-titre{
grid-column: 2 /span 7;
margin-top: 1rem;
font-weight: 800;
}
.block-entity-fieldnodefield-images{ .block-entity-fieldnodefield-images{
grid-column-start: 5; grid-column-start: 5;
grid-column-end: 9; grid-column-end: 9;
@@ -182,8 +188,6 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
width: 65%; width: 65%;
.block-entity-fieldnodefield-fichiers{
}
.field--name-field-fichiers{ .field--name-field-fichiers{
.field__item{ .field__item{
height: fit-content; height: fit-content;
@@ -40,10 +40,10 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
:nth-child(1) { order: 1; } // :nth-child(1) { order: 1; }
:nth-child(4) { order: 2; } // :nth-child(4) { order: 2; }
:nth-child(5) { order: 3; } // :nth-child(5) { order: 3; }
// :nth-child(1) { order: 3; } // :nth-child(1) { order: 3; }
// :nth-child(2) { order: 1; } // :nth-child(2) { order: 1; }
@@ -53,6 +53,7 @@
color: $blue-dark; color: $blue-dark;
} }
.field--name-field-images { .field--name-field-images {
order:1;
.field__item img{ .field__item img{
width: 100%; width: 100%;
max-height: 175px; max-height: 175px;
@@ -63,10 +64,18 @@
content:url('data:image/svg+xml,<svg width="160" height="40" xmlns="http://www.w3.org/2000/svg" version="1.1"> <line x1="0" x2="80" y1="20" y2="20" stroke-linecap="cube" stroke="rgb(9,57,139)" stroke-width="5"/></svg>'); content:url('data:image/svg+xml,<svg width="160" height="40" xmlns="http://www.w3.org/2000/svg" version="1.1"> <line x1="0" x2="80" y1="20" y2="20" stroke-linecap="cube" stroke="rgb(9,57,139)" stroke-width="5"/></svg>');
} }
} }
.field--name-field-sous-titre{
margin-top: 0.5rem;
font-size: 0.9rem;
font-weight: 800;
order: 4;
}
.field--name-field-date{ .field--name-field-date{
order: 2;
display: flex; display: flex;
flex-direction: row-reverse; flex-direction: row;
justify-content: flex-end; justify-content: flex-start;
&:not(:last-child):after{ &:not(:last-child):after{
padding-right: 1rem; padding-right: 1rem;
content: "|"; content: "|";
@@ -84,6 +93,10 @@
} }
} }
.field--name-title{
order: 3;
}
.field:not(.field--name-field-images){ .field:not(.field--name-field-images){
width: 100%; width: 100%;
@@ -103,6 +116,7 @@
// } // }
} }
.field--name-field-actu-type{ .field--name-field-actu-type{
order: 5;
padding-top: 1rem; padding-top: 1rem;
} }
} }