From 74f612b687bbec4789dd80402496d859d3552a61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89loi=20Rivard?= Date: Wed, 21 Oct 2020 11:30:26 +0200 Subject: [PATCH] Responsiveness --- oidc_ldap_bridge/static/css/base.css | 23 ++++-- oidc_ldap_bridge/templates/base.html | 105 ++++++++++++++------------- 2 files changed, 70 insertions(+), 58 deletions(-) diff --git a/oidc_ldap_bridge/static/css/base.css b/oidc_ldap_bridge/static/css/base.css index beeb372f..d8b91f3c 100644 --- a/oidc_ldap_bridge/static/css/base.css +++ b/oidc_ldap_bridge/static/css/base.css @@ -1,12 +1,23 @@ -body { - background: #F8F8F8; +@media only screen and (min-width: 1200px) { + .ui.ui.ui.container:not(.fluid) { + width: 770px; + margin-left: auto; + margin-right: auto; + } } -.container { +@media only screen and (min-width: 992px) and (max-width: 1200px) { + .ui.ui.ui.container:not(.fluid) { + width: 790px; + margin-left: auto; + margin-right: auto; + } +} + + +body { + background: #F8F8F8; padding: 1em; - min-width: 320px; - max-width: 800px; - margin: auto; } .logo img{ diff --git a/oidc_ldap_bridge/templates/base.html b/oidc_ldap_bridge/templates/base.html index 95de7f62..f87c99c2 100644 --- a/oidc_ldap_bridge/templates/base.html +++ b/oidc_ldap_bridge/templates/base.html @@ -21,60 +21,61 @@ -
- {% block menu %} - {% if user and menu %} -
{% endif %} - {% endblock %} + + + {% trans %}My profile{% endtrans %} + + + + {% trans %}My consents{% endtrans %} + + + + {% trans %}My tokens{% endtrans %} + + {% if user.admin %} + + {% endif %} + + + {% trans %}Log out{% endtrans %} + + + {% endif %} + {% endblock %} + +
{% block content %}{% endblock %}