bullet_train-themes-light 1.2.21 → 1.2.22
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/fields/trix_editor.css +22 -1
- data/app/views/showcase/previews/partials/_breadcrumb.html.erb +5 -3
- data/app/views/showcase/previews/partials/_cell.html.erb +26 -0
- data/app/views/showcase/previews/partials/_decision_line.html.erb +7 -0
- data/app/views/showcase/previews/partials/_line.html.erb +3 -0
- data/app/views/showcase/previews/partials/_link_row.html.erb +14 -0
- data/app/views/showcase/previews/partials/_notices.html.erb +6 -0
- data/app/views/showcase/previews/partials/_page.html.erb +12 -8
- data/app/views/showcase/previews/partials/_team.html.erb +24 -0
- data/app/views/showcase/previews/partials/_well.html.erb +15 -0
- data/app/views/themes/light/layouts/_devise.html.erb +1 -0
- data/app/views/themes/light/menu/_item.html.erb +2 -2
- data/app/views/themes/light/menu/_top.html.erb +1 -1
- data/lib/bullet_train/themes/light/version.rb +1 -1
- data/tailwind.light.config.js +1 -1
- metadata +10 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 67367b9464777782a448ae07081d0dbba4648de4abf4891bfbed868669930c73
|
4
|
+
data.tar.gz: 308b9b577c423a17e2d9fde7a72a1dec9271e365e1e836a06a2cbb2020bf2ce6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5dd7640b8d322da446835d131cbf1591700998e5c5bd1e3cb0bb74397b8e901a91ab4e0bd4197e2fd57edfb5c05a24c2c826a2b8468cfd6eef9f8755d6a2db7b
|
7
|
+
data.tar.gz: 74e82c641dd38cd844afaeafc6d7ccf097e6a09c74d0ad5104f1b861d02a95c983f1318081becd1b8c36b91c23f1fd05e4275b42874a8762fd657e69e7dfad21
|
@@ -9,6 +9,27 @@ trix-toolbar {
|
|
9
9
|
}
|
10
10
|
}
|
11
11
|
|
12
|
+
/* Override Tailwind's preflight styles */
|
13
|
+
/* https://github.com/tailwindlabs/tailwindcss/issues/989#issuecomment-506555308 */
|
14
|
+
trix-editor ul {
|
15
|
+
list-style-type: disc;
|
16
|
+
padding-left: 2.5rem;
|
17
|
+
}
|
18
|
+
|
19
|
+
trix-editor ol {
|
20
|
+
list-style-type: decimal;
|
21
|
+
padding-left: 2.5rem;
|
22
|
+
}
|
23
|
+
|
24
|
+
.trix-button {
|
25
|
+
@apply dark:bg-slate-300 !important;
|
26
|
+
}
|
27
|
+
|
28
|
+
/* Prevent red ring on Trix Editor */
|
29
|
+
:-moz-focusring {
|
30
|
+
outline-style: none;
|
31
|
+
}
|
32
|
+
|
12
33
|
a[href^="bullettrain://"], span.tribute-reference {
|
13
34
|
border-radius: 4px;
|
14
35
|
display: inline-block;
|
@@ -91,4 +112,4 @@ trix-editor {
|
|
91
112
|
|
92
113
|
.trix-content {
|
93
114
|
@apply text-base md:text-sm;
|
94
|
-
}
|
115
|
+
}
|
@@ -1,11 +1,13 @@
|
|
1
1
|
<% showcase.sample "Basic" do %>
|
2
|
-
|
3
|
-
|
2
|
+
<ul>
|
3
|
+
<%= render "shared/breadcrumb", url: root_url, label: "Breadcrumb Link" %>
|
4
|
+
<%= render "shared/breadcrumb", label: "Unlinked label" %>
|
5
|
+
</ul>
|
4
6
|
<% end %>
|
5
7
|
|
6
8
|
<%# TODO: Find a suitable url_for GET route here that every BulletTrain app would have. %>
|
7
9
|
<%# showcase.sample "With model url_for" do %>
|
8
|
-
|
10
|
+
<%#= render "shared/breadcrumb", url: [:account, Scaffolding::CompletelyConcrete::TangibleThing.new(id: 1)], label: "Concept" %>
|
9
11
|
<%# end %>
|
10
12
|
|
11
13
|
<% showcase.options do |o| %>
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<% showcase.sample "Basic" do %>
|
2
|
+
<%= render "shared/cell" do |cell| %>
|
3
|
+
<% cell.memberships "Membership" %>
|
4
|
+
<% cell.title "Title" %>
|
5
|
+
<% cell.actions "Action" %>
|
6
|
+
<% cell.status "Status" %>
|
7
|
+
<% end %>
|
8
|
+
<% end %>
|
9
|
+
|
10
|
+
<% showcase.sample "With completion percentage" do %>
|
11
|
+
<%= render "shared/cell", completion_percent: 10 do |cell| %>
|
12
|
+
<% cell.memberships "Membership" %>
|
13
|
+
<% cell.title "Title" %>
|
14
|
+
<% cell.actions tag.a("Actions", class: "button-alternative") %>
|
15
|
+
<% cell.status "Status" %>
|
16
|
+
<% end %>
|
17
|
+
<% end %>
|
18
|
+
|
19
|
+
|
20
|
+
<% showcase.options.context :nice_partials do |o| %>
|
21
|
+
<% o.optional :completion_percent %>
|
22
|
+
<% o.optional.content_block :memberships %>
|
23
|
+
<% o.optional.content_block :title %>
|
24
|
+
<% o.optional.content_block :actions %>
|
25
|
+
<% o.optional.content_block :status %>
|
26
|
+
<% end %>
|
@@ -0,0 +1,14 @@
|
|
1
|
+
<% showcase.sample "Basic" do %>
|
2
|
+
<%= render "shared/link_row", path: new_user_session_path do |link_row| %>
|
3
|
+
<% link_row.body "Login Page" %>
|
4
|
+
<% end %>
|
5
|
+
<% end %>
|
6
|
+
|
7
|
+
<% showcase.sample "Without body" do %>
|
8
|
+
<%= render "shared/link_row", path: new_user_session_path %>
|
9
|
+
<% end %>
|
10
|
+
|
11
|
+
<% showcase.options.context :nice_partials do |o| %>
|
12
|
+
<% o.required :path, "Valid url path" %>
|
13
|
+
<% o.optional.content_block :body %>
|
14
|
+
<% end %>
|
@@ -1,15 +1,13 @@
|
|
1
1
|
<% showcase.description do %>
|
2
2
|
<p>Partial to wrap an app page, like a #show view.</p>
|
3
3
|
|
4
|
-
<p>It's composed of three content sections:</p>
|
4
|
+
<p class="py-4">It's composed of three content sections:</p>
|
5
5
|
|
6
|
-
<
|
7
|
-
<
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
</ol>
|
12
|
-
</p>
|
6
|
+
<ol class="list-decimal list-inside">
|
7
|
+
<li>render "shared/title", with the title and actions provided.</li>
|
8
|
+
<li>render "shared/notices", for any account level notices.</li>
|
9
|
+
<li>Outputs the passed body.</li>
|
10
|
+
</ol>
|
13
11
|
<% end %>
|
14
12
|
|
15
13
|
<% showcase.sample "Basic" do %>
|
@@ -33,6 +31,12 @@
|
|
33
31
|
<% end %>
|
34
32
|
<% end %>
|
35
33
|
|
34
|
+
<% showcase.sample "With notices" do %>
|
35
|
+
<% flash.now[:notice] = "Success Notice" %>
|
36
|
+
<% flash.now[:error] = "Error Notice" %>
|
37
|
+
<%= render "shared/page", title: "Title" %>
|
38
|
+
<% end %>
|
39
|
+
|
36
40
|
<% showcase.options.context :nice_partials do |o| %>
|
37
41
|
<% o.optional.content_block :title %>
|
38
42
|
<% o.optional.content_block :actions %>
|
@@ -0,0 +1,24 @@
|
|
1
|
+
<% showcase.sample "Basic" do %>
|
2
|
+
<ul>
|
3
|
+
<%= render "shared/team" do |cell| %>
|
4
|
+
<% cell.name "Name" %>
|
5
|
+
<% end %>
|
6
|
+
</ul>
|
7
|
+
<% end %>
|
8
|
+
|
9
|
+
<% if defined?(Membership.all) %>
|
10
|
+
<% showcase.sample "With Memberships" do %>
|
11
|
+
<ol>
|
12
|
+
<%= render "shared/team", memberships: Membership.all do |cell| %>
|
13
|
+
<% cell.name "Title" %>
|
14
|
+
<% end %>
|
15
|
+
</ol>
|
16
|
+
<% end %>
|
17
|
+
<% end %>
|
18
|
+
|
19
|
+
|
20
|
+
<% showcase.options.context :nice_partials do |o| %>
|
21
|
+
<% o.optional :link_url %>
|
22
|
+
<% o.optional :memberships %>
|
23
|
+
<% o.optional.content_block :name %>
|
24
|
+
<% end %>
|
@@ -0,0 +1,15 @@
|
|
1
|
+
<% showcase.sample "Basic" do %>
|
2
|
+
<%= render "shared/well" do |well| %>
|
3
|
+
<% well.title "Title" %>
|
4
|
+
<% well.description "I am description" %>
|
5
|
+
<% well.body "I am body" %>
|
6
|
+
<% well.raw_body tag.h2("I am raw_body") %>
|
7
|
+
<% end %>
|
8
|
+
<% end %>
|
9
|
+
|
10
|
+
<% showcase.options.context :nice_partials do |o| %>
|
11
|
+
<% o.optional.content_block :title %>
|
12
|
+
<% o.optional.content_block :description %>
|
13
|
+
<% o.optional.content_block :body %>
|
14
|
+
<% o.optional.content_block :raw_body %>
|
15
|
+
<% end %>
|
@@ -1,7 +1,7 @@
|
|
1
1
|
<% method ||= nil %>
|
2
2
|
<% active ||= request.path == url %>
|
3
3
|
|
4
|
-
<%= 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 %>
|
4
|
+
<%= 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 || BulletTrain::Themes::Light.show_logo_in_account} dark:text-white", data: {"desktop-menu-target": "menuItemLink"}, tabIndex: 0, method: method do %>
|
5
5
|
<div class="inline-block indent-child flex items-center">
|
6
6
|
<!-- Heroicon name: home -->
|
7
7
|
<% if partial.icon? %>
|
@@ -14,4 +14,4 @@
|
|
14
14
|
<% end %>
|
15
15
|
|
16
16
|
<% # Ugly, but works. %>
|
17
|
-
<% @not_first = true %>
|
17
|
+
<% @not_first = true %>
|
data/tailwind.light.config.js
CHANGED
@@ -4,7 +4,7 @@ const colors = require('tailwindcss/colors')
|
|
4
4
|
module.exports = {
|
5
5
|
content: [
|
6
6
|
'./config/initializers/theme.rb',
|
7
|
-
'./app/views/**/*.html.erb',
|
7
|
+
'./app/views/**/*.html.{erb,slim,haml}',
|
8
8
|
'./app/helpers/**/*.rb',
|
9
9
|
'./app/assets/stylesheets/**/*.css',
|
10
10
|
'./app/javascript/**/*.js',
|
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.
|
4
|
+
version: 1.2.22
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Culver
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-03-
|
11
|
+
date: 2023-03-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: standard
|
@@ -133,8 +133,15 @@ files:
|
|
133
133
|
- app/views/showcase/previews/partials/_alert.html.erb
|
134
134
|
- app/views/showcase/previews/partials/_box.html.erb
|
135
135
|
- app/views/showcase/previews/partials/_breadcrumb.html.erb
|
136
|
+
- app/views/showcase/previews/partials/_cell.html.erb
|
137
|
+
- app/views/showcase/previews/partials/_decision_line.html.erb
|
138
|
+
- app/views/showcase/previews/partials/_line.html.erb
|
139
|
+
- app/views/showcase/previews/partials/_link_row.html.erb
|
140
|
+
- app/views/showcase/previews/partials/_notices.html.erb
|
136
141
|
- app/views/showcase/previews/partials/_page.html.erb
|
142
|
+
- app/views/showcase/previews/partials/_team.html.erb
|
137
143
|
- app/views/showcase/previews/partials/_title.html.erb
|
144
|
+
- app/views/showcase/previews/partials/_well.html.erb
|
138
145
|
- app/views/showcase/previews/partials/actions/_box.html.erb
|
139
146
|
- app/views/showcase/previews/partials/actions/_list.html.erb
|
140
147
|
- app/views/showcase/previews/tailwind/components/_button.html.erb
|
@@ -218,7 +225,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
218
225
|
- !ruby/object:Gem::Version
|
219
226
|
version: '0'
|
220
227
|
requirements: []
|
221
|
-
rubygems_version: 3.
|
228
|
+
rubygems_version: 3.3.7
|
222
229
|
signing_key:
|
223
230
|
specification_version: 4
|
224
231
|
summary: 'Bullet Train Themes: Light'
|