Pretty sweet login container
This commit is contained in:
@ -6,46 +6,3 @@ body {
|
|||||||
padding-top: 60px;
|
padding-top: 60px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn-label {
|
|
||||||
position: relative;
|
|
||||||
left: -12px;
|
|
||||||
display: inline-block;
|
|
||||||
padding: 6px 12px;
|
|
||||||
background: rgba(0, 0, 0, 0.15);
|
|
||||||
border-radius: 3px 0 0 3px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.btn-labeled {
|
|
||||||
padding-top: 0;
|
|
||||||
padding-bottom: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.main {
|
|
||||||
max-width: 320px;
|
|
||||||
margin: 0 auto;
|
|
||||||
}
|
|
||||||
.login-or {
|
|
||||||
position: relative;
|
|
||||||
font-size: 18px;
|
|
||||||
color: #aaa;
|
|
||||||
margin-top: 10px;
|
|
||||||
margin-bottom: 10px;
|
|
||||||
padding-top: 10px;
|
|
||||||
padding-bottom: 10px;
|
|
||||||
}
|
|
||||||
.span-or {
|
|
||||||
display: block;
|
|
||||||
position: absolute;
|
|
||||||
left: 50%;
|
|
||||||
top: -2px;
|
|
||||||
margin-left: -25px;
|
|
||||||
background-color: #fff;
|
|
||||||
width: 50px;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
.hr-or {
|
|
||||||
background-color: #cdcdcd;
|
|
||||||
height: 1px;
|
|
||||||
margin-top: 0px !important;
|
|
||||||
margin-bottom: 0px !important;
|
|
||||||
}
|
|
||||||
|
@ -53,12 +53,13 @@ body {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Buttons ====================================================================
|
// Buttons ====================================================================
|
||||||
.btn {
|
.btn {
|
||||||
font-weight: 300;
|
font-weight: 300;
|
||||||
margin: 0 10px 10px 0;
|
|
||||||
transition: all 0.15s;
|
transition: all 0.15s;
|
||||||
|
margin: 0 10px 10px 0;
|
||||||
&:active,
|
&:active,
|
||||||
.active {
|
.active {
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
@ -66,27 +67,39 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.btn-default {
|
.btn-default {
|
||||||
background: #bbbbbb;
|
background: #bbb;
|
||||||
border-color: #bbbbbb;
|
border-color: #bbb;
|
||||||
color: white; }
|
color: #fff;
|
||||||
.btn-default .caret {
|
|
||||||
border-top-color: white; }
|
&:hover,
|
||||||
.btn-default:hover, .btn-default.active {
|
&.active {
|
||||||
background: transparent;
|
background: transparent;
|
||||||
color: #aaaaaa;
|
color: #aaa;
|
||||||
border-color: #bbbbbb; }
|
border-color: #bbb;
|
||||||
.btn-default:hover .caret, .btn-default.active .caret {
|
}
|
||||||
border-top-color: #bbbbbb; }
|
}
|
||||||
|
|
||||||
.btn-primary {
|
.btn-primary {
|
||||||
background: #007aff;
|
background: #007aff;
|
||||||
border-color: #007aff; }
|
border-color: #007aff;
|
||||||
.btn-primary:hover, .btn-primary.active {
|
|
||||||
|
&:hover,
|
||||||
|
&.active {
|
||||||
background: transparent;
|
background: transparent;
|
||||||
color: #007aff;
|
color: #007aff;
|
||||||
border-color: #007aff; }
|
border-color: #007aff;
|
||||||
.btn-primary:hover .caret, .btn-primary.active .caret {
|
}
|
||||||
border-top-color: #007aff; }
|
}
|
||||||
|
|
||||||
|
.facebook {
|
||||||
|
background-color: #335397;
|
||||||
|
border-color: #335397;
|
||||||
|
&:focus,
|
||||||
|
&:hover {
|
||||||
|
background-color: transparent;
|
||||||
|
color: #335397;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Panel ======================================================================
|
// Panel ======================================================================
|
||||||
.panel {
|
.panel {
|
||||||
@ -141,3 +154,75 @@ label {
|
|||||||
.has-error {
|
.has-error {
|
||||||
.form-control-validation(#d9534f; #d9534f; #d9534f);
|
.form-control-validation(#d9534f; #d9534f; #d9534f);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Misc ===================================================================
|
||||||
|
.login-container {
|
||||||
|
background-color: rgba(255, 255, 255, 0.95);
|
||||||
|
border-radius: 40px;
|
||||||
|
box-shadow: 0 0 50px rgba(0, 0, 0, 0.2);
|
||||||
|
padding: 30px;
|
||||||
|
width: 380px;
|
||||||
|
height: 390px;
|
||||||
|
text-align: center;
|
||||||
|
position: absolute;
|
||||||
|
top: 50%;
|
||||||
|
left: 50%;
|
||||||
|
margin: -190px 0 15px -190px;
|
||||||
|
opacity: 0;
|
||||||
|
transition: all 0.75s 0.375s;
|
||||||
|
|
||||||
|
&.active {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-group {
|
||||||
|
position: relative;
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-control {
|
||||||
|
height: 48px;
|
||||||
|
font-size: 15px;
|
||||||
|
box-shadow: none;
|
||||||
|
border-radius: 0;
|
||||||
|
border: 0;
|
||||||
|
border-bottom: 1px solid #d6d6d6;
|
||||||
|
padding-left: 0;
|
||||||
|
padding-right: 0;
|
||||||
|
background: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-options {
|
||||||
|
margin: 20px 0 30px;
|
||||||
|
|
||||||
|
.checkbox {
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
button[type="submit"] {
|
||||||
|
position: absolute;
|
||||||
|
top: 10px;
|
||||||
|
right: 0;
|
||||||
|
opacity: 0.5;
|
||||||
|
font-family: "FontAwesome";
|
||||||
|
background: transparent;
|
||||||
|
color: #888;
|
||||||
|
border: 2px solid #888;
|
||||||
|
width: 30px;
|
||||||
|
height: 30px;
|
||||||
|
border-radius: 50%;
|
||||||
|
padding-left: 7px;
|
||||||
|
line-height: 24px;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
[class^="fa-"],
|
||||||
|
[class*="fa-"] {
|
||||||
|
margin-right: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
3
public/js/main.js
Normal file
3
public/js/main.js
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
$(window).load(function() {
|
||||||
|
return $(".login-container").addClass("active");
|
||||||
|
});
|
@ -1,15 +1,26 @@
|
|||||||
extends layout
|
extends layout
|
||||||
|
|
||||||
block content
|
block content
|
||||||
.main
|
.login-container
|
||||||
h3
|
h3.text-center Project name
|
||||||
| Please Login, or
|
form(method='POST')
|
||||||
a(href='/signup') Sign Up
|
.form-group
|
||||||
|
input.form-control(type='text', name='usernameOrEmail', id='usernameOrEmail', placeholder='Username or Email', autofocus='')
|
||||||
|
.form-group
|
||||||
|
input.form-control(type='password', name='password', id='password', placeholder='Password')
|
||||||
|
button(type='submit')
|
||||||
|
i.fa.fa-chevron-right
|
||||||
|
.form-options.clearfix
|
||||||
|
a.pull-right(href='#') Forgot password?
|
||||||
|
.text-left
|
||||||
|
label.checkbox
|
||||||
|
input(type='checkbox')
|
||||||
|
span Remember me
|
||||||
.row
|
.row
|
||||||
.col-xs-6.col-sm-6.col-md-6
|
.col-xs-6.col-sm-6.col-md-6
|
||||||
a.btn.btn-primary.btn-block(href='/auth/facebook')
|
a.btn.btn-primary.btn-block.facebook(href='/auth/facebook')
|
||||||
i.fa.fa-facebook
|
i.fa.fa-facebook
|
||||||
| Facebook
|
| Facebook
|
||||||
.col-xs-6.col-sm-6.col-md-6
|
.col-xs-6.col-sm-6.col-md-6
|
||||||
a.btn.btn-danger.btn-block(href='/auth/google')
|
a.btn.btn-danger.btn-block(href='/auth/google')
|
||||||
i.fa.fa-google-plus
|
i.fa.fa-google-plus
|
||||||
@ -23,19 +34,9 @@ block content
|
|||||||
a.btn.btn-default.btn-block(href='/auth/github')
|
a.btn.btn-default.btn-block(href='/auth/github')
|
||||||
i.fa.fa-github
|
i.fa.fa-github
|
||||||
| GitHub
|
| GitHub
|
||||||
.login-or
|
p Don't have an account yet?
|
||||||
hr.hr-or
|
a(href='signup1.html') Sign up now
|
||||||
span.span-or or
|
|
||||||
form(role='form', method='POST')
|
|
||||||
.form-group
|
|
||||||
label(for='email') Email
|
|
||||||
input.form-control(type='text', name='email', id='email', placeholder='Email', autofocus='')
|
|
||||||
.form-group
|
|
||||||
a.pull-right(href='#') Forgot password?
|
|
||||||
label(for='password') Password
|
|
||||||
input.form-control(type='password', name='password', id='password', placeholder='Password')
|
|
||||||
.form-group
|
|
||||||
button.btn.btn.btn-success(type='submit') Log In
|
|
||||||
|
|
||||||
if messages.length
|
if messages.length
|
||||||
.alert.alert-danger
|
.alert.alert-danger
|
||||||
|
Reference in New Issue
Block a user