bullet_train-themes-light 1.2.10 → 1.2.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (85) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/stylesheets/light/fields/date_field.css +1 -1
  3. data/app/assets/stylesheets/light/fields/index.css +5 -0
  4. data/app/assets/stylesheets/light/fields/super_select.css +5 -5
  5. data/app/assets/stylesheets/light/fields/trix_editor.css +1 -1
  6. data/app/assets/stylesheets/light/tailwind/colors/amber.css +23 -0
  7. data/app/assets/stylesheets/light/tailwind/colors/blue.css +23 -0
  8. data/app/assets/stylesheets/light/tailwind/colors/cyan.css +23 -0
  9. data/app/assets/stylesheets/light/tailwind/colors/emerald.css +23 -0
  10. data/app/assets/stylesheets/light/tailwind/colors/fuchsia.css +23 -0
  11. data/app/assets/stylesheets/light/tailwind/colors/gray.css +23 -0
  12. data/app/assets/stylesheets/light/tailwind/colors/green.css +23 -0
  13. data/app/assets/stylesheets/light/tailwind/colors/indigo.css +23 -0
  14. data/app/assets/stylesheets/light/tailwind/colors/lime.css +23 -0
  15. data/app/assets/stylesheets/light/tailwind/colors/neutral.css +23 -0
  16. data/app/assets/stylesheets/light/tailwind/colors/orange.css +23 -0
  17. data/app/assets/stylesheets/light/tailwind/colors/pink.css +23 -0
  18. data/app/assets/stylesheets/light/tailwind/colors/purple.css +23 -0
  19. data/app/assets/stylesheets/light/tailwind/colors/red.css +23 -0
  20. data/app/assets/stylesheets/light/tailwind/colors/rose.css +23 -0
  21. data/app/assets/stylesheets/light/tailwind/colors/sky.css +23 -0
  22. data/app/assets/stylesheets/light/tailwind/colors/slate.css +23 -0
  23. data/app/assets/stylesheets/light/tailwind/colors/stone.css +23 -0
  24. data/app/assets/stylesheets/light/tailwind/colors/teal.css +23 -0
  25. data/app/assets/stylesheets/light/tailwind/colors/violet.css +23 -0
  26. data/app/assets/stylesheets/light/tailwind/colors/yellow.css +23 -0
  27. data/app/assets/stylesheets/light/tailwind/colors/zinc.css +23 -0
  28. data/app/assets/stylesheets/light/tailwind/colors.css +45 -296
  29. data/app/assets/stylesheets/light/tailwind/components.css +14 -6
  30. data/app/assets/stylesheets/light/tailwind/dark-mode.css +29 -92
  31. data/app/assets/stylesheets/light/tailwind/secondary_colors/amber.css +12 -0
  32. data/app/assets/stylesheets/light/tailwind/secondary_colors/blue.css +12 -0
  33. data/app/assets/stylesheets/light/tailwind/secondary_colors/cyan.css +12 -0
  34. data/app/assets/stylesheets/light/tailwind/secondary_colors/emerald.css +12 -0
  35. data/app/assets/stylesheets/light/tailwind/secondary_colors/fuchsia.css +12 -0
  36. data/app/assets/stylesheets/light/tailwind/secondary_colors/gray.css +12 -0
  37. data/app/assets/stylesheets/light/tailwind/secondary_colors/green.css +12 -0
  38. data/app/assets/stylesheets/light/tailwind/secondary_colors/indigo.css +12 -0
  39. data/app/assets/stylesheets/light/tailwind/secondary_colors/lime.css +12 -0
  40. data/app/assets/stylesheets/light/tailwind/secondary_colors/neutral.css +12 -0
  41. data/app/assets/stylesheets/light/tailwind/secondary_colors/orange.css +12 -0
  42. data/app/assets/stylesheets/light/tailwind/secondary_colors/pink.css +12 -0
  43. data/app/assets/stylesheets/light/tailwind/secondary_colors/purple.css +12 -0
  44. data/app/assets/stylesheets/light/tailwind/secondary_colors/red.css +12 -0
  45. data/app/assets/stylesheets/light/tailwind/secondary_colors/rose.css +12 -0
  46. data/app/assets/stylesheets/light/tailwind/secondary_colors/sky.css +12 -0
  47. data/app/assets/stylesheets/light/tailwind/secondary_colors/slate.css +12 -0
  48. data/app/assets/stylesheets/light/tailwind/secondary_colors/stone.css +12 -0
  49. data/app/assets/stylesheets/light/tailwind/secondary_colors/teal.css +12 -0
  50. data/app/assets/stylesheets/light/tailwind/secondary_colors/violet.css +12 -0
  51. data/app/assets/stylesheets/light/tailwind/secondary_colors/yellow.css +12 -0
  52. data/app/assets/stylesheets/light/tailwind/secondary_colors/zinc.css +12 -0
  53. data/app/assets/stylesheets/light/tailwind/utilities.css +1 -22
  54. data/app/views/themes/light/_alert.html.erb +15 -11
  55. data/app/views/themes/light/_box.html.erb +5 -5
  56. data/app/views/themes/light/_breadcrumb.html.erb +3 -3
  57. data/app/views/themes/light/_cell.html.erb +2 -2
  58. data/app/views/themes/light/_decision_line.html.erb +2 -2
  59. data/app/views/themes/light/_line.html.erb +2 -2
  60. data/app/views/themes/light/_well.html.erb +2 -2
  61. data/app/views/themes/light/actions/_action.html.erb +7 -7
  62. data/app/views/themes/light/actions/_list.html.erb +1 -1
  63. data/app/views/themes/light/attributes/_base.html.erb +1 -1
  64. data/app/views/themes/light/attributes/_progress_bar.html.erb +1 -1
  65. data/app/views/themes/light/billing/_pricing_table.html.erb +5 -5
  66. data/app/views/themes/light/commentary/_box.html.erb +1 -11
  67. data/app/views/themes/light/conversations/_card.html.erb +5 -5
  68. data/app/views/themes/light/conversations/_comment.html.erb +3 -3
  69. data/app/views/themes/light/conversations/_message.html.erb +7 -7
  70. data/app/views/themes/light/conversations/_thread_border.html.erb +1 -1
  71. data/app/views/themes/light/fields/_field.html.erb +4 -4
  72. data/app/views/themes/light/layouts/_account.html.erb +6 -6
  73. data/app/views/themes/light/layouts/_devise.html.erb +1 -2
  74. data/app/views/themes/light/menu/_account.html.erb +7 -3
  75. data/app/views/themes/light/menu/_heading.html.erb +1 -1
  76. data/app/views/themes/light/menu/_item.html.erb +2 -2
  77. data/app/views/themes/light/menu/_mobile.html.erb +6 -6
  78. data/app/views/themes/light/menu/_open.html.erb +1 -1
  79. data/app/views/themes/light/menu/_subsection.html.erb +5 -3
  80. data/app/views/themes/light/menu/_user.html.erb +1 -1
  81. data/app/views/themes/light/workflow/_box.html.erb +1 -1
  82. data/lib/bullet_train/themes/light/version.rb +1 -1
  83. data/lib/bullet_train/themes/light.rb +1 -0
  84. data/tailwind.light.config.js +8 -45
  85. metadata +46 -2
