From f9492f0c76956756e29ec31ea117fa38a76d057a Mon Sep 17 00:00:00 2001 From: Liam Morley Date: Thu, 21 Oct 2021 11:23:19 -0400 Subject: [PATCH] Adjust header form selects to only take as much space as they require --- app/assets/stylesheets/fonts.scss | 11 ++++++----- app/views/layouts/sqm/_header.html.erb | 20 +++++++------------- app/views/sqm_categories/show.html.erb | 6 +++--- 3 files changed, 16 insertions(+), 21 deletions(-) diff --git a/app/assets/stylesheets/fonts.scss b/app/assets/stylesheets/fonts.scss index a6e87d66..ab072272 100644 --- a/app/assets/stylesheets/fonts.scss +++ b/app/assets/stylesheets/fonts.scss @@ -42,22 +42,23 @@ font-size: 20px; } +header .form-select { + width: auto; + max-width: 290px; +} + .sub-header-4 { @extend .font-bitter; - @extend .weight-600; + @extend .weight-700; font-size: 16px; } .body-large { - @extend .font-cabin; - @extend .weight-400; font-size: 16px; line-height: 1.3; } .body-small { - @extend .font-cabin; - @extend .weight-400; font-size: 14px; line-height: 1.3; } diff --git a/app/views/layouts/sqm/_header.html.erb b/app/views/layouts/sqm/_header.html.erb index 8ff25b41..d6656413 100644 --- a/app/views/layouts/sqm/_header.html.erb +++ b/app/views/layouts/sqm/_header.html.erb @@ -28,20 +28,14 @@
-
-
-
- <% if content_for?(:navigation) %> - <%= yield(:navigation) %> - <% end %> -
+
+ <% if content_for?(:navigation) %> + <%= yield(:navigation) %> + <% end %> -
- -
-
+
diff --git a/app/views/sqm_categories/show.html.erb b/app/views/sqm_categories/show.html.erb index b3f4cbfa..357dadf1 100644 --- a/app/views/sqm_categories/show.html.erb +++ b/app/views/sqm_categories/show.html.erb @@ -1,5 +1,5 @@ <% content_for :navigation do %> -