diff --git a/web/themes/custom/eql/css-compiled/styles.css b/web/themes/custom/eql/css-compiled/styles.css index f3d8080..8657e99 100644 --- a/web/themes/custom/eql/css-compiled/styles.css +++ b/web/themes/custom/eql/css-compiled/styles.css @@ -302,7 +302,9 @@ a { padding-left: 1rem; } .view-display-id-block_2 .node-type-static .field--name-field-accroche p { font-size: 1.5rem; - width: 110%; } + width: 110%; + margin: 0; + padding-bottom: 1rem; } .field--name-field-partenaires { display: flex; @@ -319,6 +321,22 @@ a { .field--name-field-partenaires .paragraph--type--partenaire .field--name-field-texte { width: 70%; } +.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; } + /*partials*/ .layout-container { position: absolute; } @@ -329,7 +347,7 @@ header { top: 0; } #header-top { - height: 7rem; + height: fit-content; background-color: white; box-shadow: 1px 0px 8px black; display: flex; @@ -354,10 +372,18 @@ header { #header-top .region-header-top-left ul li .is-active { color: #009ee3; } #header-top .region-header-top-left ul .ul2 { - flex-direction: column; } - #header-top .region-header-top-left :hover { - color: #009ee3; } - #header-top li ul { + flex-direction: column; + display: none; } + #header-top .region-header-top-left ul :hover { + color: #009ee3; } + #header-top .region-header-top-left li:not(ul):not(.ul2) { + display: block; + position: relative; } + #header-top .region-header-top-left :hover .ul2 { + display: block; + position: relative; + transition: ease-in-out 2s; } + #header-top li .ul1 { display: flex; flex-direction: column; } #header-top #block-burger { @@ -367,7 +393,7 @@ header { color: white; display: block; width: 7rem; - height: 7rem; + height: 100%; margin-top: 0; } #header-top #block-burger :hover { cursor: pointer; } diff --git a/web/themes/custom/eql/scss/global/_layout.scss b/web/themes/custom/eql/scss/global/_layout.scss index 98121f7..c1f6395 100644 --- a/web/themes/custom/eql/scss/global/_layout.scss +++ b/web/themes/custom/eql/scss/global/_layout.scss @@ -1,11 +1,7 @@ -// .node-type-static{ -// display: grid; -// grid-template-columns: repeat(6,1fr); -// } .layout-container { - // position: absolute; + font-family: $font-family-default; margin: none; top: 0%; @@ -24,9 +20,7 @@ .path-node { margin: 0; } -// .contextual-region .node-type-static { -// grid-template-columns: repeat(6 1fr); -// } + .field--name-field-titre{ .field__item{ diff --git a/web/themes/custom/eql/scss/global/variables/_colors.scss b/web/themes/custom/eql/scss/global/variables/_colors.scss index 8930565..6fc66e4 100644 --- a/web/themes/custom/eql/scss/global/variables/_colors.scss +++ b/web/themes/custom/eql/scss/global/variables/_colors.scss @@ -6,4 +6,5 @@ $blue-light: rgb(0,158,227); $blue-dark: rgb(9,57,139); $grey-background: rgb(153,147,174); $black: rgb(0,0,0); -$white: rgb(255,255,255); \ No newline at end of file +$white: rgb(255,255,255); +$background-actus: rgba(0,158,227, 0.2); \ No newline at end of file diff --git a/web/themes/custom/eql/scss/pages/_actualites.scss b/web/themes/custom/eql/scss/pages/_actualites.scss new file mode 100644 index 0000000..f644966 --- /dev/null +++ b/web/themes/custom/eql/scss/pages/_actualites.scss @@ -0,0 +1,27 @@ + +// .block-region-content{ +// background-color: $background-actus; // ça va pas, donne la couleur dans home + +// } + + + + + +.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; + } + } +} \ 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 43220d5..9a9801a 100644 --- a/web/themes/custom/eql/scss/pages/_home.scss +++ b/web/themes/custom/eql/scss/pages/_home.scss @@ -160,6 +160,8 @@ p{ font-size: 1.5rem; width: 110%; + margin: 0; + padding-bottom: 1rem; } } diff --git a/web/themes/custom/eql/scss/partials/_footer.scss b/web/themes/custom/eql/scss/partials/_footer.scss index f36fd7a..fbe89b6 100644 --- a/web/themes/custom/eql/scss/partials/_footer.scss +++ b/web/themes/custom/eql/scss/partials/_footer.scss @@ -20,7 +20,6 @@ height: 5rem; width: auto; - } } @@ -62,9 +61,5 @@ -webkit-filter: grayscale(100%); } } - - // .twitter::before { - // font-family: "Font Awesome 5 Brands"; content: "\f099"; - // } } \ No newline at end of file diff --git a/web/themes/custom/eql/scss/partials/_header.scss b/web/themes/custom/eql/scss/partials/_header.scss index 876dcc9..fe93c3d 100644 --- a/web/themes/custom/eql/scss/partials/_header.scss +++ b/web/themes/custom/eql/scss/partials/_header.scss @@ -9,7 +9,7 @@ display: block; } #header-top { - height: 7rem; + height: fit-content; background-color: $white; box-shadow: 1px 0px 8px $black; display: flex; @@ -28,10 +28,12 @@ display: block; font-weight: 800; ul{ + list-style: none; display: flex; flex-direction: row; li { + // background-color: red; padding-right: 1rem; a { color: $black; @@ -42,16 +44,32 @@ display: block; } .ul2{ flex-direction: column; + display: none; + } + :hover{ + color: $blue-light; } } - :hover{ - color: $blue-light; + + li:not(ul):not(.ul2){ + display: block; + position: relative; + } + :hover { + .ul2{ + display: block; + position: relative; + transition: ease-in-out 2s; + } + } + } - li ul { + li .ul1 { display: flex; flex-direction: column; + } @@ -62,7 +80,7 @@ display: block; color: $white; display: block; width: 7rem; - height: 7rem; + height: 100%; margin-top: 0; :hover{ cursor: pointer; diff --git a/web/themes/custom/eql/scss/styles.scss b/web/themes/custom/eql/scss/styles.scss index 52f0d16..ea4eee5 100644 --- a/web/themes/custom/eql/scss/styles.scss +++ b/web/themes/custom/eql/scss/styles.scss @@ -20,6 +20,7 @@ @import "pages/_static"; @import "pages/_home"; @import "pages/_partenaires"; +@import "pages/_actualites"; /*partials*/