Travail sur affichage mobile

This commit is contained in:
echarp 2014-11-29 19:48:10 +01:00
parent d318e1d91e
commit 3995e22047
6 changed files with 27 additions and 8 deletions

View File

@ -17,6 +17,6 @@ $(document).ready ->
$(this).find('.sparkline').sparkline vals, $(this).find('.sparkline').sparkline vals,
type: 'bar' type: 'bar'
height: '3em' height: '3em'
barWidth: '80%' barWidth: '100%'
barColor: '#9CC5EE' barColor: '#9CC5EE'
barSpacing: 2 barSpacing: 2

View File

@ -2,6 +2,7 @@
.quantity .quantity
text-align: right text-align: right
white-space: nowrap
table table
margin: 1em auto margin: 1em auto

View File

@ -17,7 +17,17 @@
form#lug_search form#lug_search
right: 0 right: 0
.formats, a#banner .formats, a#banner
margin: 0 margin: 0.6em auto
table, table.list, table.dates, table.list.dates
border-spacing: 0
tbody th
overflow: hidden
max-width: 3em
th, td
padding: 0 !important
font-size: smaller
border-width: 0px !important
@media all and (max-width: 900px) @media all and (max-width: 900px)
header.top header.top
@ -42,13 +52,13 @@
td td
border-width: 0 border-width: 0
table tr td
border-width: 0px !important
/* For small screen width */ /* For small screen width */
@media all and (max-width: 34em) @media all and (max-width: 34em)
body body
padding: 0 padding: 0
p
padding-left: 0.4em
padding-right: 0.4em
header.top header.top
ul.countries ul.countries
@ -77,11 +87,19 @@
display: none display: none
.day_number .day_number
float: right float: right
margin: 0
// Enough space for tactile displays // Enough space for tactile displays
li a, .fa-li li a, .fa-li
padding: 0.4em 0 padding: 0.4em 0
+inline-block() +inline-block()
dl
dt
min-width: auto
text-align: left
dd, dd.quantity
padding-right: 1em
aside aside
display: none display: none

View File

@ -56,7 +56,7 @@
%tbody %tbody
- Region.all.each do |region| - Region.all.each do |region|
%tr %tr
%th.month= region %th.region= region
- total = 0 - total = 0
- @years.each do |year| - @years.each do |year|
%td.quantity %td.quantity

View File

@ -142,7 +142,7 @@ it more readable or agreable.
index: index:
title: Statistics title: Statistics
all: Validated events all: Validated events
allModeration: Events waiting for validation allModeration: Waiting for validation
dates: Per date dates: Per date
regional: Per region regional: Per region
city: Per city city: Per city

View File

@ -138,7 +138,7 @@ fr:
index: index:
title: Statistiques title: Statistiques
all: Événements validés all: Événements validés
allModeration: Événements en cours de modération allModeration: En cours de modération
dates: Par date dates: Par date
regional: Par région regional: Par région
city: Par ville city: Par ville