Reworked country/region selector, and orga search form moved after the
main calendar
This commit is contained in:
parent
2f042cc320
commit
13e67c3a3a
@ -73,6 +73,7 @@ h3.warning
|
|||||||
background-color: orange
|
background-color: orange
|
||||||
|
|
||||||
header.top
|
header.top
|
||||||
|
position: relative
|
||||||
text-align: left
|
text-align: left
|
||||||
img.logo
|
img.logo
|
||||||
float: left
|
float: left
|
||||||
@ -88,16 +89,13 @@ header.top
|
|||||||
weight: normal
|
weight: normal
|
||||||
margin-top: 0.2em
|
margin-top: 0.2em
|
||||||
|
|
||||||
nav
|
ul.regions
|
||||||
top: -3em
|
top: -3em
|
||||||
|
right: 0
|
||||||
|
position: absolute
|
||||||
font-size: smaller
|
font-size: smaller
|
||||||
text-align: center
|
&:hover ul.regions
|
||||||
.digest, form
|
top: -0.8em
|
||||||
margin-top: 2em
|
|
||||||
&:hover nav
|
|
||||||
top: 0.3em
|
|
||||||
.digest, form
|
|
||||||
margin-top: 0
|
|
||||||
|
|
||||||
main, body.mce-content-body
|
main, body.mce-content-body
|
||||||
clear: both
|
clear: both
|
||||||
|
@ -4,10 +4,7 @@ img.favicon
|
|||||||
vertical-align: middle
|
vertical-align: middle
|
||||||
|
|
||||||
form#orga_search
|
form#orga_search
|
||||||
float: right
|
|
||||||
font-size: larger
|
font-size: larger
|
||||||
margin-left: 1em
|
|
||||||
margin-right: 1em
|
|
||||||
label
|
label
|
||||||
display: none
|
display: none
|
||||||
em.fa
|
em.fa
|
||||||
|
@ -4,4 +4,4 @@ body.pages main
|
|||||||
|
|
||||||
.digest
|
.digest
|
||||||
float: right
|
float: right
|
||||||
font-size: larger
|
margin-top: 1em
|
||||||
|
@ -1,25 +1,8 @@
|
|||||||
header nav
|
header.top ul.regions
|
||||||
left: 0
|
margin: 0
|
||||||
width: 100%
|
list-style: none
|
||||||
position: absolute
|
& > li
|
||||||
& > ul > li
|
|
||||||
display: inline-block
|
display: inline-block
|
||||||
ul
|
|
||||||
margin: 0
|
|
||||||
z-index: 1500
|
|
||||||
list-style: none
|
|
||||||
border-bottom-left-radius: 0.4em
|
|
||||||
border-bottom-right-radius: 0.4em
|
|
||||||
ul
|
|
||||||
position: absolute
|
|
||||||
text-align: left
|
|
||||||
li
|
|
||||||
display: none
|
|
||||||
border-top: solid thin #eee
|
|
||||||
li.selected
|
|
||||||
display: inline-block
|
|
||||||
& li:hover li, li li.selected
|
|
||||||
display: block
|
|
||||||
li
|
li
|
||||||
margin: 0
|
margin: 0
|
||||||
box-shadow: 0 0 1em white
|
box-shadow: 0 0 1em white
|
||||||
@ -32,6 +15,17 @@ header nav
|
|||||||
white-space: nowrap
|
white-space: nowrap
|
||||||
&:hover ul
|
&:hover ul
|
||||||
box-shadow: 0 4px 4px gray
|
box-shadow: 0 4px 4px gray
|
||||||
|
li.selected
|
||||||
|
display: inline-block
|
||||||
|
& li:hover li, li li.selected
|
||||||
|
display: block
|
||||||
|
ul
|
||||||
|
z-index: 1500
|
||||||
|
position: absolute
|
||||||
|
text-align: left
|
||||||
|
li
|
||||||
|
display: none
|
||||||
|
border-top: solid thin #eee
|
||||||
|
|
||||||
.field.region
|
.field.region
|
||||||
.radios
|
.radios
|
||||||
|
@ -21,10 +21,10 @@
|
|||||||
%header.top
|
%header.top
|
||||||
%nav
|
%nav
|
||||||
= render '/regions/filter'
|
= render '/regions/filter'
|
||||||
= render '/orgas/search'
|
|
||||||
= render '/pages/search'
|
= render '/pages/search'
|
||||||
|
|
||||||
= image_tag 'baby_gnu_adl.png', alt: '', class: :logo
|
= link_to root_path do
|
||||||
|
= image_tag 'baby_gnu_adl.png', alt: '', class: :logo
|
||||||
%h1= link_to t('.title'), root_path
|
%h1= link_to t('.title'), root_path
|
||||||
%h2= t '.subtitle'
|
%h2= t '.subtitle'
|
||||||
|
|
||||||
@ -33,6 +33,7 @@
|
|||||||
%main= yield
|
%main= yield
|
||||||
|
|
||||||
%footer.bottom
|
%footer.bottom
|
||||||
|
= render '/orgas/search'
|
||||||
%nav
|
%nav
|
||||||
= link_to new_event_path do
|
= link_to new_event_path do
|
||||||
%em.fa.fa-pencil-alt
|
%em.fa.fa-pencil-alt
|
||||||
|
@ -8,7 +8,3 @@
|
|||||||
= f.button class: :search do
|
= f.button class: :search do
|
||||||
%em.fa.fa-search
|
%em.fa.fa-search
|
||||||
%span.label= t '.label'
|
%span.label= t '.label'
|
||||||
|
|
||||||
= link_to page_path('filter'), title: t('.filter') do
|
|
||||||
|
|
||||||
%em.fa.fa-angle-double-right
|
|
||||||
|
@ -12,3 +12,10 @@
|
|||||||
km
|
km
|
||||||
%a(href="?near=")
|
%a(href="?near=")
|
||||||
%em.fa.fa-times
|
%em.fa.fa-times
|
||||||
|
|
||||||
|
- if params[:tag].blank? && (params[:near].blank? || params[:near][:location].blank?)
|
||||||
|
= link_to page_path('filter') do
|
||||||
|
= t 'title', scope: 'pages.filter'
|
||||||
|
|
||||||
|
= link_to page_path('filter'), title: t('title', scope: 'pages.filter') do
|
||||||
|
%em.fa.fa-angle-double-right
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
-# Choose a region to filter events with
|
-# Choose a region to filter events with
|
||||||
%ul= render partial: '/regions/filter_region', collection: Region.top
|
%ul.regions= render partial: '/regions/filter_region', collection: Region.top
|
||||||
|
Loading…
Reference in New Issue
Block a user