btn syles copied to add key page

This commit is contained in:
ARvind Tiwari 2017-08-02 23:51:44 +05:30
parent 3772788ffe
commit 0a858f8aa7
5 changed files with 179 additions and 173 deletions

File diff suppressed because one or more lines are too long

View file

@ -1,9 +1,9 @@
/* ssh_keys_choice */ /* ssh_keys_choice */
.dashboard-choice-container h1 { .h1-thin {
font-family: Lato, sans-serif; font-family: Lato, sans-serif;
font-weight: 300; font-weight: 300;
} }
.dashboard-choice-container .page-header { .dashboard-container .page-header {
border: 0; border: 0;
margin-top: 0; margin-top: 0;
} }
@ -54,14 +54,8 @@
} }
@media (max-width: 767px) { @media (max-width: 767px) {
.mob-only { .h1-thin {
display: initial; font-size: 27px;
}
.pc-only {
display: none;
}
.dashboard-choice-container h1 {
font-size: 30px;
} }
.dashboard-choice-container h2 { .dashboard-choice-container h2 {
font-size: 20px; font-size: 20px;
@ -178,6 +172,7 @@
} }
.form_key_name{ .form_key_name{
width:60%; width:60%;
min-width: 215px;
} }
.form_public_key{ .form_public_key{
resize: none; resize: none;
@ -219,42 +214,51 @@
} }
.form_public_key::-webkit-input-placeholder{ .form_public_key::-webkit-input-placeholder{
position: relative; position: absolute;
top: 80%; bottom: 5px;
font-size: 20px; font-size: 20px;
font-weight:200; font-weight: 200;
font-family: 'Lato-Light', sans-serif; font-family: 'Lato-Light', sans-serif;
} }
.form_public_key::-moz-input-placeholder{ .form_public_key::-moz-input-placeholder{
position: relative; position: absolute;
top: 80%; bottom: 5px;
font-size: 20px; font-size: 20px;
font-family: 'Lato-Light', sans-serif; font-family: 'Lato-Light', sans-serif;
font-weight:200; font-weight:200;
} }
.form_public_key:-moz-input-placeholder{ .form_public_key:-moz-input-placeholder{
position: relative; position: absolute;
top: 80%; bottom: 5px;
font-size: 20px; font-size: 20px;
font-weight:200; font-weight:200;
font-family: 'Lato-Light', sans-serif; font-family: 'Lato-Light', sans-serif;
} }
.form_public_key:-ms-input-placeholder { .form_public_key:-ms-input-placeholder {
position: relative; position: absolute;
top: 80%; bottom: 5px;
font-size: 20px; font-size: 20px;
font-weight:200; font-weight:200;
font-family: 'Lato-Light', sans-serif; font-family: 'Lato-Light', sans-serif;
} }
.underform-contaner{ .underform-contaner{
margin-bottom: 20px;
}
@media (min-width: 767px) {
.underform-contaner {
display: flex; display: flex;
vertical-align: middle; vertical-align: middle;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
flex-direction: row; flex-direction: row;
margin-bottom: 20px; }
}
@media (max-width: 767px) {
.underform-contaner .btn-container {
text-align: right;
}
} }
.underform-contaner h4{ .underform-contaner h4{
font-family: 'Lato-Light', sans-serif; font-family: 'Lato-Light', sans-serif;
@ -264,6 +268,7 @@
font-weight: 600; font-weight: 600;
min-width: 120px; min-width: 120px;
height: 35px; height: 35px;
margin-top: 0;
} }
.underform-contaner .btn-default{ .underform-contaner .btn-default{
background-color: #ccc; background-color: #ccc;
@ -299,3 +304,11 @@
.mob-only { .mob-only {
display: none; display: none;
} }
@media (max-width: 767px) {
.mob-only {
display: initial;
}
.pc-only {
display: none;
}
}

View file

@ -5,7 +5,7 @@
<div class="container virtual-machine-container dashboard-container dashboard-choice-container"> <div class="container virtual-machine-container dashboard-container dashboard-choice-container">
<div class="wide440"> <div class="wide440">
<div class="page-header"> <div class="page-header">
<h1><i class="fa fa-key" aria-hidden="true"></i>&nbsp;{% trans "SSH Key"%}</h1> <h1 class="h1-thin"><i class="fa fa-key" aria-hidden="true"></i>&nbsp;{% trans "SSH Key"%}</h1>
<p>{% trans "Choose a key option in order to access your VM" %}.</p> <p>{% trans "Choose a key option in order to access your VM" %}.</p>
</div> </div>
{% if messages %} {% if messages %}
@ -22,7 +22,7 @@
<form class="text-right" action="" method="post"> <form class="text-right" action="" method="post">
{% csrf_token %} {% csrf_token %}
<button type="submit" class="btn choice-btn choice-btn-faded"> <button type="submit" class="btn choice-btn choice-btn-faded">
{% trans "Generate"%} {% trans "Generate" %}
</button> </button>
</form> </form>
@ -32,7 +32,7 @@
<p>{% trans "I want to use my existing public key"%}.</p> <p>{% trans "I want to use my existing public key"%}.</p>
<form class="text-right" action="{% url 'hosting:create_ssh_key' %}"> <form class="text-right" action="{% url 'hosting:create_ssh_key' %}">
<button type="submit" class="btn choice-btn"> <button type="submit" class="btn choice-btn">
{% trans "Upload"%} {% trans "Upload" %}
</button> </button>
</form> </form>
</div> </div>

View file

@ -2,13 +2,14 @@
{% load staticfiles bootstrap3 i18n %} {% load staticfiles bootstrap3 i18n %}
{% block content %} {% block content %}
<div> <div>
<div class="virtual-machine-container dashboard-container "> <div class="virtual-machine-container dashboard-container">
<div class="row"> <div class="row">
<div class="container-table col-md-9 col-md-offset-2"> <div class="col-md-9 col-md-offset-2">
<div class="col-sm-12">
<form method="POST" action="" novalidate class="form-ssh"> <form method="POST" action="" novalidate class="form-ssh">
{% csrf_token %} {% csrf_token %}
<h3><i class="fa fa-key fa-separate" aria-hidden="true"></i>{% trans "Add your public SSH key" %}</h3> <div class="page-header">
<h1 class="h1-thin"><i class="fa fa-key" aria-hidden="true"></i>&nbsp;{% trans "Add your public SSH key" %}</h1>
</div>
{% if messages %} {% if messages %}
<div class="alert alert-warning"> <div class="alert alert-warning">
{% for message in messages %} {% for message in messages %}
@ -22,34 +23,33 @@
{% buttons %} {% buttons %}
<div class="underform-contaner"> <div class="underform-contaner">
<h4>{% trans "Use your created key to access to the VM" %}.</h4> <h4>{% trans "Use your created key to access to the VM" %}.</h4>
<button type="submit" name='add_ssh' class="btn btn-success custom_form_button"> <div class="btn-container">
{% trans "Add SSH key"%} <button type="submit" name="add_ssh" class="btn choice-btn">
{% trans "Add SSH Key" %}
</button> </button>
</div> </div>
</div>
<div class="underform-contaner"> <div class="underform-contaner">
<h4>{% trans "Or you can generate a new key pair"%}.</h4> <h4>{% trans "Or you can generate a new key pair"%}.</h4>
<button type="submit" name='generate' class="btn btn-default custom_form_button">{% trans "Generate"%} <div class="btn-container">
<button type="submit" name="generate" class="btn choice-btn choice-btn-faded">
{% trans "Generate" %}
</button> </button>
</div> </div>
</div>
{% endbuttons %} {% endbuttons %}
</form> </form>
{% if private_key %} {% if private_key %}
<div class="alert alert-warning"> <div class="alert alert-warning">
<strong>{% trans "Warning!"%}</strong>{% trans "You can download your SSH private key once. Don't loose your key" %} <strong>{% trans "Warning!"%}</strong>{% trans "You can download your SSH private key once. Don't loose your key" %}
</div> </div>
<div class="form-group"> <div class="form-group">
<textarea class="form-control" rows="6" id="ssh_key" type="hidden" style="display:none">{{private_key}}</textarea> <textarea class="form-control" rows="6" id="ssh_key" type="hidden" style="display:none">{{private_key}}</textarea>
</div> </div>
{% endif %} {% endif %}
<div class="clearfix"></div>
</div> </div>
</div> </div>
</div>
</div> </div>
</div> </div>

View file

@ -3,9 +3,6 @@
{% block content %} {% block content %}
<div> <div>
<div class="container virtual-machine-container dashboard-container "> <div class="container virtual-machine-container dashboard-container ">
<div class="row">
<div class="col-md-12">
<div class="col-sm-12">
<h2><i class="fa fa-key" aria-hidden="true"></i>&nbsp;{% trans "Your SSH Keys"%}</h2> <h2><i class="fa fa-key" aria-hidden="true"></i>&nbsp;{% trans "Your SSH Keys"%}</h2>
{% if messages %} {% if messages %}
<div class="alert alert-warning"> <div class="alert alert-warning">
@ -113,10 +110,6 @@
{% endfor %} {% endfor %}
</tbody> </tbody>
</table> </table>
<div class="clearfix"></div>
</div>
</div>
</div>
</div> </div>
</div> </div>