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 <sunil@medhas.org>
Reviewed-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
This commit is contained in:
Sunil Mohan Adapa 2019-01-15 14:11:15 -08:00 committed by Joseph Nuthalapati
parent bb27d7c457
commit 7279db3f2c
No known key found for this signature in database
GPG Key ID: 5398F00A2FA43C35
6 changed files with 45 additions and 51 deletions

View File

@ -22,8 +22,8 @@
{% load firstboot_extras %} {% load firstboot_extras %}
{% load static %} {% load static %}
{% block content %} {% block content-container %}
<div id="container-wrapper" class="container thumbnail"> <div class="container content-container">
<h2>{% trans "Help" %}</h2> <h2>{% trans "Help" %}</h2>
<p> <p>

View File

@ -219,7 +219,7 @@
</div> </div>
{% block container %} {% block container %}
<div id="container-wrapper" class="container thumbnail"> <div class="container content-container">
{% block content_row %} {% block content_row %}
{% block subsubmenu %} {% block subsubmenu %}
{% if subsubmenu %} {% if subsubmenu %}

View File

@ -30,7 +30,7 @@
</div> </div>
</div> </div>
<div class="container-fluid"> <div class="container-fluid card-container">
<div class="row"> <div class="row">
<div class="card-list"> <div class="card-list">
@ -54,12 +54,7 @@
</div> </div>
</div> </div>
<div id="container-wrapper" class="container"> {% block content-container %}
{% block content %}
{# main content goes here #}
{% endblock %} {% endblock %}
</div>
{% endblock %} {% endblock %}

View File

@ -71,7 +71,7 @@
</div> </div>
{% if shortcuts %} {% if shortcuts %}
<div id="container-wrapper" class="container-fluid"> <div class="container-fluid card-container">
<div class="row"> <div class="row">
<div class="card-list"> <div class="card-list">
{% for shortcut in shortcuts %} {% for shortcut in shortcuts %}

View File

@ -24,7 +24,7 @@
{% load static %} {% load static %}
{% block container %} {% block container %}
<div id="container-wrapper" class="container thumbnail"> <div class="container content-container">
{% block content_row %} {% block content_row %}
{% include 'messages.html' %} {% include 'messages.html' %}

View File

@ -176,8 +176,11 @@ html {
max-width: 1000px; max-width: 1000px;
} }
.container.thumbnail { .content-container {
padding: 5px 50px 50px; padding: 25px 50px 50px;
background-color: white;
border: 1px solid #ddd;
border-radius: 4px;
} }
footer { footer {
@ -371,10 +374,6 @@ a.menu_link_active {
font-size: 80px; font-size: 80px;
} }
.container.thumbnail {
padding: 5px 50px 50px;
}
/* Button table - Tables with a list of actions as buttons on top */ /* Button table - Tables with a list of actions as buttons on top */
.button-table > .button-row + .table { .button-table > .button-row + .table {
margin-top: 10px; margin-top: 10px;