Style login page
This commit is contained in:
parent
9b9e0488d3
commit
e0520e265d
@ -1,206 +1,206 @@
|
|||||||
#login-container
|
.login-container
|
||||||
width: 60%
|
align-items: center
|
||||||
margin: 40px auto
|
display: flex
|
||||||
padding: 15px 35px 25px 35px
|
// height: 100%
|
||||||
|
justify-content: center
|
||||||
|
// width: 100%
|
||||||
|
position: fixed
|
||||||
|
top: 0
|
||||||
|
bottom: 0
|
||||||
|
left: 0
|
||||||
|
right: 0
|
||||||
|
|
||||||
+container-box
|
.login-box
|
||||||
|
+container-box
|
||||||
|
margin: 15px
|
||||||
|
max-width: 600px
|
||||||
|
min-width: 300px
|
||||||
|
padding: 15px 35px
|
||||||
|
|
||||||
.login-title,
|
.login-title,
|
||||||
.settings-title
|
.settings-title
|
||||||
text-align: center
|
color: $color-primary
|
||||||
color: $color-primary
|
font:
|
||||||
font:
|
size: 2.2em
|
||||||
size: 2.2em
|
weight: 300
|
||||||
weight: 300
|
padding: 15px
|
||||||
|
text-align: center
|
||||||
|
|
||||||
padding: 15px 0
|
.login-info
|
||||||
|
color: $color-text-dark-primary
|
||||||
|
font-weight: 300
|
||||||
|
text-align: center
|
||||||
|
|
||||||
.login-info
|
.login-providers
|
||||||
font:
|
align-items: center
|
||||||
weight: 300
|
display: flex
|
||||||
|
flex-direction: column
|
||||||
|
justify-content: center
|
||||||
|
margin: 15px
|
||||||
|
|
||||||
color: $color-text-dark-primary
|
.login-provider-button
|
||||||
text-align: center
|
background-color: $color-primary
|
||||||
padding-bottom: 25px
|
border: thin solid $color-primary
|
||||||
|
border-radius: 3px
|
||||||
|
color: #fff
|
||||||
|
display: block
|
||||||
|
margin-bottom: 10px
|
||||||
|
min-width: 200px
|
||||||
|
padding: 5px 10px
|
||||||
|
text-align: center
|
||||||
|
|
||||||
.buttons
|
&.facebook
|
||||||
display: flex
|
background-color: #3b5998
|
||||||
margin: 35px auto 35px auto
|
border-color: transparent
|
||||||
width: 100%
|
color: #fff
|
||||||
align-items: center
|
|
||||||
justify-content: center
|
|
||||||
|
|
||||||
.login-button-container
|
|
||||||
margin: 0 25px
|
|
||||||
text-align: center
|
|
||||||
position: relative
|
|
||||||
|
|
||||||
a.forgot
|
|
||||||
width: 100%
|
|
||||||
position: absolute
|
|
||||||
bottom: -25px
|
|
||||||
left: 50%
|
|
||||||
transform: translateX(-50%)
|
|
||||||
display: block
|
|
||||||
font-size: .8em
|
|
||||||
color: $color-text-dark-secondary
|
|
||||||
|
|
||||||
.button-login,
|
|
||||||
.button-submit
|
|
||||||
min-width: 200px
|
|
||||||
+button($color-primary, 3px, true)
|
|
||||||
|
|
||||||
.button-register
|
|
||||||
min-width: 150px
|
|
||||||
+button($color-primary, 3px)
|
|
||||||
|
|
||||||
#settings
|
#settings
|
||||||
display: flex
|
display: flex
|
||||||
align-items: stretch
|
align-items: stretch
|
||||||
margin: 25px auto
|
margin: 25px auto
|
||||||
|
|
||||||
#settings-sidebar
|
#settings-sidebar
|
||||||
width: 30%
|
width: 30%
|
||||||
+container-box
|
+container-box
|
||||||
margin-right: 15px
|
margin-right: 15px
|
||||||
|
|
||||||
.settings-content
|
.settings-content
|
||||||
padding: 0
|
padding: 0
|
||||||
ul
|
ul
|
||||||
padding: 0
|
padding: 0
|
||||||
margin: 0
|
margin: 0
|
||||||
list-style: none
|
list-style: none
|
||||||
|
|
||||||
a
|
a
|
||||||
&:hover
|
&:hover
|
||||||
text-decoration: none
|
text-decoration: none
|
||||||
li
|
li
|
||||||
background-color: lighten($color-background, 5%)
|
background-color: lighten($color-background, 5%)
|
||||||
li
|
li
|
||||||
padding: 25px
|
padding: 25px
|
||||||
margin: 0
|
margin: 0
|
||||||
border-bottom: thin solid $color-background
|
border-bottom: thin solid $color-background
|
||||||
border-left: thick solid transparent
|
border-left: thick solid transparent
|
||||||
transition: all 100ms ease-in-out
|
transition: all 100ms ease-in-out
|
||||||
|
|
||||||
i
|
i
|
||||||
font-size: 1.1em
|
font-size: 1.1em
|
||||||
padding-right: 15px
|
padding-right: 15px
|
||||||
|
|
||||||
.active
|
.active
|
||||||
li
|
li
|
||||||
background-color: lighten($color-background, 5%)
|
background-color: lighten($color-background, 5%)
|
||||||
border-left: thick solid $color-info
|
border-left: thick solid $color-info
|
||||||
|
|
||||||
|
|
||||||
#settings-container
|
#settings-container
|
||||||
width: 70%
|
width: 70%
|
||||||
+container-box
|
+container-box
|
||||||
|
|
||||||
|
|
||||||
.settings-header
|
.settings-header
|
||||||
background-color: $color-background
|
background-color: $color-background
|
||||||
border-top-left-radius: 3px
|
border-top-left-radius: 3px
|
||||||
border-top-right-radius: 3px
|
border-top-right-radius: 3px
|
||||||
|
|
||||||
.settings-title
|
.settings-title
|
||||||
padding: 25px 15px 5px 15px
|
padding: 25px 15px 5px 15px
|
||||||
font:
|
font:
|
||||||
size: 2em
|
size: 2em
|
||||||
weight: 300
|
weight: 300
|
||||||
|
|
||||||
.settings-content
|
.settings-content
|
||||||
padding: 25px
|
padding: 25px
|
||||||
|
|
||||||
p
|
p
|
||||||
color: $color-text-dark-primary
|
color: $color-text-dark-primary
|
||||||
|
|
||||||
.settings-billing-info
|
.settings-billing-info
|
||||||
font-size: 1.2em
|
font-size: 1.2em
|
||||||
|
|
||||||
.subscription-active
|
.subscription-active
|
||||||
color: $color-success
|
color: $color-success
|
||||||
padding-bottom: 20px
|
padding-bottom: 20px
|
||||||
.subscription-demo
|
.subscription-demo
|
||||||
color: $color-info
|
color: $color-info
|
||||||
margin-top: 0
|
margin-top: 0
|
||||||
.subscription-missing
|
.subscription-missing
|
||||||
color: $color-danger
|
color: $color-danger
|
||||||
margin-top: 0
|
margin-top: 0
|
||||||
|
|
||||||
.button-submit
|
.button-submit
|
||||||
display: block
|
display: block
|
||||||
clear: both
|
clear: both
|
||||||
min-width: 200px
|
min-width: 200px
|
||||||
margin: 0 auto
|
margin: 0 auto
|
||||||
+button($color-primary, 3px, true)
|
+button($color-primary, 3px, true)
|
||||||
|
|
||||||
|
|
||||||
#settings-container
|
#settings-container
|
||||||
#settings-form
|
#settings-form
|
||||||
width: 100%
|
width: 100%
|
||||||
.settings-form
|
.settings-form
|
||||||
display: flex
|
display: flex
|
||||||
align-items: center
|
align-items: center
|
||||||
justify-content: center
|
justify-content: center
|
||||||
|
|
||||||
.left, .right
|
.left, .right
|
||||||
padding: 25px 0
|
padding: 25px 0
|
||||||
|
|
||||||
.left
|
.left
|
||||||
width: 60%
|
width: 60%
|
||||||
float: left
|
float: left
|
||||||
|
|
||||||
.right
|
.right
|
||||||
width: 40%
|
width: 40%
|
||||||
float: right
|
float: right
|
||||||
text-align: center
|
text-align: center
|
||||||
|
|
||||||
.settings-avatar
|
.settings-avatar
|
||||||
img
|
img
|
||||||
border-radius: 3px
|
border-radius: 3px
|
||||||
span
|
span
|
||||||
display: block
|
display: block
|
||||||
padding: 15px 0
|
padding: 15px 0
|
||||||
font:
|
font:
|
||||||
size: .9em
|
size: .9em
|
||||||
|
|
||||||
.settings-password
|
.settings-password
|
||||||
color: $color-text-dark-primary
|
color: $color-text-dark-primary
|
||||||
|
|
||||||
|
|
||||||
#user-edit-container
|
#user-edit-container
|
||||||
padding: 15px
|
padding: 15px
|
||||||
|
|
||||||
#user-edit-header
|
#user-edit-header
|
||||||
.user-edit-name
|
.user-edit-name
|
||||||
font-size: 1.5em
|
font-size: 1.5em
|
||||||
.user-edit-username,
|
.user-edit-username,
|
||||||
.user-edit-email,
|
.user-edit-email,
|
||||||
.user-edit-id
|
.user-edit-id
|
||||||
color: $color-text-dark-secondary
|
color: $color-text-dark-secondary
|
||||||
padding: 3px 0
|
padding: 3px 0
|
||||||
|
|
||||||
i
|
i
|
||||||
margin-right: 5px
|
margin-right: 5px
|
||||||
|
|
||||||
#user-edit-form
|
#user-edit-form
|
||||||
padding: 10px 0
|
padding: 10px 0
|
||||||
|
|
||||||
#submit_edit_user
|
#submit_edit_user
|
||||||
+button($color-success, 3px, true)
|
+button($color-success, 3px, true)
|
||||||
|
|
||||||
#button-cancel
|
#button-cancel
|
||||||
+button(#aaa, 3px)
|
+button(#aaa, 3px)
|
||||||
margin: 0 10px
|
margin: 0 10px
|
||||||
|
|
||||||
#user-edit-notification
|
#user-edit-notification
|
||||||
float: right
|
float: right
|
||||||
color: $color-text-dark-secondary
|
color: $color-text-dark-secondary
|
||||||
padding: 10px 0
|
padding: 10px 0
|
||||||
|
|
||||||
&.success
|
&.success
|
||||||
color: $color-success
|
color: $color-success
|
||||||
&.fail
|
&.fail
|
||||||
color: $color-danger
|
color: $color-danger
|
||||||
|
|
||||||
|
@ -2,16 +2,30 @@
|
|||||||
| {% block page_title %}Login{% endblock %}
|
| {% block page_title %}Login{% endblock %}
|
||||||
|
|
||||||
| {% block body %}
|
| {% block body %}
|
||||||
h1 Logins
|
|
||||||
| {% for login_provider, login_provider_conf in config['OAUTH_CREDENTIALS'].items() %}
|
|
||||||
| {% if login_provider == 'blender_id' %}
|
|
||||||
| {{login_provider}} button
|
|
||||||
| {% elif login_provider == 'facebook' %}
|
|
||||||
| {{login_provider}} button
|
|
||||||
| {% elif login_provider == 'google' %}
|
|
||||||
| {% endif %}
|
|
||||||
p
|
|
||||||
a(href="{{url_for('users.oauth_authorize', provider=login_provider)}}") Login
|
|
||||||
|
|
||||||
| {% endfor %}
|
.login-container
|
||||||
|
.login-box
|
||||||
|
.login-title Welcome
|
||||||
|
|
||||||
|
.login-info
|
||||||
|
| Login using one of the following providers:
|
||||||
|
|
||||||
|
.login-providers
|
||||||
|
| {% for login_provider, login_provider_conf in config['OAUTH_CREDENTIALS'].items() %}
|
||||||
|
|
||||||
|
| {% set login_provider_name = login_provider | undertitle %}
|
||||||
|
|
||||||
|
| {% if 'name' in login_provider_conf %}
|
||||||
|
| {% set login_provider_name = login_provider_conf['name'] %}
|
||||||
|
| {% endif %}
|
||||||
|
|
||||||
|
a(class="{{login_provider}} login-provider-button",
|
||||||
|
title="Login using {{ login_provider_name }}",
|
||||||
|
href="{{url_for('users.oauth_authorize', provider=login_provider)}}")
|
||||||
|
| {{ login_provider_name }}
|
||||||
|
|
||||||
|
| {% endfor %}
|
||||||
|
|
||||||
| {% endblock body %}
|
| {% endblock body %}
|
||||||
|
|
||||||
|
| {% block footer_container %}{% endblock footer_container %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user