From 32739616055dbf94d8905028069527af9445a70e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Je=CC=81re=CC=81my=20Fabre?= Date: Fri, 14 Oct 2016 12:36:30 +0200 Subject: [PATCH] New events filters (sidebar) --- .../sass/modules/boxes/_event-line-box.scss | 17 ++++++-- .../src/sass/modules/navs/_nav-tree.scss | 14 ++++++ app/templates/agenda/event_list.html | 43 ++++++++++++++----- .../agenda/includes/event_linecard.html | 18 ++++---- 4 files changed, 70 insertions(+), 22 deletions(-) diff --git a/app/static/src/sass/modules/boxes/_event-line-box.scss b/app/static/src/sass/modules/boxes/_event-line-box.scss index e47dcc99..63eb8302 100644 --- a/app/static/src/sass/modules/boxes/_event-line-box.scss +++ b/app/static/src/sass/modules/boxes/_event-line-box.scss @@ -28,10 +28,9 @@ $module: ".event-line-box"; @include line-height(1); @include typeface(serif); font-weight: weight(heavy); - - @include mq($until: sm) { - display: none; - } + + visibility: hidden; + height: 0; } @@ -58,6 +57,16 @@ $module: ".event-line-box"; margin-top: 0; @include margin-bottom(1); + a:not(.button) { + + border: 0; + + &:hover { + box-shadow: none; + } + + } + } &__desc { diff --git a/app/static/src/sass/modules/navs/_nav-tree.scss b/app/static/src/sass/modules/navs/_nav-tree.scss index 0b2f4fe4..ee48e106 100644 --- a/app/static/src/sass/modules/navs/_nav-tree.scss +++ b/app/static/src/sass/modules/navs/_nav-tree.scss @@ -29,6 +29,12 @@ $module: ".nav-tree"; } + &__separator { + + @include margin(2 0); + + } + &__link { display: block; @@ -50,6 +56,14 @@ $module: ".nav-tree"; @include padding-left(2); background: lighten($color_main, 20%); color: $color-black-light; + + &.active { + padding: 4px 20px; + @include padding-left(2); + color: $color-black-light; + background: lighten($color_main, 20%); + font-weight: weight(bold); + } } } diff --git a/app/templates/agenda/event_list.html b/app/templates/agenda/event_list.html index a512dd78..c9117768 100644 --- a/app/templates/agenda/event_list.html +++ b/app/templates/agenda/event_list.html @@ -62,6 +62,7 @@
+

{% if page %} {{ page.richtextpage.meta_title }} @@ -70,7 +71,29 @@ {% endif %}

-
+
+ +
+ +
+ +
+ +
+
-
- -
- -
+
diff --git a/app/templates/agenda/includes/event_linecard.html b/app/templates/agenda/includes/event_linecard.html index e8199f67..c6a5a5b6 100644 --- a/app/templates/agenda/includes/event_linecard.html +++ b/app/templates/agenda/includes/event_linecard.html @@ -2,15 +2,17 @@
-
+ {% ifchanged event.start.month %} - {% ifchanged event.start.month %} - {{ event.start|date:'F' }} - {% endifchanged %} +
-
+

{{ event.start|date:'F' }}

+ +
+ + {% endifchanged %} -
+
@@ -52,9 +54,9 @@ {% endif %}
{% endif %} -

+

{{ event.title }} -

+
{{ event.description|slice:":100" }}
-- 2.39.5