From 8a9242d74d3c697e2b71eee2a294e93bf0b5116b Mon Sep 17 00:00:00 2001 From: ARvind Tiwari Date: Thu, 27 Jul 2017 17:21:22 +0530 Subject: [PATCH] ssh key flow styles fixed --- hosting/static/hosting/css/commons.css | 3 ++ hosting/static/hosting/css/user_keys.css | 23 +++++++++---- .../templates/hosting/choice_ssh_keys.html | 14 +++----- hosting/templates/hosting/user_keys.html | 32 ++++++------------- 4 files changed, 33 insertions(+), 39 deletions(-) diff --git a/hosting/static/hosting/css/commons.css b/hosting/static/hosting/css/commons.css index 78bfd827..c6d0ac05 100644 --- a/hosting/static/hosting/css/commons.css +++ b/hosting/static/hosting/css/commons.css @@ -58,3 +58,6 @@ } } +.btn:focus, .btn:active:focus { + outline: 0; +} \ No newline at end of file diff --git a/hosting/static/hosting/css/user_keys.css b/hosting/static/hosting/css/user_keys.css index 427ea960..268dd8e7 100644 --- a/hosting/static/hosting/css/user_keys.css +++ b/hosting/static/hosting/css/user_keys.css @@ -26,11 +26,13 @@ h2,h3,h4,h5{ text-align: justify; } .ssh-header-container{ - display: flex; - flex-direction: row-reverse; - vertical-align: middle; - align-items: center; - justify-content: space-between; + padding-top: 15px; + /* display: flex; */ + /* flex-direction: row-reverse; */ + /* vertical-align: middle; */ + /* align-items: center; */ + /* justify-content: space-between; */ + text-align: right; } .ssh-header-container p{ @@ -163,6 +165,9 @@ h2,h3,h4,h5{ .form_key_name{ width:60%; } +.form_public_key{ + resize: none; +} .form_public_key, .form_key_name{ border:none; @@ -260,8 +265,12 @@ h2,h3,h4,h5{ .form_key_name:focus, .form_public_key:focus, .has-error .form_key_name, -.has-error .form_public_key, .has-error .form_key_name:focus, -.has-error .form_public_key:focus { +.has-error .form_public_key, +.has-error .form_public_key:focus, +.has-success .form_key_name, +.has-success .form_key_name:focus, +.has-success .form_public_key, +.has-success .form_public_key:focus { box-shadow: none; } \ No newline at end of file diff --git a/hosting/templates/hosting/choice_ssh_keys.html b/hosting/templates/hosting/choice_ssh_keys.html index e161db8f..b8a3566e 100644 --- a/hosting/templates/hosting/choice_ssh_keys.html +++ b/hosting/templates/hosting/choice_ssh_keys.html @@ -5,9 +5,9 @@
-
-

{% trans " SSH Key"%}

-

Choose a key option in order to access your VMs.

+
+

 {% trans " SSH Key"%}

+

Choose a key option in order to access your VMs.

{% if messages %}
{% for message in messages %} @@ -17,9 +17,7 @@ {% endif %}
-

{% trans "I want to generate a new key pair"%}. - -

+

{% trans "I want to generate a new key pair"%}

{% csrf_token %}
-

{% trans "I want to use my existing public key"%}. - -

+

{% trans "I want to use my existing public key"%}

-
{% if next_url %}