ajustement design

This commit is contained in:
ouidade 2024-03-05 15:46:58 +01:00
parent 5dc1fc2e6b
commit 01533549d4
8 changed files with 155 additions and 134 deletions

View File

@ -233,7 +233,8 @@ header {
background: #e8ebf4; background: #e8ebf4;
border-bottom: 1px solid #808080; border-bottom: 1px solid #808080;
border-top: 1px solid #808080; border-top: 1px solid #808080;
font-size: 1rem; } font-size: 1rem;
text-align: center; }
header .header_nav_container #block-quartiers-de-demain-entete { header .header_nav_container #block-quartiers-de-demain-entete {
grid-column: 1 /span 11; grid-column: 1 /span 11;
order: 2; order: 2;
@ -361,13 +362,7 @@ header {
.layout-sidebar-first { .layout-sidebar-first {
display: flex; display: flex;
justify-content: end; } justify-content: end;
.layout-sidebar-first .sidebar_first_container {
width: 80%; }
.layout-sidebar-first .sidebar_first_container #block-quartiers-de-demain-views-block-statics-block-1 {
text-transform: uppercase; }
aside {
position: relative; position: relative;
grid-column: 1 /span 2; grid-column: 1 /span 2;
grid-row: 1; grid-row: 1;
@ -375,42 +370,42 @@ aside {
order: 1; order: 1;
margin-top: 5rem; } margin-top: 5rem; }
@media (max-width: 891px) { @media (max-width: 891px) {
aside { .layout-sidebar-first {
margin-left: 5%; margin-left: 5%;
margin-top: 9rem; } } margin-top: 9rem; } }
@media (max-width: 500px) { @media (max-width: 500px) {
aside { .layout-sidebar-first {
width: 80%; width: 80%;
margin-top: 3rem; } } margin-top: 3rem; } }
aside .sidebar_first_container { .layout-sidebar-first .sidebar_first_container {
position: -webkit-sticky; width: 80%;
position: sticky; position: sticky;
position: -webkit-sticky;
top: 10rem; top: 10rem;
font-weight: 400; } font-weight: 400; }
aside .sidebar_first_container .field-content { .layout-sidebar-first .sidebar_first_container .field-content {
margin-bottom: 0.7rem; } margin-bottom: 0.7rem; }
@media (max-width: 810px) { @media (max-width: 810px) {
aside .sidebar_first_container { .layout-sidebar-first .sidebar_first_container {
display: none; } } display: none; } }
aside .views-field-field-pieces-jointes .field-content { .layout-sidebar-first .sidebar_first_container #block-quartiers-de-demain-views-block-statics-block-1 {
display: flex; text-transform: uppercase; }
flex-direction: column; } .layout-sidebar-first .sidebar_first_container #block-quartiers-de-demain-views-block-statics-fields-block-1 {
aside .views-field-field-pieces-jointes .field-content .file--application-pdf { border-top: 2px solid #0732c2;
display: inline-flex; } padding-top: 0.3rem; }
aside .views-field-field-pieces-jointes .field-content .file--application-pdf a { .layout-sidebar-first .sidebar_first_container #block-quartiers-de-demain-views-block-statics-fields-block-1 .views-field-field-pieces-jointes {
display: block; display: flex;
font-size: small; flex-direction: row; }
font-weight: 800; } .layout-sidebar-first .sidebar_first_container #block-quartiers-de-demain-views-block-statics-fields-block-1 .views-field-field-pieces-jointes::before {
aside .views-field-field-pieces-jointes .field-content .file--application-pdf::before { content: url(../images/noun-arrow-download.svg);
content: url(../images/noun-arrow-download.svg); padding-right: 00.3rem; }
margin: auto; .layout-sidebar-first .sidebar_first_container #block-quartiers-de-demain-views-block-statics-fields-block-1 .views-field-field-pieces-jointes .field-content {
padding-right: 00.5rem; } display: flex;
aside .views-field-field-pieces-jointes .field-content span { flex-direction: column;
font-size: small; font-size: 0.6rem;
font-weight: 800; } font-weight: 800; }
aside .views-field-field-pieces-jointes .field-content span:nth-child(2) { .layout-sidebar-first .sidebar_first_container #block-quartiers-de-demain-views-block-statics-fields-block-1 .views-field-field-pieces-jointes .field-content span {
margin-left: 50px; font-weight: 400; }
align-self: center; }
/*pages*/ /*pages*/
#home { #home {
@ -573,7 +568,7 @@ aside {
display: flex; display: flex;
flex-direction: column; } } flex-direction: column; } }
.partenaires .layout-content .content_container .views-element-container .node-type-partenaire .field_field_logo { .partenaires .layout-content .content_container .views-element-container .node-type-partenaire .field_field_logo {
grid-column: 1 /span 2; grid-column: 1 / 3;
grid-row: 1 /span 3; grid-row: 1 /span 3;
padding-right: 1rem; padding-right: 1rem;
margin: auto; } margin: auto; }
@ -621,13 +616,11 @@ aside {
#presentation { #presentation {
width: 100%; width: 100%;
display: grid; display: grid;
grid-template-columns: repeat(12, 1fr); grid-template-columns: repeat(12, 1fr); }
grid-gap: 10px; }
#presentation .layout-content { #presentation .layout-content {
grid-row: 1; grid-row: 1;
order: 2; order: 2;
padding-top: 3rem; padding-top: 3rem; }
padding-bottom: 6rem; }
@media (max-width: 500px) { @media (max-width: 500px) {
#presentation .layout-content { #presentation .layout-content {
padding-top: 0; } } padding-top: 0; } }
@ -655,11 +648,9 @@ aside {
#presentation .layout-content .content_container article.node-type-static .field_body img { #presentation .layout-content .content_container article.node-type-static .field_body img {
width: 100%; width: 100%;
height: auto; } height: auto; }
#presentation .layout-content .content_container article.node-type-static .field_body p {
margin-top: 0; }
#presentation .layout-content .content_container article.node-type-static .paragraph { #presentation .layout-content .content_container article.node-type-static .paragraph {
padding-top: 1rem; padding-top: 2rem;
padding-bottom: 1rem; padding-bottom: 2rem;
padding-left: 20%; padding-left: 20%;
padding-right: 20%; } padding-right: 20%; }
@media (max-width: 810px) { @media (max-width: 810px) {
@ -680,6 +671,10 @@ aside {
color: #f7002b; } color: #f7002b; }
#presentation .layout-content .content_container article.node-type-static .field_field_textes #paragraph-id--1, #presentation .layout-content .content_container article.node-type-static .field_field_textes #paragraph-id--2, #presentation .layout-content .content_container article.node-type-static .field_field_textes #paragraph-id--3, #presentation .layout-content .content_container article.node-type-static .field_field_textes #paragraph-id--4, #presentation .layout-content .content_container article.node-type-static .field_field_textes #paragraph-id--6, #presentation .layout-content .content_container article.node-type-static .field_field_textes #paragraph-id--8 { #presentation .layout-content .content_container article.node-type-static .field_field_textes #paragraph-id--1, #presentation .layout-content .content_container article.node-type-static .field_field_textes #paragraph-id--2, #presentation .layout-content .content_container article.node-type-static .field_field_textes #paragraph-id--3, #presentation .layout-content .content_container article.node-type-static .field_field_textes #paragraph-id--4, #presentation .layout-content .content_container article.node-type-static .field_field_textes #paragraph-id--6, #presentation .layout-content .content_container article.node-type-static .field_field_textes #paragraph-id--8 {
background-color: #e8ebf4; } background-color: #e8ebf4; }
#presentation .layout-content .content_container article.node-type-static .field_field_textes #paragraph-id--1, #presentation .layout-content .content_container article.node-type-static .field_field_textes #paragraph-id--2, #presentation .layout-content .content_container article.node-type-static .field_field_textes #paragraph-id--3, #presentation .layout-content .content_container article.node-type-static .field_field_textes #paragraph-id--4 {
padding-top: 1rem; }
#presentation .layout-content .content_container article.node-type-static .field_field_textes #paragraph-id--1, #presentation .layout-content .content_container article.node-type-static .field_field_textes #paragraph-id--2, #presentation .layout-content .content_container article.node-type-static .field_field_textes #paragraph-id--3 {
padding-bottom: 1rem; }
#presentation .layout-content .content_container article.node-type-static .field_field_textes #paragraph-id--7, #presentation .layout-content .content_container article.node-type-static .field_field_textes #paragraph-id--8 { #presentation .layout-content .content_container article.node-type-static .field_field_textes #paragraph-id--7, #presentation .layout-content .content_container article.node-type-static .field_field_textes #paragraph-id--8 {
text-align: center; } text-align: center; }
#presentation .layout-content .content_container article.node-type-static .field_field_textes #paragraph-id--7 { #presentation .layout-content .content_container article.node-type-static .field_field_textes #paragraph-id--7 {
@ -687,7 +682,8 @@ aside {
flex-direction: column; } flex-direction: column; }
#presentation .layout-content .content_container article.node-type-static .field_field_textes #paragraph-id--7 .field_field_title { #presentation .layout-content .content_container article.node-type-static .field_field_textes #paragraph-id--7 .field_field_title {
width: 60%; width: 60%;
margin: auto; } margin: auto;
padding-bottom: 1rem; }
#presentation .layout-content .content_container article.node-type-static .field_field_textes #paragraph-id--7 .field_field_texte div:nth-child(2) { #presentation .layout-content .content_container article.node-type-static .field_field_textes #paragraph-id--7 .field_field_texte div:nth-child(2) {
display: flex; display: flex;
flex-direction: row; } flex-direction: row; }
@ -695,26 +691,38 @@ aside {
#presentation .layout-content .content_container article.node-type-static .field_field_textes #paragraph-id--7 .field_field_texte div:nth-child(2) { #presentation .layout-content .content_container article.node-type-static .field_field_textes #paragraph-id--7 .field_field_texte div:nth-child(2) {
flex-direction: column; } } flex-direction: column; } }
#presentation .layout-content .content_container article.node-type-static .field_field_textes #paragraph-id--7 .field_field_texte div:nth-child(2) p { #presentation .layout-content .content_container article.node-type-static .field_field_textes #paragraph-id--7 .field_field_texte div:nth-child(2) p {
display: flex;
flex-direction: column;
padding-right: 30px; padding-right: 30px;
text-align: left; text-align: left;
color: #0732c2; } color: #0732c2;
width: calc(100vw / 3); }
@media (max-width: 500px) { @media (max-width: 500px) {
#presentation .layout-content .content_container article.node-type-static .field_field_textes #paragraph-id--7 .field_field_texte div:nth-child(2) p { #presentation .layout-content .content_container article.node-type-static .field_field_textes #paragraph-id--7 .field_field_texte div:nth-child(2) p {
padding-right: 0px; padding-right: 0px;
text-align: center; } } text-align: center; } }
#presentation .layout-content .content_container article.node-type-static .field_field_textes #paragraph-id--8 .field_field_texte div:nth-child(2) { #presentation .layout-content .content_container article.node-type-static .field_field_textes #paragraph-id--7 .field_field_texte div:nth-child(2) p img {
display: flex; width: 70%;
flex-direction: row; } height: auto;
@media (max-width: 500px) { padding-bottom: 1rem; }
#presentation .layout-content .content_container article.node-type-static .field_field_textes #paragraph-id--8 .field_field_texte div:nth-child(2) { #presentation .layout-content .content_container article.node-type-static .field_field_textes #paragraph-id--8 {
flex-direction: column; } } padding-bottom: 4rem; }
#presentation .layout-content .content_container article.node-type-static .field_field_textes #paragraph-id--8 .field_field_texte div:nth-child(2) p { #presentation .layout-content .content_container article.node-type-static .field_field_textes #paragraph-id--8 .field_field_title {
padding-right: 30px; padding-bottom: 1rem; }
text-align: left; } #presentation .layout-content .content_container article.node-type-static .field_field_textes #paragraph-id--8 .field_field_texte div:nth-child(2) {
display: flex;
flex-direction: row; }
@media (max-width: 500px) { @media (max-width: 500px) {
#presentation .layout-content .content_container article.node-type-static .field_field_textes #paragraph-id--8 .field_field_texte div:nth-child(2) p { #presentation .layout-content .content_container article.node-type-static .field_field_textes #paragraph-id--8 .field_field_texte div:nth-child(2) {
padding-right: 0px; flex-direction: column; } }
text-align: center; } } #presentation .layout-content .content_container article.node-type-static .field_field_textes #paragraph-id--8 .field_field_texte div:nth-child(2) p {
width: calc(100vw / 3);
padding-right: 30px;
text-align: left; }
@media (max-width: 500px) {
#presentation .layout-content .content_container article.node-type-static .field_field_textes #paragraph-id--8 .field_field_texte div:nth-child(2) p {
padding-right: 0px;
text-align: center; } }
#presentation .layout-content .content_container article.node-type-static .field_field_textes p { #presentation .layout-content .content_container article.node-type-static .field_field_textes p {
margin-bottom: 0; } margin-bottom: 0; }
#presentation .layout-content .content_container article.node-type-static .field_field_textes .field_field_picto { #presentation .layout-content .content_container article.node-type-static .field_field_textes .field_field_picto {
@ -751,21 +759,23 @@ aside {
.node-type-static .layout-content { .node-type-static .layout-content {
grid-row: 1; } grid-row: 1; }
.node-type-static .layout-content .content_container #block-quartiers-de-demain-titredepage { .node-type-static .layout-content .content_container {
grid-column: 3 /span 9; margin-bottom: 3rem; }
grid-row: 1; .node-type-static .layout-content .content_container #block-quartiers-de-demain-titredepage {
margin-top: 3rem; } grid-column: 3 /span 9;
.node-type-static .layout-content .content_container #block-quartiers-de-demain-titredepage h1 { grid-row: 1;
text-transform: uppercase; margin-top: 3rem; }
color: #f7002b; .node-type-static .layout-content .content_container #block-quartiers-de-demain-titredepage h1 {
font-size: 1.6rem; text-transform: uppercase;
font-weight: 300; } color: #f7002b;
.node-type-static .layout-content .content_container article.node-type-static { font-size: 1.6rem;
grid-column: 3 /span 9; font-weight: 300; }
grid-row: 2; } .node-type-static .layout-content .content_container article.node-type-static {
.node-type-static .layout-content .content_container article.node-type-static div.field_body h2 { grid-column: 3 /span 9;
font-size: 0.8rem; grid-row: 2; }
font-weight: 600; .node-type-static .layout-content .content_container article.node-type-static div.field_body h2 {
margin-bottom: 0; } font-size: 0.8rem;
.node-type-static .layout-content .content_container article.node-type-static div.field_body p { font-weight: 600;
margin-top: 0; } margin-bottom: 0; }
.node-type-static .layout-content .content_container article.node-type-static div.field_body p {
margin-top: 0; }

