iron-cms 0.4.5 → 0.5.1

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.
Files changed (41) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +3 -0
  3. data/app/assets/builds/iron.css +1154 -1395
  4. data/app/assets/tailwind/iron/application.css +3 -1
  5. data/app/assets/tailwind/iron/components/badge.css +97 -0
  6. data/app/assets/tailwind/iron/components/form.css +1 -1
  7. data/app/assets/tailwind/iron/components/input.css +2 -2
  8. data/app/assets/tailwind/iron/lexxy.css +366 -0
  9. data/app/controllers/iron/home_controller.rb +1 -0
  10. data/app/helpers/iron/application_helper.rb +4 -13
  11. data/app/helpers/iron/entries_helper.rb +0 -4
  12. data/app/helpers/iron/icons_helper.rb +7 -5
  13. data/app/helpers/iron/ui_helper.rb +22 -0
  14. data/app/javascript/iron/application.js +5 -3
  15. data/app/views/iron/block_definitions/_block_definition.html.erb +2 -2
  16. data/app/views/iron/content_types/_content_type.html.erb +2 -2
  17. data/app/views/iron/content_types/show.html.erb +1 -1
  18. data/app/views/iron/entries/fields/_rich_text_area.html.erb +1 -3
  19. data/app/views/iron/field_definitions/_field_definition.html.erb +2 -4
  20. data/app/views/iron/home/show.html.erb +48 -2
  21. data/app/views/iron/locales/_locale.html.erb +1 -1
  22. data/app/views/iron/users/_user.html.erb +1 -1
  23. data/app/views/layouts/action_text/contents/_content.html.erb +1 -1
  24. data/app/views/layouts/iron/_sidebar_content.html.erb +30 -6
  25. data/app/views/layouts/iron/_user_menu.html.erb +1 -1
  26. data/app/views/layouts/iron/authentication.html.erb +1 -1
  27. data/config/importmap.rb +2 -2
  28. data/lib/iron/engine.rb +2 -0
  29. data/lib/iron/version.rb +1 -1
  30. data/lib/iron.rb +0 -1
  31. data/lib/puma/plugin/iron_tailwindcss.rb +8 -8
  32. data/lib/tasks/iron_tailwindcss.rake +33 -0
  33. data/vendor/javascript/lexxy.js +10814 -0
  34. metadata +20 -8
  35. data/app/assets/tailwind/iron/actiontext.css +0 -550
  36. data/app/helpers/iron/block_helper.rb +0 -4
  37. data/app/helpers/iron/buttons_helper.rb +0 -14
  38. data/app/helpers/iron/components/badge_helper.rb +0 -70
  39. data/app/javascript/iron/controllers/trix_controller.js +0 -19
  40. data/lib/iron/cva.rb +0 -69
  41. data/vendor/javascript/trix.js +0 -5
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iron-cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.5
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Massimo De Marchi
@@ -51,6 +51,20 @@ dependencies:
51
51
  - - "~>"
52
52
  - !ruby/object:Gem::Version
53
53
  version: '8.0'
54
+ - !ruby/object:Gem::Dependency
55
+ name: lexxy
56
+ requirement: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - "~>"
59
+ - !ruby/object:Gem::Version
60
+ version: 0.1.22.beta
61
+ type: :runtime
62
+ prerelease: false
63
+ version_requirements: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - "~>"
66
+ - !ruby/object:Gem::Version
67
+ version: 0.1.22.beta
54
68
  - !ruby/object:Gem::Dependency
55
69
  name: importmap-rails
56
70
  requirement: !ruby/object:Gem::Requirement
@@ -176,8 +190,8 @@ files:
176
190
  - app/assets/builds/iron.css
177
191
  - app/assets/config/iron_manifest.js
178
192
  - app/assets/images/iron/icons/sprite.svg
179
- - app/assets/tailwind/iron/actiontext.css
180
193
  - app/assets/tailwind/iron/application.css
194
+ - app/assets/tailwind/iron/components/badge.css
181
195
  - app/assets/tailwind/iron/components/button.css
182
196
  - app/assets/tailwind/iron/components/dropdown.css
183
197
  - app/assets/tailwind/iron/components/fieldset.css
