Le formulaire de recherche de lug est presque complet, la bannière april est descendue plus bas
This commit is contained in:
parent
e866578b9e
commit
541ede7fdc
@ -2,6 +2,7 @@
|
|||||||
@import "font-awesome"
|
@import "font-awesome"
|
||||||
|
|
||||||
*
|
*
|
||||||
|
height: auto
|
||||||
margin: 0 auto
|
margin: 0 auto
|
||||||
padding: 0
|
padding: 0
|
||||||
max-width: 100%
|
max-width: 100%
|
||||||
@ -92,10 +93,8 @@ header.top
|
|||||||
font-weight: normal
|
font-weight: normal
|
||||||
margin-bottom: 22px
|
margin-bottom: 22px
|
||||||
|
|
||||||
#banner img
|
|
||||||
height: auto
|
|
||||||
|
|
||||||
main
|
main
|
||||||
|
position: relative
|
||||||
*
|
*
|
||||||
max-width: 80em
|
max-width: 80em
|
||||||
h1
|
h1
|
||||||
@ -134,6 +133,7 @@ input, textarea, select, a.button
|
|||||||
color: black
|
color: black
|
||||||
margin: 3px 0
|
margin: 3px 0
|
||||||
border: 1px solid darkgray
|
border: 1px solid darkgray
|
||||||
|
outline: none
|
||||||
padding: 2px 4px
|
padding: 2px 4px
|
||||||
font-size: inherit
|
font-size: inherit
|
||||||
font-family: inherit
|
font-family: inherit
|
||||||
@ -142,6 +142,7 @@ input, textarea, select, a.button
|
|||||||
@include border-radius(0.4em)
|
@include border-radius(0.4em)
|
||||||
&:focus
|
&:focus
|
||||||
background-color: #F0F8FF
|
background-color: #F0F8FF
|
||||||
|
@include box-shadow(1px 1px 4px gray)
|
||||||
&[type=submit], &.button
|
&[type=submit], &.button
|
||||||
color: black
|
color: black
|
||||||
border: none
|
border: none
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
@import "compass"
|
@import "compass"
|
||||||
|
|
||||||
form.region_selector
|
form.region_selector
|
||||||
width: 98%
|
left: 0
|
||||||
|
width: 100%
|
||||||
position: absolute
|
position: absolute
|
||||||
max-width: 100%
|
max-width: 100%
|
||||||
margin-top: 2.45em
|
margin-top: 2.45em
|
||||||
@ -19,11 +20,10 @@ header.calendar-header
|
|||||||
a
|
a
|
||||||
margin: 0
|
margin: 0
|
||||||
a
|
a
|
||||||
margin: 0 6px
|
margin: 0 0.3em
|
||||||
font-weight: normal
|
font-weight: normal
|
||||||
&.month_selector
|
&.month_selector
|
||||||
display: block
|
display: block
|
||||||
font-size: 0.8em
|
|
||||||
font-weight: bolder
|
font-weight: bolder
|
||||||
margin-bottom: -2.1em
|
margin-bottom: -2.1em
|
||||||
&.year_selector
|
&.year_selector
|
||||||
@ -110,13 +110,16 @@ body.events.index table
|
|||||||
color: black
|
color: black
|
||||||
|
|
||||||
.formats
|
.formats
|
||||||
width: 90%
|
float: right
|
||||||
margin: 11px auto 28px
|
|
||||||
max-width: 100%
|
|
||||||
font-size: smaller
|
font-size: smaller
|
||||||
text-align: right
|
margin-right: 5%
|
||||||
padding-right: 2px
|
padding-right: 2px
|
||||||
|
|
||||||
|
a#banner
|
||||||
|
float: left
|
||||||
|
margin-left: 5%
|
||||||
|
padding-left: 2px
|
||||||
|
|
||||||
sidebar#lug-list
|
sidebar#lug-list
|
||||||
float: right
|
float: right
|
||||||
width: 16em
|
width: 16em
|
||||||
|
@ -1,32 +1,34 @@
|
|||||||
@import "compass"
|
@import "compass"
|
||||||
|
|
||||||
header
|
|
||||||
form#lug_search
|
|
||||||
top: 6em
|
|
||||||
right: 2em
|
|
||||||
position: absolute
|
|
||||||
font-size: x-large
|
|
||||||
h2
|
|
||||||
margin: 0
|
|
||||||
font-size: x-large
|
|
||||||
font-style: normal
|
|
||||||
label
|
|
||||||
display: none
|
|
||||||
input
|
|
||||||
border: solid thin #258
|
|
||||||
|
|
||||||
img.favicon
|
img.favicon
|
||||||
max-height: 2em
|
max-height: 2em
|
||||||
vertical-align: middle
|
vertical-align: middle
|
||||||
@include border-radius(3px)
|
@include border-radius(3px)
|
||||||
|
|
||||||
button.search
|
form#lug_search
|
||||||
|
right: 5%
|
||||||
|
position: absolute
|
||||||
|
font-size: x-large
|
||||||
|
text-align: right
|
||||||
|
margin-top: -1.2em
|
||||||
|
padding-right: 2px
|
||||||
|
label
|
||||||
|
display: none
|
||||||
|
input
|
||||||
|
border: solid thin #258
|
||||||
|
margin-left: -1.5em
|
||||||
|
padding-left: 1.5em
|
||||||
|
padding-right: 1.2em
|
||||||
|
background-color: transparent
|
||||||
|
button
|
||||||
|
margin-left: -1.4em
|
||||||
|
|
||||||
|
button.search
|
||||||
color: #258
|
color: #258
|
||||||
border: none
|
border: none
|
||||||
cursor: pointer
|
cursor: pointer
|
||||||
font-size: x-large
|
font-size: larger
|
||||||
margin-top: 0.2em
|
margin-top: 0.2em
|
||||||
margin-left: -1.3em
|
|
||||||
background-color: transparent
|
background-color: transparent
|
||||||
&:hover
|
&:hover
|
||||||
color: #2E97FF
|
color: #2E97FF
|
||||||
|
@ -5,10 +5,18 @@
|
|||||||
sidebar#lug-list
|
sidebar#lug-list
|
||||||
width: auto
|
width: auto
|
||||||
|
|
||||||
|
#advises
|
||||||
|
max-width: 60em
|
||||||
|
|
||||||
@media all and (max-width: 1024px)
|
@media all and (max-width: 1024px)
|
||||||
body.events.index table
|
body.events.index table
|
||||||
width: 100%
|
width: 100%
|
||||||
|
|
||||||
|
form#lug_search
|
||||||
|
right: 0
|
||||||
|
.formats, a#banner
|
||||||
|
margin: 0
|
||||||
|
|
||||||
@media all and (max-width: 900px)
|
@media all and (max-width: 900px)
|
||||||
body
|
body
|
||||||
border: none
|
border: none
|
||||||
@ -18,8 +26,8 @@
|
|||||||
main ul
|
main ul
|
||||||
margin-left: 0
|
margin-left: 0
|
||||||
|
|
||||||
#advises
|
form#lug_search
|
||||||
margin: 0 10%
|
font-size: smaller
|
||||||
|
|
||||||
body.events.index table
|
body.events.index table
|
||||||
font-size: smaller
|
font-size: smaller
|
||||||
@ -30,13 +38,17 @@
|
|||||||
li
|
li
|
||||||
list-style-type: none
|
list-style-type: none
|
||||||
|
|
||||||
#advises
|
|
||||||
margin: 0
|
|
||||||
|
|
||||||
table tr td
|
table tr td
|
||||||
border-width: 0px !important
|
border-width: 0px !important
|
||||||
|
|
||||||
|
/* For small screen width */
|
||||||
@media all and (max-width: 34em)
|
@media all and (max-width: 34em)
|
||||||
|
form#lug_search
|
||||||
|
position: relative
|
||||||
|
|
||||||
|
header.calendar-header
|
||||||
|
margin-top: 0
|
||||||
|
|
||||||
body.events.index table
|
body.events.index table
|
||||||
font-size: inherit
|
font-size: inherit
|
||||||
thead
|
thead
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
= render '/lugs/search' unless controller.controller_name == 'lugs'
|
||||||
|
|
||||||
|
-# Seems necessary, for the time being, to ensure calendar is changing days correctly
|
||||||
- config.time_zone = 'Paris'
|
- config.time_zone = 'Paris'
|
||||||
|
|
||||||
%form.region_selector
|
%form.region_selector
|
||||||
@ -54,3 +57,9 @@
|
|||||||
tag: params[:tag], protocol: 'webcal', format: :ics, tag: params[:tag], region: params[:region])),
|
tag: params[:tag], protocol: 'webcal', format: :ics, tag: params[:tag], region: params[:region])),
|
||||||
ical: link_to('iCal', events_url(:rss,
|
ical: link_to('iCal', events_url(:rss,
|
||||||
tag: params[:tag], format: :ics, tag: params[:tag], region: params[:region]))
|
tag: params[:tag], format: :ics, tag: params[:tag], region: params[:region]))
|
||||||
|
|
||||||
|
%a#banner(href='http://april.org/campagne')
|
||||||
|
-#%img(src='http://www.april.org/campagne/images/priorite-logiciel-libre-je-soutiens-april.png'
|
||||||
|
width='580' height='76' alt='Priorité au Logiciel Libre! Je soutiens l\'April.')
|
||||||
|
%img(src='http://april.org/campagne/images/priorite-logiciel-libre-je-soutiens-april_2_m.png'
|
||||||
|
width='374' height='48' alt='Priorité au Logiciel Libre! Je soutiens l\'April.')
|
||||||
|
@ -37,15 +37,9 @@
|
|||||||
= image_tag 'suisse.png', alt: ''
|
= image_tag 'suisse.png', alt: ''
|
||||||
=t '.suisse'
|
=t '.suisse'
|
||||||
|
|
||||||
= render '/lugs/search' unless controller.controller_name == 'lugs'
|
|
||||||
|
|
||||||
%h1= link_to t('.title'), root_url
|
%h1= link_to t('.title'), root_url
|
||||||
%h2=t '.subtitle'
|
%h2=t '.subtitle'
|
||||||
|
|
||||||
%a#banner(href='http://april.org/campagne')
|
|
||||||
%img(src='http://www.april.org/campagne/images/priorite-logiciel-libre-je-soutiens-april.png'
|
|
||||||
width='580' height='76' alt='Priorité au Logiciel Libre! Je soutiens l\'April.')
|
|
||||||
|
|
||||||
= render 'layouts/flash', flash: flash if flash.present?
|
= render 'layouts/flash', flash: flash if flash.present?
|
||||||
|
|
||||||
%main= yield
|
%main= yield
|
||||||
|
@ -1,13 +1,8 @@
|
|||||||
- # So we can use the search form from any page
|
= search_form_for @search || Lug.search(params[:q]) do |f|
|
||||||
- @search = Lug.search params[:q] unless @search
|
|
||||||
|
|
||||||
= search_form_for @search do |f|
|
|
||||||
= link_to lugs_path do
|
= link_to lugs_path do
|
||||||
%h2
|
|
||||||
%em.fa.fa-users
|
|
||||||
= title t '.title', entity: Lug.model_name.human
|
|
||||||
|
|
||||||
= f.label :name_cont
|
= f.label :name_cont
|
||||||
= f.search_field :name_or_city_or_department_or_region_or_url_cont, size: 14
|
%em.fa.fa-users
|
||||||
|
= f.search_field :name_or_city_or_department_or_related_region_name_or_url_cont, size: 13,
|
||||||
|
placeholder: t('.title', entity: Lug.model_name.human)
|
||||||
= f.button class: :search do
|
= f.button class: :search do
|
||||||
%em.fa.fa-search
|
%em.fa.fa-search
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
%h2
|
||||||
|
%em.fa.fa-users
|
||||||
|
= title t 'lugs.search.title', entity: Lug.model_name.human
|
||||||
|
|
||||||
= render 'search'
|
= render 'search'
|
||||||
|
|
||||||
%table.list.autopagerize_page_element
|
%table.list.autopagerize_page_element
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
%h2
|
||||||
|
%em.fa.fa-users
|
||||||
|
= title t 'lugs.search.title', entity: Lug.model_name.human
|
||||||
|
|
||||||
= render 'search'
|
= render 'search'
|
||||||
|
|
||||||
%dl
|
%dl
|
||||||
|
Loading…
Reference in New Issue
Block a user