From 7279db3f2cd6430ecbaf2a91b750371cde056c27 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Tue, 15 Jan 2019 14:11:15 -0800 Subject: [PATCH] ui: Fix top margin for content containers Currently, when a message is shown at the top or in users and groups page, The top margin is too short. Increase it to 25px from 5px. Also: - Don't use the .thumbnail class for containers as this does not match the semantics. Create and use class .contain-container. - Also create class .card-container for all container containing cards. Unused for now. - Indentation fixes. - Remove duplicated rule. Signed-off-by: Sunil Mohan Adapa Reviewed-by: Joseph Nuthalapati --- plinth/modules/help/templates/help_index.html | 68 +++++++++---------- plinth/templates/base.html | 2 +- plinth/templates/cards.html | 11 +-- plinth/templates/index.html | 2 +- plinth/templates/service-subsubmenu.html | 2 +- static/themes/default/css/plinth.css | 11 ++- 6 files changed, 45 insertions(+), 51 deletions(-) diff --git a/plinth/modules/help/templates/help_index.html b/plinth/modules/help/templates/help_index.html index 1d08ab091..8df3c1bd5 100644 --- a/plinth/modules/help/templates/help_index.html +++ b/plinth/modules/help/templates/help_index.html @@ -22,44 +22,44 @@ {% load firstboot_extras %} {% load static %} -{% block content %} -
-

{% trans "Help" %}

+{% block content-container %} +
+

{% trans "Help" %}

-

- {% url 'help:manual' as manual_url %} - {% blocktrans trimmed %} - The {{ box_name }} Manual is the - best place to start for information regarding {{ box_name }}. - {% endblocktrans %} -

+

+ {% url 'help:manual' as manual_url %} + {% blocktrans trimmed %} + The {{ box_name }} Manual is the + best place to start for information regarding {{ box_name }}. + {% endblocktrans %} +

-

- {% blocktrans trimmed %} - - {{ box_name }} project wiki contains further information. - {% endblocktrans %} -

+

+ {% blocktrans trimmed %} + + {{ box_name }} project wiki contains further information. + {% endblocktrans %} +

-

- {% blocktrans trimmed %} - To seek help from {{ box_name }} community, queries may be posted on - the - - mailing list. The list archives also contain information - about problems faced by other users and possible solutions. - {% endblocktrans %} -

+

+ {% blocktrans trimmed %} + To seek help from {{ box_name }} community, queries may be posted on + the + + mailing list. The list archives also contain information + about problems faced by other users and possible solutions. + {% endblocktrans %} +

-

- {% blocktrans trimmed %} - Many {{ box_name }} contributors and users are also available on - the irc.oftc.net IRC network. Join and request help on the - - #freedombox channel using the IRC web interface. - {% endblocktrans %} -

-
+

+ {% blocktrans trimmed %} + Many {{ box_name }} contributors and users are also available on + the irc.oftc.net IRC network. Join and request help on the + + #freedombox channel using the IRC web interface. + {% endblocktrans %} +

+
{% endblock %} diff --git a/plinth/templates/base.html b/plinth/templates/base.html index 72a780366..2e6ea7687 100644 --- a/plinth/templates/base.html +++ b/plinth/templates/base.html @@ -219,7 +219,7 @@ {% block container %} -
+
{% block content_row %} {% block subsubmenu %} {% if subsubmenu %} diff --git a/plinth/templates/cards.html b/plinth/templates/cards.html index a819332bb..70489ae80 100644 --- a/plinth/templates/cards.html +++ b/plinth/templates/cards.html @@ -30,7 +30,7 @@
-
+
@@ -54,12 +54,7 @@
-
- - {% block content %} - {# main content goes here #} - {% endblock %} - -
+ {% block content-container %} + {% endblock %} {% endblock %} diff --git a/plinth/templates/index.html b/plinth/templates/index.html index 93967258f..a376f8555 100644 --- a/plinth/templates/index.html +++ b/plinth/templates/index.html @@ -71,7 +71,7 @@
{% if shortcuts %} -
+
{% for shortcut in shortcuts %} diff --git a/plinth/templates/service-subsubmenu.html b/plinth/templates/service-subsubmenu.html index 8ee744ab8..304dcdebf 100644 --- a/plinth/templates/service-subsubmenu.html +++ b/plinth/templates/service-subsubmenu.html @@ -24,7 +24,7 @@ {% load static %} {% block container %} -
+
{% block content_row %} {% include 'messages.html' %} diff --git a/static/themes/default/css/plinth.css b/static/themes/default/css/plinth.css index 01fee2fee..d00b272d7 100644 --- a/static/themes/default/css/plinth.css +++ b/static/themes/default/css/plinth.css @@ -176,8 +176,11 @@ html { max-width: 1000px; } -.container.thumbnail { - padding: 5px 50px 50px; +.content-container { + padding: 25px 50px 50px; + background-color: white; + border: 1px solid #ddd; + border-radius: 4px; } footer { @@ -371,10 +374,6 @@ a.menu_link_active { font-size: 80px; } -.container.thumbnail { - padding: 5px 50px 50px; -} - /* Button table - Tables with a list of actions as buttons on top */ .button-table > .button-row + .table { margin-top: 10px;