From 5e5e33ce700ae0ee668c73abc1328597f8ec36e9 Mon Sep 17 00:00:00 2001 From: Arvind Tiwari Date: Fri, 18 Aug 2017 23:27:57 +0530 Subject: [PATCH] alignment and last item border --- .../static/hosting/css/virtual-machine.css | 15 +++++++-- .../templates/hosting/virtual_machines.html | 32 +++++++++++-------- 2 files changed, 31 insertions(+), 16 deletions(-) diff --git a/hosting/static/hosting/css/virtual-machine.css b/hosting/static/hosting/css/virtual-machine.css index 0dd89866..b9409712 100644 --- a/hosting/static/hosting/css/virtual-machine.css +++ b/hosting/static/hosting/css/virtual-machine.css @@ -230,6 +230,9 @@ } /* New styles */ +.dashboard-container-head { + padding: 0 8px; +} .dashboard-title-thin { font-weight: 300; font-size: 32px; @@ -323,6 +326,10 @@ padding: 12px 8px; } +.table-switch > tbody > tr:last-child > td { + border-bottom: 1px solid #ddd; +} + @media (min-width: 768px) { .table-switch > tbody > tr > td:nth-child(1) { padding-right: 45px; @@ -348,8 +355,12 @@ display: block; position: relative; border-top: 1px solid #ddd; - margin-top: 15px; + /* margin-top: 15px; */ padding-top: 5px; + padding-bottom: 15px; + } + .table-switch tbody tr:last-child { + border-bottom: 1px solid #ddd; } .table-switch tbody tr td { display: block; @@ -367,7 +378,7 @@ } .table-switch .last-td { position: absolute; - bottom: 5px; + bottom: 20px; right: 0; } } \ No newline at end of file diff --git a/hosting/templates/hosting/virtual_machines.html b/hosting/templates/hosting/virtual_machines.html index fb9e400d..f7461abe 100644 --- a/hosting/templates/hosting/virtual_machines.html +++ b/hosting/templates/hosting/virtual_machines.html @@ -2,22 +2,26 @@ {% load staticfiles bootstrap3 i18n %} {% block content %}
-

{% trans "Virtual Machines" %}

- {% if messages %} -
- {% for message in messages %} - {{ message }} - {% endfor %} -
- {% endif %} +
+

{% trans "Virtual Machines" %}

+ {% if messages %} +
+ {% for message in messages %} + {{ message }} + {% endfor %} +
+ {% endif %} + {% if not error %} +
+

{% trans 'To create a new virtual machine, click "Create VM"' %}

+ +
+ {% endif %} +
{% if not error %} -
-

{% trans 'To create a new virtual machine, click "Create VM"' %}

- -