alignment and last item border
This commit is contained in:
		
					parent
					
						
							
								b09477c874
							
						
					
				
			
			
				commit
				
					
						5e5e33ce70
					
				
			
		
					 2 changed files with 31 additions and 16 deletions
				
			
		| 
						 | 
					@ -230,6 +230,9 @@
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/* New styles */
 | 
					/* New styles */
 | 
				
			||||||
 | 
					.dashboard-container-head {
 | 
				
			||||||
 | 
					  padding: 0 8px;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
.dashboard-title-thin {
 | 
					.dashboard-title-thin {
 | 
				
			||||||
  font-weight: 300;
 | 
					  font-weight: 300;
 | 
				
			||||||
  font-size: 32px;
 | 
					  font-size: 32px;
 | 
				
			||||||
| 
						 | 
					@ -323,6 +326,10 @@
 | 
				
			||||||
  padding: 12px 8px;
 | 
					  padding: 12px 8px;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					.table-switch > tbody > tr:last-child > td {
 | 
				
			||||||
 | 
					  border-bottom: 1px solid #ddd;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@media (min-width: 768px) {
 | 
					@media (min-width: 768px) {
 | 
				
			||||||
  .table-switch > tbody > tr > td:nth-child(1) {
 | 
					  .table-switch > tbody > tr > td:nth-child(1) {
 | 
				
			||||||
    padding-right: 45px;
 | 
					    padding-right: 45px;
 | 
				
			||||||
| 
						 | 
					@ -348,8 +355,12 @@
 | 
				
			||||||
    display: block;
 | 
					    display: block;
 | 
				
			||||||
    position: relative;
 | 
					    position: relative;
 | 
				
			||||||
    border-top: 1px solid #ddd;
 | 
					    border-top: 1px solid #ddd;
 | 
				
			||||||
    margin-top: 15px;
 | 
					    /* margin-top: 15px; */
 | 
				
			||||||
    padding-top: 5px;
 | 
					    padding-top: 5px;
 | 
				
			||||||
 | 
					    padding-bottom: 15px;
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					  .table-switch tbody tr:last-child {
 | 
				
			||||||
 | 
					    border-bottom: 1px solid #ddd;
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
  .table-switch tbody tr td {
 | 
					  .table-switch tbody tr td {
 | 
				
			||||||
    display: block;
 | 
					    display: block;
 | 
				
			||||||
| 
						 | 
					@ -367,7 +378,7 @@
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
  .table-switch .last-td {
 | 
					  .table-switch .last-td {
 | 
				
			||||||
    position: absolute;
 | 
					    position: absolute;
 | 
				
			||||||
    bottom: 5px;
 | 
					    bottom: 20px;
 | 
				
			||||||
    right: 0;
 | 
					    right: 0;
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					@ -2,22 +2,26 @@
 | 
				
			||||||
{% load staticfiles bootstrap3 i18n %}
 | 
					{% load staticfiles bootstrap3 i18n %}
 | 
				
			||||||
{% block content %}
 | 
					{% block content %}
 | 
				
			||||||
<div class="dashboard-container">
 | 
					<div class="dashboard-container">
 | 
				
			||||||
    <h3 class="dashboard-title-thin"><img src="{% static 'hosting/img/vm.svg' %}" class="un-icon"> {% trans "Virtual Machines" %}</h3>
 | 
					    <div class="dashboard-container-head">
 | 
				
			||||||
    {% if messages %}
 | 
					        <h3 class="dashboard-title-thin"><img src="{% static 'hosting/img/vm.svg' %}" class="un-icon"> {% trans "Virtual Machines" %}</h3>
 | 
				
			||||||
        <div class="alert alert-warning">
 | 
					        {% if messages %}
 | 
				
			||||||
            {% for message in messages %}
 | 
					            <div class="alert alert-warning">
 | 
				
			||||||
            <span>{{ message }}</span>
 | 
					                {% for message in messages %}
 | 
				
			||||||
            {% endfor %}
 | 
					                <span>{{ message }}</span>
 | 
				
			||||||
        </div>
 | 
					                {% endfor %}
 | 
				
			||||||
    {% endif %}
 | 
					            </div>
 | 
				
			||||||
 | 
					        {% endif %}
 | 
				
			||||||
 | 
					        {% if not error %}
 | 
				
			||||||
 | 
					            <div class="dashboard-subtitle">
 | 
				
			||||||
 | 
					                <p>{% trans 'To create a new virtual machine, click "Create VM"' %}</p>
 | 
				
			||||||
 | 
					                <div class="text-right">
 | 
				
			||||||
 | 
					                    <a class="btn btn-vm" href="{% url 'hosting:create_virtual_machine' %}"><span class="css-plus"></span> <span>{% trans "CREATE VM" %}</span></a>
 | 
				
			||||||
 | 
					                </div>
 | 
				
			||||||
 | 
					            </div>
 | 
				
			||||||
 | 
					        {% endif %}
 | 
				
			||||||
 | 
					    </div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    {% if not error %}
 | 
					    {% if not error %}
 | 
				
			||||||
        <div class="dashboard-subtitle">
 | 
					 | 
				
			||||||
            <p>{% trans 'To create a new virtual machine, click "Create VM"' %}</p>
 | 
					 | 
				
			||||||
            <div class="text-right">
 | 
					 | 
				
			||||||
                <a class="btn btn-vm" href="{% url 'hosting:create_virtual_machine' %}"><span class="css-plus"></span> <span>{% trans "CREATE VM" %}</span></a>
 | 
					 | 
				
			||||||
            </div>
 | 
					 | 
				
			||||||
        </div>
 | 
					 | 
				
			||||||
        <table class="table table-switch">
 | 
					        <table class="table table-switch">
 | 
				
			||||||
            <thead>
 | 
					            <thead>
 | 
				
			||||||
                <tr>
 | 
					                <tr>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue