improve login page

This commit is contained in:
ziirish 2014-09-02 12:55:20 +02:00
parent 2b94ce9dee
commit 3b4493ca64
2 changed files with 44 additions and 13 deletions

View file

@ -204,15 +204,47 @@ svg text {
-webkit-animation: blink 1s step-start 0s infinite;
}
/* centered columns styles */
.row-centered {
text-align:center;
.wrapper {
margin-top: 80px;
margin-bottom: 80px;
}
.col-centered {
display:inline-block;
float:none;
/* reset the text-align */
text-align:left;
/* inline-block space fix */
margin-right:-4px;
.form-signin {
background: linear-gradient(#8a9196, #7a8288 60%, #70787d);
max-width: 380px;
padding: 15px 35px 45px;
margin: 0 auto;
border: 1px solid rgba(0,0,0,0.1);
.checkbox {
margin-bottom: 30px;
}
.form-control {
position: relative;
font-size: 16px;
height: auto;
padding: 10px;
@include box-sizing(border-box);
&:focus {
z-index: 2;
}
}
input[type="text"] {
margin-bottom: -1px;
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
}
input[type="password"] {
margin-bottom: 20px;
border-top-left-radius: 0;
border-top-right-radius: 0;
}
}
#search {
margin-right: 0.1em;
}

View file

@ -1,11 +1,10 @@
{% extends "layout.html" %}
{% import 'macros.html' as macros %}
{% block body %}
{% include "notifications.html" %}
<div class="main">
<h1 class="page-header">Login</h1>
<div class="wrapper">
{% call macros.render_form(form, action_url=url_for('login'), action_text='Login') %}
{% call macros.render_form(form, action_url=url_for('login'), action_text='Login', class_='form-signin', btn_class='btn btn-info btn-lg btn-primary btn-block') %}
{{ macros.render_field(form.username, placeholder='Username', type='text') }}
{{ macros.render_field(form.password, placeholder='Password', type='password') }}
{{ macros.render_checkbox_field(form.remember) }}