Changes to the main display: the title is flushed left.

Plus the map footer item is moved to be just below the main calendar view
This commit is contained in:
echarp 2017-05-20 17:23:57 +02:00
parent 7f2b5a7a6e
commit 6924f7ec3c
19 changed files with 90472 additions and 23 deletions

View File

@ -1,7 +1,6 @@
$(document).on 'turbolinks:load', -> $(document).on 'turbolinks:load', ->
# Setup the graphical editor for event's description # Setup the graphical editor for event's description
tinyMCE.init tinyMCE.init
width: 'auto',
schema: 'html5', schema: 'html5',
branding: false, branding: false,
language: 'fr_FR', language: 'fr_FR',

View File

@ -76,9 +76,10 @@ h3.warning
border-radius: 1em border-radius: 1em
header.top header.top
text-align: left
img.logo img.logo
left: 2% float: left
position: absolute margin-right: 2%
h1 h1
margin: 0 margin: 0
font-size: 2.1em font-size: 2.1em

View File

@ -31,6 +31,7 @@
.mce-tinymce .mce-tinymce
display: inline-block display: inline-block
font-size: inherit font-size: inherit
max-width: 60em
font-family: inherit font-family: inherit
border-radius: 0.4em border-radius: 0.4em
border-top-left-radius: 0 border-top-left-radius: 0

View File

@ -21,10 +21,7 @@
@media all and (max-width: 900px) @media all and (max-width: 900px)
header.top header.top
nav nav
top: 0 font-size: smaller
font-size: x-small
margin-top: 0
margin-right: 0
h1 h1
padding-top: 0.5em padding-top: 0.5em
@ -50,12 +47,13 @@
padding-right: 0.4em padding-right: 0.4em
header.top header.top
img.logo text-align: center
float: left
position: inherit
nav nav
display: none display: none
img.logo
margin-right: 0
h1 h1
padding-top: 0
letter-spacing: initial letter-spacing: initial
h2 h2
font-size: initial font-size: initial

View File

@ -1,8 +1,5 @@
.region_selector .region_selector
top: 0.2em float: right
right: 4em
position: absolute
font-size: smaller
& > ul > li & > ul > li
float: left float: left
ul ul

View File

@ -39,6 +39,8 @@
.links .links
= raw t '.calendar_in', = raw t '.calendar_in',
map: link_to(t('.map'), maps_path(tag: params[:tag],
region: params[:region])),
rss: link_to('RSS', events_path(:rss, rss: link_to('RSS', events_path(:rss,
tag: params[:tag], region: params[:region])), tag: params[:tag], region: params[:region])),
webcal: link_to('webcal', events_path(tag: params[:tag], webcal: link_to('webcal', events_path(tag: params[:tag],

View File

@ -41,9 +41,6 @@
%em.fa.fa-users %em.fa.fa-users
= t '.propose_orga' = t '.propose_orga'
%br/ %br/
= link_to maps_path do
%em.fa.fa-map-marker
= t '.map'
= link_to tags_path do = link_to tags_path do
%em.fa.fa-tags %em.fa.fa-tags
= t '.tags' = t '.tags'

View File

@ -1,5 +1,5 @@
%h2 %h2
%em.fa.fa-map-marker %em.fa.fa-map
= title t '.title' = title t '.title'
- if params[:tag] - if params[:tag]
%em.fa.fa-tag %em.fa.fa-tag

View File

@ -1,5 +1,5 @@
%h2 %h2
%em.fa.fa-map-marker %em.fa.fa-map
= t 'layouts.application.map' = t 'layouts.application.map'
%em.fa{ class: "fa-#{@kind.icon}" } %em.fa{ class: "fa-#{@kind.icon}" }
= Kind.human_attribute_name("name_#{@kind.name}") = Kind.human_attribute_name("name_#{@kind.name}")

View File

@ -33,8 +33,9 @@ en:
title: Hello, title: Hello,
events: events:
index: index:
calendar_in: This calendar in <em class='fa fa-rss'></em> %{rss}, %{webcal} or %{ical} calendar_in: This calendar in <em class='fa fa-map'></em> %{map}, <em class='fa fa-rss'></em> %{rss}, <em class='fa fa-calendar-o'></em> %{webcal}/%{ical}
nb_events: "%{count} events" nb_events: "%{count} events"
map: Map
filter: Advanced filter filter: Advanced filter
show: show:
orga-list: Region's orgas orga-list: Region's orgas

View File

@ -33,8 +33,9 @@ fr:
title: Bonjour, title: Bonjour,
events: events:
index: index:
calendar_in: Ce calendrier en <em class='fa fa-rss'></em> %{rss}, %{webcal} ou %{ical} calendar_in: Ce calendrier en <em class='fa fa-map'></em> %{map}, <em class='fa fa-rss'></em> %{rss}, <em class='fa fa-calendar-o'></em> %{webcal}/%{ical}
nb_events: "%{count} événements" nb_events: "%{count} événements"
map: Carte
filter: Filtrage avancé filter: Filtrage avancé
show: show:
orga-list: Orgas de la région orga-list: Orgas de la région

View File

@ -33,8 +33,9 @@ pt-BR:
title: Olá, title: Olá,
events: events:
index: index:
calendar_in: Este calendário em <em class='fa fa-rss'></em> %{rss}, %{webcal} ou %{ical} calendar_in: Este calendário em <em class='fa fa-map'></em> %{map}, <em class='fa fa-rss'></em> %{rss}, <em class='fa fa-calendar-o'></em> %{webcal}/%{ical}
nb_events: "%{count} eventos" nb_events: "%{count} eventos"
map: Mapa
filter: Busca avançada filter: Busca avançada
show: show:
orga-list: Organizações no estado orga-list: Organizações no estado

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,21 @@
(function() {
$(document).on('turbolinks:load', function() {
return tinyMCE.init({
schema: 'html5',
branding: false,
language: 'fr_FR',
selector: 'textarea.description',
content_css: '/assets/application-a733393e38ec45263b01a08184b0be59607f000dfc0086333553b222890f5587.css',
entity_encoding: 'raw',
add_unload_trigger: true,
browser_spellcheck: true,
toolbar: [' cut copy paste | undo redo | searchreplace | link image media charmap table | code visualblocks preview fullscreen', ' removeformat | bold italic strikethrough | superscript subscript | bullist numlist | alignleft aligncenter alignright alignjustify alignnone | outdent indent'],
plugins: 'lists, advlist, autolink, link, image, charmap, paste, print, preview, table, fullscreen, searchreplace, media, insertdatetime, visualblocks, wordcount, contextmenu, code'
});
});
$(document).on('turbolinks:before-cache', function() {
return tinymce.remove();
});
}).call(this);