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 */
 | 
			
		||||
.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;
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			@ -2,22 +2,26 @@
 | 
			
		|||
{% load staticfiles bootstrap3 i18n %}
 | 
			
		||||
{% block content %}
 | 
			
		||||
<div class="dashboard-container">
 | 
			
		||||
    <h3 class="dashboard-title-thin"><img src="{% static 'hosting/img/vm.svg' %}" class="un-icon"> {% trans "Virtual Machines" %}</h3>
 | 
			
		||||
    {% if messages %}
 | 
			
		||||
        <div class="alert alert-warning">
 | 
			
		||||
            {% for message in messages %}
 | 
			
		||||
            <span>{{ message }}</span>
 | 
			
		||||
            {% endfor %}
 | 
			
		||||
        </div>
 | 
			
		||||
    {% endif %}
 | 
			
		||||
    <div class="dashboard-container-head">
 | 
			
		||||
        <h3 class="dashboard-title-thin"><img src="{% static 'hosting/img/vm.svg' %}" class="un-icon"> {% trans "Virtual Machines" %}</h3>
 | 
			
		||||
        {% if messages %}
 | 
			
		||||
            <div class="alert alert-warning">
 | 
			
		||||
                {% for message in messages %}
 | 
			
		||||
                <span>{{ message }}</span>
 | 
			
		||||
                {% endfor %}
 | 
			
		||||
            </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 %}
 | 
			
		||||
        <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">
 | 
			
		||||
            <thead>
 | 
			
		||||
                <tr>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue