diff --git a/app/assets/stylesheets/application.css b/app/assets/stylesheets/application.css index f5c4d908..dfb9ac40 100644 --- a/app/assets/stylesheets/application.css +++ b/app/assets/stylesheets/application.css @@ -10,3 +10,12 @@ * * Note: Tailwind CSS is loaded separately via stylesheet_link_tag in the layout. */ +* { + box-sizing: border-box; +} + +body { + margin: 0; + font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif; + background-color: #f9fafb; +} diff --git a/app/assets/tailwind/application.css b/app/assets/tailwind/application.css index da1c97d5..e2152a86 100644 --- a/app/assets/tailwind/application.css +++ b/app/assets/tailwind/application.css @@ -1,4 +1,5 @@ @import "tailwindcss"; +@import "./components/sidebar.css"; /* Tom Select Tailwind Styles */ @@ -280,15 +281,11 @@ nav.pagy a.gap { /* Layout Utilities */ .page-container { - min-height: 100vh; - padding: 2rem 0; + @apply min-h-screen py-1; } .content-wrapper { - max-width: 1200px; - margin: 0 auto; - padding: 0 1rem; - overflow-x: hidden; + @apply max-w-7xl mx-auto overflow-x-hidden p-4 min-h-screen; } .section-spacing { @@ -517,3 +514,7 @@ nav.pagy a.current { .table-container table td.actions-col { white-space: nowrap; } + +.help-text { + @apply mt-2 text-xs text-gray-500 m-0; +} diff --git a/app/assets/tailwind/components/sidebar.css b/app/assets/tailwind/components/sidebar.css new file mode 100644 index 00000000..35334dd0 --- /dev/null +++ b/app/assets/tailwind/components/sidebar.css @@ -0,0 +1,7 @@ +.sidebar__link { + @apply hover:bg-gray-100 flex items-center px-4 py-3 gap-3 rounded-lg; +} + +.sidebar__logout-button { + @apply py-3 px-4 w-full text-white bg-red-600 hover:bg-red-700 font-medium rounded-lg flex justify-center items-center gap-2 cursor-pointer; +} \ No newline at end of file diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index cfc8a987..400bb844 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -21,13 +21,7 @@ def tailwind_flash_class(level) end end - def nav_link_class(path) - base_style = "display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem; text-decoration: none; border-radius: 0.5rem; transition: all 0.2s; font-weight: 500;" - - if current_page?(path) - base_style + " background-color: #dbeafe; color: #1d4ed8;" - else - base_style + " color: #374151;" - end + def active_link_class(path) + current_page?(path) ? "!bg-blue-100" : "" end end diff --git a/app/views/languages/_form.html.erb b/app/views/languages/_form.html.erb index 2f1ed58d..643bc66f 100644 --- a/app/views/languages/_form.html.erb +++ b/app/views/languages/_form.html.erb @@ -10,7 +10,7 @@ <%= f.text_field :name, placeholder: "Enter language name (e.g., English, Spanish, French)", class: "input-field bg-gray-50" %> -
This will be used to identify the language throughout the system.
+This will be used to identify the language throughout the system.