From 14fb62ba2052e223872f094ff68f380e19b82227 Mon Sep 17 00:00:00 2001 From: ouidade Date: Sun, 21 Nov 2021 21:13:54 +0100 Subject: [PATCH] &after block atcu home --- web/themes/custom/eql/css-compiled/styles.css | 53 ++++++++------ .../eql/images/pictos/noun_Arrow_3771902.png | Bin 0 -> 940 bytes .../eql/images/pictos/noun_Arrow_3771902.svg | 44 +++++++----- .../custom/eql/images/pictos/polygon2.png | Bin 0 -> 940 bytes .../custom/eql/scss/pages/_actualites.scss | 65 ++++++++++++------ web/themes/custom/eql/scss/pages/_home.scss | 42 ++++++----- .../custom/eql/scss/partials/_header.scss | 17 +++-- 7 files changed, 133 insertions(+), 88 deletions(-) create mode 100644 web/themes/custom/eql/images/pictos/noun_Arrow_3771902.png create mode 100644 web/themes/custom/eql/images/pictos/polygon2.png diff --git a/web/themes/custom/eql/css-compiled/styles.css b/web/themes/custom/eql/css-compiled/styles.css index a4a88e3..6e379c1 100644 --- a/web/themes/custom/eql/css-compiled/styles.css +++ b/web/themes/custom/eql/css-compiled/styles.css @@ -223,7 +223,8 @@ a { .block-views-blockactus-blocks-pages-block-1 .view-content { display: grid; grid-template-columns: 1fr repeat(4, 2fr) 1fr; - margin: auto; } + margin: auto; + padding-top: 2rem; } .block-views-blockactus-blocks-pages-block-1 .view-content .views-row:nth-of-type(1) { grid-column: 2; } .block-views-blockactus-blocks-pages-block-1 .view-content .node-type-actualite { @@ -242,6 +243,9 @@ a { .block-views-blockactus-blocks-pages-block-1 .view-content .node-type-actualite .field--name-field-images .field__item img { width: 50%; height: fit-content; } + .block-views-blockactus-blocks-pages-block-1 .view-content .node-type-actualite .field--name-field-images::after { + display: block; + content: url('data:image/svg+xml, '); } .block-views-blockactus-blocks-pages-block-1 .view-content .node-type-actualite .field:not(.field--name-field-images) { width: 100%; } .block-views-blockactus-blocks-pages-block-1 .view-content .node-type-actualite h2 { @@ -295,6 +299,9 @@ a { text-transform: uppercase; font-weight: 700; color: #009ee3; } + .view-display-id-block_2 .node-type-static .inline.links a:after { + display: block; + width: 40px; } .view-display-id-block_2 .node-type-static .field--name-field-images .field__item img { width: 15rem; height: auto; } @@ -337,22 +344,27 @@ a { .path-actualites { background-color: rgba(0, 158, 227, 0.2); margin: 0; } - -.node-type-actualite { - color: #09398b; - line-height: 1.5rem; - padding: 0.5rem; } - .node-type-actualite div:first-child { - display: flex; - flex-direction: column; } - .node-type-actualite div:first-child :nth-child(1) { - order: 1; } - .node-type-actualite div:first-child :nth-child(4) { - order: 2; } - .node-type-actualite div:first-child :nth-child(5) { - order: 3; } - .node-type-actualite div:first-child a { - color: #09398b; } + .path-actualites .block-region-content { + display: grid; + grid-template-columns: 1fr repeat(4, 2fr) 1fr; + margin: auto; } + .path-actualites .block-region-content .block-views:nth-of-type(1) { + grid-column: 2; } + .path-actualites .block-region-content .block-views .node-type-actualite { + color: #09398b; + line-height: 1.5rem; + padding: 0.5rem; } + .path-actualites .block-region-content .block-views .node-type-actualite div:first-child { + display: flex; + 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 { + color: #09398b; } /*partials*/ .layout-container { @@ -423,11 +435,8 @@ header { #header-top #block-burger h2:after { display: block; height: 60px; - font-family: 'Font Awesome'; - content: "\f0c9"; - font-weight: 100; - font-size: 5rem; - height: 6rem; } + content: url('data:image/svg+xml, '); + content: url('data:image/svg+xml, '); } #header-top #block-burger #block-burger-menu { display: block; margin: 0; diff --git a/web/themes/custom/eql/images/pictos/noun_Arrow_3771902.png b/web/themes/custom/eql/images/pictos/noun_Arrow_3771902.png new file mode 100644 index 0000000000000000000000000000000000000000..df9e212fa338bc09d0210f0b9f49efb5bfe96cb9 GIT binary patch literal 940 zcmeAS@N?(olHy`uVBq!ia0vp^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_Arrow_3771902.svg b/web/themes/custom/eql/images/pictos/noun_Arrow_3771902.svg index 0bc7bab..0fa95d6 100644 --- a/web/themes/custom/eql/images/pictos/noun_Arrow_3771902.svg +++ b/web/themes/custom/eql/images/pictos/noun_Arrow_3771902.svg @@ -1,24 +1,28 @@ image/svg+xml + inkscape:current-layer="svg8" + inkscape:pagecheckerboard="0" + width="99px" /> diff --git a/web/themes/custom/eql/images/pictos/polygon2.png b/web/themes/custom/eql/images/pictos/polygon2.png new file mode 100644 index 0000000000000000000000000000000000000000..df9e212fa338bc09d0210f0b9f49efb5bfe96cb9 GIT binary patch literal 940 zcmeAS@N?(olHy`uVBq!ia0vp^3xPP5gAGWkYBY-gDb50q$YKTtJ!KGPtXOJa1{9Pm zag8Vm&QB{TPb^AhC@(M9%goCzPEIUH)ypqRpZ(58ih+UI($mE;q+-t7yJ!7`10@!S-3KDRC}b^XeIW6JPltK$h0H5f>db$>MlqgqmXg z-azHcjNg71H|&q|b}-L!*m_u|z@xHb^^e{aXLtg)8nDX*$URa{umQ>Fw5^bmV5*+d zzN1Z1%h)+Ym!~oIlyl5+fvGonG8O$?cvqAexLiHN^P%mNfVqK7>NKH8Y8U#Y0^S<% z?l~qPs$+WOb0G67*&wGohk#m4K5#jQY+$^qn3vpf3Mj`7l4Co-*R~>|wrlsJO#<-= z9jDF+gmTwDu)L}m*8?)gwX{Ru&?VK3)#k8(C`c~&K=3K&JBuSu>ZT@ltZMaK<$MR^ z9F-3(uLSg6p$<~{FyoWJ{Uoq0r$M%;0iEg4pX46l9I`_0XxiIU#eIhbrbhBtc$9X8 zFJcR^UefYI&N(ElZAH`zM*bCig=RqSJ5PTlV9#{D=~=LMiRQULLzh-B&X2-vE6(gX zP`k=`Pu(YH*$3Y=mWMp9W!%S@?qB&|%XNi$gK~qhNU7K2GL|#U^1T5Q`x>O(R%D!Z zTjAk;;7_J_e^B21pOwBh7~dT^x2WwU({_u$?<5{DtH0}8TCe$){q^hRHF3YR|CKHe z&`SzfF@+)a+|rz&>%zM>ghuYz6t%GChUdbXH^B>e0v6uka#?ss#B<>tIlqN>G{8bZ z=KkgmsSgc>xKbOqrWS3v!6&D?%*W=o-$I+bu!S}i(F=o^_XwCSn6;KaC#iwUXu*!t zy4(fQ%pq#b4@B8kD6C|h2aLS4X1=8j(Gm-cX0pX4H*if7dZ5O(!Y7FNjXUp(wAqaJ z62M|?M=uv&vNvab6D0S*3MdbBQQHz$3pt?axgHyz?9(}5$`deCVu90HCiW@pKRAGv z6iX~%I?LD|!d{`5?9OFr%JL<1?DscPgg&ebxsLQ06E!# AZ2$lO literal 0 HcmV?d00001 diff --git a/web/themes/custom/eql/scss/pages/_actualites.scss b/web/themes/custom/eql/scss/pages/_actualites.scss index 90196e5..9df37eb 100644 --- a/web/themes/custom/eql/scss/pages/_actualites.scss +++ b/web/themes/custom/eql/scss/pages/_actualites.scss @@ -1,30 +1,55 @@ -// .block-region-content{ -// background-color: $background-actus; // ça va pas, donne la couleur dans home - -// } - .path-actualites{ background-color: $background-actus; margin: 0; + .block-region-content{ + + display: grid; + grid-template-columns: 1fr repeat(4, 2fr) 1fr; + margin: auto; + .block-views:nth-of-type(1){ + grid-column: 2; + } + .block-views{ + + .node-type-actualite{ + + color: $blue-dark; + line-height: 1.5rem; + padding: 0.5rem; + div:first-child{ + display: flex; + flex-direction: column; + + :nth-child(1) { order: 1; } + :nth-child(4) { order: 2; } + :nth-child(5) { order: 3; } + a{ + color: $blue-dark; + } + } + } + } + + } } -.node-type-actualite{ +// .node-type-actualite{ - color: $blue-dark; - line-height: 1.5rem; - padding: 0.5rem; - div:first-child{ - display: flex; - flex-direction: column; +// color: $blue-dark; +// line-height: 1.5rem; +// padding: 0.5rem; +// div:first-child{ +// display: flex; +// flex-direction: column; - :nth-child(1) { order: 1; } - :nth-child(4) { order: 2; } - :nth-child(5) { order: 3; } - a{ - color: $blue-dark; - } - } -} \ No newline at end of file +// :nth-child(1) { order: 1; } +// :nth-child(4) { order: 2; } +// :nth-child(5) { order: 3; } +// a{ +// color: $blue-dark; +// } +// } +// } \ No newline at end of file diff --git a/web/themes/custom/eql/scss/pages/_home.scss b/web/themes/custom/eql/scss/pages/_home.scss index e008d4a..b028369 100644 --- a/web/themes/custom/eql/scss/pages/_home.scss +++ b/web/themes/custom/eql/scss/pages/_home.scss @@ -33,33 +33,20 @@ .view-content{ - // display: flex; - // flex-direction: row; + display: grid; grid-template-columns: 1fr repeat(4, 2fr) 1fr; - // grid-template-areas: "margin-left actu1 actu2 actu3 actu4 margin-right"; - // justify-content: space-between; - // padding-left: 8rem; - // padding-right: 4rem; margin: auto; + padding-top: 2rem; .views-row:nth-of-type(1) { grid-column: 2; } - // { - // width: 25%; - // :nth-of-type(1) { grid-column: 2; } // marche pas, la première actu se mets dans la 1re colu - // :nth-of-type(2) { grid-area: actu2; } - // :nth-of-type(3) { grid-area: actu3; } - // :nth-of-type(4) { grid-area: actu4; } - // } - .node-type-actualite{ - // grid-column: 2 / span 5; + .node-type-actualite{ color: $white; line-height: 1.5rem; padding: 0.5rem; div:first-child{ // block actu dans le bandeau display: flex; flex-direction: column; - :nth-child(1) { order: 1; } :nth-child(4) { order: 2; } :nth-child(5) { order: 3; } @@ -68,9 +55,10 @@ .field__item img{ width: 50%; height: fit-content; - // &::after{ - // content:"line"; - // } + } + &::after{ + display: block; + content:url('data:image/svg+xml, '); } } .field:not(.field--name-field-images){ @@ -161,9 +149,19 @@ text-transform: uppercase; font-weight: 700; color: $blue-light; - // &::after{ - // content: url('../../images/pictos/noun_Arrow_3771902.svg'); - // } + &:after{ + display: block; + // content: url("../images/pictos/noun_Arrow_3771902.svg"); + width: 40px; + // background-image: ; + + // content: url("data:image/svg+xml; utf8, "); + // // display:block; + // width:22px; + // height:10px; + // margin:10px 5px 0 10px; + } } } .field--name-field-images{ diff --git a/web/themes/custom/eql/scss/partials/_header.scss b/web/themes/custom/eql/scss/partials/_header.scss index 934e4e7..61c4d31 100644 --- a/web/themes/custom/eql/scss/partials/_header.scss +++ b/web/themes/custom/eql/scss/partials/_header.scss @@ -103,14 +103,17 @@ header{ h2:after{ display: block; height: 60px; - font-family: 'Font Awesome'; - content: "\f0c9"; - font-weight: 100; - font-size: 5rem; - // content:""; + // font-family: 'Font Awesome'; + // content: "\f0c9"; + // font-weight: 100; + // font-size: 5rem; + // content:url("../images/pictos/menu.png"); + // content: url('data:image/svg+xml; utf8, image/svg+xml'); // background-image: url('~/web/themes/custom/eql/images/pictos/menu.png'); - height: 6rem; - } + // height: 2rem; + content:url('data:image/svg+xml, '); + content:url('data:image/svg+xml, '); + } #block-burger-menu{ display: block;