modal close button thinner, some icons changed, vertical alignment changed to middle

This commit is contained in:
ARvind Tiwari 2017-07-24 18:52:23 +05:30
parent 805d151eea
commit 918e13bf91
6 changed files with 83 additions and 85 deletions

View file

@ -2,19 +2,18 @@
{% load i18n %}
<div class="modal fade bs-example-modal-sm" style="color:black;" id="successModal" tabindex="-1" role="dialog">
<div class="vertical-alignment-helper">
<div class="modal-dialog vertical-align-center">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
<h4 class="modal-title">{% trans "Request Sent" %}</h4>
</div>
<div class="modal-body">
<p>{% trans "Thank you for your subscription! You will receive a confirmation mail from our team" %}</p>
<div class="modal-icon"><i class="fa fa-check" aria-hidden="true"></i></div>
<h4 class="modal-title">{% trans "Request Sent" %}</h4>
<p class="modal-text">{% trans "Thank you for your subscription! You will receive a confirmation mail from our team" %}</p>
</div>
</div><!-- /.modal-content -->
</div>
</div>
</div><!-- /.modal -->
<script>
// Show modal

View file

@ -61,9 +61,11 @@
/***********Styles for Model********************/
.modal-content {
border-radius: 0px;
font-family: 'Lato', sans-serif;
font-family: Lato, "Helvetica Neue", Helvetica, Arial, sans-serif;
width: 100%;
float: left;
border-radius: 0;
font-weight: 300;
}
.modal-header {
@ -113,7 +115,7 @@
padding: 15px 15px;
}
@media (min-width: 1300px) {
.modal-dialog {/* top: 30%; */width: 30%;}
.modal-dialog {/* top: 30%; */width: 35%;}
}
@media (max-width: 1299px) {
.modal-dialog {
@ -135,6 +137,9 @@
}
}
/* ========= */
@media(min-width: 320px) {
.modal:before {
content: '';
@ -162,9 +167,3 @@
text-align: left;
vertical-align: middle;
}
.modal-content {
border-radius: 0;
font-family: Lato, "Helvetica Neue", Helvetica, Arial, sans-serif;
font-weight: 300;
}

View file

@ -27,7 +27,7 @@
<!-- Custom Fonts -->
<link href='//fonts.googleapis.com/css?family=Raleway' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
<link href="//fonts.googleapis.com/css?family=Lato:300,400,700,300italic,400italic,700italic" rel="stylesheet" type="text/css">
<link href="//fonts.googleapis.com/css?family=Lato:100,300,400,700,300italic,400italic,700italic" rel="stylesheet" type="text/css">
<link rel="shortcut icon" href="img/favicon.ico" type="image/x-icon" />
<link rel="stylesheet" href="{% static 'hosting/css/owl.carousel.min.css' %}">
<link rel="stylesheet" href="{% static 'hosting/css/owl.theme.default.min.css' %}">

View file

@ -52,6 +52,7 @@
</button>
</div>
<div class="modal-body">
<div class="modal-icon"><i class="fa fa-trash" aria-hidden="true"></i></div>
<h4 class="modal-title" id="ModalLabel">{% trans "Do You want to delete your order?"%}</h4>
<form method="post"
@ -71,7 +72,6 @@
</div>
</div>
{% endfor %}
</tbody>
</table>

View file

@ -53,7 +53,7 @@
</button>
</div>
<div class="modal-body">
<div class="modal-icon"><i class="fa fa-question" aria-hidden="true"></i></div>
<div class="modal-icon"><i class="fa fa-trash" aria-hidden="true"></i></div>
<h4 class="modal-title" id="ModalLabel">{% trans "Delete SSH Key"%}</h4>
<p class="modal-text">{% trans "Do You want to delete this key?"%}</p>
<form method="post" action="{% url 'hosting:delete_ssh_key' user_key.id %}">

View file

@ -166,7 +166,7 @@
</button>
</div>
<div class="modal-body">
<div class="modal-icon"><i class="fa fa-question" aria-hidden="true"></i></div>
<div class="modal-icon"><i class="fa fa-ban" aria-hidden="true"></i></div>
<h4 class="modal-title" id="ModalLabel">{% trans "Terminate your Virtual Machine"%}</h4>
<p class="modal-text">{% trans "Are you sure do you want to cancel your Virtual Machine "%} {{virtual_machine.name}} ?</p>
</div>