From 045cf06e06549063369150f5f048ff026cdb8dfa Mon Sep 17 00:00:00 2001 From: Jean-Marie Favreau Date: Sat, 28 Dec 2024 12:03:46 +0100 Subject: [PATCH] Ajustement boutons administration --- src/agenda_culturel/static/style.scss | 43 ++++++++++++++++++- .../templates/agenda_culturel/page.html | 38 ++++++++-------- 2 files changed, 63 insertions(+), 18 deletions(-) diff --git a/src/agenda_culturel/static/style.scss b/src/agenda_culturel/static/style.scss index e629443..938ce88 100644 --- a/src/agenda_culturel/static/style.scss +++ b/src/agenda_culturel/static/style.scss @@ -497,6 +497,15 @@ body > main { padding-top: 0.2em; } +body.authenticated > main { + padding-top: 0.8em; +} +@media only screen and (min-width: 700px) { + body.authenticated > main { + padding-top: 0.2em; + } +} + article { margin: 1em 0; } @@ -853,7 +862,7 @@ nav>div { } - @media only screen and (min-width: 992px) { + @media only screen and (min-width: 1400px) { .header li { float: left; } @@ -895,6 +904,38 @@ nav>div { color: var(--secondary-inverse); } +#badges { + position: absolute; + font-size: 70%; + top:3.5em; + left: 0; + padding: 0.2em .5em 0.2em 0.2em; + background: var(--background-color); + box-shadow: 1px 1px 0 rgba(115, 130, 140, 0.2); + display: inline-block; + + .badge { + margin: 0; + border-radius: 0; + + } + .link { + margin-left: .5em; + } +} + +@media only screen and (min-width: 700px) { + #badges { + left: 50%; + top: 0; + transform: translate(-50%, 0); + padding: 0 .5em .2em .5em; + z-index: 1000; + } + +} + + .tw-badge { background: black; border-color: black; diff --git a/src/agenda_culturel/templates/agenda_culturel/page.html b/src/agenda_culturel/templates/agenda_culturel/page.html index 2f71d94..dddc9d8 100644 --- a/src/agenda_culturel/templates/agenda_culturel/page.html +++ b/src/agenda_culturel/templates/agenda_culturel/page.html @@ -34,7 +34,7 @@ {% endblock %} - +
{% if messages %}