bullet_train-themes-light 1.2.10 → 1.2.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/stylesheets/light/fields/date_field.css +1 -1
- data/app/assets/stylesheets/light/fields/index.css +5 -0
- data/app/assets/stylesheets/light/fields/super_select.css +5 -5
- data/app/assets/stylesheets/light/fields/trix_editor.css +1 -1
- data/app/assets/stylesheets/light/tailwind/colors/amber.css +23 -0
- data/app/assets/stylesheets/light/tailwind/colors/blue.css +23 -0
- data/app/assets/stylesheets/light/tailwind/colors/cyan.css +23 -0
- data/app/assets/stylesheets/light/tailwind/colors/emerald.css +23 -0
- data/app/assets/stylesheets/light/tailwind/colors/fuchsia.css +23 -0
- data/app/assets/stylesheets/light/tailwind/colors/gray.css +23 -0
- data/app/assets/stylesheets/light/tailwind/colors/green.css +23 -0
- data/app/assets/stylesheets/light/tailwind/colors/indigo.css +23 -0
- data/app/assets/stylesheets/light/tailwind/colors/lime.css +23 -0
- data/app/assets/stylesheets/light/tailwind/colors/neutral.css +23 -0
- data/app/assets/stylesheets/light/tailwind/colors/orange.css +23 -0
- data/app/assets/stylesheets/light/tailwind/colors/pink.css +23 -0
- data/app/assets/stylesheets/light/tailwind/colors/purple.css +23 -0
- data/app/assets/stylesheets/light/tailwind/colors/red.css +23 -0
- data/app/assets/stylesheets/light/tailwind/colors/rose.css +23 -0
- data/app/assets/stylesheets/light/tailwind/colors/sky.css +23 -0
- data/app/assets/stylesheets/light/tailwind/colors/slate.css +23 -0
- data/app/assets/stylesheets/light/tailwind/colors/stone.css +23 -0
- data/app/assets/stylesheets/light/tailwind/colors/teal.css +23 -0
- data/app/assets/stylesheets/light/tailwind/colors/violet.css +23 -0
- data/app/assets/stylesheets/light/tailwind/colors/yellow.css +23 -0
- data/app/assets/stylesheets/light/tailwind/colors/zinc.css +23 -0
- data/app/assets/stylesheets/light/tailwind/colors.css +45 -296
- data/app/assets/stylesheets/light/tailwind/components.css +14 -6
- data/app/assets/stylesheets/light/tailwind/dark-mode.css +29 -92
- data/app/assets/stylesheets/light/tailwind/secondary_colors/amber.css +12 -0
- data/app/assets/stylesheets/light/tailwind/secondary_colors/blue.css +12 -0
- data/app/assets/stylesheets/light/tailwind/secondary_colors/cyan.css +12 -0
- data/app/assets/stylesheets/light/tailwind/secondary_colors/emerald.css +12 -0
- data/app/assets/stylesheets/light/tailwind/secondary_colors/fuchsia.css +12 -0
- data/app/assets/stylesheets/light/tailwind/secondary_colors/gray.css +12 -0
- data/app/assets/stylesheets/light/tailwind/secondary_colors/green.css +12 -0
- data/app/assets/stylesheets/light/tailwind/secondary_colors/indigo.css +12 -0
- data/app/assets/stylesheets/light/tailwind/secondary_colors/lime.css +12 -0
- data/app/assets/stylesheets/light/tailwind/secondary_colors/neutral.css +12 -0
- data/app/assets/stylesheets/light/tailwind/secondary_colors/orange.css +12 -0
- data/app/assets/stylesheets/light/tailwind/secondary_colors/pink.css +12 -0
- data/app/assets/stylesheets/light/tailwind/secondary_colors/purple.css +12 -0
- data/app/assets/stylesheets/light/tailwind/secondary_colors/red.css +12 -0
- data/app/assets/stylesheets/light/tailwind/secondary_colors/rose.css +12 -0
- data/app/assets/stylesheets/light/tailwind/secondary_colors/sky.css +12 -0
- data/app/assets/stylesheets/light/tailwind/secondary_colors/slate.css +12 -0
- data/app/assets/stylesheets/light/tailwind/secondary_colors/stone.css +12 -0
- data/app/assets/stylesheets/light/tailwind/secondary_colors/teal.css +12 -0
- data/app/assets/stylesheets/light/tailwind/secondary_colors/violet.css +12 -0
- data/app/assets/stylesheets/light/tailwind/secondary_colors/yellow.css +12 -0
- data/app/assets/stylesheets/light/tailwind/secondary_colors/zinc.css +12 -0
- data/app/assets/stylesheets/light/tailwind/utilities.css +1 -22
- data/app/views/showcase/previews/partials/_alert.html.erb +16 -0
- data/app/views/showcase/previews/partials/_box.html.erb +43 -0
- data/app/views/showcase/previews/partials/_breadcrumb.html.erb +14 -0
- data/app/views/showcase/previews/partials/_page.html.erb +30 -0
- data/app/views/showcase/previews/partials/_title.html.erb +14 -0
- data/app/views/showcase/previews/partials/actions/_box.html.erb +11 -0
- data/app/views/showcase/previews/partials/actions/_list.html.erb +9 -0
- data/app/views/showcase/previews/tailwind/components/_button.html.erb +17 -0
- data/app/views/showcase/previews/tailwind/components/_link.html.erb +5 -0
- data/app/views/showcase/previews/tailwind/utilities/_small_text.html.erb +5 -0
- data/app/views/showcase/previews/tailwind/utilities/_spacing.html.erb +21 -0
- data/app/views/themes/light/_alert.html.erb +15 -11
- data/app/views/themes/light/_box.html.erb +5 -5
- data/app/views/themes/light/_breadcrumb.html.erb +3 -3
- data/app/views/themes/light/_cell.html.erb +2 -2
- data/app/views/themes/light/_decision_line.html.erb +2 -2
- data/app/views/themes/light/_line.html.erb +2 -2
- data/app/views/themes/light/_team.html.erb +30 -0
- data/app/views/themes/light/_well.html.erb +2 -2
- data/app/views/themes/light/actions/_action.html.erb +7 -7
- data/app/views/themes/light/actions/_list.html.erb +1 -1
- data/app/views/themes/light/attributes/_base.html.erb +1 -1
- data/app/views/themes/light/attributes/_progress_bar.html.erb +1 -1
- data/app/views/themes/light/billing/_pricing_table.html.erb +5 -5
- data/app/views/themes/light/commentary/_box.html.erb +1 -11
- data/app/views/themes/light/conversations/_card.html.erb +5 -5
- data/app/views/themes/light/conversations/_comment.html.erb +3 -3
- data/app/views/themes/light/conversations/_message.html.erb +7 -7
- data/app/views/themes/light/conversations/_thread_border.html.erb +1 -1
- data/app/views/themes/light/fields/_field.html.erb +4 -4
- data/app/views/themes/light/layouts/_account.html.erb +6 -6
- data/app/views/themes/light/layouts/_devise.html.erb +1 -2
- data/app/views/themes/light/menu/_account.html.erb +7 -3
- data/app/views/themes/light/menu/_heading.html.erb +1 -1
- data/app/views/themes/light/menu/_item.html.erb +2 -2
- data/app/views/themes/light/menu/_mobile.html.erb +6 -6
- data/app/views/themes/light/menu/_open.html.erb +1 -1
- data/app/views/themes/light/menu/_subsection.html.erb +5 -3
- data/app/views/themes/light/menu/_user.html.erb +1 -1
- data/app/views/themes/light/workflow/_box.html.erb +1 -1
- data/lib/bullet_train/themes/light/version.rb +1 -1
- data/lib/bullet_train/themes/light.rb +1 -0
- data/tailwind.light.config.js +8 -45
- metadata +58 -2
@@ -0,0 +1,12 @@
|
|
1
|
+
.theme-secondary-fuchsia {
|
2
|
+
--secondary-50: theme('colors.fuchsia.50');
|
3
|
+
--secondary-100: theme('colors.fuchsia.100');
|
4
|
+
--secondary-200: theme('colors.fuchsia.200');
|
5
|
+
--secondary-300: theme('colors.fuchsia.300');
|
6
|
+
--secondary-400: theme('colors.fuchsia.400');
|
7
|
+
--secondary-500: theme('colors.fuchsia.500');
|
8
|
+
--secondary-600: theme('colors.fuchsia.600');
|
9
|
+
--secondary-700: theme('colors.fuchsia.700');
|
10
|
+
--secondary-800: theme('colors.fuchsia.800');
|
11
|
+
--secondary-900: theme('colors.fuchsia.900');
|
12
|
+
}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
.theme-secondary-gray {
|
2
|
+
--secondary-50: theme('colors.slate.50');
|
3
|
+
--secondary-100: theme('colors.slate.100');
|
4
|
+
--secondary-200: theme('colors.slate.200');
|
5
|
+
--secondary-300: theme('colors.slate.300');
|
6
|
+
--secondary-400: theme('colors.slate.400');
|
7
|
+
--secondary-500: theme('colors.slate.500');
|
8
|
+
--secondary-600: theme('colors.slate.600');
|
9
|
+
--secondary-700: theme('colors.slate.700');
|
10
|
+
--secondary-800: theme('colors.slate.800');
|
11
|
+
--secondary-900: theme('colors.slate.900');
|
12
|
+
}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
.theme-secondary-green {
|
2
|
+
--secondary-50: theme('colors.green.50');
|
3
|
+
--secondary-100: theme('colors.green.100');
|
4
|
+
--secondary-200: theme('colors.green.200');
|
5
|
+
--secondary-300: theme('colors.green.300');
|
6
|
+
--secondary-400: theme('colors.green.400');
|
7
|
+
--secondary-500: theme('colors.green.500');
|
8
|
+
--secondary-600: theme('colors.green.600');
|
9
|
+
--secondary-700: theme('colors.green.700');
|
10
|
+
--secondary-800: theme('colors.green.800');
|
11
|
+
--secondary-900: theme('colors.green.900');
|
12
|
+
}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
.theme-secondary-indigo {
|
2
|
+
--secondary-50: theme('colors.indigo.50');
|
3
|
+
--secondary-100: theme('colors.indigo.100');
|
4
|
+
--secondary-200: theme('colors.indigo.200');
|
5
|
+
--secondary-300: theme('colors.indigo.300');
|
6
|
+
--secondary-400: theme('colors.indigo.400');
|
7
|
+
--secondary-500: theme('colors.indigo.500');
|
8
|
+
--secondary-600: theme('colors.indigo.600');
|
9
|
+
--secondary-700: theme('colors.indigo.700');
|
10
|
+
--secondary-800: theme('colors.indigo.800');
|
11
|
+
--secondary-900: theme('colors.indigo.900');
|
12
|
+
}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
.theme-secondary-lime {
|
2
|
+
--secondary-50: theme('colors.lime.50');
|
3
|
+
--secondary-100: theme('colors.lime.100');
|
4
|
+
--secondary-200: theme('colors.lime.200');
|
5
|
+
--secondary-300: theme('colors.lime.300');
|
6
|
+
--secondary-400: theme('colors.lime.400');
|
7
|
+
--secondary-500: theme('colors.lime.500');
|
8
|
+
--secondary-600: theme('colors.lime.600');
|
9
|
+
--secondary-700: theme('colors.lime.700');
|
10
|
+
--secondary-800: theme('colors.lime.800');
|
11
|
+
--secondary-900: theme('colors.lime.900');
|
12
|
+
}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
.theme-secondary-neutral {
|
2
|
+
--secondary-50: theme('colors.neutral.50');
|
3
|
+
--secondary-100: theme('colors.neutral.100');
|
4
|
+
--secondary-200: theme('colors.neutral.200');
|
5
|
+
--secondary-300: theme('colors.neutral.300');
|
6
|
+
--secondary-400: theme('colors.neutral.400');
|
7
|
+
--secondary-500: theme('colors.neutral.500');
|
8
|
+
--secondary-600: theme('colors.neutral.600');
|
9
|
+
--secondary-700: theme('colors.neutral.700');
|
10
|
+
--secondary-800: theme('colors.neutral.800');
|
11
|
+
--secondary-900: theme('colors.neutral.900');
|
12
|
+
}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
.theme-secondary-orange {
|
2
|
+
--secondary-50: theme('colors.orange.50');
|
3
|
+
--secondary-100: theme('colors.orange.100');
|
4
|
+
--secondary-200: theme('colors.orange.200');
|
5
|
+
--secondary-300: theme('colors.orange.300');
|
6
|
+
--secondary-400: theme('colors.orange.400');
|
7
|
+
--secondary-500: theme('colors.orange.500');
|
8
|
+
--secondary-600: theme('colors.orange.600');
|
9
|
+
--secondary-700: theme('colors.orange.700');
|
10
|
+
--secondary-800: theme('colors.orange.800');
|
11
|
+
--secondary-900: theme('colors.orange.900');
|
12
|
+
}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
.theme-secondary-pink {
|
2
|
+
--secondary-50: theme('colors.pink.50');
|
3
|
+
--secondary-100: theme('colors.pink.100');
|
4
|
+
--secondary-200: theme('colors.pink.200');
|
5
|
+
--secondary-300: theme('colors.pink.300');
|
6
|
+
--secondary-400: theme('colors.pink.400');
|
7
|
+
--secondary-500: theme('colors.pink.500');
|
8
|
+
--secondary-600: theme('colors.pink.600');
|
9
|
+
--secondary-700: theme('colors.pink.700');
|
10
|
+
--secondary-800: theme('colors.pink.800');
|
11
|
+
--secondary-900: theme('colors.pink.900');
|
12
|
+
}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
.theme-secondary-purple {
|
2
|
+
--secondary-50: theme('colors.purple.50');
|
3
|
+
--secondary-100: theme('colors.purple.100');
|
4
|
+
--secondary-200: theme('colors.purple.200');
|
5
|
+
--secondary-300: theme('colors.purple.300');
|
6
|
+
--secondary-400: theme('colors.purple.400');
|
7
|
+
--secondary-500: theme('colors.purple.500');
|
8
|
+
--secondary-600: theme('colors.purple.600');
|
9
|
+
--secondary-700: theme('colors.purple.700');
|
10
|
+
--secondary-800: theme('colors.purple.800');
|
11
|
+
--secondary-900: theme('colors.purple.900');
|
12
|
+
}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
.theme-secondary-red {
|
2
|
+
--secondary-50: theme('colors.red.50');
|
3
|
+
--secondary-100: theme('colors.red.100');
|
4
|
+
--secondary-200: theme('colors.red.200');
|
5
|
+
--secondary-300: theme('colors.red.300');
|
6
|
+
--secondary-400: theme('colors.red.400');
|
7
|
+
--secondary-500: theme('colors.red.500');
|
8
|
+
--secondary-600: theme('colors.red.600');
|
9
|
+
--secondary-700: theme('colors.red.700');
|
10
|
+
--secondary-800: theme('colors.red.800');
|
11
|
+
--secondary-900: theme('colors.red.900');
|
12
|
+
}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
.theme-secondary-rose {
|
2
|
+
--secondary-50: theme('colors.rose.50');
|
3
|
+
--secondary-100: theme('colors.rose.100');
|
4
|
+
--secondary-200: theme('colors.rose.200');
|
5
|
+
--secondary-300: theme('colors.rose.300');
|
6
|
+
--secondary-400: theme('colors.rose.400');
|
7
|
+
--secondary-500: theme('colors.rose.500');
|
8
|
+
--secondary-600: theme('colors.rose.600');
|
9
|
+
--secondary-700: theme('colors.rose.700');
|
10
|
+
--secondary-800: theme('colors.rose.800');
|
11
|
+
--secondary-900: theme('colors.rose.900');
|
12
|
+
}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
.theme-secondary-sky {
|
2
|
+
--secondary-50: theme('colors.sky.50');
|
3
|
+
--secondary-100: theme('colors.sky.100');
|
4
|
+
--secondary-200: theme('colors.sky.200');
|
5
|
+
--secondary-300: theme('colors.sky.300');
|
6
|
+
--secondary-400: theme('colors.sky.400');
|
7
|
+
--secondary-500: theme('colors.sky.500');
|
8
|
+
--secondary-600: theme('colors.sky.600');
|
9
|
+
--secondary-700: theme('colors.sky.700');
|
10
|
+
--secondary-800: theme('colors.sky.800');
|
11
|
+
--secondary-900: theme('colors.sky.900');
|
12
|
+
}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
.theme-secondary-slate {
|
2
|
+
--secondary-50: theme('colors.slate.50');
|
3
|
+
--secondary-100: theme('colors.slate.100');
|
4
|
+
--secondary-200: theme('colors.slate.200');
|
5
|
+
--secondary-300: theme('colors.slate.300');
|
6
|
+
--secondary-400: theme('colors.slate.400');
|
7
|
+
--secondary-500: theme('colors.slate.500');
|
8
|
+
--secondary-600: theme('colors.slate.600');
|
9
|
+
--secondary-700: theme('colors.slate.700');
|
10
|
+
--secondary-800: theme('colors.slate.800');
|
11
|
+
--secondary-900: theme('colors.slate.900');
|
12
|
+
}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
.theme-secondary-stone {
|
2
|
+
--secondary-50: theme('colors.stone.50');
|
3
|
+
--secondary-100: theme('colors.stone.100');
|
4
|
+
--secondary-200: theme('colors.stone.200');
|
5
|
+
--secondary-300: theme('colors.stone.300');
|
6
|
+
--secondary-400: theme('colors.stone.400');
|
7
|
+
--secondary-500: theme('colors.stone.500');
|
8
|
+
--secondary-600: theme('colors.stone.600');
|
9
|
+
--secondary-700: theme('colors.stone.700');
|
10
|
+
--secondary-800: theme('colors.stone.800');
|
11
|
+
--secondary-900: theme('colors.stone.900');
|
12
|
+
}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
.theme-secondary-teal {
|
2
|
+
--secondary-50: theme('colors.teal.50');
|
3
|
+
--secondary-100: theme('colors.teal.100');
|
4
|
+
--secondary-200: theme('colors.teal.200');
|
5
|
+
--secondary-300: theme('colors.teal.300');
|
6
|
+
--secondary-400: theme('colors.teal.400');
|
7
|
+
--secondary-500: theme('colors.teal.500');
|
8
|
+
--secondary-600: theme('colors.teal.600');
|
9
|
+
--secondary-700: theme('colors.teal.700');
|
10
|
+
--secondary-800: theme('colors.teal.800');
|
11
|
+
--secondary-900: theme('colors.teal.900');
|
12
|
+
}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
.theme-secondary-violet {
|
2
|
+
--secondary-50: theme('colors.violet.50');
|
3
|
+
--secondary-100: theme('colors.violet.100');
|
4
|
+
--secondary-200: theme('colors.violet.200');
|
5
|
+
--secondary-300: theme('colors.violet.300');
|
6
|
+
--secondary-400: theme('colors.violet.400');
|
7
|
+
--secondary-500: theme('colors.violet.500');
|
8
|
+
--secondary-600: theme('colors.violet.600');
|
9
|
+
--secondary-700: theme('colors.violet.700');
|
10
|
+
--secondary-800: theme('colors.violet.800');
|
11
|
+
--secondary-900: theme('colors.violet.900');
|
12
|
+
}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
.theme-secondary-yellow {
|
2
|
+
--secondary-50: theme('colors.yellow.50');
|
3
|
+
--secondary-100: theme('colors.yellow.100');
|
4
|
+
--secondary-200: theme('colors.yellow.200');
|
5
|
+
--secondary-300: theme('colors.yellow.300');
|
6
|
+
--secondary-400: theme('colors.yellow.400');
|
7
|
+
--secondary-500: theme('colors.yellow.500');
|
8
|
+
--secondary-600: theme('colors.yellow.600');
|
9
|
+
--secondary-700: theme('colors.yellow.700');
|
10
|
+
--secondary-800: theme('colors.yellow.800');
|
11
|
+
--secondary-900: theme('colors.yellow.900');
|
12
|
+
}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
.theme-secondary-zinc {
|
2
|
+
--secondary-50: theme('colors.zinc.50');
|
3
|
+
--secondary-100: theme('colors.zinc.100');
|
4
|
+
--secondary-200: theme('colors.zinc.200');
|
5
|
+
--secondary-300: theme('colors.zinc.300');
|
6
|
+
--secondary-400: theme('colors.zinc.400');
|
7
|
+
--secondary-500: theme('colors.zinc.500');
|
8
|
+
--secondary-600: theme('colors.zinc.600');
|
9
|
+
--secondary-700: theme('colors.zinc.700');
|
10
|
+
--secondary-800: theme('colors.zinc.800');
|
11
|
+
--secondary-900: theme('colors.zinc.900');
|
12
|
+
}
|
@@ -23,28 +23,7 @@
|
|
23
23
|
.gap-x {
|
24
24
|
@apply gap-x-4;
|
25
25
|
}
|
26
|
-
|
27
|
-
.bg-dark-gradient {
|
28
|
-
background-image: linear-gradient(to bottom, var(--primary-700) 0%, var(--primary-800) 100%);
|
29
|
-
}
|
30
|
-
|
31
|
-
.bg-dark-awesome-gradient {
|
32
|
-
background-image: linear-gradient(to bottom right, darken(#D7BBEA, 45%) 10%, #0e369a 100%);
|
33
|
-
}
|
34
|
-
|
35
|
-
.bg-light-gradient {
|
36
|
-
&:before {
|
37
|
-
content: "";
|
38
|
-
position: fixed;
|
39
|
-
z-index: -1;
|
40
|
-
background: linear-gradient(to bottom right, var(--light-gradient-from), var(--light-gradient-to));
|
41
|
-
top: 0px;
|
42
|
-
left: 0px;
|
43
|
-
bottom: 0px;
|
44
|
-
right: 0px;
|
45
|
-
}
|
46
|
-
}
|
47
|
-
|
26
|
+
|
48
27
|
[hidden] {
|
49
28
|
display: none !important;
|
50
29
|
}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
<% showcase.sample "Basic" do %>
|
2
|
+
<%= render "shared/alert" do |p| %>
|
3
|
+
Example message.
|
4
|
+
<% end %>
|
5
|
+
<% end %>
|
6
|
+
|
7
|
+
<% showcase.sample "Error" do %>
|
8
|
+
<%= render "shared/alert", color: :red do |p| %>
|
9
|
+
Example error.
|
10
|
+
<% end %>
|
11
|
+
<% end %>
|
12
|
+
|
13
|
+
<% showcase.options do |o| %>
|
14
|
+
<% o.required :block, "Message" %>
|
15
|
+
<% o.optional :color, "Color", default: :yellow, options: %i[ yellow red ] %>
|
16
|
+
<% end %>
|
@@ -0,0 +1,43 @@
|
|
1
|
+
<% showcase.sample "Basic" do %>
|
2
|
+
<%= render "shared/box" do |partial| %>
|
3
|
+
<% partial.content_for :title, "Title" %>
|
4
|
+
<% partial.content_for :description, "Description" %>
|
5
|
+
<% partial.content_for :body, "Lorem ipsum dolor sit amet…" %>
|
6
|
+
<% end %>
|
7
|
+
<% end %>
|
8
|
+
|
9
|
+
<% showcase.sample "With Divider" do %>
|
10
|
+
<%= render "shared/box", divider: true do |partial| %>
|
11
|
+
<% partial.content_for :title, "Title" %>
|
12
|
+
<% partial.content_for :description, "Description" %>
|
13
|
+
<% partial.content_for :body, "Lorem ipsum dolor sit amet…" %>
|
14
|
+
<% end %>
|
15
|
+
<% end %>
|
16
|
+
|
17
|
+
<% showcase.sample "With top border" do %>
|
18
|
+
<%= render "shared/box", border_top: true do |partial| %>
|
19
|
+
<% partial.content_for :title, "Title" %>
|
20
|
+
<% end %>
|
21
|
+
<% end %>
|
22
|
+
|
23
|
+
<% showcase.sample "Without background" do %>
|
24
|
+
<%= render "shared/box", no_background: true do |partial| %>
|
25
|
+
<% partial.content_for :title, "Title" %>
|
26
|
+
<% end %>
|
27
|
+
<% end %>
|
28
|
+
|
29
|
+
<% showcase.options.context :nice_partials do |o| %>
|
30
|
+
<% o.optional.content_block :title %>
|
31
|
+
<% o.optional :title_size, "A CSS string to control title size" %>
|
32
|
+
<% o.optional :title_padding, "A CSS string to control title padding" %>
|
33
|
+
<% o.optional.content_block :description, "Content text to render beneath the title" %>
|
34
|
+
<% o.optional.content_block :table %>
|
35
|
+
<% o.optional.content_block :body, "The main content body of the element" %>
|
36
|
+
<% o.optional.content_block :footer, "Add a footer at the bottom within the container, with a top border and some padding" %>
|
37
|
+
<% o.optional.content_block :raw_footer, "Add a footer without a top border and padding" %>
|
38
|
+
<% o.optional.content_block :actions, "Content designated to contain actions, like buttons, beneath the body" %>
|
39
|
+
<% o.optional :pagy, "Pass in a pagy to render a pagy_nav below the body", type: "Pagy object" %>
|
40
|
+
<% o.optional :divider, "Whether to add dividers between sections", default: false %>
|
41
|
+
<% o.optional :border_top, "Whether to add a top border to the container element", default: false %>
|
42
|
+
<% o.optional :no_background, "Pass true to remove the surrounding background on the container", default: false %>
|
43
|
+
<% end %>
|
@@ -0,0 +1,14 @@
|
|
1
|
+
<% showcase.sample "Basic" do %>
|
2
|
+
<%= render "shared/breadcrumb", url: root_url, label: "Breadcrumb Link" %>
|
3
|
+
<%= render "shared/breadcrumb", label: "Unlinked label" %>
|
4
|
+
<% end %>
|
5
|
+
|
6
|
+
<%# TODO: Find a suitable url_for GET route here that every BulletTrain app would have. %>
|
7
|
+
<%# showcase.sample "With model url_for" do %>
|
8
|
+
<%#= render "shared/breadcrumb", url: [:account, Scaffolding::CompletelyConcrete::TangibleThing.new(id: 1)], label: "Concept" %>
|
9
|
+
<%# end %>
|
10
|
+
|
11
|
+
<% showcase.options do |o| %>
|
12
|
+
<% o.required :label, "The breadcrumb text, either shown in the link or the plain label" %>
|
13
|
+
<% o.optional :url, "A URL string, e.g. root_url, or something that's passed to url_for.", type: [String, "Valid url_for argument", "nil"].join("\n") %>
|
14
|
+
<% end %>
|
@@ -0,0 +1,30 @@
|
|
1
|
+
<% showcase.description do %>
|
2
|
+
<p>Partial to wrap an app page, like a #show view.</p>
|
3
|
+
|
4
|
+
<p>It's composed of three content sections:</p>
|
5
|
+
|
6
|
+
<p>
|
7
|
+
<ol>
|
8
|
+
<li>render "shared/title", with the title and actions provided.</li>
|
9
|
+
<li>render "shared/notices", for any account level notices.</li>
|
10
|
+
<li>Outputs the passed body.</li>
|
11
|
+
</ol>
|
12
|
+
</p>
|
13
|
+
<% end %>
|
14
|
+
|
15
|
+
<% showcase.sample "Basic" do %>
|
16
|
+
<%= render "shared/page" do |partial| %>
|
17
|
+
<% partial.content_for :title, "Title" %>
|
18
|
+
<% partial.content_for :actions do %>
|
19
|
+
<%= link_to "Home", root_url, class: "border-2 p-2 rounded-full border-indigo-300" %>
|
20
|
+
<%= link_to "Another link", root_url, class: "border-2 p-2 rounded-full border-indigo-300" %>
|
21
|
+
<% end %>
|
22
|
+
<% partial.content_for :body, "Lorem ipsum dolor sit amet…" %>
|
23
|
+
<% end %>
|
24
|
+
<% end %>
|
25
|
+
|
26
|
+
<% showcase.options.context :nice_partials do |o| %>
|
27
|
+
<% o.optional.content_block :title %>
|
28
|
+
<% o.optional.content_block :actions %>
|
29
|
+
<% o.optional.content_block :body %>
|
30
|
+
<% end %>
|
@@ -0,0 +1,14 @@
|
|
1
|
+
<% showcase.sample "Basic" do %>
|
2
|
+
<%= render "shared/title" do |partial| %>
|
3
|
+
<% partial.content_for :title, "Title" %>
|
4
|
+
<% partial.content_for :actions do %>
|
5
|
+
<%= link_to "Home", root_url, class: "border-2 p-2 rounded-full border-indigo-300" %>
|
6
|
+
<%= link_to "Another link", root_url, class: "border-2 p-2 rounded-full border-indigo-300" %>
|
7
|
+
<% end %>
|
8
|
+
<% end %>
|
9
|
+
<% end %>
|
10
|
+
|
11
|
+
<% showcase.options.context :nice_partials do |o| %>
|
12
|
+
<% o.optional.content_block :title %>
|
13
|
+
<% o.optional.content_block :actions %>
|
14
|
+
<% end %>
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<% showcase.sample "Basic" do %>
|
2
|
+
<%= render "shared/actions/box" do |partial| %>
|
3
|
+
<% partial.content_for :title, "Title" %>
|
4
|
+
<% partial.content_for :table, "Some table content" %>
|
5
|
+
<% end %>
|
6
|
+
<% end %>
|
7
|
+
|
8
|
+
<% showcase.options.context :nice_partials do |o| %>
|
9
|
+
<% o.optional.content_block :title %>
|
10
|
+
<% o.optional.content_block :table %>
|
11
|
+
<% end %>
|
@@ -0,0 +1,17 @@
|
|
1
|
+
<% showcase.description "Button styles are applied as a utility class." %>
|
2
|
+
|
3
|
+
<% showcase.sample "Basic" do %>
|
4
|
+
<a class="button">Default Button</a>
|
5
|
+
<% end %>
|
6
|
+
|
7
|
+
<% showcase.sample "Secondary" do %>
|
8
|
+
<a class="button-secondary">Secondary Button</a>
|
9
|
+
<% end %>
|
10
|
+
|
11
|
+
<% showcase.sample "Alternative" do %>
|
12
|
+
<a class="button-alternative">Alternative Button</a>
|
13
|
+
<% end %>
|
14
|
+
|
15
|
+
<% showcase.sample "Smaller" do %>
|
16
|
+
<a class="button button-smaller">Smaller Button</a>
|
17
|
+
<% end %>
|
@@ -0,0 +1,21 @@
|
|
1
|
+
<% showcase.description "Generic spacing utilities that can be mapped to a concrete Tailwind class by each theme." %>
|
2
|
+
|
3
|
+
<% showcase.sample "Vertical Spacing" do %>
|
4
|
+
<div class="space-y">
|
5
|
+
<div class="button block">Item</div>
|
6
|
+
<div class="button block">Item</div>
|
7
|
+
<div class="button block">Item</div>
|
8
|
+
<div class="button block">Item</div>
|
9
|
+
</div>
|
10
|
+
<% end %>
|
11
|
+
|
12
|
+
<% showcase.sample "Horizontal Spacing" do %>
|
13
|
+
<div class="flex space-x">
|
14
|
+
<div class="flex-1 button">Item</div>
|
15
|
+
<div class="flex-1 button">Item</div>
|
16
|
+
<div class="flex-1 button">Item</div>
|
17
|
+
<div class="flex-1 button">Item</div>
|
18
|
+
</div>
|
19
|
+
<% end %>
|
20
|
+
|
21
|
+
<% # TODO Add `gap-y` and `gap-x`. %>
|
@@ -1,15 +1,19 @@
|
|
1
|
-
<% color ||=
|
1
|
+
<% color ||= "yellow" %>
|
2
2
|
<% tighter ||= false %>
|
3
3
|
|
4
|
-
|
5
|
-
|
4
|
+
<%
|
5
|
+
case color.to_sym
|
6
|
+
when :yellow
|
7
|
+
div_classes = "bg-amber-100 border-amber-200"
|
8
|
+
header_classes = "text-amber-800"
|
9
|
+
when :red
|
10
|
+
div_classes = "bg-red-300 border-red-400"
|
11
|
+
header_classes = "text-red-700"
|
12
|
+
end
|
13
|
+
%>
|
14
|
+
|
15
|
+
<div class="rounded-md border <%= div_classes %> py-4 px-5 mb-3">
|
16
|
+
<h3 class="text-sm <%= header_classes %> font-light">
|
6
17
|
<%= yield %>
|
7
18
|
</h3>
|
8
|
-
</div>
|
9
|
-
|
10
|
-
<% # we have to list out the evaluations we want possible above so purgecss includes them in production. %>
|
11
|
-
<% if false %>
|
12
|
-
<div class="bg-yellow-400 border-yellow-500 dark:border-yellow-200 text-yellow-800 dark:text-yellow-200"></div>
|
13
|
-
<div class="bg-red-400 border-red-500 dark:border-red-200 text-red-800 dark:text-red-200"></div>
|
14
|
-
<div class="bg-blue-400 border-blue-500 dark:border-blue-200 text-blue-800 dark:text-blue-200"></div>
|
15
|
-
<% end %>
|
19
|
+
</div>
|
@@ -8,8 +8,8 @@
|
|
8
8
|
<% body = p.content_for(:body) || p.content_for(:raw_body) %>
|
9
9
|
<% pagy ||= nil %>
|
10
10
|
|
11
|
-
<div class="<%= "bg-white rounded-md shadow dark:bg-
|
12
|
-
<div class="py-6 px-8 <%= title_padding %> space-y-2 <%= 'border-b shadow-sm dark:border-
|
11
|
+
<div class="<%= "bg-white rounded-md shadow dark:bg-slate-700 dark:bg-opacity-50" unless no_background %> overflow-hidden <%= border_top ? "border-t dark:border-slate-500" : "" %>">
|
12
|
+
<div class="py-6 px-8 <%= title_padding %> space-y-2 <%= 'border-b shadow-sm dark:border-slate-600' if divider %>">
|
13
13
|
<% if p.content_for? :title %>
|
14
14
|
<h2 class="text-xl font-semibold dark:text-white <%= title_size %>">
|
15
15
|
<%= p.content_for :title %>
|
@@ -17,7 +17,7 @@
|
|
17
17
|
<% end %>
|
18
18
|
|
19
19
|
<% if p.content_for? :description %>
|
20
|
-
<p class="text-
|
20
|
+
<p class="text-slate-400 font-light leading-normal">
|
21
21
|
<%= p.content_for :description %>
|
22
22
|
</p>
|
23
23
|
<% end %>
|
@@ -55,13 +55,13 @@
|
|
55
55
|
</div>
|
56
56
|
|
57
57
|
<% if p.content_for? :footer %>
|
58
|
-
<div class="py-4 px-8 bg-
|
58
|
+
<div class="py-4 px-8 bg-slate-50 border-t dark:bg-slate-900 dark:border-slate-600">
|
59
59
|
<%= p.content_for :footer %>
|
60
60
|
</div>
|
61
61
|
<% end %>
|
62
62
|
|
63
63
|
<% if p.content_for? :raw_footer %>
|
64
|
-
<div class="bg-
|
64
|
+
<div class="bg-slate-50 dark:bg-slate-900">
|
65
65
|
<%= p.content_for :raw_footer %>
|
66
66
|
</div>
|
67
67
|
<% end %>
|
@@ -7,15 +7,15 @@
|
|
7
7
|
<li>
|
8
8
|
<div class="flex items-center">
|
9
9
|
<!-- Heroicon name: chevron-right -->
|
10
|
-
<svg class="flex-shrink-0 h-3 w-3 text-
|
10
|
+
<svg class="flex-shrink-0 h-3 w-3 text-slate-400" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true">
|
11
11
|
<path fill-rule="evenodd" d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z" clip-rule="evenodd" />
|
12
12
|
</svg>
|
13
13
|
|
14
|
-
<% item_style = "ml-3 text-
|
14
|
+
<% item_style = "ml-3 text-slate-500 uppercase text-2xs tracking-widest" %>
|
15
15
|
|
16
16
|
<% # don't link to the same page we're already on. %>
|
17
17
|
<% if url && url != request.url %>
|
18
|
-
<%= link_to label, url, class: "#{item_style} hover:text-
|
18
|
+
<%= link_to label, url, class: "#{item_style} hover:text-slate-700 hover:underline dark:text-primary-300" %>
|
19
19
|
<% else %>
|
20
20
|
<span class="<%= item_style %>"><%= label %></span>
|
21
21
|
<% end %>
|
@@ -26,13 +26,13 @@
|
|
26
26
|
</div>
|
27
27
|
|
28
28
|
<% if completion_percent %>
|
29
|
-
<div class="mt-3 h-4 bg-
|
29
|
+
<div class="mt-3 h-4 bg-slate-100 shadow-inner rounded w-full">
|
30
30
|
<div class="h-4 animate-pulse bg-primary-500 rounded" style="width: <%= completion_percent %>%"></div>
|
31
31
|
</div>
|
32
32
|
<% end %>
|
33
33
|
|
34
34
|
<% if p.content_for? :status %>
|
35
|
-
<div class="<% "mt-2" if completion_percent %> uppercase text-xs text-
|
35
|
+
<div class="<% "mt-2" if completion_percent %> uppercase text-xs text-slate-400">
|
36
36
|
<%= p.content_for :status %>
|
37
37
|
</div>
|
38
38
|
<% end %>
|
@@ -2,10 +2,10 @@
|
|
2
2
|
|
3
3
|
<div class="relative">
|
4
4
|
<div class="absolute inset-0 flex items-center">
|
5
|
-
<div class="w-full border-t border-
|
5
|
+
<div class="w-full border-t border-slate-300 dark:border-slate-500"></div>
|
6
6
|
</div>
|
7
7
|
<div class="relative flex justify-center">
|
8
|
-
<span class="px-2 bg-white text-
|
8
|
+
<span class="px-2 bg-white text-slate-500 uppercase text-xs dark:text-slate-300 dark:bg-slate-700">
|
9
9
|
<%= label %>
|
10
10
|
</span>
|
11
11
|
</div>
|
@@ -1,3 +1,3 @@
|
|
1
|
-
<div class="border-b border-
|
2
|
-
<div style="background-color: var(--primary-500); width: 26px; height:
|
1
|
+
<div class="border-b border-slate-200 pb-4 dark:border-slate-600" style="position: relative;">
|
2
|
+
<div style="background-color: var(--primary-500); width: 26px; height: 3px; position: absolute; left: 0; bottom: -2px; border: 1px solid var(--primary-500); border-radius: 1px;"></div>
|
3
3
|
</div>
|
@@ -0,0 +1,30 @@
|
|
1
|
+
<% yield p = np %>
|
2
|
+
|
3
|
+
<% link_url ||= "#" %>
|
4
|
+
<% memberships ||= [] %>
|
5
|
+
|
6
|
+
<li class="bg-white shadow overflow-hidden sm:rounded-md dark:bg-slate-700">
|
7
|
+
<%= link_to link_url, class: "group block hover:bg-slate-50 dark:hover:bg-slate-400 dark:text-slate-800" do %>
|
8
|
+
<div class="px-4 py-4 flex items-center sm:pl-8 sm:pr-6">
|
9
|
+
<div class="min-w-0 flex-1 sm:flex sm:items-center sm:justify-between">
|
10
|
+
<div>
|
11
|
+
<% if p.content_for? :name %>
|
12
|
+
<div class="flex text-xl font-semibold text-blue uppercase group-hover:text-blue-800 tracking-widest dark:text-white">
|
13
|
+
<%= p.content_for :name %>
|
14
|
+
</div>
|
15
|
+
<% end %>
|
16
|
+
</div>
|
17
|
+
<div class="mt-4 flex-shrink-0 sm:mt-0">
|
18
|
+
<div class="flex overflow-hidden">
|
19
|
+
<%= render 'account/shared/memberships/photos', memberships: memberships %>
|
20
|
+
</div>
|
21
|
+
</div>
|
22
|
+
</div>
|
23
|
+
<div class="ml-5 flex-shrink-0">
|
24
|
+
<svg class="h-5 w-5 text-slate-400" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true">
|
25
|
+
<path fill-rule="evenodd" d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z" clip-rule="evenodd" />
|
26
|
+
</svg>
|
27
|
+
</div>
|
28
|
+
</div>
|
29
|
+
<% end %>
|
30
|
+
</li>
|