From 05b78662f501e12dd819b394bbd650677988161e Mon Sep 17 00:00:00 2001 From: Jacob Cody Wimer Date: Wed, 16 Apr 2025 14:05:17 -0400 Subject: [PATCH] Moved the tournament navbar to the bottom of the page and made site responsive. Fixed puma solid queue in development. --- app/assets/javascripts/application.js | 4 +- app/assets/stylesheets/application.css | 8 +- app/assets/stylesheets/custom.css | 8 + app/views/layouts/_header.html.erb | 2 +- app/views/layouts/_tournament-navbar.html.erb | 22 +- app/views/layouts/application.html.erb | 19 +- app/views/tournaments/show.html.erb | 3 +- config/environments/development.rb | 1 + public/assets/.gitignore | 1 - ...3dbd5cde7a1f8b8a12678196d460f1d3562bb64.js | 10864 ---------------- ...a3703d3d2462acdba315e7b70ab32ec5c6633e.css | 108 - 11 files changed, 44 insertions(+), 10996 deletions(-) create mode 100644 app/assets/stylesheets/custom.css delete mode 100644 public/assets/.gitignore delete mode 100644 public/assets/application-0ce96b937beeacae8611cd6273dbd5cde7a1f8b8a12678196d460f1d3562bb64.js delete mode 100644 public/assets/application-5aa6af6502b99932ee3cf0d135a3703d3d2462acdba315e7b70ab32ec5c6633e.css diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js index d33a61c..e0eecee 100644 --- a/app/assets/javascripts/application.js +++ b/app/assets/javascripts/application.js @@ -10,11 +10,13 @@ // Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details // about supported directives. // -//= require_tree . //= require jquery //= require jquery_ujs // Bootstrap 3.3.6 in vendor/assets/javascripts //= require bootstrap.min.js // Data Tables 1.10.6 in vendor/assets/javascripts //= require jquery.dataTables.min.js +//= require turbolinks +// +//= require_tree . diff --git a/app/assets/stylesheets/application.css b/app/assets/stylesheets/application.css index 82024f4..3f498d9 100644 --- a/app/assets/stylesheets/application.css +++ b/app/assets/stylesheets/application.css @@ -10,10 +10,10 @@ * defined in the other CSS/SCSS files in this directory. It is generally better to create a new * file per style scope. * - *= require_tree . - *= require_self * Bootstrap 3.3.6 in vendor/assets/stylesheets *= require bootstrap.min.css *= require bootstrap-theme.min.css - - */ \ No newline at end of file + *= require_tree . + *= require custom + *= require_self + */ diff --git a/app/assets/stylesheets/custom.css b/app/assets/stylesheets/custom.css new file mode 100644 index 0000000..bcdf66f --- /dev/null +++ b/app/assets/stylesheets/custom.css @@ -0,0 +1,8 @@ +.navbar-inverse.navbar-fixed-top { + z-index: 1040; /* Ensure main navbar is above tournament navbar */ +} + +#tournament-navbar { + top: 50px; /* Position below the first fixed navbar */ + z-index: 1030; /* Explicitly set standard fixed navbar z-index */ +} \ No newline at end of file diff --git a/app/views/layouts/_header.html.erb b/app/views/layouts/_header.html.erb index 403947a..b21f2b7 100644 --- a/app/views/layouts/_header.html.erb +++ b/app/views/layouts/_header.html.erb @@ -10,7 +10,7 @@ WrestlingDev