From decb4fe409607f863e7ea5fc590febd26dab9dbc Mon Sep 17 00:00:00 2001 From: ouidade Date: Fri, 25 Nov 2022 11:43:49 +0100 Subject: [PATCH] css lieu actu dans mosaique --- composer.json | 10 ++++++++- web/themes/custom/eql/css-compiled/styles.css | 13 +++++++++--- .../eql/scss/pages/_toutesactualites.scss | 21 ++++++++++++++----- 3 files changed, 35 insertions(+), 9 deletions(-) diff --git a/composer.json b/composer.json index 14f9f67..677b3d7 100644 --- a/composer.json +++ b/composer.json @@ -48,7 +48,15 @@ "minimum-stability": "stable", "prefer-stable": true, "config": { - "sort-packages": true + "sort-packages": true, + "allow-plugins": { + "composer/installers": true, + "drupal/console-extend-plugin": true, + "cweagans/composer-patches": true, + "drupal/core-composer-scaffold": true, + "drupal/core-project-message": false, + "wikimedia/composer-merge-plugin": true + } }, "extra": { "drupal-scaffold": { diff --git a/web/themes/custom/eql/css-compiled/styles.css b/web/themes/custom/eql/css-compiled/styles.css index d5629f6..7e8d756 100644 --- a/web/themes/custom/eql/css-compiled/styles.css +++ b/web/themes/custom/eql/css-compiled/styles.css @@ -1124,7 +1124,7 @@ a { margin-top: 0.5rem; font-size: 0.9rem; font-weight: 800; - order: 4; } + order: 5; } .path-actualites .block-region-content .block-views .node-type-actualite div:first-child .field--name-field-date { order: 2; display: flex; @@ -1138,8 +1138,15 @@ a { font-weight: 800; padding-right: 1rem; width: fit-content; } - .path-actualites .block-region-content .block-views .node-type-actualite div:first-child .field--name-title { + .path-actualites .block-region-content .block-views .node-type-actualite div:first-child .field--name-field-lieu { order: 3; + display: flex; + flex-direction: row; + justify-content: flex-start; } + .path-actualites .block-region-content .block-views .node-type-actualite div:first-child .field--name-field-lieu .field__label { + display: none; } + .path-actualites .block-region-content .block-views .node-type-actualite div:first-child .field--name-title { + order: 4; font-size: 0.9rem; } .path-actualites .block-region-content .block-views .node-type-actualite div:first-child .field:not(.field--name-field-images) { width: 100%; } @@ -1154,7 +1161,7 @@ a { .path-actualites .block-region-content .block-views .node-type-actualite div:first-child .inline.links a { display: none; } .path-actualites .block-region-content .block-views .node-type-actualite div:first-child .field--name-field-actu-type { - order: 5; + order: 6; padding-top: 1rem; } .node-id-4 { diff --git a/web/themes/custom/eql/scss/pages/_toutesactualites.scss b/web/themes/custom/eql/scss/pages/_toutesactualites.scss index d4b81e0..7cf477c 100644 --- a/web/themes/custom/eql/scss/pages/_toutesactualites.scss +++ b/web/themes/custom/eql/scss/pages/_toutesactualites.scss @@ -68,7 +68,7 @@ margin-top: 0.5rem; font-size: 0.9rem; font-weight: 800; - order: 4; + order: 5; } .field--name-field-date{ @@ -92,12 +92,22 @@ // padding-left: 0.5rem; // content: "|"; // } - - } } - .field--name-title{ + + .field--name-field-lieu{ order: 3; + display: flex; + flex-direction: row; + justify-content: flex-start; + + .field__label{ + display: none; + } + } + + .field--name-title{ + order: 4; font-size: 0.9rem; } @@ -120,9 +130,10 @@ // } } .field--name-field-actu-type{ - order: 5; + order: 6; padding-top: 1rem; } + } } }