From 2f76efc4e4a32b23b604140dcf0a749851dd70b5 Mon Sep 17 00:00:00 2001 From: echarp Date: Wed, 1 May 2019 21:53:26 +0200 Subject: [PATCH] Country filter centered --- app/assets/stylesheets/all.sass | 3 ++- app/assets/stylesheets/mobile.sass | 13 +------------ app/assets/stylesheets/orgas.sass | 1 + app/assets/stylesheets/region.sass | 13 +++++++++---- 4 files changed, 13 insertions(+), 17 deletions(-) diff --git a/app/assets/stylesheets/all.sass b/app/assets/stylesheets/all.sass index 81dbfbbf..066e49da 100644 --- a/app/assets/stylesheets/all.sass +++ b/app/assets/stylesheets/all.sass @@ -76,6 +76,7 @@ header.top text-align: left img.logo float: left + max-width: 12vw margin-right: 1% h1 margin: 0 @@ -88,9 +89,9 @@ header.top margin-top: 0.2em nav - float: right font-size: smaller margin-top: -3em + text-align: center .digest, form margin-top: 2em &:hover nav diff --git a/app/assets/stylesheets/mobile.sass b/app/assets/stylesheets/mobile.sass index e3de8e89..77acca18 100644 --- a/app/assets/stylesheets/mobile.sass +++ b/app/assets/stylesheets/mobile.sass @@ -13,13 +13,9 @@ border: none margin: 0 padding: 1% - font-size: smaller main ul margin-left: 0 - form#orga_search, button.search, .digest - font-size: smaller !important - table.list.dates th, td &, a @@ -34,13 +30,7 @@ padding-left: 0.4em padding-right: 0.4em - header.top - nav - display: none - img.logo - max-width: 12vw - - form#orga_search + header.top nav display: none body.index @@ -85,7 +75,6 @@ padding-right: 1em #advises - font-size: smaller & > * display: none & > :first-child:after diff --git a/app/assets/stylesheets/orgas.sass b/app/assets/stylesheets/orgas.sass index 841780b0..57ade4ca 100644 --- a/app/assets/stylesheets/orgas.sass +++ b/app/assets/stylesheets/orgas.sass @@ -7,6 +7,7 @@ form#orga_search float: right font-size: larger margin-left: 1em + margin-right: 2em label display: none em.fa diff --git a/app/assets/stylesheets/region.sass b/app/assets/stylesheets/region.sass index a88b8fe7..46ee1c18 100644 --- a/app/assets/stylesheets/region.sass +++ b/app/assets/stylesheets/region.sass @@ -1,23 +1,28 @@ header nav + width: 100% + position: absolute & > ul > li - float: left + display: inline-block ul margin: 0 z-index: 1500 list-style: none - text-align: left border-bottom-left-radius: 0.4em border-bottom-right-radius: 0.4em ul position: absolute - background-color: white + text-align: left li display: none border-top: solid thin #eee - & li:hover li, li.selected + li.selected + display: inline-block + & li:hover li, li li.selected display: block li margin: 0 + box-shadow: 0 0 1em white + background-color: white &.selected box-shadow: 0 0 0 6px lightgray a