@@ -74,14 +74,14 @@
74
74
  data-action="<%= 'mouseenter->reply#showReplyButton click->reply#showReplyButton' unless placeholder_message || show_as_thread %>" data-show-class="<%= current_user_message ? 'mr-10' : 'ml-10' %>"
75
75
  >
76
76
  <% if placeholder_message %>
77
- <div class="cursor-pointer" data-thread-url="<%= url_for([:thread, :account, message.thread_origin_message || message]) %>" data-action="click->reply#reply"><span class="px-2 py-1 text-xs text-gray-300 rounded-lg inline-block <%= rounding_modifier %> border-primary-300 border break-words sm:max-w-sm max-w-tiny"><%= Nokogiri::HTML.fragment(trix_sanitize(message.body)).text.truncate(80) %></span></div>
77
+ <div class="cursor-pointer" data-thread-url="<%= url_for([:thread, :account, message.thread_origin_message || message]) %>" data-action="click->reply#reply"><span class="px-2 py-1 text-xs text-slate-300 rounded-lg inline-block <%= rounding_modifier %> border-primary-300 border break-words sm:max-w-sm max-w-tiny"><%= Nokogiri::HTML.fragment(trix_sanitize(message.body)).text.truncate(80) %></span></div>
78
78
  <% else %>
79
- <div><span class="px-4 py-2 rounded-lg inline-block <%= rounding_modifier %> <%= current_user_message ? ' bg-primary-600 text-white' : ' bg-gray-300 text-gray-600' %> "><%= trix_sanitize(message.body) %></span></div>
79
+ <div><span class="px-4 py-2 rounded-lg inline-block <%= rounding_modifier %> <%= current_user_message ? ' bg-primary-600 text-white' : ' bg-slate-300 text-slate-600' %> "><%= trix_sanitize(message.body) %></span></div>
80
80
  <% end %>
81
81
  </div>
