From e8e4dbef1f95a39f586def839526d5faa584b35a Mon Sep 17 00:00:00 2001 From: Mathieu Jaumotte Date: Fri, 30 Jul 2021 15:39:22 +0200 Subject: [PATCH] banner household, new responsive design --- .../Resources/public/chill/chillmain.scss | 18 +--- .../Resources/public/chill/chillperson.scss | 23 +++++ .../Resources/views/Entity/person.html.twig | 22 +++-- .../views/Household/banner.html.twig | 91 ++++++++++--------- .../views/Person/banner_custom.html.twig | 2 +- 5 files changed, 86 insertions(+), 70 deletions(-) diff --git a/src/Bundle/ChillMainBundle/Resources/public/chill/chillmain.scss b/src/Bundle/ChillMainBundle/Resources/public/chill/chillmain.scss index 5c125f4c0..97c5e3cc9 100644 --- a/src/Bundle/ChillMainBundle/Resources/public/chill/chillmain.scss +++ b/src/Bundle/ChillMainBundle/Resources/public/chill/chillmain.scss @@ -40,21 +40,5 @@ div.banner { &:before { content: '('; } &:after { content: ')'; } } - div.members { - display: flex; - flex-direction: row; - span.badge-member { - border: 1px solid #ffffff3b; - color: #ffffff; - padding: 0.4em 0.8em; - margin-right: 0.3em; - border-radius: 8px; - &.holder { - order: -1; - } - &.child { - order: 2; - } - } - } + } diff --git a/src/Bundle/ChillPersonBundle/Resources/public/chill/chillperson.scss b/src/Bundle/ChillPersonBundle/Resources/public/chill/chillperson.scss index 7c14ffc0c..5b747da62 100644 --- a/src/Bundle/ChillPersonBundle/Resources/public/chill/chillperson.scss +++ b/src/Bundle/ChillPersonBundle/Resources/public/chill/chillperson.scss @@ -114,6 +114,7 @@ div#header-accompanying_course-details { div#header-household-name { background: none repeat scroll 0 0 #929d69; //#b97a7a; color: #FFF; + h1 { margin: 0.4em 0; } @@ -136,6 +137,28 @@ div#header-household-details { } } +div.household-members { + display: flex; + flex-direction: row; + flex-wrap: wrap; + //justify-content: flex-end; + span.badge-member { + flex-shrink: 0; flex-grow: 0; flex-basis: auto; + border: 1px solid #ffffff3b; + color: #ffffff; + padding: 0.4em 0.8em; + margin-bottom: 0.2em; + margin-right: 0.3em; + border-radius: 8px; + &.holder { + order: -1; + } + &.child { + order: 2; + } + } +} + /* * ADDRESS HISTORY * context person / household diff --git a/src/Bundle/ChillPersonBundle/Resources/views/Entity/person.html.twig b/src/Bundle/ChillPersonBundle/Resources/views/Entity/person.html.twig index dfe703c01..cc79d1a82 100644 --- a/src/Bundle/ChillPersonBundle/Resources/views/Entity/person.html.twig +++ b/src/Bundle/ChillPersonBundle/Resources/views/Entity/person.html.twig @@ -88,26 +88,28 @@