From 9f425d9fe4f672a948738b50fc3b5970cdf3355b Mon Sep 17 00:00:00 2001 From: echarp Date: Mon, 7 Jul 2014 20:53:24 +0200 Subject: [PATCH] =?UTF-8?q?La=20liste=20de=20lugs=20d'une=20r=C3=A9gion=20?= =?UTF-8?q?est=20maintenant=20g=C3=A9r=C3=A9e=20comme=20une=20sidebar=20ht?= =?UTF-8?q?ml5,=20et=20cach=C3=A9e=20sur=20les=20=C3=A9crans=20de=20faible?= =?UTF-8?q?=20largeur?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/assets/stylesheets/mobile.css.sass | 7 ++++++- app/views/events/show.html.haml | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/app/assets/stylesheets/mobile.css.sass b/app/assets/stylesheets/mobile.css.sass index 85694b34..2ec84ae1 100644 --- a/app/assets/stylesheets/mobile.css.sass +++ b/app/assets/stylesheets/mobile.css.sass @@ -2,6 +2,9 @@ body.events.index table font-size: larger + sidebar#lug-list + width: auto + @media all and (max-width: 1024px) body.events.index table width: 100% @@ -10,7 +13,6 @@ body border: none margin: 0 - padding: 0 header.top h1 margin-top: 0 main ul @@ -54,3 +56,6 @@ margin-left: 1em li list-style-type: disc + + sidebar + display: none diff --git a/app/views/events/show.html.haml b/app/views/events/show.html.haml index b48f9e9f..fde1b8e8 100644 --- a/app/views/events/show.html.haml +++ b/app/views/events/show.html.haml @@ -3,7 +3,7 @@ = @event.title - if @event.persisted? && request.format == 'text/html' && controller.controller_name != 'moderations' && controller.controller_name != 'notes' && controller.action_name != 'edit' && controller.action_name != 'cancel' - #lug-list + %sidebar#lug-list %h1=t '.lug-list' - if @event.related_region %ul