From 51280c2f8b09fb0eadfcc5b8114bbb7d8ad309bc Mon Sep 17 00:00:00 2001 From: Tomasz Subik Date: Tue, 22 Oct 2024 11:42:46 +0200 Subject: [PATCH] update css --- app/admin/fmu.rb | 2 +- app/assets/stylesheets/active_admin.scss | 8 +------- app/assets/stylesheets/helpers.scss | 8 ++++++++ 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/app/admin/fmu.rb b/app/admin/fmu.rb index 96bfd9fc9..559a14cbf 100644 --- a/app/admin/fmu.rb +++ b/app/admin/fmu.rb @@ -73,7 +73,7 @@ def download_shapefiles(fmus) div do link_to "Download Filtered Shapefiles", download_filtered_shapefiles_admin_fmus_path( q: params[:q]&.to_unsafe_h - ), class: "shapefiles_button" + ), class: "button text-center mt-10px" end end diff --git a/app/assets/stylesheets/active_admin.scss b/app/assets/stylesheets/active_admin.scss index 2f4e2d57a..e488a601f 100644 --- a/app/assets/stylesheets/active_admin.scss +++ b/app/assets/stylesheets/active_admin.scss @@ -93,12 +93,6 @@ $to-be-reviewed: #99AA99; } } -.shapefiles_button { - @extend .button; - display: block !important; - text-align: center; -} - // To increase the width of observations-details .col-details { min-width: 500px; @@ -222,6 +216,6 @@ body.active_admin { // Dependent filters #dependent_filters_sidebar_section { - visibility: hidden; + display: none; } diff --git a/app/assets/stylesheets/helpers.scss b/app/assets/stylesheets/helpers.scss index 9213e5c31..00a7cbc69 100644 --- a/app/assets/stylesheets/helpers.scss +++ b/app/assets/stylesheets/helpers.scss @@ -7,6 +7,14 @@ margin-bottom: 5px; } +.mt-10px { + margin-top: 10px; +} + +.text-center { + text-align: center; +} + .d-flex { display: flex;; }