82
82
  <%= avatar %>
83
83
  <% unless placeholder_message || show_as_thread %>
84
- <div class="order-2 absolute text-gray-400 bottom-1 hover:text-gray-500 <%= current_user_message ? 'right-10' : 'left-10' %> z-0">
84
+ <div class="order-2 absolute text-slate-400 bottom-1 hover:text-slate-500 <%= current_user_message ? 'right-10' : 'left-10' %> z-0">
85
85
  <button
86
86
  data-action="click->reply#reply"
87
87
  data-thread-url="<%= url_for([:thread, :account, message.thread_origin_message || message]) %>"
@@ -110,7 +110,7 @@
110
110
  <% end %>
111
111
 
112
112
  <div class="flex flex-grow order-1 <%= current_user_message ? 'justify-end items-end pr-8' : 'justify-start items-start pl-8' %> <%= 'mb-3' unless next_message_in_series %>">
113
- <div class="<%= show_as_thread ? 'text-gray-400' : 'text-gray-300' %> text-sm">
113
+ <div class="<%= show_as_thread ? 'text-slate-400' : 'text-slate-300' %> text-sm">
114
114
  <strong><%= message.author.name %></strong>
115
115
  <%= timestamp %>
116
116
  </div>
@@ -120,14 +120,14 @@
120
120
  <% if message.replies.any? && false %>
121
121
  <div class="mb-4">
122
122
  <% message.replies.each do |reply| %>
123
- <div class="flex text-xs font-extralight text-gray-300 ml-12">
123
+ <div class="flex text-xs font-extralight text-slate-300 ml-12">
124
124
  <div class="<%= 'w-full' if current_user_message %>"></div>
125
- <svg version="1.0" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 682" class="w-5 h-5 stroke-current mt-4 text-gray-50 fill-current">
125
+ <svg version="1.0" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 682" class="w-5 h-5 stroke-current mt-4 text-slate-50 fill-current">
126
126
  <path d="M0 57.7c.1 145.1 4.1 224 14.5 281.1 19.4 106.3 65.2 156.4 166.3 181.7 48.7 12.1 111.4 18.8 211.7 22.5 23.8.9 196.6 2.8 268.2 3H683l.2 67.8.3 67.8 170.3-102.1L1024 477.3l-170.2-102-170.3-102-.3 67.8-.2 67.9h-75.8c-184.7 0-266.9-4.8-327.2-19-34.2-8.1-62.8-21.1-81.2-37-36.1-31.3-52.3-76.8-58.8-165.5-2-28-3-69.2-3-127.8V0H0v57.7z"/>
127
127
  </svg>
128
128
  <div class="flex flex-col mr-10 min-w-max">
129
129
  <div class="pt-0 mr-2 ml-4 text-xxs"><%= reply.membership.label_string %> reply: </div>
130
- <div class="bg-gray-100 rounded py-2 px-4 mt-0 text-gray-400 max-w-md"><%= reply.body.html_safe %></div>
130
+ <div class="bg-slate-100 rounded py-2 px-4 mt-0 text-slate-400 max-w-md"><%= reply.body.html_safe %></div>
131
131
  </div>
132
132
  </div>
133
133
  <% end %>
@@ -1,3 +1,3 @@
1
1
  <div class="flex-grow flex <%= side == :left ? 'justify-start' : 'justify-end order-2' %>">
2
- <div class=" border-solid border-gray-300 <%= border_classes %> text-white <%= side == :left ? 'ml-12 mr-0' : 'ml-0 mr-12' %> w-6"></div>
2
+ <div class=" border-solid border-slate-300 <%= border_classes %> text-white <%= side == :left ? 'ml-12 mr-0' : 'ml-0 mr-12' %> w-6"></div>
3
3
  </div>
@@ -14,12 +14,12 @@ other_options[:help] = [other_options[:help], labels.help].compact.join(" ")
14
14
  errors = [method, method.to_s.gsub(/_id$/, '').to_sym].uniq.map { |attribute| form.object.errors.full_messages_for(attribute) }.flatten
15
15
  has_errors = errors.any? || content_for(:error).present? || other_options[:error].present?
16
16
 
17
- options[:class] = "#{options[:class]} block w-full rounded-md shadow-sm font-light text-base md:text-sm"
17
+ options[:class] = "#{options[:class]} block w-full rounded-md shadow-sm font-light text-sm dark:bg-slate-800 dark:text-slate-300"
18
18
 
19
19
  options[:class] += if has_errors