@@ -187,6 +201,7 @@ files:
187
201
  - app/assets/tailwind/iron/components/page.css
188
202
  - app/assets/tailwind/iron/components/sidebar.css
189
203
  - app/assets/tailwind/iron/components/textarea.css
204
+ - app/assets/tailwind/iron/lexxy.css
190
205
  - app/controllers/concerns/iron/authentication.rb
191
206
  - app/controllers/concerns/iron/authorization.rb
192
207
  - app/controllers/concerns/iron/locale_aware.rb
@@ -212,15 +227,13 @@ files:
212
227
  - app/controllers/iron/users_controller.rb
213
228
  - app/helpers/iron/application_helper.rb
214
229
  - app/helpers/iron/avatar_helper.rb
215
- - app/helpers/iron/block_helper.rb
216
- - app/helpers/iron/buttons_helper.rb
217
- - app/helpers/iron/components/badge_helper.rb
218
230
  - app/helpers/iron/content_types_helper.rb
219
231
  - app/helpers/iron/entries_helper.rb
220
232
  - app/helpers/iron/field_definitions_helper.rb
221
233
  - app/helpers/iron/form_builder.rb
222
234
  - app/helpers/iron/icons_helper.rb
223
235
  - app/helpers/iron/image_helper.rb
236
+ - app/helpers/iron/ui_helper.rb
224
237
  - app/javascript/iron/application.js
225
238
  - app/javascript/iron/controllers/application.js
226
239
  - app/javascript/iron/controllers/element_controller.js
@@ -231,7 +244,6 @@ files:
231
244
  - app/javascript/iron/controllers/index.js
232
245
  - app/javascript/iron/controllers/sortable_list_controller.js
233
246
  - app/javascript/iron/controllers/toggle_controller.js
234
- - app/javascript/iron/controllers/trix_controller.js
235
247
  - app/javascript/iron/lib/lexorank.js
236
248
  - app/jobs/iron/application_job.rb
237
249
  - app/jobs/iron/generate_entry_routes_job.rb
@@ -418,7 +430,6 @@ files:
418
430
  - lib/generators/iron/template/templates/content_type.html.erb
419
431
  - lib/iron-cms.rb
420
432
  - lib/iron.rb
421
- - lib/iron/cva.rb
422
433
  - lib/iron/engine.rb
423
434
  - lib/iron/global_id/instance_scoped_locator.rb
424
435
  - lib/iron/image_analyzer.rb
@@ -432,9 +443,10 @@ files:
432
443
  - lib/iron/test_fixtures.rb
433
444
  - lib/iron/version.rb
434
445
  - lib/puma/plugin/iron_tailwindcss.rb
446
+ - lib/tasks/iron_tailwindcss.rake
435
447
  - lib/tasks/iron_tasks.rake
436
448
  - vendor/javascript/@tailwindplus--elements.js
437
- - vendor/javascript/trix.js
449
+ - vendor/javascript/lexxy.js
438
450
  homepage: https://github.com/inkOfPixel/iron
439
451
  licenses:
440
452
  - MIT
