bullet_train-themes-light 1.38.0 → 1.39.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/assets/stylesheets/light/bulk_actions.css +1 -1
- data/app/assets/stylesheets/light/fields/date_field.css +2 -2
- data/app/assets/stylesheets/light/fields/super_select.css +16 -12
- data/app/assets/stylesheets/light/fields/trix_editor.css +1 -1
- data/app/assets/stylesheets/light/tailwind/colors/amber.css +20 -20
- data/app/assets/stylesheets/light/tailwind/colors/blue.css +20 -20
- data/app/assets/stylesheets/light/tailwind/colors/cyan.css +20 -20
- data/app/assets/stylesheets/light/tailwind/colors/emerald.css +20 -20
- data/app/assets/stylesheets/light/tailwind/colors/fuchsia.css +20 -20
- data/app/assets/stylesheets/light/tailwind/colors/gray.css +20 -20
- data/app/assets/stylesheets/light/tailwind/colors/green.css +20 -20
- data/app/assets/stylesheets/light/tailwind/colors/indigo.css +20 -20
- data/app/assets/stylesheets/light/tailwind/colors/lime.css +20 -20
- data/app/assets/stylesheets/light/tailwind/colors/neutral.css +20 -20
- data/app/assets/stylesheets/light/tailwind/colors/orange.css +20 -20
- data/app/assets/stylesheets/light/tailwind/colors/pink.css +20 -20
- data/app/assets/stylesheets/light/tailwind/colors/purple.css +20 -20
- data/app/assets/stylesheets/light/tailwind/colors/red.css +20 -20
- data/app/assets/stylesheets/light/tailwind/colors/rose.css +20 -20
- data/app/assets/stylesheets/light/tailwind/colors/sky.css +20 -20
- data/app/assets/stylesheets/light/tailwind/colors/slate.css +20 -20
- data/app/assets/stylesheets/light/tailwind/colors/stone.css +20 -20
- data/app/assets/stylesheets/light/tailwind/colors/teal.css +20 -20
- data/app/assets/stylesheets/light/tailwind/colors/violet.css +20 -20
- data/app/assets/stylesheets/light/tailwind/colors/yellow.css +20 -20
- data/app/assets/stylesheets/light/tailwind/colors/zinc.css +20 -20
- data/app/assets/stylesheets/light/tailwind/components.css +17 -8
- data/app/assets/stylesheets/light/tailwind/dark-mode.css +22 -22
- data/app/assets/stylesheets/light/tailwind/secondary_colors/amber.css +10 -10
- data/app/assets/stylesheets/light/tailwind/secondary_colors/blue.css +10 -10
- data/app/assets/stylesheets/light/tailwind/secondary_colors/cyan.css +10 -10
- data/app/assets/stylesheets/light/tailwind/secondary_colors/emerald.css +10 -10
- data/app/assets/stylesheets/light/tailwind/secondary_colors/fuchsia.css +10 -10
- data/app/assets/stylesheets/light/tailwind/secondary_colors/gray.css +10 -10
- data/app/assets/stylesheets/light/tailwind/secondary_colors/green.css +10 -10
- data/app/assets/stylesheets/light/tailwind/secondary_colors/indigo.css +10 -10
- data/app/assets/stylesheets/light/tailwind/secondary_colors/lime.css +10 -10
- data/app/assets/stylesheets/light/tailwind/secondary_colors/neutral.css +10 -10
- data/app/assets/stylesheets/light/tailwind/secondary_colors/orange.css +10 -10
- data/app/assets/stylesheets/light/tailwind/secondary_colors/pink.css +10 -10
- data/app/assets/stylesheets/light/tailwind/secondary_colors/purple.css +10 -10
- data/app/assets/stylesheets/light/tailwind/secondary_colors/red.css +10 -10
- data/app/assets/stylesheets/light/tailwind/secondary_colors/rose.css +10 -10
- data/app/assets/stylesheets/light/tailwind/secondary_colors/sky.css +10 -10
- data/app/assets/stylesheets/light/tailwind/secondary_colors/slate.css +10 -10
- data/app/assets/stylesheets/light/tailwind/secondary_colors/stone.css +10 -10
- data/app/assets/stylesheets/light/tailwind/secondary_colors/teal.css +10 -10
- data/app/assets/stylesheets/light/tailwind/secondary_colors/violet.css +10 -10
- data/app/assets/stylesheets/light/tailwind/secondary_colors/yellow.css +10 -10
- data/app/assets/stylesheets/light/tailwind/secondary_colors/zinc.css +10 -10
- data/app/assets/stylesheets/light/tailwind/utilities.css +17 -15
- data/app/assets/stylesheets/light.tailwind.css +65 -6
- data/app/views/themes/light/_box.html.erb +1 -1
- data/app/views/themes/light/layouts/_account.html.erb +1 -1
- data/app/views/themes/light/layouts/_mailer.html.erb +15 -3
- data/app/views/themes/light/menu/_item.html.erb +1 -1
- data/app/views/themes/light/menu/_subsection.html.erb +1 -1
- data/lib/bullet_train/themes/light/version.rb +1 -1
- metadata +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
.theme-secondary-violet {
|
|
2
|
-
--secondary-50:
|
|
3
|
-
--secondary-100:
|
|
4
|
-
--secondary-200:
|
|
5
|
-
--secondary-300:
|
|
6
|
-
--secondary-400:
|
|
7
|
-
--secondary-500:
|
|
8
|
-
--secondary-600:
|
|
9
|
-
--secondary-700:
|
|
10
|
-
--secondary-800:
|
|
11
|
-
--secondary-900:
|
|
2
|
+
--secondary-50: var(--color-violet-50);
|
|
3
|
+
--secondary-100: var(--color-violet-100);
|
|
4
|
+
--secondary-200: var(--color-violet-200);
|
|
5
|
+
--secondary-300: var(--color-violet-300);
|
|
6
|
+
--secondary-400: var(--color-violet-400);
|
|
7
|
+
--secondary-500: var(--color-violet-500);
|
|
8
|
+
--secondary-600: var(--color-violet-600);
|
|
9
|
+
--secondary-700: var(--color-violet-700);
|
|
10
|
+
--secondary-800: var(--color-violet-800);
|
|
11
|
+
--secondary-900: var(--color-violet-900);
|
|
12
12
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
.theme-secondary-yellow {
|
|
2
|
-
--secondary-50:
|
|
3
|
-
--secondary-100:
|
|
4
|
-
--secondary-200:
|
|
5
|
-
--secondary-300:
|
|
6
|
-
--secondary-400:
|
|
7
|
-
--secondary-500:
|
|
8
|
-
--secondary-600:
|
|
9
|
-
--secondary-700:
|
|
10
|
-
--secondary-800:
|
|
11
|
-
--secondary-900:
|
|
2
|
+
--secondary-50: var(--color-yellow-50);
|
|
3
|
+
--secondary-100: var(--color-yellow-100);
|
|
4
|
+
--secondary-200: var(--color-yellow-200);
|
|
5
|
+
--secondary-300: var(--color-yellow-300);
|
|
6
|
+
--secondary-400: var(--color-yellow-400);
|
|
7
|
+
--secondary-500: var(--color-yellow-500);
|
|
8
|
+
--secondary-600: var(--color-yellow-600);
|
|
9
|
+
--secondary-700: var(--color-yellow-700);
|
|
10
|
+
--secondary-800: var(--color-yellow-800);
|
|
11
|
+
--secondary-900: var(--color-yellow-900);
|
|
12
12
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
.theme-secondary-zinc {
|
|
2
|
-
--secondary-50:
|
|
3
|
-
--secondary-100:
|
|
4
|
-
--secondary-200:
|
|
5
|
-
--secondary-300:
|
|
6
|
-
--secondary-400:
|
|
7
|
-
--secondary-500:
|
|
8
|
-
--secondary-600:
|
|
9
|
-
--secondary-700:
|
|
10
|
-
--secondary-800:
|
|
11
|
-
--secondary-900:
|
|
2
|
+
--secondary-50: var(--color-zinc-50);
|
|
3
|
+
--secondary-100: var(--color-zinc-100);
|
|
4
|
+
--secondary-200: var(--color-zinc-200);
|
|
5
|
+
--secondary-300: var(--color-zinc-300);
|
|
6
|
+
--secondary-400: var(--color-zinc-400);
|
|
7
|
+
--secondary-500: var(--color-zinc-500);
|
|
8
|
+
--secondary-600: var(--color-zinc-600);
|
|
9
|
+
--secondary-700: var(--color-zinc-700);
|
|
10
|
+
--secondary-800: var(--color-zinc-800);
|
|
11
|
+
--secondary-900: var(--color-zinc-900);
|
|
12
12
|
}
|
|
@@ -2,24 +2,26 @@
|
|
|
2
2
|
@import "./utilities/billing";
|
|
3
3
|
@import "./utilities/scroll-reveal";
|
|
4
4
|
|
|
5
|
-
@
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
@utility space-y {
|
|
6
|
+
& > :not(:first-child) {
|
|
7
|
+
margin-top: calc(var(--spacing) * 5);
|
|
8
8
|
}
|
|
9
|
+
}
|
|
9
10
|
|
|
10
|
-
|
|
11
|
-
|
|
11
|
+
@utility space-x {
|
|
12
|
+
& > :not(:first-child) {
|
|
13
|
+
margin-left: calc(var(--spacing) * 3);
|
|
12
14
|
}
|
|
15
|
+
}
|
|
13
16
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
+
@utility gap-y {
|
|
18
|
+
row-gap: calc(var(--spacing) * 5);
|
|
19
|
+
}
|
|
17
20
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}
|
|
21
|
+
@utility gap-x {
|
|
22
|
+
column-gap: calc(var(--spacing) * 4);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
[hidden] {
|
|
26
|
+
display: none !important;
|
|
25
27
|
}
|
|
@@ -1,8 +1,67 @@
|
|
|
1
|
-
|
|
2
|
-
* This is an extra level of indirection because for some reason using @tailwind directives directly inside this file doesn't work.
|
|
3
|
-
* When we move to v4 we should be able to just to `@import "tailwindcss"` here.
|
|
4
|
-
*/
|
|
5
|
-
@import "tailwindcss_import";
|
|
1
|
+
@import "tailwindcss";
|
|
6
2
|
|
|
7
|
-
@
|
|
3
|
+
@source "../../../../../../config/initializers/theme.rb";
|
|
4
|
+
@source "../../../../../../app/views/**/*.html.{erb,slim,haml}";
|
|
5
|
+
@source "../../../../../../app/helpers/**/*.rb";
|
|
6
|
+
@source "../../../../../../app/assets/stylesheets/**/*.css";
|
|
7
|
+
@source "../../../../../../app/javascript/**/*.js";
|
|
8
|
+
@source "../../../../../../tmp/gems/*/app/views/**/*.html.erb";
|
|
9
|
+
@source "../../../../../../tmp/gems/*/app/helpers/**/*.rb";
|
|
10
|
+
@source "../../../../../../tmp/gems/*/app/assets/stylesheets/**/*.css";
|
|
11
|
+
@source "../../../../../../tmp/gems/*/app/javascript/**/*.js";
|
|
8
12
|
|
|
13
|
+
@plugin "@tailwindcss/forms";
|
|
14
|
+
@plugin "@tailwindcss/typography";
|
|
15
|
+
|
|
16
|
+
@variant dark (&:where(.dark, .dark *));
|
|
17
|
+
|
|
18
|
+
@theme {
|
|
19
|
+
--font-sans: "Inter var", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
|
|
20
|
+
|
|
21
|
+
--text-xs: 0.81rem;
|
|
22
|
+
--text-xs--line-height: 1.25rem;
|
|
23
|
+
|
|
24
|
+
--text-2xs: 0.65rem;
|
|
25
|
+
--text-2xs--line-height: 0.9rem;
|
|
26
|
+
--text-2xs--letter-spacing: 1px;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/* Use @theme inline for colors that reference CSS variables (for dynamic theming) */
|
|
30
|
+
@theme inline {
|
|
31
|
+
--color-primary-50: var(--primary-50);
|
|
32
|
+
--color-primary-100: var(--primary-100);
|
|
33
|
+
--color-primary-200: var(--primary-200);
|
|
34
|
+
--color-primary-300: var(--primary-300);
|
|
35
|
+
--color-primary-400: var(--primary-400);
|
|
36
|
+
--color-primary-500: var(--primary-500);
|
|
37
|
+
--color-primary-600: var(--primary-600);
|
|
38
|
+
--color-primary-700: var(--primary-700);
|
|
39
|
+
--color-primary-800: var(--primary-800);
|
|
40
|
+
--color-primary-900: var(--primary-900);
|
|
41
|
+
|
|
42
|
+
--color-secondary-50: var(--secondary-50);
|
|
43
|
+
--color-secondary-100: var(--secondary-100);
|
|
44
|
+
--color-secondary-200: var(--secondary-200);
|
|
45
|
+
--color-secondary-300: var(--secondary-300);
|
|
46
|
+
--color-secondary-400: var(--secondary-400);
|
|
47
|
+
--color-secondary-500: var(--secondary-500);
|
|
48
|
+
--color-secondary-600: var(--secondary-600);
|
|
49
|
+
--color-secondary-700: var(--secondary-700);
|
|
50
|
+
--color-secondary-800: var(--secondary-800);
|
|
51
|
+
--color-secondary-900: var(--secondary-900);
|
|
52
|
+
|
|
53
|
+
--color-base-50: var(--color-slate-50);
|
|
54
|
+
--color-base-100: var(--color-slate-100);
|
|
55
|
+
--color-base-200: var(--color-slate-200);
|
|
56
|
+
--color-base-300: var(--color-slate-300);
|
|
57
|
+
--color-base-400: var(--color-slate-400);
|
|
58
|
+
--color-base-500: var(--color-slate-500);
|
|
59
|
+
--color-base-600: var(--color-slate-600);
|
|
60
|
+
--color-base-700: var(--color-slate-700);
|
|
61
|
+
--color-base-800: var(--color-slate-800);
|
|
62
|
+
--color-base-900: var(--color-slate-900);
|
|
63
|
+
--color-base-950: var(--color-slate-950);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/* Theme's application styles - uses Tailwind's native import handling */
|
|
67
|
+
@import "./light/application.css";
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
<div class="<%= "bg-white rounded-md shadow dark:bg-base-700/50" unless no_background %> <%= "overflow-hidden" if overflow_hidden %> <%= border_top ? "border-t dark:border-base-500" : "" %>">
|
|
11
11
|
<% if partial.title? || partial.description? %>
|
|
12
|
-
<div class="py-6 px-8 <%= title_padding %> space-y-2 <%= 'border-b shadow-
|
|
12
|
+
<div class="py-6 px-8 <%= title_padding %> space-y-2 <%= 'border-b border-base-200 shadow-xs dark:border-base-600' if divider %>">
|
|
13
13
|
<% if partial.title? %>
|
|
14
14
|
<h2 class="text-xl font-semibold dark:text-white <%= title_size %>">
|
|
15
15
|
<%= partial.title %>
|
|
@@ -29,7 +29,7 @@
|
|
|
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-
|
|
32
|
+
<div class="flex flex-row items-center shadow-xs dark:shadow electron-draggable">
|
|
33
33
|
<%= render "account/shared/menu/open" %>
|
|
34
34
|
|
|
35
35
|
<nav class="flex overflow-auto px-1 lg:px-4 py-2 select-none" aria-label="Breadcrumb">
|
|
@@ -4,10 +4,22 @@
|
|
|
4
4
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
|
5
5
|
<title>Welcome to <%= t('application.name') %>!</title>
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
<% # TODO: Find out why Tailwind colors aren't working properly. %>
|
|
7
|
+
<% # Tailwind stylesheet disabled for v4 - CSS variables and modern features not supported by email clients %>
|
|
8
|
+
<% # Using inline styles instead for email compatibility %>
|
|
10
9
|
<style type="text/css">
|
|
10
|
+
/* Tailwind utility replacements for email compatibility */
|
|
11
|
+
.w-full { width: 100%; }
|
|
12
|
+
.m-0 { margin: 0; }
|
|
13
|
+
.m-auto { margin: auto; }
|
|
14
|
+
.p-0 { padding: 0; }
|
|
15
|
+
.p-6 { padding: 24px; }
|
|
16
|
+
.p-9 { padding: 36px; }
|
|
17
|
+
.mt-6 { margin-top: 24px; }
|
|
18
|
+
.pt-6 { padding-top: 24px; }
|
|
19
|
+
.text-center { text-align: center; }
|
|
20
|
+
.text-base { font-size: 16px; }
|
|
21
|
+
.text-xs { font-size: 13px; }
|
|
22
|
+
.no-underline { text-decoration: none; }
|
|
11
23
|
*:not(br):not(tr):not(html) {
|
|
12
24
|
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
|
13
25
|
box-sizing: border-box;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<% active ||= request.path == url %>
|
|
3
3
|
|
|
4
4
|
<%= send (method ? :button_to : :link_to), url, class: "block group/item hover:text-white hover:no-underline #{'bg-primary-900 dark:bg-black/10' if active} text-white #{@menu_orientation == :top ? "px-5 py-5" : "px-3 py-2 rounded-md"} #{"rounded-tl-lg" unless @not_first || BulletTrain::Themes::Light.show_logo_in_account} dark:text-white", data: {"desktop-menu-target": "menuItemLink"}, tabIndex: 0, method: method do %>
|
|
5
|
-
<div class="inline-
|
|
5
|
+
<div class="inline-flex <%= "transition group-hover/item:translate-x-3 duration-200" if @menu_orientation == :side %> items-center">
|
|
6
6
|
<!-- Heroicon name: home -->
|
|
7
7
|
<% if partial.icon? %>
|
|
8
8
|
<span class="mr-3 h-6 w-6 text-center text-secondary-300 text-xl leading-6 dark:text-base-400">
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
<% end %>
|
|
21
21
|
|
|
22
22
|
<div class="invisible absolute group-hover:visible transition duration-200 scale-90 group-hover:scale-100 z-40
|
|
23
|
-
<%= @menu_orientation == :top ? "group-hover:translate-x-3 top-
|
|
23
|
+
<%= @menu_orientation == :top ? "group-hover:translate-x-3 top-full left-0 -ml-10 -mt-2 pt-4" : "group-hover:translate-x-3 top-0 left-full -mt-3 -ml-5 pl-4" %>
|
|
24
24
|
"
|
|
25
25
|
data-desktop-menu-target="menuItemGroup"
|
|
26
26
|
>
|