From e34aecbd691429d39d30302b5ca7a28b6982d10f Mon Sep 17 00:00:00 2001 From: ouidade Date: Wed, 22 Dec 2021 21:51:13 +0100 Subject: [PATCH] css order field actus --- web/themes/custom/eql/css-compiled/styles.css | 12 +++++++----- .../custom/eql/scss/pages/_toutesactualites.scss | 12 +++++++++--- web/themes/custom/eql/scss/partials/_header.scss | 4 +++- 3 files changed, 19 insertions(+), 9 deletions(-) diff --git a/web/themes/custom/eql/css-compiled/styles.css b/web/themes/custom/eql/css-compiled/styles.css index 8401cba..196366e 100644 --- a/web/themes/custom/eql/css-compiled/styles.css +++ b/web/themes/custom/eql/css-compiled/styles.css @@ -975,11 +975,13 @@ a { 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 :nth-child(2) { + order: 1; } + .path-actualites .block-region-content .block-views .node-type-actualite div:first-child :nth-child(3) { + order: 2; } + .path-actualites .block-region-content .block-views .node-type-actualite div:first-child :nth-child(4) { + order: 4; } .path-actualites .block-region-content .block-views .node-type-actualite div:first-child a { color: #09398b; } .path-actualites .block-region-content .block-views .node-type-actualite div:first-child .field--name-field-images .field__item img { @@ -2014,7 +2016,7 @@ a { flex-direction: column; background-color: white; padding-bottom: 0.8rem; - min-width: 25%; } + min-width: 30%; } #header-top .region-header-top-left ul li a { color: black; } #header-top .region-header-top-left ul li .is-active { diff --git a/web/themes/custom/eql/scss/pages/_toutesactualites.scss b/web/themes/custom/eql/scss/pages/_toutesactualites.scss index 4567644..3ade1e5 100644 --- a/web/themes/custom/eql/scss/pages/_toutesactualites.scss +++ b/web/themes/custom/eql/scss/pages/_toutesactualites.scss @@ -34,9 +34,15 @@ display: flex; flex-direction: column; - :nth-child(1) { order: 1; } - :nth-child(4) { order: 2; } - :nth-child(5) { order: 3; } + // :nth-child(1) { order: 1; } + + // :nth-child(4) { order: 2; } + // :nth-child(5) { order: 3; } + + :nth-child(1) { order: 3; } + :nth-child(2) { order: 1; } + :nth-child(3) { order: 2; } + :nth-child(4) { order: 4; } a{ color: $blue-dark; } diff --git a/web/themes/custom/eql/scss/partials/_header.scss b/web/themes/custom/eql/scss/partials/_header.scss index cdd7136..95eb918 100644 --- a/web/themes/custom/eql/scss/partials/_header.scss +++ b/web/themes/custom/eql/scss/partials/_header.scss @@ -100,7 +100,7 @@ background-color: $white; padding-bottom: 0.8rem; // align-items: center; - min-width: 25%; + min-width: 30%; a { color: $black; // text-align: center; @@ -125,9 +125,11 @@ justify-content: space-between; padding: 1rem; background-color: white; + .is-active{ color:$blue-light; } + a{ color: $black; &:hover{