From 9cd203411dc4cc3cfbb838acd9c4faa7ab306cb2 Mon Sep 17 00:00:00 2001 From: Alice Kile Date: Tue, 26 Nov 2019 12:12:28 +0530 Subject: [PATCH] fix toggle buttle html layout and responsive design css Reviewed-by: James Valleroy --- plinth/templates/header.html | 24 +++++++++++++++------- static/themes/default/css/plinth.css | 30 ++++++++++++++++++++++++++++ 2 files changed, 47 insertions(+), 7 deletions(-) diff --git a/plinth/templates/header.html b/plinth/templates/header.html index 6ae15c022..ecb68be28 100644 --- a/plinth/templates/header.html +++ b/plinth/templates/header.html @@ -3,6 +3,7 @@ {% load static %}
+ {% if icon_filename %} {{ name  }} @@ -10,13 +11,22 @@ {% endif %}
- {% block pagetitle %} - {% if setup %} -

{% trans "Installation" %}: {{ short_description|default:'' }} ({{ name }})

- {% else %} -

{{ name }}

- {% endif %} - {% endblock %} +
+ {% block pagetitle %} + {% if setup %} +

{% trans "Installation" %}: {{ short_description|default:'' }} ({{ name }})

+ {% else %} +

{{ name }}

+ {% endif %} + {% endblock %} +
+ {% if is_enabled %} + + {% else %} + + {% endif %} +
+
{% block description %} {% for paragraph in description %} diff --git a/static/themes/default/css/plinth.css b/static/themes/default/css/plinth.css index 3813af8cd..ee2ed7702 100644 --- a/static/themes/default/css/plinth.css +++ b/static/themes/default/css/plinth.css @@ -579,4 +579,34 @@ a.menu_link_active { padding: 10px; transition: height 0.5s width 0.5s; } + + .header-bar { + display: flex; + flex-flow: column-reverse; + justify-content: center; + height: auto; + } + + .header-bar h2 { + margin: 0 0 15px 0; + } + + .header-bar .app-toggle-container { + display: flex; + flex-flow: row; + justify-content: center; + margin: 30px 0; + } + + .header-bar .toggle-button { + transform: scale(1.2); + } + + .content-container { + margin: 0 10vw; + } + + .card-list { + margin: 20px 10vw; + } } \ No newline at end of file