lexxy 0.7.0.beta → 0.7.2.beta
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/javascript/lexxy.js +498 -216
- data/app/assets/javascript/lexxy.js.br +0 -0
- data/app/assets/javascript/lexxy.js.gz +0 -0
- data/app/assets/javascript/lexxy.js.map +1 -1
- data/app/assets/javascript/lexxy.min.js +2 -2
- data/app/assets/javascript/lexxy.min.js.br +0 -0
- data/app/assets/javascript/lexxy.min.js.gz +0 -0
- data/app/assets/stylesheets/lexxy-content.css +0 -8
- data/app/assets/stylesheets/lexxy-editor.css +39 -21
- data/lib/lexxy/rich_text_area_tag.rb +1 -0
- data/lib/lexxy/version.rb +1 -1
- metadata +1 -1
|
Binary file
|
|
Binary file
|
|
@@ -240,14 +240,6 @@
|
|
|
240
240
|
}
|
|
241
241
|
}
|
|
242
242
|
|
|
243
|
-
:where([data-lexical-cursor]) {
|
|
244
|
-
animation: blink 1s step-end infinite;
|
|
245
|
-
block-size: 1lh;
|
|
246
|
-
border-inline-start: 1px solid currentColor;
|
|
247
|
-
line-height: inherit;
|
|
248
|
-
margin-block: 1em;
|
|
249
|
-
}
|
|
250
|
-
|
|
251
243
|
/* Attachments
|
|
252
244
|
/* ------------------------------------------------------------------------ */
|
|
253
245
|
|
|
@@ -102,6 +102,20 @@
|
|
|
102
102
|
outline: 2px dashed var(--lexxy-color-selected-dark);
|
|
103
103
|
}
|
|
104
104
|
|
|
105
|
+
:where([data-lexical-cursor]) {
|
|
106
|
+
animation: blink 1s infinite;
|
|
107
|
+
block-size: 1lh;
|
|
108
|
+
border-inline-start: 1.5px solid currentColor;
|
|
109
|
+
line-height: inherit;
|
|
110
|
+
margin-block: 0 var(--lexxy-content-margin);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
@keyframes blink {
|
|
114
|
+
0% { opacity: 1; }
|
|
115
|
+
60% { opacity: 1; }
|
|
116
|
+
100% { opacity: 0;}
|
|
117
|
+
}
|
|
118
|
+
|
|
105
119
|
/* Toolbar
|
|
106
120
|
/* -------------------------------------------------------------------------- */
|
|
107
121
|
|
|
@@ -381,7 +395,7 @@
|
|
|
381
395
|
/* Table handle buttons
|
|
382
396
|
/* -------------------------------------------------------------------------- */
|
|
383
397
|
|
|
384
|
-
:where(
|
|
398
|
+
:where(lexxy-table-handler) {
|
|
385
399
|
--button-size: 2.5lh;
|
|
386
400
|
|
|
387
401
|
color: var(--lexxy-color-ink-inverted);
|
|
@@ -502,28 +516,32 @@
|
|
|
502
516
|
/* Language picker
|
|
503
517
|
/* -------------------------------------------------------------------------- */
|
|
504
518
|
|
|
505
|
-
:where(
|
|
506
|
-
-webkit-appearance: none;
|
|
507
|
-
appearance: none;
|
|
508
|
-
background-color: var(--lexxy-color-canvas);
|
|
509
|
-
background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m12 19.5c-.7 0-1.3-.3-1.7-.8l-9.8-11.1c-.7-.8-.6-1.9.2-2.6.8-.6 1.9-.6 2.5.2l8.6 9.8c0 .1.2.1.4 0l8.6-9.8c.7-.8 1.8-.9 2.6-.2s.9 1.8.2 2.6l-9.8 11.1c-.4.5-1.1.8-1.7.8z' fill='%23000'/%3E%3C/svg%3E");
|
|
510
|
-
background-position: center right 1ch;
|
|
511
|
-
background-repeat: no-repeat;
|
|
512
|
-
background-size: 1ch;
|
|
513
|
-
block-size: 1.5lh;
|
|
514
|
-
border: 1px solid var(--lexxy-color-ink-lighter);
|
|
515
|
-
border-radius: var(--lexxy-radius);
|
|
516
|
-
color: var(--lexxy-color-ink);
|
|
517
|
-
font-family: var(--lexxy-font-base);
|
|
518
|
-
font-size: var(--lexxy-text-small);
|
|
519
|
-
font-weight: normal;
|
|
519
|
+
:where(lexxy-code-language-picker) {
|
|
520
520
|
inset-inline-end: var(--lexxy-editor-padding);
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
521
|
+
position: absolute;
|
|
522
|
+
|
|
523
|
+
select {
|
|
524
|
+
-webkit-appearance: none;
|
|
525
|
+
appearance: none;
|
|
526
|
+
background-color: var(--lexxy-color-canvas);
|
|
527
|
+
background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m12 19.5c-.7 0-1.3-.3-1.7-.8l-9.8-11.1c-.7-.8-.6-1.9.2-2.6.8-.6 1.9-.6 2.5.2l8.6 9.8c0 .1.2.1.4 0l8.6-9.8c.7-.8 1.8-.9 2.6-.2s.9 1.8.2 2.6l-9.8 11.1c-.4.5-1.1.8-1.7.8z' fill='%23000'/%3E%3C/svg%3E");
|
|
528
|
+
background-position: center right 1ch;
|
|
529
|
+
background-repeat: no-repeat;
|
|
530
|
+
background-size: 1ch;
|
|
531
|
+
block-size: 1.5lh;
|
|
532
|
+
border: 1px solid var(--lexxy-color-ink-lighter);
|
|
533
|
+
border-radius: var(--lexxy-radius);
|
|
534
|
+
color: var(--lexxy-color-ink);
|
|
535
|
+
font-family: var(--lexxy-font-base);
|
|
536
|
+
font-size: var(--lexxy-text-small);
|
|
537
|
+
font-weight: normal;
|
|
538
|
+
margin: 0.5ch 0.5ch 0 -0.5ch;
|
|
539
|
+
padding: 0 2ch 0 1ch;
|
|
540
|
+
text-align: start;
|
|
524
541
|
|
|
525
|
-
|
|
526
|
-
|
|
542
|
+
@media (prefers-color-scheme: dark) {
|
|
543
|
+
background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m12 19.5c-.7 0-1.3-.3-1.7-.8l-9.8-11.1c-.7-.8-.6-1.9.2-2.6.8-.6 1.9-.6 2.5.2l8.6 9.8c0 .1.2.1.4 0l8.6-9.8c.7-.8 1.8-.9 2.6-.2s.9 1.8.2 2.6l-9.8 11.1c-.4.5-1.1.8-1.7.8z' fill='%23fff'/%3E%3C/svg%3E");
|
|
544
|
+
}
|
|
527
545
|
}
|
|
528
546
|
}
|
|
529
547
|
|
|
@@ -25,6 +25,7 @@ module Lexxy
|
|
|
25
25
|
def render_custom_attachments_in(value)
|
|
26
26
|
if value.respond_to?(:body)
|
|
27
27
|
if html = value.body_before_type_cast.presence
|
|
28
|
+
self.prefix_partial_path_with_controller_namespace = false if respond_to?(:prefix_partial_path_with_controller_namespace=)
|
|
28
29
|
ActionText::Fragment.wrap(html).replace(ActionText::Attachment.tag_name) do |node|
|
|
29
30
|
if node["url"].blank?
|
|
30
31
|
attachment = ActionText::Attachment.from_node(node)
|
data/lib/lexxy/version.rb
CHANGED