20
- " pr-10 border-red-500 text-red-900 placeholder-red-500 focus:outline-none focus:ring-red-500 focus:border-red-500 dark:bg-darkPrimary-800 dark:text-darkPrimary-300"
20
+ " pr-10 border-red-500 text-red-900 placeholder-red-500 outline-none focus:ring-red-500 focus:border-red-500 dark:text-slate-300"
21
21
  else
22
- " focus:ring-primary-500 focus:border-primary-500 border-gray-300 dark:bg-darkPrimary-800 dark:border-darkPrimary-900 dark:text-darkPrimary-300"
22
+ " focus:ring-primary-500 focus:border-primary-500 border-slate-300 dark:border-slate-900"
23
23
  end
24
24
 
25
25
  %>
@@ -65,7 +65,7 @@ end
65
65
 
66
66
  <% # any help text. %>
67
67
  <% if content_for?(:help) || other_options[:help].present? || content_for?(:after_help) %>
68
- <p class="mt-1.5 text-xs text-gray-500 dark:text-gray-400">
68
+ <p class="mt-1.5 text-xs text-slate-500 dark:text-slate-400">
69
69
  <%= yield :help %>
70
70
  <% flush_content_for :help %>
71
71
  <%= other_options[:help]&.html_safe %>
@@ -1,9 +1,9 @@
1
1
  <!DOCTYPE html>
2
- <html class="theme-<%= BulletTrain::Themes::Light.color %> <%= "theme-secondary-#{BulletTrain::Themes::Light.secondary_color}" if BulletTrain::Themes::Light.secondary_color %> <%= "theme-logo-color-shift" if BulletTrain::Themes::Light.logo_color_shift %>">
2
+ <html class="theme-<%= BulletTrain::Themes::Light.color %> <%= "theme-secondary-#{BulletTrain::Themes::Light.secondary_color}" if BulletTrain::Themes::Light.secondary_color %>">
3
3
  <head>
4
4
  <%= render 'shared/layouts/head' %>
5
5
  </head>
6
- <body class="bg-light-gradient text-gray-700 text-sm font-normal dark:bg-dark-gradient dark:text-darkPrimary-300">
6
+ <body class="min-h-screen <%= BulletTrain::Themes::Light.background || "bg-gradient-to-br from-secondary-200 to-primary-400 dark:from-primary-900 dark:to-primary-600" %> text-slate-700 text-sm font-normal dark:text-slate-300">
7
7
  <div class="p-4 bg-primary-900 electron-draggable electron-title-bar hidden electron-mobile-only"></div>
8
8
  <div class="md:p-5 main-container-padding">
9
9
  <div class="h-screen md:h-auto md:rounded-lg flex shadow main-container"
@@ -13,23 +13,23 @@
13
13
  <%= render "account/shared/menu/mobile" %>
14
14
 
15
15
  <% if BulletTrain::Themes::Light.navigation == :left %>
16
- <div class="hidden lg:flex lg:flex-shrink-0 bg-gradient-to-b from-primary-700 to-primary-800 dark:from-darkPrimary-800 dark:to-darkPrimary-800 md:rounded-l-lg">
16
+ <div class="hidden lg:flex lg:flex-shrink-0 bg-gradient-to-b from-primary-700 to-primary-800 dark:from-slate-800 dark:to-slate-800 md:rounded-l-lg">
17
17
  <div class="w-64">
18
18
  <%= render "account/shared/menu/sidebar" %>
19
19
  </div>
20
20
  </div>
21
21
  <% end %>
22
22
 
23
- <div class="flex flex-col w-0 flex-1 bg-gray-100 dark:bg-darkPrimary-800 dark:border-gray-500 md:rounded-lg <%= BulletTrain::Themes::Light.navigation == :left ? "lg:border-l lg:rounded-l-none" : "" %>">
23
+ <div class="flex flex-col w-0 flex-1 bg-slate-100 dark:bg-slate-800 dark:border-slate-500 md:rounded-lg <%= BulletTrain::Themes::Light.navigation == :left ? "lg:border-l lg:rounded-l-none" : "" %>">
24
24
 
25
25
  <% if BulletTrain::Themes::Light.navigation == :top %>
26
- <div class="hidden lg:flex bg-gradient-to-b from-primary-700 to-primary-800 dark:from-darkPrimary-800 dark:to-darkPrimary-800 md:rounded-t-lg">
26
+ <div class="hidden lg:flex bg-gradient-to-b from-primary-700 to-primary-800 dark:from-slate-700/50 dark:to-slate-800 dark:shadow md:rounded-t-lg">
27
27
  <%= render "account/shared/menu/top" %>
28
28
  </div>
29
29
  <% end %>
30
30
 
31
31
  <main class="flex-1 relative z-0 focus:outline-none" tabindex="0">