@@ -1,550 +0,0 @@
1
- /*
2
- * Default Trix editor styles. See Action Text overwrites below.
3
- */
4
-
5
- @layer components {
6
- trix-editor {
7
- border: 1px solid #bbb;
8
- border-radius: 3px;
9
- margin: 0;
10
- padding: 0.4em 0.6em;
11
- min-height: 5em;
12
- outline: none;
13
- }
14
-
15
- trix-toolbar * {
16
- box-sizing: border-box;
17
- }
18
-
19
- trix-toolbar .trix-button-row {
20
- display: flex;
21
- flex-wrap: nowrap;
22
- justify-content: space-between;
23
- overflow-x: auto;
24
- }
25
-
26
- trix-toolbar .trix-button-group {
27
- display: flex;
28
- margin-bottom: 10px;
29
- border: 1px solid #bbb;
30
- border-top-color: #ccc;
31
- border-bottom-color: #888;
32
- border-radius: 3px;
33
- }
34
- trix-toolbar .trix-button-group:not(:first-child) {
35
- margin-left: 1.5vw;
36
- }
37
- @media (max-width: 768px) {
38
- trix-toolbar .trix-button-group:not(:first-child) {
39
- margin-left: 0;
40
- }
41
- }
42
-
43
- trix-toolbar .trix-button-group-spacer {
44
- flex-grow: 1;
45
- }
46
- @media (max-width: 768px) {
47
- trix-toolbar .trix-button-group-spacer {
48
- display: none;
49
- }
50
- }
51
-
52
- trix-toolbar .trix-button {
53
- position: relative;
54
- float: left;
55
- color: rgba(0, 0, 0, 0.6);
56
- font-size: 0.75em;
57
- font-weight: 600;
58
- white-space: nowrap;
59
- padding: 0 0.5em;
60
- margin: 0;
61
- outline: none;
62
- border: none;
63
- border-bottom: 1px solid #ddd;
64
- border-radius: 0;
65
- background: transparent;
66
- }
67
- trix-toolbar .trix-button:not(:first-child) {
68
- border-left: 1px solid #ccc;
69
- }
70
- trix-toolbar .trix-button.trix-active {
71
- background: #cbeefa;
72
- color: black;
73
- }
74
- trix-toolbar .trix-button:not(:disabled) {
75
- cursor: pointer;
76
- }
77
- trix-toolbar .trix-button:disabled {
78
- color: rgba(0, 0, 0, 0.125);
79
- }
80
- @media (max-width: 768px) {
81
- trix-toolbar .trix-button {
82
- letter-spacing: -0.01em;
83
- padding: 0 0.3em;
84
- }
85
- }
86
-
87
- trix-toolbar .trix-button--icon {
88
- font-size: inherit;
89
- width: 2.6em;
90
- height: 1.6em;
91
- max-width: calc(0.8em + 4vw);
92
- text-indent: -9999px;
93
- }
94
- @media (max-width: 768px) {
95
- trix-toolbar .trix-button--icon {
96
- height: 2em;
97
- max-width: calc(0.8em + 3.5vw);
98
- }
99
- }
100
- trix-toolbar .trix-button--icon::before {
101
- display: inline-block;
102
- position: absolute;
103
- top: 0;
104
- right: 0;
105
- bottom: 0;
106
- left: 0;
107
- opacity: 0.6;
108
- content: "";
109
- background-position: center;
110
- background-repeat: no-repeat;
111
- background-size: contain;
112
- }
113
- @media (max-width: 768px) {
114
- trix-toolbar .trix-button--icon::before {
115
- right: 6%;
116
- left: 6%;
117
- }
118
- }
119
- trix-toolbar .trix-button--icon.trix-active::before {
120
- opacity: 1;
121
- }
122
- trix-toolbar .trix-button--icon:disabled::before {
123
- opacity: 0.125;
124
- }
125
-
126
- trix-toolbar .trix-button--icon-attach::before {
127
- background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M10.5%2018V7.5c0-2.25%203-2.25%203%200V18c0%204.125-6%204.125-6%200V7.5c0-6.375%209-6.375%209%200V18%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-miterlimit%3D%2210%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E");
128
- top: 8%;
129
- bottom: 4%;
130
- }
131
-
132
- trix-toolbar .trix-button--icon-bold::before {
133
- background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M6.522%2019.242a.5.5%200%200%201-.5-.5V5.35a.5.5%200%200%201%20.5-.5h5.783c1.347%200%202.46.345%203.24.982.783.64%201.216%201.562%201.216%202.683%200%201.13-.587%202.129-1.476%202.71a.35.35%200%200%200%20.049.613c1.259.56%202.101%201.742%202.101%203.22%200%201.282-.483%202.334-1.363%203.063-.876.726-2.132%201.12-3.66%201.12h-5.89ZM9.27%207.347v3.362h1.97c.766%200%201.347-.17%201.733-.464.38-.291.587-.716.587-1.27%200-.53-.183-.928-.513-1.198-.334-.273-.838-.43-1.505-.43H9.27Zm0%205.606v3.791h2.389c.832%200%201.448-.177%201.853-.497.399-.315.614-.786.614-1.423%200-.62-.22-1.077-.63-1.385-.418-.313-1.053-.486-1.905-.486H9.27Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E");
134
- }
135
-
136
- trix-toolbar .trix-button--icon-italic::before {
137
- background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M9%205h6.5v2h-2.23l-2.31%2010H13v2H6v-2h2.461l2.306-10H9V5Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E");
138
- }
139
-
140
- trix-toolbar .trix-button--icon-link::before {
141
- background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M18.948%205.258a4.337%204.337%200%200%200-6.108%200L11.217%206.87a.993.993%200%200%200%200%201.41c.392.39%201.027.39%201.418%200l1.623-1.613a2.323%202.323%200%200%201%203.271%200%202.29%202.29%200%200%201%200%203.251l-2.393%202.38a3.021%203.021%200%200%201-4.255%200l-.05-.049a1.007%201.007%200%200%200-1.418%200%20.993.993%200%200%200%200%201.41l.05.049a5.036%205.036%200%200%200%207.091%200l2.394-2.38a4.275%204.275%200%200%200%200-6.072Zm-13.683%2013.6a4.337%204.337%200%200%200%206.108%200l1.262-1.255a.993.993%200%200%200%200-1.41%201.007%201.007%200%200%200-1.418%200L9.954%2017.45a2.323%202.323%200%200%201-3.27%200%202.29%202.29%200%200%201%200-3.251l2.344-2.331a2.579%202.579%200%200%201%203.631%200c.392.39%201.027.39%201.419%200a.993.993%200%200%200%200-1.41%204.593%204.593%200%200%200-6.468%200l-2.345%202.33a4.275%204.275%200%200%200%200%206.072Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E");
142
- }
143
-
144
- trix-toolbar .trix-button--icon-strike::before {
145
- background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M6%2014.986c.088%202.647%202.246%204.258%205.635%204.258%203.496%200%205.713-1.728%205.713-4.463%200-.275-.02-.536-.062-.781h-3.461c.398.293.573.654.573%201.123%200%201.035-1.074%201.787-2.646%201.787-1.563%200-2.773-.762-2.91-1.924H6ZM6.432%2010h3.763c-.632-.314-.914-.715-.914-1.273%200-1.045.977-1.739%202.432-1.739%201.475%200%202.52.723%202.617%201.914h2.764c-.05-2.548-2.11-4.238-5.39-4.238-3.145%200-5.392%201.719-5.392%204.316%200%20.363.04.703.12%201.02ZM4%2011a1%201%200%201%200%200%202h15a1%201%200%201%200%200-2H4Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E");
146
- }
147
-
148
- trix-toolbar .trix-button--icon-quote::before {
149
- background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M4.581%208.471c.44-.5%201.056-.834%201.758-.995C8.074%207.17%209.201%207.822%2010%208.752c1.354%201.578%201.33%203.555.394%205.277-.941%201.731-2.788%203.163-4.988%203.56a.622.622%200%200%201-.653-.317c-.113-.205-.121-.49.16-.764.294-.286.567-.566.791-.835.222-.266.413-.54.524-.815.113-.28.156-.597.026-.908-.128-.303-.39-.524-.72-.69a3.02%203.02%200%200%201-1.674-2.7c0-.905.283-1.59.72-2.088Zm9.419%200c.44-.5%201.055-.834%201.758-.995%201.734-.306%202.862.346%203.66%201.276%201.355%201.578%201.33%203.555.395%205.277-.941%201.731-2.789%203.163-4.988%203.56a.622.622%200%200%201-.653-.317c-.113-.205-.122-.49.16-.764.294-.286.567-.566.791-.835.222-.266.412-.54.523-.815.114-.28.157-.597.026-.908-.127-.303-.39-.524-.72-.69a3.02%203.02%200%200%201-1.672-2.701c0-.905.283-1.59.72-2.088Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E");
150
- }
151
-
152
- trix-toolbar .trix-button--icon-heading-1::before {
153
- background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M21.5%207.5v-3h-12v3H14v13h3v-13h4.5ZM9%2013.5h3.5v-3h-10v3H6v7h3v-7Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E");
154
- }
155
-
156
- trix-toolbar .trix-button--icon-code::before {
157
- background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M3.293%2011.293a1%201%200%200%200%200%201.414l4%204a1%201%200%201%200%201.414-1.414L5.414%2012l3.293-3.293a1%201%200%200%200-1.414-1.414l-4%204Zm13.414%205.414%204-4a1%201%200%200%200%200-1.414l-4-4a1%201%200%201%200-1.414%201.414L18.586%2012l-3.293%203.293a1%201%200%200%200%201.414%201.414Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E");
158
- }
159
-
160
- trix-toolbar .trix-button--icon-bullet-list::before {
161
- background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M5%207.5a1.5%201.5%200%201%200%200-3%201.5%201.5%200%200%200%200%203ZM8%206a1%201%200%200%201%201-1h11a1%201%200%201%201%200%202H9a1%201%200%200%201-1-1Zm1%205a1%201%200%201%200%200%202h11a1%201%200%201%200%200-2H9Zm0%206a1%201%200%201%200%200%202h11a1%201%200%201%200%200-2H9Zm-2.5-5a1.5%201.5%200%201%201-3%200%201.5%201.5%200%200%201%203%200ZM5%2019.5a1.5%201.5%200%201%200%200-3%201.5%201.5%200%200%200%200%203Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E");
162
- }
163
-
164
- trix-toolbar .trix-button--icon-number-list::before {
165
- background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M3%204h2v4H4V5H3V4Zm5%202a1%201%200%200%201%201-1h11a1%201%200%201%201%200%202H9a1%201%200%200%201-1-1Zm1%205a1%201%200%201%200%200%202h11a1%201%200%201%200%200-2H9Zm0%206a1%201%200%201%200%200%202h11a1%201%200%201%200%200-2H9Zm-3.5-7H6v1l-1.5%202H6v1H3v-1l1.667-2H3v-1h2.5ZM3%2017v-1h3v4H3v-1h2v-.5H4v-1h1V17H3Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E");
166
- }
167
-
168
- trix-toolbar .trix-button--icon-undo::before {
169
- background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M3%2014a1%201%200%200%200%201%201h6a1%201%200%201%200%200-2H6.257c2.247-2.764%205.151-3.668%207.579-3.264%202.589.432%204.739%202.356%205.174%205.405a1%201%200%200%200%201.98-.283c-.564-3.95-3.415-6.526-6.825-7.095C11.084%207.25%207.63%208.377%205%2011.39V8a1%201%200%200%200-2%200v6Zm2-1Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E");
170
- }
171
-
172
- trix-toolbar .trix-button--icon-redo::before {
173
- background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M21%2014a1%201%200%200%201-1%201h-6a1%201%200%201%201%200-2h3.743c-2.247-2.764-5.151-3.668-7.579-3.264-2.589.432-4.739%202.356-5.174%205.405a1%201%200%200%201-1.98-.283c.564-3.95%203.415-6.526%206.826-7.095%203.08-.513%206.534.614%209.164%203.626V8a1%201%200%201%201%202%200v6Zm-2-1Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E");
174
- }
175
-
176
- trix-toolbar .trix-button--icon-decrease-nesting-level::before {
177
- background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M5%206a1%201%200%200%201%201-1h12a1%201%200%201%201%200%202H6a1%201%200%200%201-1-1Zm4%205a1%201%200%201%200%200%202h9a1%201%200%201%200%200-2H9Zm-3%206a1%201%200%201%200%200%202h12a1%201%200%201%200%200-2H6Zm-3.707-5.707a1%201%200%200%200%200%201.414l2%202a1%201%200%201%200%201.414-1.414L4.414%2012l1.293-1.293a1%201%200%200%200-1.414-1.414l-2%202Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E");
178
- }
179
-
180
- trix-toolbar .trix-button--icon-increase-nesting-level::before {
181
- background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M5%206a1%201%200%200%201%201-1h12a1%201%200%201%201%200%202H6a1%201%200%200%201-1-1Zm4%205a1%201%200%201%200%200%202h9a1%201%200%201%200%200-2H9Zm-3%206a1%201%200%201%200%200%202h12a1%201%200%201%200%200-2H6Zm-2.293-2.293%202-2a1%201%200%200%200%200-1.414l-2-2a1%201%200%201%200-1.414%201.414L3.586%2012l-1.293%201.293a1%201%200%201%200%201.414%201.414Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E");
182
- }
183
-
184
- trix-toolbar .trix-dialogs {
185
- position: relative;
186
- }
187
-
188
- trix-toolbar .trix-dialog {
189
- position: absolute;
190
- top: 0;
191
- left: 0;
192
- right: 0;
193
- font-size: 0.75em;
194
- padding: 15px 10px;
195
- background: #fff;
196
- box-shadow: 0 0.3em 1em #ccc;
197
- border-top: 2px solid #888;
198
- border-radius: 5px;
199
- z-index: 5;
200
- }
201
-
202
- trix-toolbar .trix-input--dialog {
203
- font-size: inherit;
204
- font-weight: normal;
205
- padding: 0.5em 0.8em;
206
- margin: 0 10px 0 0;
207
- border-radius: 3px;
208
- border: 1px solid #bbb;
209
- background-color: #fff;
210
- box-shadow: none;
211
- outline: none;
212
- -webkit-appearance: none;
213
- -moz-appearance: none;
214
- }
215
- trix-toolbar .trix-input--dialog.validate:invalid {
216
- box-shadow: #f00 0px 0px 1.5px 1px;
217
- }
218
-
219
- trix-toolbar .trix-button--dialog {
220
- font-size: inherit;
221
- padding: 0.5em;
222
- border-bottom: none;
223
- }
224
-
225
- trix-toolbar .trix-dialog--link {
226
- max-width: 600px;
227
- }
228
-
229
- trix-toolbar .trix-dialog__link-fields {
230
- display: flex;
231
- align-items: baseline;
232
- }
233
- trix-toolbar .trix-dialog__link-fields .trix-input {
234
- flex: 1;
235
- }
236
- trix-toolbar .trix-dialog__link-fields .trix-button-group {
237
- flex: 0 0 content;
238
- margin: 0;
239
- }
240
-
241
- trix-editor [data-trix-mutable]:not(.attachment__caption-editor) {
242
- -webkit-user-select: none;
243
- -moz-user-select: none;
244
- -ms-user-select: none;
245
- user-select: none;
246
- }
247
-
248
- trix-editor [data-trix-mutable]::-moz-selection,
249
- trix-editor [data-trix-cursor-target]::-moz-selection,
250
- trix-editor [data-trix-mutable] ::-moz-selection {
251
- background: none;
252
- }
253
-
254
- trix-editor [data-trix-mutable]::selection,
255
- trix-editor [data-trix-cursor-target]::selection,
256
- trix-editor [data-trix-mutable] ::selection {
257
- background: none;
258
- }
259
-
260
- trix-editor
261
- .attachment__caption-editor:focus[data-trix-mutable]::-moz-selection {
262
- background: highlight;
263
- }
264
-
265
- trix-editor .attachment__caption-editor:focus[data-trix-mutable]::selection {
266
- background: highlight;
267
- }
268
-
269
- trix-editor [data-trix-mutable].attachment.attachment--file {
270
- box-shadow: 0 0 0 2px highlight;
271
- border-color: transparent;
272
- }
273
-
274
- trix-editor [data-trix-mutable].attachment img {
275
- box-shadow: 0 0 0 2px highlight;
276
- }
277
-
278
- trix-editor .attachment {
279
- position: relative;
280
- }
281
- trix-editor .attachment:hover {
282
- cursor: default;
283
- }
284
-
285
- trix-editor .attachment--preview .attachment__caption:hover {
286
- cursor: text;
287
- }
288
-
289
- trix-editor .attachment__progress {
290
- position: absolute;
291
- z-index: 1;
292
- height: 20px;
293
- top: calc(50% - 10px);
294
- left: 5%;
295
- width: 90%;
296
- opacity: 0.9;
297
- transition: opacity 200ms ease-in;
298
- }
299
- trix-editor .attachment__progress[value="100"] {
300
- opacity: 0;
301
- }
302
-
303
- trix-editor .attachment__caption-editor {
304
- display: inline-block;
305
- width: 100%;
306
- margin: 0;
307
- padding: 0;
308
- font-size: inherit;
309
- font-family: inherit;
310
- line-height: inherit;
311
- color: inherit;
312
- text-align: center;
313
- vertical-align: top;
314
- border: none;
315
- outline: none;
316
- -webkit-appearance: none;
317
- -moz-appearance: none;
318
- }
319
-
320
- trix-editor .attachment__toolbar {
321
- position: absolute;
322
- z-index: 1;
323
- top: -0.9em;
324
- left: 0;
325
- width: 100%;
326
- text-align: center;
327
- }
328
-
329
- trix-editor .trix-button-group {
330
- display: inline-flex;
331
- }
332
-
333
- trix-editor .trix-button {
334
- position: relative;
335
- float: left;
336
- color: #666;
337
- white-space: nowrap;
338
- font-size: 80%;
339
- padding: 0 0.8em;
340
- margin: 0;
341
- outline: none;
342
- border: none;
343
- border-radius: 0;
344
- background: transparent;
345
- }
346
- trix-editor .trix-button:not(:first-child) {
347
- border-left: 1px solid #ccc;
348
- }
349
- trix-editor .trix-button.trix-active {
350
- background: #cbeefa;
351
- }
352
- trix-editor .trix-button:not(:disabled) {
353
- cursor: pointer;
354
- }
355
-
356
- trix-editor .trix-button--remove {
357
- text-indent: -9999px;
358
- display: inline-block;
359
- padding: 0;
360
- outline: none;
361
- width: 1.8em;
362
- height: 1.8em;
363
- line-height: 1.8em;
364
- border-radius: 50%;
365
- background-color: #fff;
366
- border: 2px solid highlight;
367
- box-shadow: 1px 1px 6px rgba(0, 0, 0, 0.25);
368
- }
369
- trix-editor .trix-button--remove::before {
370
- display: inline-block;
371
- position: absolute;
372
- top: 0;
373
- right: 0;
374
- bottom: 0;
375
- left: 0;
376
- opacity: 0.7;
377
- content: "";
378
- background-image: url("data:image/svg+xml,%3Csvg%20height%3D%2224%22%20width%3D%2224%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M19%206.41%2017.59%205%2012%2010.59%206.41%205%205%206.41%2010.59%2012%205%2017.59%206.41%2019%2012%2013.41%2017.59%2019%2019%2017.59%2013.41%2012z%22%2F%3E%3Cpath%20d%3D%22M0%200h24v24H0z%22%20fill%3D%22none%22%2F%3E%3C%2Fsvg%3E");
379
- background-position: center;
380
- background-repeat: no-repeat;
381
- background-size: 90%;
382
- }
383
- trix-editor .trix-button--remove:hover {
384
- border-color: #333;
385
- }
386
- trix-editor .trix-button--remove:hover::before {
387
- opacity: 1;
388
- }
389
-
390
- trix-editor .attachment__metadata-container {
391
- position: relative;
392
- }
393
-
394
- trix-editor .attachment__metadata {
395
- position: absolute;
396
- left: 50%;
397
- top: 2em;
398
- transform: translate(-50%, 0);
399
- max-width: 90%;
400
- padding: 0.1em 0.6em;
401
- font-size: 0.8em;
402
- color: #fff;
403
- background-color: rgba(0, 0, 0, 0.7);
404
- border-radius: 3px;
405
- }
406
- trix-editor .attachment__metadata .attachment__name {
407
- display: inline-block;
408
- max-width: 100%;
409
- vertical-align: bottom;
410
- overflow: hidden;
411
- text-overflow: ellipsis;
412
- white-space: nowrap;
413
- }
414
- trix-editor .attachment__metadata .attachment__size {
415
- margin-left: 0.2em;
416
- white-space: nowrap;
417
- }
418
-
419
- .trix-content {
420
- line-height: 1.5;
421
- overflow-wrap: break-word;
422
- word-break: break-word;
423
- }
424
- .trix-content * {
425
- box-sizing: border-box;
426
- margin: 0;
427
- padding: 0;
428
- }
429
- .trix-content h1 {
430
- font-size: 1.2em;
431
- line-height: 1.2;
432
- }
433
- .trix-content blockquote {
434
- border: 0 solid #ccc;
435
- border-left-width: 0.3em;
436
- margin-left: 0.3em;
437
- padding-left: 0.6em;
438
- }
439
- .trix-content [dir="rtl"] blockquote,
440
- .trix-content blockquote[dir="rtl"] {
441
- border-width: 0;
442
- border-right-width: 0.3em;
443
- margin-right: 0.3em;
444
- padding-right: 0.6em;
445
- }
446
- .trix-content li {
447
- margin-left: 1em;
448
- }
449
- .trix-content [dir="rtl"] li {
450
- margin-right: 1em;
451
- }
452
- .trix-content pre {
453
- display: inline-block;
454
- width: 100%;
455
- vertical-align: top;
456
- font-family: monospace;
457
- font-size: 0.9em;
458
- padding: 0.5em;
459
- white-space: pre;
460
- background-color: #eee;
461
- overflow-x: auto;
462
- }
463
- .trix-content img {
464
- max-width: 100%;
465
- height: auto;
466
- }
467
- .trix-content .attachment {
468
- display: inline-block;
469
- position: relative;
470
- max-width: 100%;
471
- }
472
- .trix-content .attachment a {
473
- color: inherit;
474
- text-decoration: none;
475
- }
476
- .trix-content .attachment a:hover,
477
- .trix-content .attachment a:visited:hover {
478
- color: inherit;
479
- }
480
- .trix-content .attachment__caption {
481
- text-align: center;
482
- }
483
- .trix-content
484
- .attachment__caption
485
- .attachment__name
486
- + .attachment__size::before {
487
- content: " \2022 ";
488
- }
489
- .trix-content .attachment--preview {
490
- width: 100%;
491
- text-align: center;
492
- }
493
- .trix-content .attachment--preview .attachment__caption {
494
- color: #666;
495
- font-size: 0.9em;
496
- line-height: 1.2;
497
- }
498
- .trix-content .attachment--file {
499
- color: #333;
500
- line-height: 1;
501
- margin: 0 2px 2px 2px;
502
- padding: 0.4em 1em;
503
- border: 1px solid #bbb;
504
- border-radius: 5px;
505
- }
506
- .trix-content .attachment-gallery {
507
- display: flex;
508
- flex-wrap: wrap;
509
- position: relative;
510
- }
511
- .trix-content .attachment-gallery .attachment {
512
- flex: 1 0 33%;
513
- padding: 0 0.5em;
514
- max-width: 33%;
515
- }
516
- .trix-content .attachment-gallery.attachment-gallery--2 .attachment,
517
- .trix-content .attachment-gallery.attachment-gallery--4 .attachment {
518
- flex-basis: 50%;
519
- max-width: 50%;
520
- }
521
-
522
- /*
523
- * We need to override trix.css’s image gallery styles to accommodate the
524
- * <action-text-attachment> element we wrap around attachments. Otherwise,
525
- * images in galleries will be squished by the max-width: 33%; rule.
526
- */
527
- .trix-content .attachment-gallery > action-text-attachment,
528
- .trix-content .attachment-gallery > .attachment {
529
- flex: 1 0 33%;
530
- padding: 0 0.5em;
531
- max-width: 33%;
532
- }
533
-
534
- .trix-content
535
- .attachment-gallery.attachment-gallery--2
536
- > action-text-attachment,
537
- .trix-content .attachment-gallery.attachment-gallery--2 > .attachment,
538
- .trix-content
539
- .attachment-gallery.attachment-gallery--4
540
- > action-text-attachment,
541
- .trix-content .attachment-gallery.attachment-gallery--4 > .attachment {
542
- flex-basis: 50%;
543
- max-width: 50%;
544
- }
545
-
546
- .trix-content action-text-attachment .attachment {
547
- padding: 0 !important;
548
- max-width: 100% !important;
549
- }
550
- }
@@ -1,4 +0,0 @@
1
- module Iron
2
- module BlockHelper
3
- end
4
- end
@@ -1,14 +0,0 @@
1
- module Iron::ButtonsHelper
2
- def back_button_to(title, url, options = {}, &)
3
- link_to url,
4
- class: tw(
5
- "inline-flex items-center gap-2 text-sm/6 text-stone-500 dark:text-stone-400",
6
- options.delete(:class)
7
- ) do
8
- safe_join([
9
- icon("chevron-left", class: "size-4"),
10
- tag.span(title)
11
- ])
12
- end
13
- end
14
- end