View File

@ -2,8 +2,8 @@
<!-- Created with Inkscape (http://www.inkscape.org/) --> <!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg <svg
width="10mm" width="15mm"
height="10mm" height="15mm"
viewBox="0 0 10.531931 10.531931" viewBox="0 0 10.531931 10.531931"
version="1.1" version="1.1"
id="svg1" id="svg1"

Before

Width:  |  Height:  |  Size: 2.4 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

View File

@ -43,20 +43,20 @@
// //// ancre dans texte au click parragraphe correspondant arrive en dessous du header // //// ancre dans texte au click parragraphe correspondant arrive en dessous du header
// (function($, window) { (function($, window) {
// var adjustAnchor = function() { var adjustAnchor = function() {
// var $anchor = $('#block-quartiers-de-demain-views-block-statics-block-1'), var $anchor = $('.sidebar_first_container'),
// fixedElementHeight = 350; fixedElementHeight = 350;
// if ($anchor.length > 0) { if ($anchor.length > 0) {
// $('html, body').stop().animate({scrollTop: $anchor.offset().top - fixedElementHeight }, 0); $('html, body').stop().animate({scrollTop: $anchor.offset().top - fixedElementHeight }, 0);
// } }
// }; };
// $(window).on('hashchange', function() { $(window).on('hashchange', function() {
// adjustAnchor(); adjustAnchor();
// }); });
// })(jQuery, window); })(jQuery, window);

View File

@ -34,7 +34,7 @@
flex-direction: column; flex-direction: column;
} }
.field_field_logo{ .field_field_logo{
grid-column: 1 /span 2; grid-column: 1 / 3;
grid-row: 1 /span 3; grid-row: 1 /span 3;
padding-right: 1rem; padding-right: 1rem;
margin: auto; margin: auto;

View File

@ -3,13 +3,13 @@
width: 100%; width: 100%;
display: grid; display: grid;
grid-template-columns: repeat(12, 1fr); grid-template-columns: repeat(12, 1fr);
grid-gap: 10px; // grid-gap: 10px;
.layout-content{ .layout-content{
// grid-column: 3 / 11; // grid-column: 3 / 11;
grid-row: 1; grid-row: 1;
order: 2; order: 2;
padding-top: 3rem; padding-top: 3rem;
padding-bottom: 6rem; // padding-bottom: 6rem;
@media (max-width:500px) { @media (max-width:500px) {
padding-top: 0; padding-top: 0;
} }
@ -45,12 +45,12 @@
height: auto; height: auto;
} }
p{ p{
margin-top: 0; // margin-top: 0;
} }
} }
.paragraph{ .paragraph{
padding-top: 1rem; padding-top: 2rem;
padding-bottom: 1rem; padding-bottom: 2rem;
padding-left: 20%; padding-left: 20%;
padding-right: 20%; padding-right: 20%;
@media (max-width:810px) { @media (max-width:810px) {
@ -61,7 +61,6 @@
padding-left: 10%; padding-left: 10%;
padding-right: 10%; padding-right: 10%;
} }
} }
.field_field_textes{ .field_field_textes{
.field_field_title{ .field_field_title{
@ -82,6 +81,13 @@
#paragraph-id--1, #paragraph-id--2, #paragraph-id--3, #paragraph-id--4, #paragraph-id--6, #paragraph-id--8{ #paragraph-id--1, #paragraph-id--2, #paragraph-id--3, #paragraph-id--4, #paragraph-id--6, #paragraph-id--8{
background-color: $bleu_fond_header; background-color: $bleu_fond_header;
} }
#paragraph-id--1, #paragraph-id--2, #paragraph-id--3, #paragraph-id--4{
padding-top: 1rem;
}
#paragraph-id--1, #paragraph-id--2, #paragraph-id--3{
padding-bottom: 1rem;
}
#paragraph-id--7, #paragraph-id--8{ #paragraph-id--7, #paragraph-id--8{
text-align: center; text-align: center;
} }
@ -92,6 +98,7 @@
.field_field_title{ .field_field_title{
width: 60%; width: 60%;
margin: auto; margin: auto;
padding-bottom: 1rem;
} }
.field_field_texte div:nth-child(2){ .field_field_texte div:nth-child(2){
display: flex; display: flex;
@ -100,19 +107,32 @@
flex-direction: column; flex-direction: column;
} }
p{ p{
display: flex;
flex-direction: column;
padding-right: 30px; padding-right: 30px;
text-align: left; text-align: left;
color: $blue_QDD; color: $blue_QDD;
width: calc(100vw / 3);
@media(max-width: 500px){ @media(max-width: 500px){
padding-right: 0px; padding-right: 0px;
text-align: center; text-align: center;
} }
img{
width: 70%;
height: auto;
padding-bottom: 1rem;
}
} }
} }
} }
#paragraph-id--8{ #paragraph-id--8{
padding-bottom: 4rem;
.field_field_title{
padding-bottom: 1rem;
}
.field_field_texte div:nth-child(2){ .field_field_texte div:nth-child(2){
display: flex; display: flex;
flex-direction: row; flex-direction: row;
@ -120,6 +140,7 @@
flex-direction: column; flex-direction: column;
} }
p{ p{
width: calc(100vw / 3);
padding-right: 30px; padding-right: 30px;
text-align: left; text-align: left;
@media(max-width: 500px){ @media(max-width: 500px){

View File

@ -3,7 +3,7 @@
// grid-column: 1 / span 12; // grid-column: 1 / span 12;
grid-row: 1; grid-row: 1;
.content_container{ .content_container{
margin-bottom: 3rem;
#block-quartiers-de-demain-titredepage{ #block-quartiers-de-demain-titredepage{
grid-column: 3 /span 9; grid-column: 3 /span 9;
grid-row: 1; grid-row: 1;

View File

@ -1,18 +1,6 @@
.layout-sidebar-first{ .layout-sidebar-first{
display: flex; display: flex;
justify-content: end; justify-content: end;
.sidebar_first_container{
width: 80%;
#block-quartiers-de-demain-views-block-statics-block-1{
text-transform: uppercase;
}
}
}
aside{
position: relative; position: relative;
grid-column: 1 /span 2; grid-column: 1 /span 2;
grid-row: 1; grid-row: 1;
@ -28,8 +16,9 @@ aside{
margin-top: 3rem; margin-top: 3rem;
} }
.sidebar_first_container{ .sidebar_first_container{
position: -webkit-sticky; width: 80%;
position: sticky; position: sticky;
position: -webkit-sticky;
top: 10rem; top: 10rem;
font-weight: 400; font-weight: 400;
.field-content{ .field-content{
@ -38,33 +27,34 @@ aside{
@media (max-width: 810px){ @media (max-width: 810px){
display: none; display: none;
} }
}
.views-field-field-pieces-jointes{ #block-quartiers-de-demain-views-block-statics-block-1{
.field-content{ text-transform: uppercase;
display: flex; }
flex-direction: column; #block-quartiers-de-demain-views-block-statics-fields-block-1{
.file--application-pdf{ border-top: 2px solid $blue_QDD;
display: inline-flex; padding-top: 0.3rem;
a{ .views-field-field-pieces-jointes{
display: block; display: flex;
font-size: small; flex-direction: row;
font-weight: 800;
}
&::before{ &::before{
content: url(../images/noun-arrow-download.svg); content: url(../images/noun-arrow-download.svg);
margin: auto; padding-right: 00.3rem;
padding-right: 00.5rem; }
.field-content{
display: flex;
flex-direction: column;
font-size: 0.6rem;
font-weight: 800;
span{
font-weight: 400;
}
} }
} }
span{
font-size: small;
font-weight: 800;
&:nth-child(2){
margin-left: 50px;
align-self: center;
}
}
} }
}
}
}
}

View File

@ -108,7 +108,7 @@ header{
border-bottom: 1px solid #808080; border-bottom: 1px solid #808080;
border-top: 1px solid #808080; border-top: 1px solid #808080;
font-size: $font-big; font-size: $font-big;
text-align: center;
#block-quartiers-de-demain-entete{ #block-quartiers-de-demain-entete{
grid-column: 1 /span 11; grid-column: 1 /span 11;
order: 2; order: 2;