32
- <div class="flex flex-row items-center shadow-sm electron-draggable">
32
+ <div class="flex flex-row items-center shadow-sm dark:shadow electron-draggable">
33
33
  <%= render "account/shared/menu/open" %>
34
34
 
35
35
  <nav class="flex px-1 lg:px-4 py-2 select-none" aria-label="Breadcrumb">
@@ -1,9 +1,8 @@
1
1
  <!DOCTYPE html>
2
- <html class="theme-<%= BulletTrain::Themes::Light.color %> <%= "theme-secondary-#{BulletTrain::Themes::Light.secondary_color}" if BulletTrain::Themes::Light.secondary_color %> <%= "theme-logo-color-shift" if BulletTrain::Themes::Light.logo_color_shift %>">
3
2
  <head>
4
3
  <%= render 'shared/layouts/head' %>
5
4
  </head>
6
- <body class="devise_layout bg-light-gradient text-gray-700 text-sm font-normal electron-draggable dark:bg-dark-gradient dark:text-darkPrimary-300">
5
+ <body class="devise_layout electron-draggable <%= BulletTrain::Themes::Light.background || "bg-gradient-to-br from-secondary-200 to-primary-400 dark:from-primary-900 dark:to-primary-600" %> text-slate-700 text-sm font-normal dark:text-slate-300">
7
6
  <div data-turn-enter data-turn-exit>
8
7
  <%= yield %>
9
8
  </div>
@@ -1,13 +1,17 @@
1
1
  <% expand ||= false %>
2
2
  <% hide_shadow ||= false %>
3
3
 
4
- <div class="relative <%= "group" unless expand %> <%= "shadow" unless hide_shadow %>" id="user">
4
+ <div class="relative <%= "group" unless expand %> <%= "shadow" unless hide_shadow %>"
5
+ id="user" data-controller="desktop-menu"
6
+ data-action="keydown->desktop-menu#hideSubmenu focus->desktop-menu#showSubmenu"
7
+ data-desktop-menu-target="menuItemHeader"
8
+ tabIndex="0">
5
9
  <%= render "account/shared/menu/user" %>
6
- <div class="invisible group-hover:visible">
10
+ <div class="invisible group-hover:visible" data-desktop-menu-target="menuItemGroup">
7
11
  <div class="absolute top-0 left-0 right-0 z-50">
8
12
  <%= render "account/shared/menu/user" %>
9
13
  </div>
10
- <div class="absolute transition duration-150 scale-95 group-hover:scale-100 translate-y-1 group-hover:translate-y-0 bg-primary-700 -top-0 left-0 right-0 -m-2 p-2 rounded-lg z-40 shadow">
14
+ <div class="absolute transition duration-150 scale-95 group-hover:scale-100 translate-y-1 group-hover:translate-y-0 bg-primary-700 dark:bg-slate-700 -top-0 left-0 right-0 -m-2 p-2 rounded-lg z-40 shadow">
11
15
  <div class="invisible">
12
16
  <%= render "account/shared/menu/user", expand: expand %>
13
17
  </div>
@@ -1,3 +1,3 @@
1
- <div class="text-xs py-2 uppercase tracking-wider text-primary-400">
1
+ <div class="text-xs py-2 uppercase tracking-wider text-primary-400" data-action="focus->desktop-menu#showSubmenu" data-desktop-menu-target="menuItemHeader" tabIndex="0">
2
2
  <%= yield %>
3
3
  </div>
@@ -3,11 +3,11 @@
3
3
  <% method ||= nil %>
4
4
  <% active ||= request.path == url %>
5
5
 
6
- <%= send (method ? :button_to : :link_to), url, class: "block group hover:text-white hover:no-underline #{'bg-primary-900 dark:bg-black dark:bg-opacity-10' if active} text-white #{@menu_orientation == :top ? "px-5 py-5" : "px-2 py-2 rounded-md hover-indent-child"} #{"rounded-tl-lg" unless @not_first} dark:text-white", method: method do %>
6
+ <%= send (method ? :button_to : :link_to), url, class: "block group hover:text-white hover:no-underline #{'bg-primary-900 dark:bg-black dark:bg-opacity-10' if active} text-white #{@menu_orientation == :top ? "px-5 py-5" : "px-2 py-2 rounded-md hover-indent-child"} #{"rounded-tl-lg" unless @not_first} dark:text-white", data: {"desktop-menu-target": "menuItemLink"}, tabIndex: 0, method: method do %>
7
7
  <div class="inline-block indent-child flex items-center">
8
8
  <!-- Heroicon name: home -->
