From 236fbc1240797c67b1f15e0c80fa7ab0c3fb36fc Mon Sep 17 00:00:00 2001 From: Philippe Barbosa Date: Thu, 3 Mar 2016 19:25:47 +0100 Subject: [PATCH] Sidebar, user styles --- .../static/scss/components/_sidebar.scss | 17 +++++++ app/festival/static/scss/modules/user.scss | 5 ++ .../accounts/includes/user_panel.html | 47 +++++++++++-------- .../agenda/includes/filter_panel.html | 16 +++---- app/templates/includes/language_selector.html | 28 +++++------ app/templates/includes/user_panel.html | 18 +++---- 6 files changed, 81 insertions(+), 50 deletions(-) create mode 100755 app/festival/static/scss/components/_sidebar.scss create mode 100644 app/festival/static/scss/modules/user.scss diff --git a/app/festival/static/scss/components/_sidebar.scss b/app/festival/static/scss/components/_sidebar.scss new file mode 100755 index 00000000..70cb9e89 --- /dev/null +++ b/app/festival/static/scss/components/_sidebar.scss @@ -0,0 +1,17 @@ +// **************************************************************** +// _Sidebar +// **************************************************************** + +.sidebar__title { + text-transform: uppercase; + display: block; + font-size: 1rem; + margin: 1.3rem 0 0.5rem; + &:after { + content: ""; + display: block; + width: 100%; + height: 1px; + background: $main_color; + } +} \ No newline at end of file diff --git a/app/festival/static/scss/modules/user.scss b/app/festival/static/scss/modules/user.scss new file mode 100644 index 00000000..2dd10a95 --- /dev/null +++ b/app/festival/static/scss/modules/user.scss @@ -0,0 +1,5 @@ +.user__panel { + margin: 1rem auto; + padding: .5rem 1rem; + background: #fff; +} \ No newline at end of file diff --git a/app/templates/accounts/includes/user_panel.html b/app/templates/accounts/includes/user_panel.html index 4ae18505..600a07e2 100644 --- a/app/templates/accounts/includes/user_panel.html +++ b/app/templates/accounts/includes/user_panel.html @@ -1,24 +1,33 @@ {% load i18n mezzanine_tags accounts_tags %} {% if request.user.is_authenticated %} -

- {% trans "Logged in as: " %} - {% url "profile" request.user.username as profile_url %} - {% if profile_url %} - {{ request.user|username_or:"email" }} -

- - {% trans "Update profile" %} - {% else %} - {{ request.user|username_or:"email" }} -

- {% endif %} - - {% trans "Log out" %} +
+ {% trans "Logged in as: " %} + {% url "profile" request.user.username as profile_url %} + {% if profile_url %} + {{ request.user|username_or:"email" }} +

+ + {% else %} + {{ request.user|username_or:"email" }} +

+ {% endif %} + +
{% else %} - - {% trans "Log in" %} -  {% trans "or" %}  - - {% trans "Sign up" %} +
+ +
{% endif %} diff --git a/app/templates/agenda/includes/filter_panel.html b/app/templates/agenda/includes/filter_panel.html index e8eab0f3..fbc0cd6c 100644 --- a/app/templates/agenda/includes/filter_panel.html +++ b/app/templates/agenda/includes/filter_panel.html @@ -3,10 +3,10 @@ {% block upcoming_events %} {% upcoming_events 5 as upcoming_events %} {% if upcoming_events %} -

{% trans "Upcoming Events" %}

+ @@ -16,7 +16,7 @@ {% block recent_events %} {% recent_events 5 as recent_events %} {% if recent_events %} -

{% trans "Recent Events" %}

+ {% endif %} @@ -45,7 +45,7 @@ {% block event_locations %} {% event_locations as locations %} {% if locations %} -

{% trans "Locations" %}

+