From 453dba408f884f09a484632147b7854ffc2e5ff4 Mon Sep 17 00:00:00 2001 From: echarp Date: Sun, 8 Apr 2018 23:04:52 +0200 Subject: [PATCH] Tighter table display on small screens --- app/assets/stylesheets/mobile.sass | 7 +++++-- app/assets/stylesheets/orgas.sass | 3 ++- app/assets/stylesheets/region.sass | 2 +- app/views/layouts/application.html.haml | 2 +- 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/app/assets/stylesheets/mobile.sass b/app/assets/stylesheets/mobile.sass index 0494c923..d84a8401 100644 --- a/app/assets/stylesheets/mobile.sass +++ b/app/assets/stylesheets/mobile.sass @@ -20,8 +20,11 @@ form#orga_search font-size: smaller !important - thead th - font-size: smaller + table.list.dates + th, td + &, a + padding: 0 !important + font-size: inherit /* For small screen width */ @media all and (max-width: 34em) diff --git a/app/assets/stylesheets/orgas.sass b/app/assets/stylesheets/orgas.sass index 9a4d7006..e9d9421f 100644 --- a/app/assets/stylesheets/orgas.sass +++ b/app/assets/stylesheets/orgas.sass @@ -16,10 +16,11 @@ form#orga_search width: 14em border: solid thin #258 padding: 0 - margin-left: -1.5em + margin-left: -1.7em margin-right: -1.3em padding-left: 1.5em padding-right: 1.2em + border-radius: 0.4em button.search color: #258 border: none diff --git a/app/assets/stylesheets/region.sass b/app/assets/stylesheets/region.sass index 9d80427a..f24b065e 100644 --- a/app/assets/stylesheets/region.sass +++ b/app/assets/stylesheets/region.sass @@ -1,4 +1,4 @@ -html.js header +header nav margin-top: -3em &:hover nav diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml index 6e63771d..6cef9bbd 100644 --- a/app/views/layouts/application.html.haml +++ b/app/views/layouts/application.html.haml @@ -21,8 +21,8 @@ controller.controller_name, controller.action_name] %body{ class: classes } %header.top - = image_tag 'baby_gnu_adl.png', alt: '', class: :logo = render '/regions/filter' + = image_tag 'baby_gnu_adl.png', alt: '', class: :logo = render '/orgas/search' %h1= link_to t('.title'), root_path