9
9
  <% if p.content_for? :icon %>
10
- <span class="mr-3 h-6 w-6 text-center text-secondary-300 text-xl leading-6 dark:text-gray-400">
10
+ <span class="mr-3 h-6 w-6 text-center text-secondary-300 text-xl leading-6 dark:text-slate-400">
11
11
  <%= p.content_for :icon %>
12
12
  </span>
13
13
  <% end %>
@@ -19,19 +19,19 @@
19
19
 
20
20
  class="hidden fixed inset-0" aria-hidden="true"
21
21
  >
22
- <div class="absolute inset-0 bg-light-gradient opacity-75"></div>
22
+ <div class="absolute inset-0 <%= BulletTrain::Themes::Light.background || "bg-gradient-to-br from-secondary-200 to-primary-400 dark:from-primary-900 dark:to-primary-600" %> opacity-75"></div>
23
23
  </button>
24
24
  <div
25
25
  data-mobile-menu-target="revealable"
26
26
 
27
27
  data-transition-enter="transition ease-in-out duration-200 transform"
28
- data-transition-enter-start="-trandarkPrimary-x-full"
29
- data-transition-enter-end="trandarkPrimary-x-0"
28
+ data-transition-enter-start="-translate-x-full"
29
+ data-transition-enter-end="translate-x-0"
30
30
  data-transition-leave="transition ease-in-out duration-200 transform"
31
- data-transition-leave-start="trandarkPrimary-x-0"
32
- data-transition-leave-end="-trandarkPrimary-x-full"
31
+ data-transition-leave-start="translate-x-0"
32
+ data-transition-leave-end="-translate-x-full"
33
33
 
34
- class="hidden relative flex-1 flex flex-col max-w-xs w-full pb-4 bg-dark-gradient shadow-xl"
34
+ class="hidden relative flex-1 flex flex-col max-w-xs w-full pb-4 bg-gradient-to-b from-primary-700 to-primary-800 dark:from-slate-700 dark:to-slate-800 shadow-xl"
35
35
  >
36
36
  <%= render "account/shared/menu/sidebar", expand: true %>
37
37
  </div>
@@ -1,4 +1,4 @@
1
- <button class="lg:hidden h-12 w-12 ml-1 flex-none inline-flex items-center justify-center rounded-md text-gray-500 hover:text-gray-900 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-blue-500"
1
+ <button class="lg:hidden h-12 w-12 ml-1 flex-none inline-flex items-center justify-center rounded-md text-slate-500 hover:text-slate-900 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-blue-500"
2
2
  id="mobile-menu-open"
3
3
  data-action="mobile-menu#open"
4
4
  >
@@ -10,7 +10,7 @@
10
10
  </div>
11
11
  <% else %>
12
12
  <div>
13
- <div class="inline-block relative group" id="<%= title.underscore %>">
13
+ <div class="inline-block relative group" data-controller="desktop-menu" data-action="keydown->desktop-menu#hideSubmenu" id="<%= title.underscore %>">
14
14
  <%= render 'account/shared/menu/heading' do %>
15
15
  <%= title %>
16
16
 
@@ -21,8 +21,10 @@
21
21
 
22
22
  <div class="invisible absolute group-hover:visible transition duration-200 scale-90 group-hover:scale-100 z-40
23
23
  <%= @menu_orientation == :top ? "group-hover:translate-x-3 top-100 left-0 -ml-10 -mt-2 pt-4" : "group-hover:translate-x-3 top-0 left-full -mt-3 -ml-5 pl-4" %>
24
- ">
25
- <div class="bg-primary-700 rounded-lg py-3 px-4 w-56 shadow">
24
+ "
25
+ data-desktop-menu-target="menuItemGroup"
26
+ >
27
+ <div class="bg-primary-700 dark:bg-slate-700 rounded-lg py-3 px-4 w-56 shadow">
26
28
  <% @last_menu_orientation = @menu_orientation %>
27
29
  <% @menu_orientation = :side %>
28
30
  <%= yield %>
@@ -8,7 +8,7 @@
8
8
  <div class="text-white">
9
9
  <%= current_user.name %>
10
10
  </div>
11
- <div class="text-2xs tracking-widest uppercase text-secondary-300 group-hover:text-white dark:text-gray-500">
11
+ <div class="text-2xs tracking-widest uppercase text-secondary-300 group-hover:text-white dark:text-slate-500">
12
12
  <%= current_team.name %>
13
13
  </div>
14
14
  </div>
@@ -4,7 +4,7 @@
4
4
 
5
5
  <div class="min-h-screen flex flex-col justify-center sm:py-12">
