Profile styling, layout and cleanup.
This commit is contained in:
parent
6b29c70212
commit
0f7f7d5a66
@ -67,131 +67,6 @@
|
|||||||
&:hover
|
&:hover
|
||||||
background-color: lighten($provider-color-google, 7%)
|
background-color: lighten($provider-color-google, 7%)
|
||||||
|
|
||||||
#settings
|
|
||||||
#settings-sidebar
|
|
||||||
+media-xs
|
|
||||||
width: 100%
|
|
||||||
|
|
||||||
+container-box
|
|
||||||
background-color: $color-background-light
|
|
||||||
color: $color-text
|
|
||||||
margin-right: 15px
|
|
||||||
width: 30%
|
|
||||||
|
|
||||||
.settings-content
|
|
||||||
padding: 0
|
|
||||||
|
|
||||||
ul
|
|
||||||
list-style: none
|
|
||||||
margin: 0
|
|
||||||
padding: 0
|
|
||||||
|
|
||||||
a
|
|
||||||
&:hover
|
|
||||||
text-decoration: none
|
|
||||||
|
|
||||||
li
|
|
||||||
background-color: lighten($color-background, 5%)
|
|
||||||
|
|
||||||
li
|
|
||||||
border-bottom: thin solid $color-background
|
|
||||||
border-left: thick solid transparent
|
|
||||||
margin: 0
|
|
||||||
padding: 25px
|
|
||||||
transition: all 100ms ease-in-out
|
|
||||||
|
|
||||||
i
|
|
||||||
font-size: 1.1em
|
|
||||||
padding-right: 15px
|
|
||||||
|
|
||||||
.active
|
|
||||||
li
|
|
||||||
background-color: lighten($color-background, 5%)
|
|
||||||
border-left: thick solid $color-info
|
|
||||||
|
|
||||||
|
|
||||||
#settings-container
|
|
||||||
+media-xs
|
|
||||||
width: 100%
|
|
||||||
|
|
||||||
+container-box
|
|
||||||
background-color: $color-background-light
|
|
||||||
width: 70%
|
|
||||||
|
|
||||||
.settings-header
|
|
||||||
background-color: $color-background
|
|
||||||
border-top-left-radius: 3px
|
|
||||||
border-top-right-radius: 3px
|
|
||||||
|
|
||||||
.settings-title
|
|
||||||
font:
|
|
||||||
size: 1.5em
|
|
||||||
weight: 300
|
|
||||||
padding: 10px 15px 10px 25px
|
|
||||||
|
|
||||||
.settings-content
|
|
||||||
padding: 25px
|
|
||||||
|
|
||||||
.settings-billing-info
|
|
||||||
font-size: 1.2em
|
|
||||||
|
|
||||||
.subscription-active
|
|
||||||
color: $color-success
|
|
||||||
padding-bottom: 20px
|
|
||||||
.subscription-demo
|
|
||||||
color: $color-info
|
|
||||||
margin-top: 0
|
|
||||||
.subscription-missing
|
|
||||||
color: $color-danger
|
|
||||||
margin-top: 0
|
|
||||||
|
|
||||||
.button-submit
|
|
||||||
clear: both
|
|
||||||
display: block
|
|
||||||
min-width: 200px
|
|
||||||
margin: 0 auto
|
|
||||||
+button($color-primary, 3px, true)
|
|
||||||
|
|
||||||
|
|
||||||
#settings-container
|
|
||||||
#settings-form
|
|
||||||
width: 100%
|
|
||||||
|
|
||||||
|
|
||||||
.settings-form
|
|
||||||
align-items: center
|
|
||||||
display: flex
|
|
||||||
justify-content: center
|
|
||||||
|
|
||||||
.left, .right
|
|
||||||
padding: 25px 0
|
|
||||||
|
|
||||||
.left
|
|
||||||
width: 60%
|
|
||||||
float: left
|
|
||||||
|
|
||||||
.right
|
|
||||||
width: 40%
|
|
||||||
float: right
|
|
||||||
text-align: center
|
|
||||||
|
|
||||||
label
|
|
||||||
color: $color-text
|
|
||||||
display: block
|
|
||||||
|
|
||||||
.settings-avatar
|
|
||||||
img
|
|
||||||
border-radius: 3px
|
|
||||||
|
|
||||||
span
|
|
||||||
display: block
|
|
||||||
padding: 15px 0
|
|
||||||
font:
|
|
||||||
size: .9em
|
|
||||||
|
|
||||||
.settings-password
|
|
||||||
color: $color-text-dark-primary
|
|
||||||
|
|
||||||
|
|
||||||
#user-edit-container
|
#user-edit-container
|
||||||
padding: 15px
|
padding: 15px
|
||||||
|
@ -1,36 +1,34 @@
|
|||||||
| {% extends 'layout.html' %}
|
| {% extends 'layout.html' %}
|
||||||
|
include ../../mixins/components
|
||||||
|
|
||||||
//- Don't extend this base file directly. Instead, extend page.html so that Pillar extensions
|
//- Don't extend this base file directly. Instead, extend page.html so that Pillar extensions
|
||||||
//- can provide overrides.
|
//- can provide overrides.
|
||||||
| {% block body %}
|
| {% block body %}
|
||||||
.container
|
.container.py-4
|
||||||
#settings.d-flex.py-4.flex-xs-column
|
.row
|
||||||
#settings-sidebar
|
.col-md-3
|
||||||
| {% block settings_sidebar %}
|
| {% block settings_sidebar %}
|
||||||
.settings-header
|
+nav-secondary('Settings')(class="nav-secondary-vertical bg-light")
|
||||||
.settings-title Settings
|
| {% block settings_sidebar_menu %}
|
||||||
.settings-content
|
+nav-secondary-link(
|
||||||
ul
|
class="{% if title == 'profile' %}active{% endif %} border-top",
|
||||||
| {% block settings_sidebar_menu %}
|
href="{{ url_for('settings.profile') }}")
|
||||||
a(class="{% if title == 'profile' %}active{% endif %}",
|
i.pr-3.pi-vcard
|
||||||
href="{{ url_for('settings.profile') }}")
|
span Profile
|
||||||
li
|
| {% endblock settings_sidebar_menu %}
|
||||||
i.pi-vcard
|
|
||||||
| Profile
|
| {% block settings_sidebar_menu_bottom %}
|
||||||
| {% endblock settings_sidebar_menu %}
|
+nav-secondary-link(
|
||||||
| {% block settings_sidebar_menu_bottom %}
|
class="{% if title == 'roles' %}active{% endif %}",
|
||||||
a(class="{% if title == 'roles' %}active{% endif %}",
|
href="{{ url_for('settings.roles') }}")
|
||||||
href="{{ url_for('settings.roles') }}")
|
i.pr-3.pi-cog
|
||||||
li
|
span Roles & Capabilities
|
||||||
i.pi-cog
|
| {% endblock settings_sidebar_menu_bottom %}
|
||||||
| Roles & Capabilities
|
|
||||||
| {% endblock settings_sidebar_menu_bottom %}
|
|
||||||
| {% endblock %}
|
| {% endblock %}
|
||||||
|
|
||||||
#settings-container
|
.col-md-9
|
||||||
.settings-header
|
h3.py-1 {% block settings_page_title %}{{ _("Title not set") }}{% endblock %}
|
||||||
.settings-title {% block settings_page_title %}{{ _("Title not set") }}{% endblock %}
|
|
||||||
|
|
||||||
.settings-content
|
| {% block settings_page_content %}No content set, update your template.{% endblock %}
|
||||||
| {% block settings_page_content %}No content set, update your template.{% endblock %}
|
|
||||||
|
|
||||||
| {% endblock %}
|
| {% endblock %}
|
||||||
|
@ -21,7 +21,7 @@ style.
|
|||||||
| {% block settings_page_content %}
|
| {% block settings_page_content %}
|
||||||
.settings-form
|
.settings-form
|
||||||
form#settings-form(method='POST', action="{{url_for('settings.profile')}}")
|
form#settings-form(method='POST', action="{{url_for('settings.profile')}}")
|
||||||
.left
|
.pb-3
|
||||||
.form-group
|
.form-group
|
||||||
| {{ form.username.label }}
|
| {{ form.username.label }}
|
||||||
| {{ form.username(size=20, class='form-control') }}
|
| {{ form.username(size=20, class='form-control') }}
|
||||||
@ -45,14 +45,13 @@ style.
|
|||||||
| {{ current_user.badges_html|safe }}
|
| {{ current_user.badges_html|safe }}
|
||||||
p.hint-text Note that updates to these badges may take a few minutes to be visible here.
|
p.hint-text Note that updates to these badges may take a few minutes to be visible here.
|
||||||
| {% endif %}
|
| {% endif %}
|
||||||
.right
|
.py-3
|
||||||
.settings-avatar
|
a(href="https://gravatar.com/")
|
||||||
a(href="https://gravatar.com/")
|
img.rounded-circle(src="{{ current_user.gravatar }}")
|
||||||
img(src="{{ current_user.gravatar }}")
|
span.p-3 {{ _("Change Gravatar") }}
|
||||||
span {{ _("Change Gravatar") }}
|
|
||||||
|
|
||||||
.buttons
|
.py-3
|
||||||
button.btn.btn-outline-success.button-submit(type='submit')
|
button.btn.btn-outline-success.px-5.button-submit(type='submit')
|
||||||
i.pi-check
|
i.pi-check.pr-2
|
||||||
| {{ _("Save Changes") }}
|
| {{ _("Save Changes") }}
|
||||||
| {% endblock %}
|
| {% endblock %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user