Region filter should be, a bit, better displayed on its full width

This commit is contained in:
echarp 2019-05-01 15:31:16 +02:00
parent 6d88263eec
commit 24131d7410
7 changed files with 21 additions and 28 deletions

View File

@ -18,14 +18,14 @@ html
padding: 0
background-color: transparent
& > header, & > footer,
h2, nav, .region_filter, .orga_search, #banner
h2, nav, .orga_search, #banner
display: none
body
border: 1px solid #68A6E5
margin: 0.2%
padding: 1%
font-size: calc(8px + 1vw)
font-size: calc(6px + 0.8vw)
min-height: 99.1%
text-align: center
font-family: sans-serif
@ -87,6 +87,17 @@ header.top
weight: normal
margin-top: 0.2em
nav
float: right
font-size: smaller
margin-top: -3.1em
form
margin-top: 1.9em
&:hover nav
margin-top: 0
form
margin-top: 0
main, body.mce-content-body
clear: both
position: relative

View File

@ -118,6 +118,7 @@ html.iframe main
#advises
border: 1px solid #FFB578
max-width: 60em
border-radius: 0.2em
padding-left: 10px
padding-right: 10px

View File

@ -129,10 +129,3 @@
padding: 1px 0
.mce-btn-group .mce-btn
margin-left: 0 !important
@media all and (min-width: 1600px)
body
font-size: larger
#advises
max-width: 60em

View File

@ -4,10 +4,8 @@ img.favicon
vertical-align: middle
form#orga_search
clear: right
float: right
font-size: larger
margin-top: 0.9em
margin-left: 1em
label
display: none

View File

@ -1,13 +1,4 @@
header
nav
max-width: calc(99% - 91px)
margin-top: -3.1em
&:hover nav
margin-top: 0
.region_filter
float: right
font-size: smaller
header nav
& > ul > li
float: left
ul

View File

@ -19,12 +19,12 @@
- sub = request.domain ? request.domain.split('.')[0] : ''
%body{ class: [sub, controller_name, action_name, params[:tag]] }
%header.top
= image_tag 'baby_gnu_adl.png', alt: '', class: :logo
%nav
= render '/regions/filter'
= render '/orgas/search'
= render '/pages/search'
= image_tag 'baby_gnu_adl.png', alt: '', class: :logo
%h1= link_to t('.title'), root_path
%h2= t '.subtitle'

View File

@ -1,3 +1,2 @@
-# Choose a region to filter events with
%nav.region_filter
%ul= render partial: '/regions/filter_region', collection: Region.top