6
6
  <div class="mx-auto w-full <%= width %> p-1.5">
7
- <div class="bg-white py-8 px-10 shadow rounded-lg dark:bg-darkPrimary-700">
7
+ <div class="bg-white py-8 px-10 shadow dark:shadow-lg rounded-lg dark:bg-slate-700 dark:bg-opacity-80">
8
8
  <div class="sm:mx-auto sm:w-full sm:max-w-md py-5">
9
9
  <a href="<%= main_app.root_path %>" class="block py-3">
10
10
  <img alt="" src="<%= image_path("logo/logo.png") %>" width="<%= image_width_for_height("logo/logo.png", BulletTrain::Themes.logo_height) %>" height="<%= BulletTrain::Themes.logo_height %>" class="theme-logo mx-auto h-12 w-auto" />
@@ -1,7 +1,7 @@
1
1
  module BulletTrain
2
2
  module Themes
3
3
  module Light
4
- VERSION = "1.2.10"
4
+ VERSION = "1.2.11"
5
5
  end
6
6
  end
7
7
  end
@@ -10,6 +10,7 @@ module BulletTrain
10
10
  # TODO Not sure this is the right place for this in the long-term.
11
11
  mattr_accessor :color, default: :blue
12
12
  mattr_accessor :secondary_color, default: nil
13
+ mattr_accessor :background, default: nil
13
14
  mattr_accessor :logo_color_shift, default: false
14
15
  mattr_accessor :show_logo_in_account, default: false
15
16
  mattr_accessor :navigation, default: :top
@@ -3,6 +3,7 @@ const colors = require('tailwindcss/colors')
3
3
 
