grid images
This commit is contained in:
+388
-1
@@ -264,6 +264,7 @@ svg.ext {
|
||||
margin: auto;
|
||||
}
|
||||
}
|
||||
/*global*/
|
||||
/* -------------------------
|
||||
Paged.js : format + compteur
|
||||
-------------------------- */
|
||||
@@ -378,10 +379,396 @@ svg.ext {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
.path-projets-complets .layout-container header {
|
||||
top: inherit !important;
|
||||
left: inherit !important;
|
||||
}
|
||||
.path-projets-complets .layout-content {
|
||||
width: 60vw;
|
||||
margin: auto;
|
||||
}
|
||||
.path-projets-complets span {
|
||||
display: none;
|
||||
}
|
||||
.path-projets-complets .node-type-projet {
|
||||
border-bottom: 1px solid black;
|
||||
padding-bottom: 5rem;
|
||||
margin-bottom: 5rem;
|
||||
}
|
||||
.path-projets-complets .projet-content {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
.path-projets-complets .field--name-field-photo .field__label {
|
||||
display: none;
|
||||
}
|
||||
.path-projets-complets .field--name-field-photo .field__items {
|
||||
height: 100%;
|
||||
display: grid;
|
||||
gap: 3px;
|
||||
}
|
||||
.path-projets-complets .field--name-field-photo .field__item {
|
||||
overflow: hidden;
|
||||
aspect-ratio: 3/2;
|
||||
}
|
||||
.path-projets-complets .field--name-field-photo .field__item img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
display: block;
|
||||
}
|
||||
.path-projets-complets .field--name-field-photo .image-field-caption {
|
||||
display: none;
|
||||
}
|
||||
.path-projets-complets .field--name-field-photo .field__items:has(.field__item:only-child) {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
.path-projets-complets .field--name-field-photo .field__items:has(.field__item:only-child) .field__item {
|
||||
grid-column: 1;
|
||||
}
|
||||
.path-projets-complets .field--name-field-photo .field__items:has(.field__item:nth-child(2)) {
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
}
|
||||
.path-projets-complets .field--name-field-photo .field__items:has(.field__item:nth-child(2)) .field__item:first-child {
|
||||
grid-column: 1/4;
|
||||
}
|
||||
.path-projets-complets .field--name-field-photo .field__items .field__item:nth-child(n+8) {
|
||||
display: none;
|
||||
}
|
||||
.path-projets-complets .field--name-title {
|
||||
order: 2;
|
||||
font-family: "Marianne";
|
||||
font-size: 2rem;
|
||||
font-weight: 800;
|
||||
color: rgb(0, 158, 227);
|
||||
}
|
||||
@media (max-width: 1624px) {
|
||||
.path-projets-complets .field--name-title {
|
||||
font-size: 2.3rem;
|
||||
}
|
||||
}
|
||||
@media (max-width: 1384px) {
|
||||
.path-projets-complets .field--name-title {
|
||||
font-size: 2rem;
|
||||
}
|
||||
}
|
||||
@media (max-width: 1216px) {
|
||||
.path-projets-complets .field--name-title {
|
||||
font-size: 2rem;
|
||||
}
|
||||
}
|
||||
@media (max-width: 810px) {
|
||||
.path-projets-complets .field--name-title {
|
||||
font-size: 1.7rem;
|
||||
}
|
||||
}
|
||||
.path-projets-complets .field--name-title a {
|
||||
color: rgb(0, 158, 227);
|
||||
}
|
||||
.path-projets-complets .field--name-field-equipe {
|
||||
order: 3;
|
||||
color: rgb(9, 57, 139);
|
||||
font-size: 1.5rem;
|
||||
font-weight: 900;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
@media (max-width: 1624px) {
|
||||
.path-projets-complets .field--name-field-equipe {
|
||||
font-size: 1.3rem;
|
||||
}
|
||||
}
|
||||
@media (max-width: 1216px) {
|
||||
.path-projets-complets .field--name-field-equipe {
|
||||
font-size: 1.1rem;
|
||||
}
|
||||
}
|
||||
@media (max-width: 810px) {
|
||||
.path-projets-complets .field--name-field-equipe {
|
||||
font-size: 1rem;
|
||||
}
|
||||
}
|
||||
.path-projets-complets .field--name-field-equipe .field__label {
|
||||
display: none;
|
||||
}
|
||||
.path-projets-complets .field--name-field-incube {
|
||||
order: 4;
|
||||
width: fit-content;
|
||||
background-color: rgb(225, 0, 15);
|
||||
color: white;
|
||||
font-weight: 800;
|
||||
padding-right: 0.3rem;
|
||||
padding-left: 0.2rem;
|
||||
flex-direction: row;
|
||||
}
|
||||
.path-projets-complets .field--name-field-incube::before {
|
||||
content: " Projet ";
|
||||
padding-right: 0.5rem;
|
||||
}
|
||||
.path-projets-complets .field--name-field-incube .field__item {
|
||||
display: none;
|
||||
}
|
||||
.path-projets-complets .field--name-field-neuf-rehabilitation,
|
||||
.path-projets-complets .field--name-field-encours-fini {
|
||||
display: none;
|
||||
}
|
||||
.path-projets-complets .field--name-field-region {
|
||||
order: 5;
|
||||
width: 30%;
|
||||
position: relative;
|
||||
height: 80px;
|
||||
text-align: center;
|
||||
padding-right: 1rem;
|
||||
}
|
||||
@media (max-width: 479px) {
|
||||
.path-projets-complets .field--name-field-region {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
.path-projets-complets .field--name-field-region .field__label {
|
||||
display: none;
|
||||
}
|
||||
.path-projets-complets .field--name-field-region::before {
|
||||
content: url("../images/pictos/picto_lieu.svg");
|
||||
min-width: 30px;
|
||||
height: auto;
|
||||
padding-right: 1rem;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
margin-top: 0.83em;
|
||||
margin-left: 1rem;
|
||||
}
|
||||
.path-projets-complets .field--name-field-type-de-moa {
|
||||
order: 6;
|
||||
}
|
||||
.path-projets-complets .field--name-field-type-de-projet {
|
||||
order: 7;
|
||||
}
|
||||
.path-projets-complets .field--name-field-etape-du-projet {
|
||||
order: 8;
|
||||
}
|
||||
.path-projets-complets .field--name-field-textes {
|
||||
order: 9;
|
||||
}
|
||||
.path-projets-complets .field--name-field-textes .field__label {
|
||||
display: none;
|
||||
}
|
||||
.path-projets-complets .field--name-field-textes .field--name-field-titre {
|
||||
color: rgb(9, 57, 139);
|
||||
font-size: 1.2rem;
|
||||
font-weight: 900;
|
||||
text-transform: uppercase;
|
||||
margin-bottom: 0 !important;
|
||||
flex-direction: row;
|
||||
}
|
||||
.path-projets-complets .field--name-field-textes .field--name-field-titre::after {
|
||||
content: " :";
|
||||
padding-left: 0.5rem;
|
||||
}
|
||||
.path-projets-complets .field--name-field-etape-du-projet a,
|
||||
.path-projets-complets .field--name-field-type-de-projet a,
|
||||
.path-projets-complets .field--name-field-type-de-moa a {
|
||||
color: black;
|
||||
}
|
||||
.path-projets-complets .field--name-field-etape-du-projet .field__label,
|
||||
.path-projets-complets .field--name-field-type-de-projet .field__label,
|
||||
.path-projets-complets .field--name-field-type-de-moa .field__label {
|
||||
color: rgb(9, 57, 139);
|
||||
font-size: 1.2rem;
|
||||
font-weight: 900;
|
||||
text-transform: uppercase;
|
||||
margin-bottom: 0 !important;
|
||||
flex-direction: row;
|
||||
}
|
||||
.path-projets-complets .field--name-field-etape-du-projet .field__label::after,
|
||||
.path-projets-complets .field--name-field-type-de-projet .field__label::after,
|
||||
.path-projets-complets .field--name-field-type-de-moa .field__label::after {
|
||||
content: ":";
|
||||
padding-left: 0.5rem;
|
||||
}
|
||||
|
||||
@media print {
|
||||
.path-projets-complets .views-row {
|
||||
display: block !important;
|
||||
margin: 0 !important;
|
||||
overflow: visible !important;
|
||||
float: none !important;
|
||||
position: static !important;
|
||||
}
|
||||
.path-projets-complets .node-type-projet {
|
||||
break-before: page;
|
||||
page-break-before: always;
|
||||
border: 1px solid black;
|
||||
margin: 0 !important;
|
||||
overflow: visible !important;
|
||||
}
|
||||
.path-projets-complets .views-row:first-child .node-type-projet {
|
||||
break-before: auto;
|
||||
page-break-before: auto;
|
||||
}
|
||||
.path-projets-complets .projet-content {
|
||||
display: block !important;
|
||||
}
|
||||
.path-projets-complets .projet-header-print {
|
||||
display: block;
|
||||
break-inside: avoid;
|
||||
page-break-inside: avoid;
|
||||
overflow: visible !important;
|
||||
}
|
||||
.path-projets-complets .projet-body-print {
|
||||
display: block;
|
||||
break-before: page;
|
||||
page-break-before: always;
|
||||
overflow: visible !important;
|
||||
}
|
||||
.path-projets-complets .projet-header-print .field,
|
||||
.path-projets-complets .projet-header-print .field__items,
|
||||
.path-projets-complets .projet-header-print .field__item,
|
||||
.path-projets-complets .projet-header-print h2,
|
||||
.path-projets-complets .projet-header-print p,
|
||||
.path-projets-complets .projet-header-print blockquote {
|
||||
break-inside: avoid;
|
||||
page-break-inside: avoid;
|
||||
}
|
||||
.path-projets-complets .projet-body-print .field,
|
||||
.path-projets-complets .projet-body-print .field__items,
|
||||
.path-projets-complets .projet-body-print .field__item,
|
||||
.path-projets-complets .projet-body-print .paragraph,
|
||||
.path-projets-complets .projet-body-print p,
|
||||
.path-projets-complets .projet-body-print ul,
|
||||
.path-projets-complets .projet-body-print li {
|
||||
break-inside: auto;
|
||||
page-break-inside: auto;
|
||||
overflow: visible !important;
|
||||
}
|
||||
.path-projets-complets .projet-header-print .field--name-field-photo {
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
.path-projets-complets .projet-header-print .field--name-field-photo .field__label {
|
||||
display: none;
|
||||
}
|
||||
.path-projets-complets .projet-header-print .field--name-field-photo .field__items {
|
||||
display: grid !important;
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
gap: 3px;
|
||||
}
|
||||
.path-projets-complets .projet-header-print .field--name-field-photo .field__item:first-child {
|
||||
grid-column: 1/4;
|
||||
grid-row: 1;
|
||||
}
|
||||
.path-projets-complets .projet-header-print .field--name-field-photo .field__item {
|
||||
overflow: hidden;
|
||||
}
|
||||
.path-projets-complets .projet-header-print .field--name-field-photo .field__item img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
display: block;
|
||||
}
|
||||
.path-projets-complets .projet-header-print .field--name-title {
|
||||
font-family: "Marianne";
|
||||
font-size: 1.5rem;
|
||||
font-weight: 800;
|
||||
color: rgb(0, 158, 227);
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
.path-projets-complets .projet-header-print .field--name-title a {
|
||||
color: rgb(0, 158, 227);
|
||||
text-decoration: none;
|
||||
}
|
||||
.path-projets-complets .projet-header-print .field--name-field-equipe {
|
||||
color: rgb(9, 57, 139);
|
||||
font-size: 1.2rem;
|
||||
font-weight: 900;
|
||||
text-transform: uppercase;
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
.path-projets-complets .projet-header-print .field--name-field-equipe .field__label {
|
||||
display: none;
|
||||
}
|
||||
.path-projets-complets .projet-header-print .field--name-field-incube {
|
||||
width: fit-content;
|
||||
background-color: rgb(225, 0, 15);
|
||||
color: white;
|
||||
font-weight: 800;
|
||||
padding-right: 0.3rem;
|
||||
padding-left: 0.2rem;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
}
|
||||
.path-projets-complets .projet-header-print .field--name-field-incube::before {
|
||||
content: " Projet ";
|
||||
padding-right: 0.5rem;
|
||||
}
|
||||
.path-projets-complets .projet-header-print .field--name-field-incube .field__item {
|
||||
display: none;
|
||||
}
|
||||
.path-projets-complets .projet-body-print .field--name-field-region {
|
||||
width: 30%;
|
||||
position: relative;
|
||||
height: 80px;
|
||||
text-align: center;
|
||||
padding-right: 1rem;
|
||||
}
|
||||
.path-projets-complets .projet-body-print .field--name-field-region .field__label {
|
||||
display: none;
|
||||
}
|
||||
.path-projets-complets .projet-body-print .field--name-field-region::before {
|
||||
content: url("../images/pictos/picto_lieu.svg");
|
||||
min-width: 30px;
|
||||
height: auto;
|
||||
padding-right: 1rem;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
margin-top: 0.83em;
|
||||
margin-left: 1rem;
|
||||
}
|
||||
.path-projets-complets .projet-body-print .field--name-field-textes .field__label {
|
||||
display: none;
|
||||
}
|
||||
.path-projets-complets .projet-body-print .field--name-field-textes .field--name-field-titre {
|
||||
color: rgb(9, 57, 139);
|
||||
font-size: 1.2rem;
|
||||
font-weight: 900;
|
||||
text-transform: uppercase;
|
||||
margin-bottom: 0 !important;
|
||||
}
|
||||
.path-projets-complets .projet-body-print .field--name-field-textes .field--name-field-titre::after {
|
||||
content: " :";
|
||||
padding-left: 0.5rem;
|
||||
}
|
||||
.path-projets-complets .projet-body-print .field--name-field-type-de-moa a,
|
||||
.path-projets-complets .projet-body-print .field--name-field-type-de-projet a,
|
||||
.path-projets-complets .projet-body-print .field--name-field-etape-du-projet a {
|
||||
color: black;
|
||||
text-decoration: none;
|
||||
}
|
||||
.path-projets-complets .projet-body-print .field--name-field-type-de-moa .field__label,
|
||||
.path-projets-complets .projet-body-print .field--name-field-type-de-projet .field__label,
|
||||
.path-projets-complets .projet-body-print .field--name-field-etape-du-projet .field__label {
|
||||
color: rgb(9, 57, 139);
|
||||
font-size: 1.2rem;
|
||||
font-weight: 900;
|
||||
text-transform: uppercase;
|
||||
margin-bottom: 0 !important;
|
||||
}
|
||||
.path-projets-complets .projet-body-print .field--name-field-type-de-moa .field__label::after,
|
||||
.path-projets-complets .projet-body-print .field--name-field-type-de-projet .field__label::after,
|
||||
.path-projets-complets .projet-body-print .field--name-field-etape-du-projet .field__label::after {
|
||||
content: ":";
|
||||
padding-left: 0.5rem;
|
||||
}
|
||||
.path-projets-complets .field--name-field-neuf-rehabilitation,
|
||||
.path-projets-complets .field--name-field-encours-fini,
|
||||
.path-projets-complets svg.ext {
|
||||
display: none !important;
|
||||
}
|
||||
}
|
||||
|
||||
/*pages*/
|
||||
/*
|
||||
@import "pages/partials/header_footer";
|
||||
@import "pages/home";*/
|
||||
@import "pages/home";
|
||||
*/
|
||||
.path-node.page-node-type-static .layout-container {
|
||||
overflow: unset;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user