From 016c9ac5c80b73d2f95113e24d82f24ddc1fb129 Mon Sep 17 00:00:00 2001 From: ouidade Date: Mon, 29 Nov 2021 11:26:18 +0100 Subject: [PATCH] background home --- web/themes/custom/eql/css-compiled/styles.css | 9 +++++++-- .../eql/images/pictos/carre-contour-bleu.svg | 16 ++++++++-------- web/themes/custom/eql/scss/pages/_home.scss | 11 ++++++++--- 3 files changed, 23 insertions(+), 13 deletions(-) diff --git a/web/themes/custom/eql/css-compiled/styles.css b/web/themes/custom/eql/css-compiled/styles.css index 441bdbe..6a6492b 100644 --- a/web/themes/custom/eql/css-compiled/styles.css +++ b/web/themes/custom/eql/css-compiled/styles.css @@ -269,6 +269,9 @@ a { .block-views-blockhome-nodes-block-1 .node-type-static div:first-child .field--name-field-images img { height: auto; } +.block-views-blockhome-nodes-block-1 .field--name-field-accroche { + display: none; } + .block-views-blockhome-nodes-block-1 .field--name-title { grid-column: 2; } .block-views-blockhome-nodes-block-1 .field--name-title h2 { @@ -378,8 +381,10 @@ a { .view-display-id-block_2:is(.view-id-home_nodes) { padding-top: 2rem; - background: url('data:image/svg+xml,'); - background-repeat: no-repeat; } + background: url("../images/pictos/carre-contour-bleu.svg"); + background-repeat: no-repeat; + max-width: 100vw; + background-size: cover; } .view-display-id-block_2:is(.view-id-home_nodes) .node-type-static { width: 70%; margin: auto; } diff --git a/web/themes/custom/eql/images/pictos/carre-contour-bleu.svg b/web/themes/custom/eql/images/pictos/carre-contour-bleu.svg index 13bea76..d3781d2 100644 --- a/web/themes/custom/eql/images/pictos/carre-contour-bleu.svg +++ b/web/themes/custom/eql/images/pictos/carre-contour-bleu.svg @@ -24,8 +24,8 @@ inkscape:document-units="mm" showgrid="false" inkscape:zoom="0.56123737" - inkscape:cx="1027.1946" - inkscape:cy="888.21597" + inkscape:cx="777.74579" + inkscape:cy="558.58718" inkscape:window-width="1920" inkscape:window-height="1015" inkscape:window-x="0" @@ -45,12 +45,12 @@ id="layer1" transform="translate(101.77008,91.729773)"> + width="278.15143" + height="278.15143" + x="-41.242222" + y="-216.25394" + transform="rotate(37.400703)" /> diff --git a/web/themes/custom/eql/scss/pages/_home.scss b/web/themes/custom/eql/scss/pages/_home.scss index de61dc4..cc7ab51 100644 --- a/web/themes/custom/eql/scss/pages/_home.scss +++ b/web/themes/custom/eql/scss/pages/_home.scss @@ -36,7 +36,9 @@ } } - + .field--name-field-accroche{ + display: none; + } .field--name-title{ grid-column: 2; h2{ @@ -185,9 +187,12 @@ .view-display-id-block_2:is(.view-id-home_nodes){ padding-top: 2rem; - background: url('data:image/svg+xml,'); + // background: url('data:image/svg+xml,'); + background: url('../images/pictos/carre-contour-bleu.svg'); + // background-position-y: 50%; background-repeat: no-repeat; - + max-width: 100vw; + background-size: cover; .node-type-static{