4
4
  module.exports = {
5
5
  content: [
6
+ './config/initializers/theme.rb',
6
7
  './app/views/**/*.html.erb',
7
8
  './app/helpers/**/*.rb',
8
9
  './app/assets/stylesheets/**/*.css',
@@ -19,39 +20,24 @@ module.exports = {
19
20
  'xs': '.81rem',
20
21
  },
21
22
  colors: {
22
- red: {
23
- 400: '#ee8989',
24
- 500: '#e86060',
25
- 900: '#652424',
26
- },
27
-
28
- yellow: {
29
- 400: '#fcedbe',
30
- 500: '#fbe6a8',
31
- 900: '#6e6446',
32
- },
33
-
34
23
  primary: {
24
+ 50: 'var(--primary-50)',
25
+ 100: 'var(--primary-100)',
26
+ 200: 'var(--primary-200)',
35
27
  300: 'var(--primary-300)',
36
28
  400: 'var(--primary-400)',
37
29
  500: 'var(--primary-500)',
38
30
  600: 'var(--primary-600)',
39
31
  700: 'var(--primary-700)',
32
+ "700/50": 'red',
40
33
  800: 'var(--primary-800)',
41
34
  900: 'var(--primary-900)',
42
35
  },
43
36
 
44
- darkPrimary: {
45
- 300: 'var(--dark-primary-300)',
46
- 400: 'var(--dark-primary-400)',
47
- 500: 'var(--dark-primary-500)',
48
- 600: 'var(--dark-primary-600)',
49
- 700: 'var(--dark-primary-700)',
50
- 800: 'var(--dark-primary-800)',
51
- 900: 'var(--dark-primary-900)',
52
- },
53
-
54
37
  secondary: {
38
+ 50: 'var(--secondary-50)',
39
+ 100: 'var(--secondary-100)',
40
+ 200: 'var(--secondary-200)',
55
41
  300: 'var(--secondary-300)',
56
42
  400: 'var(--secondary-400)',
57
43
  500: 'var(--secondary-500)',
@@ -60,29 +46,6 @@ module.exports = {
60
46
  800: 'var(--secondary-800)',
61
47
  900: 'var(--secondary-900)',
62
48
  },
63
-
64
- darkSecondary: {
65
- 300: 'var(--dark-secondary-300)',
66
- 400: 'var(--dark-secondary-400)',
67
- 500: 'var(--dark-secondary-500)',
68
- 600: 'var(--dark-secondary-600)',
69
- 700: 'var(--dark-secondary-700)',
70
- 800: 'var(--dark-secondary-800)',
71
- 900: 'var(--dark-secondary-900)',
72
- },
73
-
74
- // This is a weird one-off for dark-mode.
75
- darkAccent: {
76
- 200: 'var(--dark-accent-200)',
77
- },
78
-
79
- black: {
80
- 100: '#000000',
81
- 200: '#101112',
82
- 300: '#171818',
83
- 400: '#292b2c',
84
- DEFAULT: '#000000',
85
- }
86
49
  },
87
50
  fontFamily: {
88
51
  // "Avenir Next W01", "Proxima Nova W01", "", -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bullet_train-themes-light
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.10
4
+ version: 1.2.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Culver
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-12-31 00:00:00.000000000 Z
11
+ date: 2023-02-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: standard
@@ -77,8 +77,52 @@ files:
77
77
  - app/assets/stylesheets/light/fields/super_select.css
78
78
  - app/assets/stylesheets/light/fields/trix_editor.css
79
79
  - app/assets/stylesheets/light/tailwind/colors.css
80
+ - app/assets/stylesheets/light/tailwind/colors/amber.css
81
+ - app/assets/stylesheets/light/tailwind/colors/blue.css
82
+ - app/assets/stylesheets/light/tailwind/colors/cyan.css
83
+ - app/assets/stylesheets/light/tailwind/colors/emerald.css
84
+ - app/assets/stylesheets/light/tailwind/colors/fuchsia.css
85
+ - app/assets/stylesheets/light/tailwind/colors/gray.css
86
+ - app/assets/stylesheets/light/tailwind/colors/green.css
87
+ - app/assets/stylesheets/light/tailwind/colors/indigo.css
88
+ - app/assets/stylesheets/light/tailwind/colors/lime.css
89
+ - app/assets/stylesheets/light/tailwind/colors/neutral.css
90
+ - app/assets/stylesheets/light/tailwind/colors/orange.css
91
+ - app/assets/stylesheets/light/tailwind/colors/pink.css
92
+ - app/assets/stylesheets/light/tailwind/colors/purple.css
93
+ - app/assets/stylesheets/light/tailwind/colors/red.css
94
+ - app/assets/stylesheets/light/tailwind/colors/rose.css
95
+ - app/assets/stylesheets/light/tailwind/colors/sky.css
96
+ - app/assets/stylesheets/light/tailwind/colors/slate.css
97
+ - app/assets/stylesheets/light/tailwind/colors/stone.css
98
+ - app/assets/stylesheets/light/tailwind/colors/teal.css
99
+ - app/assets/stylesheets/light/tailwind/colors/violet.css
100
+ - app/assets/stylesheets/light/tailwind/colors/yellow.css
101
+ - app/assets/stylesheets/light/tailwind/colors/zinc.css
80
102
  - app/assets/stylesheets/light/tailwind/components.css
81
103
  - app/assets/stylesheets/light/tailwind/dark-mode.css
104
+ - app/assets/stylesheets/light/tailwind/secondary_colors/amber.css
105
+ - app/assets/stylesheets/light/tailwind/secondary_colors/blue.css
106
+ - app/assets/stylesheets/light/tailwind/secondary_colors/cyan.css
107
+ - app/assets/stylesheets/light/tailwind/secondary_colors/emerald.css
108
+ - app/assets/stylesheets/light/tailwind/secondary_colors/fuchsia.css
109
+ - app/assets/stylesheets/light/tailwind/secondary_colors/gray.css
110
+ - app/assets/stylesheets/light/tailwind/secondary_colors/green.css
111
+ - app/assets/stylesheets/light/tailwind/secondary_colors/indigo.css
112
+ - app/assets/stylesheets/light/tailwind/secondary_colors/lime.css
113
+ - app/assets/stylesheets/light/tailwind/secondary_colors/neutral.css
114
+ - app/assets/stylesheets/light/tailwind/secondary_colors/orange.css
115
+ - app/assets/stylesheets/light/tailwind/secondary_colors/pink.css
116
+ - app/assets/stylesheets/light/tailwind/secondary_colors/purple.css
117
+ - app/assets/stylesheets/light/tailwind/secondary_colors/red.css
118
+ - app/assets/stylesheets/light/tailwind/secondary_colors/rose.css
119
+ - app/assets/stylesheets/light/tailwind/secondary_colors/sky.css
120
+ - app/assets/stylesheets/light/tailwind/secondary_colors/slate.css
121
+ - app/assets/stylesheets/light/tailwind/secondary_colors/stone.css
122
+ - app/assets/stylesheets/light/tailwind/secondary_colors/teal.css
123
+ - app/assets/stylesheets/light/tailwind/secondary_colors/violet.css
124
+ - app/assets/stylesheets/light/tailwind/secondary_colors/yellow.css
125
+ - app/assets/stylesheets/light/tailwind/secondary_colors/zinc.css
82
126
  - app/assets/stylesheets/light/tailwind/utilities.css
83
127
  - app/assets/stylesheets/light/tailwind/utilities/billing.css
84
128
  - app/assets/stylesheets/light/turn.css