diff --git a/css/backoffice/components/_panel.scss b/css/backoffice/components/_panel.scss index 0924a32375..134d5ba216 100644 --- a/css/backoffice/components/_panel.scss +++ b/css/backoffice/components/_panel.scss @@ -72,9 +72,12 @@ $ibo-panel--icon--spacing--as-medallion--is-sticking: $ibo-panel--icon--spacing- $ibo-panel--icon--bottom--as-medallion--is-sticking: -12px !default; $ibo-panel--icon--border--as-medallion--is-sticking: 1px $ibo-panel--base-border-style $ibo-panel--base-border-color !default; -$ibo-panel--icon-background--size--must-contain: contain !default; -$ibo-panel--icon-background--size--must-cover: cover !default; -$ibo-panel--icon-background--size--must-zoomout: 66.67% !default; +$ibo-panel--icon-background--size--must-contain: contain !default; // deprecated, to be removed in favor of $ibo-panel--icon-img--size--must-contain +$ibo-panel--icon-background--size--must-cover: cover !default; // deprecated, to be removed in favor of $ibo-panel--icon-img--size--must-cover +$ibo-panel--icon-background--size--must-zoomout: 66.67% !default; // deprecated, to be removed in favor of $ibo-panel--icon-img--size--must-zoomout +$ibo-panel--icon-img--size--must-contain: $ibo-panel--icon-background--size--must-contain !default; // TODO remove when dealing with N°9317 +$ibo-panel--icon-img--size--must-cover: $ibo-panel--icon-background--size--must-cover !default; // TODO remove when dealing with N°9317 +$ibo-panel--icon-img--size--must-zoomout: $ibo-panel--icon-background--size--must-zoomout !default; // TODO remove when dealing with N°9317 $ibo-panel--title--font-size--is-sticking: $ibo-font-size-150 !default; $ibo-panel--title--color: $ibo-color-grey-900 !default; @@ -179,24 +182,25 @@ $ibo-panel--is-selectable--body--after--font-size: $ibo-font-size-700 !default; min-height: $ibo-panel--icon--size; } -.ibo-panel--icon-background { +.ibo-panel--icon-img, .ibo-panel--icon-background { // second class is deprecated, remove it when dealing with N°9317 width: 100%; height: 100%; background-position: center; background-repeat: no-repeat; - background-size: $ibo-panel--icon-background--size--must-contain; + background-size: $ibo-panel--icon-img--size--must-contain; } -.ibo-panel--icon-background--must-contain { - background-size: $ibo-panel--icon-background--size--must-contain; +.ibo-panel--icon-img--must-contain, .ibo-panel--icon-background--must-contain { // second class is deprecated, remove it when dealing with N°9317 + background-size: $ibo-panel--icon-img--size--must-contain; } -.ibo-panel--icon-background--must-cover { - background-size: $ibo-panel--icon-background--size--must-cover; +.ibo-panel--icon-img--must-cover, .ibo-panel--icon-background--must-cover { // second class is deprecated, remove it when dealing with N°9317 + background-size: $ibo-panel--icon-img--size--must-cover; } -.ibo-panel--icon-background--must-zoomout { - background-size: $ibo-panel--icon-background--size--must-zoomout; +.ibo-panel--icon-img--must-zoomout, .ibo-panel--icon-background--must-zoomout { // second class is deprecated, remove it when dealing with N°9317 + width: $ibo-panel--icon-img--size--must-zoomout; + height: $ibo-panel--icon-img--size--must-zoomout; } .ibo-panel--title { diff --git a/css/backoffice/components/_title.scss b/css/backoffice/components/_title.scss index c513016c1c..d430d90c28 100644 --- a/css/backoffice/components/_title.scss +++ b/css/backoffice/components/_title.scss @@ -11,9 +11,12 @@ $ibo-title--icon--size: 90px !default; $ibo-title--icon--size-2: 80px !default; $ibo-title--icon--size-3: 70px !default; -$ibo-title--icon-background--size--must-contain: contain !default; -$ibo-title--icon-background--size--must-cover: cover !default; -$ibo-title--icon-background--size--must-zoomout: 66.67% !default; +$ibo-title--icon-background--size--must-contain: contain !default; // deprecated, to be removed in favor of $ibo-title--icon-img--size--must-contain +$ibo-title--icon-background--size--must-cover: cover !default; // deprecated, to be removed in favor of $ibo-title--icon-img--size--must-cover +$ibo-title--icon-background--size--must-zoomout: 66.67% !default; // deprecated, to be removed in favor of $ibo-title--icon-img--size--must-zoomout +$ibo-title--icon-img--size--must-contain: $ibo-title--icon-background--size--must-contain !default; // TODO remove when dealing with N°9317 +$ibo-title--icon-img--size--must-cover: $ibo-title--icon-background--size--must-cover !default; // TODO remove when dealing with N°9317 +$ibo-title--icon-img--size--must-zoomout: $ibo-title--icon-background--size--must-zoomout !default; // TODO remove when dealing with N°9317 .ibo-title { @@ -44,24 +47,23 @@ $ibo-title--icon-background--size--must-zoomout: 66.67% !default; min-height: $ibo-title--icon--size-3; } -.ibo-title--icon-background { +.ibo-title--icon-img, .ibo-title--icon-background { // second class is deprecated, remove it when dealing with N°9317 width: 100%; height: 100%; - background-position: center; - background-repeat: no-repeat; - background-size: $ibo-title--icon-background--size--must-contain; + object-position: center; + background-size: $ibo-title--icon-img--size--must-contain; } -.ibo-title--icon-background--must-contain { - background-size: $ibo-title--icon-background--size--must-contain; +.ibo-title--icon-img--must-contain, .ibo-title--icon-background--must-contain { // second class is deprecated, remove it when dealing with N°9317 + background-size: $ibo-title--icon-img--size--must-contain; } -.ibo-title--icon-background--must-cover { - background-size: $ibo-title--icon-background--size--must-cover; +.ibo-title--icon-img--must-cover, .ibo-title--icon-background--must-cover { // second class is deprecated, remove it when dealing with N°9317 + background-size: $ibo-title--icon-img--size--must-cover; } -.ibo-title--icon-background--must-zoomout { - background-size: $ibo-title--icon-background--size--must-zoomout; +.ibo-title--icon-img--must-zoomout, .ibo-title--icon-background--must-zoomout { // second class is deprecated, remove it when dealing with N°9317 + background-size: $ibo-title--icon-img--size--must-zoomout; } .ibo-title--for-object-details { diff --git a/sources/Application/UI/Base/Layout/UIContentBlock.php b/sources/Application/UI/Base/Layout/UIContentBlock.php index c7c0b8b33a..7e2ad3d867 100644 --- a/sources/Application/UI/Base/Layout/UIContentBlock.php +++ b/sources/Application/UI/Base/Layout/UIContentBlock.php @@ -33,6 +33,10 @@ class UIContentBlock extends UIBlock implements iUIContentBlock protected $aDeferredBlocks; /** @var bool If set to true, the content block will have a surrounding