nextgen-block-editor 0.3.0 → 0.4.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.
- package/dist/index.cjs +2549 -819
- package/dist/index.d.cts +13 -1
- package/dist/index.d.ts +13 -1
- package/dist/index.js +2536 -808
- package/dist/styles.css +895 -178
- package/package.json +3 -2
package/dist/styles.css
CHANGED
|
@@ -2085,6 +2085,7 @@
|
|
|
2085
2085
|
}
|
|
2086
2086
|
|
|
2087
2087
|
.nextgen-editor-shell {
|
|
2088
|
+
position: relative;
|
|
2088
2089
|
border: 1px solid var(--ng-border);
|
|
2089
2090
|
border-radius: calc(var(--ng-radius) + 2px);
|
|
2090
2091
|
padding: 20px 24px;
|
|
@@ -2116,6 +2117,21 @@
|
|
|
2116
2117
|
0 10px 15px -3px rgba(0, 0, 0, 0.1),
|
|
2117
2118
|
0 4px 6px -4px rgba(0, 0, 0, 0.1);
|
|
2118
2119
|
padding: 4px;
|
|
2120
|
+
overflow-x: hidden;
|
|
2121
|
+
}
|
|
2122
|
+
|
|
2123
|
+
.nextgen-editor-shell .ce-popover__items {
|
|
2124
|
+
overflow-x: hidden;
|
|
2125
|
+
scrollbar-width: none;
|
|
2126
|
+
-ms-overflow-style: none;
|
|
2127
|
+
}
|
|
2128
|
+
|
|
2129
|
+
.nextgen-editor-shell .ce-popover__items::-webkit-scrollbar {
|
|
2130
|
+
display: none;
|
|
2131
|
+
}
|
|
2132
|
+
|
|
2133
|
+
.nextgen-editor-shell .ce-popover-item-separator {
|
|
2134
|
+
display: none;
|
|
2119
2135
|
}
|
|
2120
2136
|
|
|
2121
2137
|
.nextgen-editor-shell .ce-popover__search {
|
|
@@ -2614,6 +2630,12 @@
|
|
|
2614
2630
|
overflow-x: auto;
|
|
2615
2631
|
scroll-snap-type: x mandatory;
|
|
2616
2632
|
padding-bottom: 8px;
|
|
2633
|
+
scrollbar-width: none;
|
|
2634
|
+
-ms-overflow-style: none;
|
|
2635
|
+
}
|
|
2636
|
+
|
|
2637
|
+
.editor-music-carousel-track::-webkit-scrollbar {
|
|
2638
|
+
display: none;
|
|
2617
2639
|
}
|
|
2618
2640
|
|
|
2619
2641
|
.editor-audio-card.is-compact {
|
|
@@ -3593,6 +3615,74 @@
|
|
|
3593
3615
|
overflow: hidden;
|
|
3594
3616
|
}
|
|
3595
3617
|
|
|
3618
|
+
.ng-modal.ng-modal-wide {
|
|
3619
|
+
max-width: 760px;
|
|
3620
|
+
}
|
|
3621
|
+
|
|
3622
|
+
.ng-modal-layout {
|
|
3623
|
+
display: grid;
|
|
3624
|
+
grid-template-columns: 186px minmax(0, 1fr);
|
|
3625
|
+
min-height: 400px;
|
|
3626
|
+
max-height: 75vh;
|
|
3627
|
+
}
|
|
3628
|
+
|
|
3629
|
+
.ng-modal-sidebar {
|
|
3630
|
+
border-right: 1px solid var(--ng-border);
|
|
3631
|
+
background: var(--ng-background);
|
|
3632
|
+
padding: 12px 10px;
|
|
3633
|
+
display: grid;
|
|
3634
|
+
gap: 4px;
|
|
3635
|
+
align-content: start;
|
|
3636
|
+
}
|
|
3637
|
+
|
|
3638
|
+
.ng-modal-tab {
|
|
3639
|
+
width: 100%;
|
|
3640
|
+
text-align: left;
|
|
3641
|
+
padding: 8px 11px;
|
|
3642
|
+
border-radius: 8px;
|
|
3643
|
+
border: none;
|
|
3644
|
+
background: transparent;
|
|
3645
|
+
color: var(--ng-muted-foreground);
|
|
3646
|
+
font-size: 13px;
|
|
3647
|
+
font-weight: 500;
|
|
3648
|
+
cursor: pointer;
|
|
3649
|
+
}
|
|
3650
|
+
|
|
3651
|
+
.ng-modal-tab:hover {
|
|
3652
|
+
background: var(--ng-accent);
|
|
3653
|
+
color: var(--ng-accent-foreground);
|
|
3654
|
+
}
|
|
3655
|
+
|
|
3656
|
+
.ng-modal-tab.is-active {
|
|
3657
|
+
background: var(--ng-accent);
|
|
3658
|
+
color: var(--ng-foreground);
|
|
3659
|
+
font-weight: 600;
|
|
3660
|
+
}
|
|
3661
|
+
|
|
3662
|
+
.ng-modal-main {
|
|
3663
|
+
padding: 18px 20px;
|
|
3664
|
+
overflow-y: auto;
|
|
3665
|
+
}
|
|
3666
|
+
|
|
3667
|
+
.ng-modal-panel {
|
|
3668
|
+
display: grid;
|
|
3669
|
+
gap: 14px;
|
|
3670
|
+
}
|
|
3671
|
+
|
|
3672
|
+
@media (max-width: 620px) {
|
|
3673
|
+
.ng-modal-layout {
|
|
3674
|
+
grid-template-columns: 1fr;
|
|
3675
|
+
}
|
|
3676
|
+
.ng-modal-sidebar {
|
|
3677
|
+
border-right: none;
|
|
3678
|
+
border-bottom: 1px solid var(--ng-border);
|
|
3679
|
+
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
3680
|
+
}
|
|
3681
|
+
.ng-modal-tab {
|
|
3682
|
+
text-align: center;
|
|
3683
|
+
}
|
|
3684
|
+
}
|
|
3685
|
+
|
|
3596
3686
|
.ng-modal-head {
|
|
3597
3687
|
display: flex;
|
|
3598
3688
|
align-items: flex-start;
|
|
@@ -3658,6 +3748,31 @@
|
|
|
3658
3748
|
}
|
|
3659
3749
|
|
|
3660
3750
|
/* Built-in Theme Presets via Settings Modal */
|
|
3751
|
+
html[data-ng-theme],
|
|
3752
|
+
html[data-ng-theme] body {
|
|
3753
|
+
background: var(--ng-background);
|
|
3754
|
+
color: var(--ng-foreground);
|
|
3755
|
+
transition: background-color 180ms ease, color 180ms ease;
|
|
3756
|
+
}
|
|
3757
|
+
|
|
3758
|
+
.nextgen-editor-shell[data-ng-theme],
|
|
3759
|
+
.nextgen-editor-article[data-ng-theme] {
|
|
3760
|
+
background: var(--ng-card);
|
|
3761
|
+
color: var(--ng-foreground);
|
|
3762
|
+
--bg: var(--ng-background);
|
|
3763
|
+
--surface: var(--ng-card);
|
|
3764
|
+
--ink: var(--ng-foreground);
|
|
3765
|
+
--soft: var(--ng-muted-foreground);
|
|
3766
|
+
--line: var(--ng-border);
|
|
3767
|
+
--tint: var(--ng-muted);
|
|
3768
|
+
}
|
|
3769
|
+
|
|
3770
|
+
.nextgen-editor-article[data-ng-theme] {
|
|
3771
|
+
padding: 20px 24px;
|
|
3772
|
+
border-radius: calc(var(--ng-radius) + 2px);
|
|
3773
|
+
border: 1px solid var(--ng-border);
|
|
3774
|
+
}
|
|
3775
|
+
|
|
3661
3776
|
[data-ng-theme='light'] {
|
|
3662
3777
|
--ng-background: #ffffff;
|
|
3663
3778
|
--ng-foreground: #09090b;
|
|
@@ -3698,240 +3813,724 @@
|
|
|
3698
3813
|
--ng-ring: #d4d4d8;
|
|
3699
3814
|
}
|
|
3700
3815
|
|
|
3701
|
-
|
|
3702
|
-
|
|
3703
|
-
|
|
3704
|
-
|
|
3705
|
-
|
|
3706
|
-
--ng-popover: #181825;
|
|
3707
|
-
--ng-popover-foreground: #cdd6f4;
|
|
3708
|
-
--ng-primary: #cba6f7;
|
|
3709
|
-
--ng-primary-foreground: #11111b;
|
|
3710
|
-
--ng-secondary: #313244;
|
|
3711
|
-
--ng-secondary-foreground: #cdd6f4;
|
|
3712
|
-
--ng-muted: #313244;
|
|
3713
|
-
--ng-muted-foreground: #a6adc8;
|
|
3714
|
-
--ng-accent: #313244;
|
|
3715
|
-
--ng-accent-foreground: #cdd6f4;
|
|
3716
|
-
--ng-border: #45475a;
|
|
3717
|
-
--ng-input: #45475a;
|
|
3718
|
-
--ng-ring: #cba6f7;
|
|
3719
|
-
}
|
|
3720
|
-
|
|
3721
|
-
[data-ng-theme='catppuccin-macchiato'] {
|
|
3722
|
-
--ng-background: #24273a;
|
|
3723
|
-
--ng-foreground: #cad3f5;
|
|
3724
|
-
--ng-card: #1e2030;
|
|
3725
|
-
--ng-card-foreground: #cad3f5;
|
|
3726
|
-
--ng-popover: #1e2030;
|
|
3727
|
-
--ng-popover-foreground: #cad3f5;
|
|
3728
|
-
--ng-primary: #c6a0f6;
|
|
3729
|
-
--ng-primary-foreground: #181926;
|
|
3730
|
-
--ng-secondary: #363a4f;
|
|
3731
|
-
--ng-secondary-foreground: #cad3f5;
|
|
3732
|
-
--ng-muted: #363a4f;
|
|
3733
|
-
--ng-muted-foreground: #a5adcb;
|
|
3734
|
-
--ng-accent: #363a4f;
|
|
3735
|
-
--ng-accent-foreground: #cad3f5;
|
|
3736
|
-
--ng-border: #494d64;
|
|
3737
|
-
--ng-input: #494d64;
|
|
3738
|
-
--ng-ring: #c6a0f6;
|
|
3739
|
-
}
|
|
3740
|
-
|
|
3741
|
-
[data-ng-theme='catppuccin-frappe'] {
|
|
3742
|
-
--ng-background: #303446;
|
|
3743
|
-
--ng-foreground: #c6d0f5;
|
|
3744
|
-
--ng-card: #292c3c;
|
|
3745
|
-
--ng-card-foreground: #c6d0f5;
|
|
3746
|
-
--ng-popover: #292c3c;
|
|
3747
|
-
--ng-popover-foreground: #c6d0f5;
|
|
3748
|
-
--ng-primary: #ca9ee6;
|
|
3749
|
-
--ng-primary-foreground: #232634;
|
|
3750
|
-
--ng-secondary: #414559;
|
|
3751
|
-
--ng-secondary-foreground: #c6d0f5;
|
|
3752
|
-
--ng-muted: #414559;
|
|
3753
|
-
--ng-muted-foreground: #a5adce;
|
|
3754
|
-
--ng-accent: #414559;
|
|
3755
|
-
--ng-accent-foreground: #c6d0f5;
|
|
3756
|
-
--ng-border: #51576d;
|
|
3757
|
-
--ng-input: #51576d;
|
|
3758
|
-
--ng-ring: #ca9ee6;
|
|
3759
|
-
}
|
|
3760
|
-
|
|
3761
|
-
[data-ng-theme='catppuccin-latte'] {
|
|
3762
|
-
--ng-background: #eff1f5;
|
|
3763
|
-
--ng-foreground: #4c4f69;
|
|
3764
|
-
--ng-card: #e6e9ef;
|
|
3765
|
-
--ng-card-foreground: #4c4f69;
|
|
3766
|
-
--ng-popover: #e6e9ef;
|
|
3767
|
-
--ng-popover-foreground: #4c4f69;
|
|
3768
|
-
--ng-primary: #8839ef;
|
|
3769
|
-
--ng-primary-foreground: #eff1f5;
|
|
3770
|
-
--ng-secondary: #ccd0da;
|
|
3771
|
-
--ng-secondary-foreground: #4c4f69;
|
|
3772
|
-
--ng-muted: #ccd0da;
|
|
3773
|
-
--ng-muted-foreground: #6c6f85;
|
|
3774
|
-
--ng-accent: #ccd0da;
|
|
3775
|
-
--ng-accent-foreground: #4c4f69;
|
|
3776
|
-
--ng-border: #bcc0cc;
|
|
3777
|
-
--ng-input: #bcc0cc;
|
|
3778
|
-
--ng-ring: #8839ef;
|
|
3816
|
+
/* ── Document Width Presets ─────────────────────────────────────── */
|
|
3817
|
+
.nextgen-editor-shell[data-ng-width='narrow'] #editorjs {
|
|
3818
|
+
max-width: 680px;
|
|
3819
|
+
margin-left: auto;
|
|
3820
|
+
margin-right: auto;
|
|
3779
3821
|
}
|
|
3780
3822
|
|
|
3781
|
-
|
|
3782
|
-
|
|
3783
|
-
|
|
3823
|
+
.nextgen-editor-shell[data-ng-width='standard'] #editorjs {
|
|
3824
|
+
max-width: 920px;
|
|
3825
|
+
margin-left: auto;
|
|
3826
|
+
margin-right: auto;
|
|
3784
3827
|
}
|
|
3785
3828
|
|
|
3786
|
-
.nextgen-editor-shell
|
|
3787
|
-
.nextgen-editor-shell .ce-toolbar__content {
|
|
3829
|
+
.nextgen-editor-shell[data-ng-width='full'] #editorjs {
|
|
3788
3830
|
max-width: none;
|
|
3789
|
-
margin-left: 0;
|
|
3790
|
-
margin-right: 0;
|
|
3791
3831
|
}
|
|
3792
3832
|
|
|
3793
|
-
|
|
3794
|
-
|
|
3795
|
-
|
|
3796
|
-
|
|
3797
|
-
|
|
3833
|
+
/* ── Reading Progress Bar ───────────────────────────────────────── */
|
|
3834
|
+
.ng-reading-progress {
|
|
3835
|
+
position: sticky;
|
|
3836
|
+
top: 0;
|
|
3837
|
+
left: 0;
|
|
3838
|
+
width: 100%;
|
|
3839
|
+
height: 3px;
|
|
3840
|
+
background: transparent;
|
|
3841
|
+
z-index: 40;
|
|
3842
|
+
pointer-events: none;
|
|
3798
3843
|
}
|
|
3799
3844
|
|
|
3800
|
-
.
|
|
3801
|
-
|
|
3802
|
-
|
|
3845
|
+
.ng-reading-progress-fill {
|
|
3846
|
+
height: 100%;
|
|
3847
|
+
width: 0%;
|
|
3848
|
+
background: var(--ng-foreground);
|
|
3849
|
+
transition: width 80ms linear;
|
|
3803
3850
|
}
|
|
3804
3851
|
|
|
3805
|
-
|
|
3806
|
-
.
|
|
3807
|
-
|
|
3808
|
-
height: 26px;
|
|
3809
|
-
border-radius: 6px;
|
|
3852
|
+
/* ── Mermaid Diagram Block ──────────────────────────────────────── */
|
|
3853
|
+
.editor-mermaid-tool,
|
|
3854
|
+
.editor-mermaid-block {
|
|
3810
3855
|
background: var(--ng-card);
|
|
3856
|
+
color: var(--ng-card-foreground);
|
|
3811
3857
|
border: 1px solid var(--ng-border);
|
|
3858
|
+
border-radius: var(--ng-radius);
|
|
3859
|
+
padding: 12px;
|
|
3860
|
+
margin: 12px 0;
|
|
3861
|
+
}
|
|
3862
|
+
|
|
3863
|
+
.editor-mermaid-head {
|
|
3864
|
+
display: flex;
|
|
3865
|
+
align-items: center;
|
|
3866
|
+
justify-content: space-between;
|
|
3867
|
+
gap: 8px;
|
|
3868
|
+
margin-bottom: 8px;
|
|
3869
|
+
}
|
|
3870
|
+
|
|
3871
|
+
.editor-mermaid-label {
|
|
3872
|
+
font-size: 12px;
|
|
3873
|
+
font-weight: 600;
|
|
3812
3874
|
color: var(--ng-muted-foreground);
|
|
3813
|
-
|
|
3875
|
+
text-transform: uppercase;
|
|
3876
|
+
letter-spacing: 0.04em;
|
|
3814
3877
|
}
|
|
3815
3878
|
|
|
3816
|
-
.
|
|
3817
|
-
|
|
3818
|
-
|
|
3819
|
-
|
|
3879
|
+
.editor-mermaid-presets {
|
|
3880
|
+
display: flex;
|
|
3881
|
+
gap: 6px;
|
|
3882
|
+
flex-wrap: wrap;
|
|
3820
3883
|
}
|
|
3821
3884
|
|
|
3822
|
-
|
|
3823
|
-
|
|
3824
|
-
|
|
3825
|
-
|
|
3885
|
+
.editor-mermaid-preset-btn {
|
|
3886
|
+
padding: 2px 8px;
|
|
3887
|
+
font-size: 11px;
|
|
3888
|
+
border-radius: 6px;
|
|
3889
|
+
border: 1px solid var(--ng-border);
|
|
3890
|
+
background: var(--ng-background);
|
|
3891
|
+
color: var(--ng-foreground);
|
|
3892
|
+
cursor: pointer;
|
|
3826
3893
|
}
|
|
3827
3894
|
|
|
3828
|
-
|
|
3829
|
-
|
|
3830
|
-
.nextgen-editor-article mark {
|
|
3831
|
-
background: #fef08a;
|
|
3832
|
-
color: #18181b;
|
|
3833
|
-
padding: 1px 4px;
|
|
3834
|
-
border-radius: 3px;
|
|
3895
|
+
.editor-mermaid-preset-btn:hover {
|
|
3896
|
+
background: var(--ng-accent);
|
|
3835
3897
|
}
|
|
3836
3898
|
|
|
3837
|
-
.
|
|
3838
|
-
|
|
3839
|
-
|
|
3840
|
-
|
|
3841
|
-
font-
|
|
3899
|
+
.editor-mermaid-input {
|
|
3900
|
+
width: 100%;
|
|
3901
|
+
box-sizing: border-box;
|
|
3902
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
3903
|
+
font-size: 12px;
|
|
3904
|
+
padding: 8px;
|
|
3905
|
+
border: 1px solid var(--ng-border);
|
|
3906
|
+
border-radius: 6px;
|
|
3907
|
+
background: var(--ng-background);
|
|
3842
3908
|
color: var(--ng-foreground);
|
|
3909
|
+
resize: vertical;
|
|
3910
|
+
margin-bottom: 10px;
|
|
3843
3911
|
}
|
|
3844
3912
|
|
|
3845
|
-
.
|
|
3846
|
-
.
|
|
3847
|
-
|
|
3848
|
-
|
|
3849
|
-
|
|
3913
|
+
.editor-mermaid-preview,
|
|
3914
|
+
.editor-mermaid-diagram {
|
|
3915
|
+
display: flex;
|
|
3916
|
+
justify-content: center;
|
|
3917
|
+
align-items: center;
|
|
3918
|
+
overflow-x: auto;
|
|
3919
|
+
padding: 8px 0;
|
|
3850
3920
|
}
|
|
3851
3921
|
|
|
3852
|
-
.
|
|
3853
|
-
.
|
|
3854
|
-
|
|
3855
|
-
|
|
3922
|
+
.editor-mermaid-preview svg,
|
|
3923
|
+
.editor-mermaid-diagram svg {
|
|
3924
|
+
max-width: 100%;
|
|
3925
|
+
height: auto;
|
|
3856
3926
|
}
|
|
3857
3927
|
|
|
3858
|
-
.
|
|
3859
|
-
|
|
3860
|
-
|
|
3928
|
+
.editor-mermaid-error {
|
|
3929
|
+
font-size: 12px;
|
|
3930
|
+
color: #dc2626;
|
|
3931
|
+
white-space: pre-wrap;
|
|
3932
|
+
margin: 0;
|
|
3861
3933
|
}
|
|
3862
3934
|
|
|
3863
|
-
.
|
|
3864
|
-
|
|
3865
|
-
|
|
3866
|
-
|
|
3867
|
-
|
|
3868
|
-
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
3869
|
-
font-size: 0.875em;
|
|
3935
|
+
.editor-mermaid-block figcaption {
|
|
3936
|
+
text-align: center;
|
|
3937
|
+
font-size: 12px;
|
|
3938
|
+
color: var(--ng-muted-foreground);
|
|
3939
|
+
margin-top: 6px;
|
|
3870
3940
|
}
|
|
3871
3941
|
|
|
3872
|
-
/* ──
|
|
3873
|
-
.editor-
|
|
3874
|
-
.editor-
|
|
3942
|
+
/* ── Extra Blocks (Bookmark, Steps, Diff, Video, Changelog, Social) */
|
|
3943
|
+
.editor-extra-card,
|
|
3944
|
+
.editor-diff-block,
|
|
3945
|
+
.editor-changelog-block,
|
|
3946
|
+
.editor-social-card {
|
|
3875
3947
|
background: var(--ng-card);
|
|
3876
3948
|
color: var(--ng-card-foreground);
|
|
3877
3949
|
border: 1px solid var(--ng-border);
|
|
3878
3950
|
border-radius: var(--ng-radius);
|
|
3879
|
-
padding:
|
|
3951
|
+
padding: 12px;
|
|
3880
3952
|
margin: 12px 0;
|
|
3881
|
-
}
|
|
3882
|
-
|
|
3883
|
-
.editor-upload-dropzone {
|
|
3884
3953
|
display: flex;
|
|
3885
3954
|
flex-direction: column;
|
|
3886
|
-
|
|
3887
|
-
justify-content: center;
|
|
3888
|
-
gap: 6px;
|
|
3889
|
-
padding: 24px 16px;
|
|
3890
|
-
border: 1.5px dashed var(--ng-border);
|
|
3891
|
-
border-radius: calc(var(--ng-radius) - 2px);
|
|
3892
|
-
background: var(--ng-muted);
|
|
3893
|
-
color: var(--ng-muted-foreground);
|
|
3894
|
-
font-size: 13.5px;
|
|
3895
|
-
cursor: pointer;
|
|
3896
|
-
text-align: center;
|
|
3897
|
-
transition: border-color 120ms ease, background-color 120ms ease;
|
|
3898
|
-
}
|
|
3899
|
-
|
|
3900
|
-
.editor-upload-dropzone.is-dragover,
|
|
3901
|
-
.editor-upload-dropzone:hover {
|
|
3902
|
-
border-color: var(--ng-ring);
|
|
3903
|
-
color: var(--ng-foreground);
|
|
3955
|
+
gap: 8px;
|
|
3904
3956
|
}
|
|
3905
3957
|
|
|
3906
|
-
.editor-
|
|
3958
|
+
.editor-extra-head {
|
|
3907
3959
|
font-size: 12px;
|
|
3960
|
+
font-weight: 600;
|
|
3908
3961
|
color: var(--ng-muted-foreground);
|
|
3962
|
+
text-transform: uppercase;
|
|
3963
|
+
letter-spacing: 0.04em;
|
|
3909
3964
|
}
|
|
3910
3965
|
|
|
3911
|
-
.editor-
|
|
3966
|
+
.editor-extra-grid {
|
|
3967
|
+
display: grid;
|
|
3968
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
3969
|
+
gap: 8px;
|
|
3970
|
+
}
|
|
3971
|
+
|
|
3972
|
+
.editor-bookmark-card {
|
|
3912
3973
|
display: flex;
|
|
3913
|
-
align-items: center;
|
|
3914
3974
|
justify-content: space-between;
|
|
3915
|
-
gap:
|
|
3916
|
-
|
|
3917
|
-
padding: 8px 10px;
|
|
3918
|
-
border-radius: calc(var(--ng-radius) - 2px);
|
|
3975
|
+
gap: 12px;
|
|
3976
|
+
padding: 12px;
|
|
3919
3977
|
border: 1px solid var(--ng-border);
|
|
3978
|
+
border-radius: var(--ng-radius);
|
|
3920
3979
|
background: var(--ng-background);
|
|
3980
|
+
color: var(--ng-foreground);
|
|
3981
|
+
text-decoration: none;
|
|
3982
|
+
margin: 10px 0;
|
|
3921
3983
|
}
|
|
3922
3984
|
|
|
3923
|
-
.editor-
|
|
3924
|
-
|
|
3925
|
-
gap: 2px;
|
|
3926
|
-
font-size: 13px;
|
|
3985
|
+
.editor-bookmark-card:hover {
|
|
3986
|
+
background: var(--ng-accent);
|
|
3927
3987
|
}
|
|
3928
3988
|
|
|
3929
|
-
.editor-
|
|
3930
|
-
font-
|
|
3989
|
+
.editor-bookmark-title {
|
|
3990
|
+
font-weight: 600;
|
|
3991
|
+
font-size: 14px;
|
|
3992
|
+
}
|
|
3993
|
+
|
|
3994
|
+
.editor-bookmark-desc {
|
|
3995
|
+
font-size: 12px;
|
|
3931
3996
|
color: var(--ng-muted-foreground);
|
|
3997
|
+
margin-top: 2px;
|
|
3932
3998
|
}
|
|
3933
3999
|
|
|
3934
|
-
.editor-
|
|
4000
|
+
.editor-bookmark-url {
|
|
4001
|
+
font-size: 11px;
|
|
4002
|
+
color: var(--ng-muted-foreground);
|
|
4003
|
+
margin-top: 6px;
|
|
4004
|
+
}
|
|
4005
|
+
|
|
4006
|
+
.editor-bookmark-thumb {
|
|
4007
|
+
width: 84px;
|
|
4008
|
+
height: 64px;
|
|
4009
|
+
object-fit: cover;
|
|
4010
|
+
border-radius: 6px;
|
|
4011
|
+
flex-shrink: 0;
|
|
4012
|
+
}
|
|
4013
|
+
|
|
4014
|
+
.editor-steps-editor-list,
|
|
4015
|
+
.editor-steps-list {
|
|
4016
|
+
display: flex;
|
|
4017
|
+
flex-direction: column;
|
|
4018
|
+
gap: 10px;
|
|
4019
|
+
list-style: none;
|
|
4020
|
+
padding: 0;
|
|
4021
|
+
margin: 12px 0;
|
|
4022
|
+
}
|
|
4023
|
+
|
|
4024
|
+
.editor-step-editor-row,
|
|
4025
|
+
.editor-step-item {
|
|
4026
|
+
display: flex;
|
|
4027
|
+
align-items: flex-start;
|
|
4028
|
+
gap: 10px;
|
|
4029
|
+
}
|
|
4030
|
+
|
|
4031
|
+
.editor-step-badge {
|
|
4032
|
+
width: 24px;
|
|
4033
|
+
height: 24px;
|
|
4034
|
+
border-radius: 999px;
|
|
4035
|
+
background: var(--ng-foreground);
|
|
4036
|
+
color: var(--ng-background);
|
|
4037
|
+
font-size: 12px;
|
|
4038
|
+
font-weight: 700;
|
|
4039
|
+
display: inline-flex;
|
|
4040
|
+
align-items: center;
|
|
4041
|
+
justify-content: center;
|
|
4042
|
+
flex-shrink: 0;
|
|
4043
|
+
margin-top: 2px;
|
|
4044
|
+
}
|
|
4045
|
+
|
|
4046
|
+
.editor-step-editor-fields,
|
|
4047
|
+
.editor-step-content {
|
|
4048
|
+
flex: 1;
|
|
4049
|
+
display: flex;
|
|
4050
|
+
flex-direction: column;
|
|
4051
|
+
gap: 4px;
|
|
4052
|
+
}
|
|
4053
|
+
|
|
4054
|
+
.editor-step-content h4 {
|
|
4055
|
+
margin: 0;
|
|
4056
|
+
font-size: 14px;
|
|
4057
|
+
font-weight: 600;
|
|
4058
|
+
}
|
|
4059
|
+
|
|
4060
|
+
.editor-step-content p {
|
|
4061
|
+
margin: 0;
|
|
4062
|
+
font-size: 13px;
|
|
4063
|
+
color: var(--ng-muted-foreground);
|
|
4064
|
+
}
|
|
4065
|
+
|
|
4066
|
+
.editor-diff-inputs {
|
|
4067
|
+
display: grid;
|
|
4068
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
4069
|
+
gap: 8px;
|
|
4070
|
+
}
|
|
4071
|
+
|
|
4072
|
+
.editor-diff-filename {
|
|
4073
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
4074
|
+
font-size: 11px;
|
|
4075
|
+
color: var(--ng-muted-foreground);
|
|
4076
|
+
}
|
|
4077
|
+
|
|
4078
|
+
.editor-diff-preview {
|
|
4079
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
4080
|
+
font-size: 12px;
|
|
4081
|
+
background: var(--ng-background);
|
|
4082
|
+
border: 1px solid var(--ng-border);
|
|
4083
|
+
border-radius: 6px;
|
|
4084
|
+
padding: 8px;
|
|
4085
|
+
margin: 0;
|
|
4086
|
+
overflow-x: auto;
|
|
4087
|
+
}
|
|
4088
|
+
|
|
4089
|
+
.editor-diff-line {
|
|
4090
|
+
display: block;
|
|
4091
|
+
padding: 1px 4px;
|
|
4092
|
+
}
|
|
4093
|
+
|
|
4094
|
+
.editor-diff-line.is-add {
|
|
4095
|
+
background: rgba(34, 197, 94, 0.14);
|
|
4096
|
+
}
|
|
4097
|
+
|
|
4098
|
+
.editor-diff-line.is-del {
|
|
4099
|
+
background: rgba(239, 68, 68, 0.14);
|
|
4100
|
+
}
|
|
4101
|
+
|
|
4102
|
+
.editor-video-el {
|
|
4103
|
+
width: 100%;
|
|
4104
|
+
border-radius: 8px;
|
|
4105
|
+
max-height: 440px;
|
|
4106
|
+
background: #000;
|
|
4107
|
+
}
|
|
4108
|
+
|
|
4109
|
+
.editor-video-block figcaption {
|
|
4110
|
+
text-align: center;
|
|
4111
|
+
font-size: 12px;
|
|
4112
|
+
color: var(--ng-muted-foreground);
|
|
4113
|
+
margin-top: 6px;
|
|
4114
|
+
}
|
|
4115
|
+
|
|
4116
|
+
.editor-changelog-row {
|
|
4117
|
+
display: grid;
|
|
4118
|
+
grid-template-columns: 110px 1fr auto;
|
|
4119
|
+
gap: 8px;
|
|
4120
|
+
align-items: center;
|
|
4121
|
+
}
|
|
4122
|
+
|
|
4123
|
+
.editor-changelog-head {
|
|
4124
|
+
display: flex;
|
|
4125
|
+
align-items: center;
|
|
4126
|
+
gap: 10px;
|
|
4127
|
+
}
|
|
4128
|
+
|
|
4129
|
+
.editor-changelog-version {
|
|
4130
|
+
font-weight: 700;
|
|
4131
|
+
font-size: 14px;
|
|
4132
|
+
}
|
|
4133
|
+
|
|
4134
|
+
.editor-changelog-date {
|
|
4135
|
+
font-size: 12px;
|
|
4136
|
+
color: var(--ng-muted-foreground);
|
|
4137
|
+
}
|
|
4138
|
+
|
|
4139
|
+
.editor-changelog-list {
|
|
4140
|
+
list-style: none;
|
|
4141
|
+
padding: 0;
|
|
4142
|
+
margin: 0;
|
|
4143
|
+
display: flex;
|
|
4144
|
+
flex-direction: column;
|
|
4145
|
+
gap: 6px;
|
|
4146
|
+
}
|
|
4147
|
+
|
|
4148
|
+
.editor-changelog-list li {
|
|
4149
|
+
display: flex;
|
|
4150
|
+
align-items: center;
|
|
4151
|
+
gap: 8px;
|
|
4152
|
+
font-size: 13px;
|
|
4153
|
+
}
|
|
4154
|
+
|
|
4155
|
+
.editor-changelog-badge {
|
|
4156
|
+
font-size: 10px;
|
|
4157
|
+
font-weight: 700;
|
|
4158
|
+
padding: 2px 6px;
|
|
4159
|
+
border-radius: 999px;
|
|
4160
|
+
border: 1px solid var(--ng-border);
|
|
4161
|
+
}
|
|
4162
|
+
|
|
4163
|
+
.editor-social-head {
|
|
4164
|
+
display: flex;
|
|
4165
|
+
gap: 6px;
|
|
4166
|
+
align-items: baseline;
|
|
4167
|
+
font-size: 13px;
|
|
4168
|
+
}
|
|
4169
|
+
|
|
4170
|
+
.editor-social-head span {
|
|
4171
|
+
color: var(--ng-muted-foreground);
|
|
4172
|
+
font-size: 12px;
|
|
4173
|
+
}
|
|
4174
|
+
|
|
4175
|
+
.editor-social-text {
|
|
4176
|
+
margin: 0;
|
|
4177
|
+
font-size: 14px;
|
|
4178
|
+
line-height: 1.5;
|
|
4179
|
+
}
|
|
4180
|
+
|
|
4181
|
+
.editor-social-link {
|
|
4182
|
+
font-size: 12px;
|
|
4183
|
+
color: var(--ng-foreground);
|
|
4184
|
+
text-decoration: underline;
|
|
4185
|
+
}
|
|
4186
|
+
|
|
4187
|
+
/* ── Inline AI Rewrite, Color Swatches, Smart Mention & /today ─── */
|
|
4188
|
+
.ng-inline-ai-actions,
|
|
4189
|
+
.ng-inline-color-actions,
|
|
4190
|
+
.ng-mention-popover {
|
|
4191
|
+
padding: 8px;
|
|
4192
|
+
border-top: 1px solid var(--ng-border);
|
|
4193
|
+
display: flex;
|
|
4194
|
+
flex-direction: column;
|
|
4195
|
+
gap: 6px;
|
|
4196
|
+
background: var(--ng-popover);
|
|
4197
|
+
}
|
|
4198
|
+
|
|
4199
|
+
.ng-mention-popover {
|
|
4200
|
+
flex-direction: row;
|
|
4201
|
+
align-items: center;
|
|
4202
|
+
}
|
|
4203
|
+
|
|
4204
|
+
.ng-inline-ai-row,
|
|
4205
|
+
.ng-inline-swatch-row {
|
|
4206
|
+
display: flex;
|
|
4207
|
+
align-items: center;
|
|
4208
|
+
gap: 4px;
|
|
4209
|
+
flex-wrap: wrap;
|
|
4210
|
+
}
|
|
4211
|
+
|
|
4212
|
+
.ng-inline-action-btn {
|
|
4213
|
+
padding: 3px 8px;
|
|
4214
|
+
font-size: 11px;
|
|
4215
|
+
font-weight: 500;
|
|
4216
|
+
border-radius: 6px;
|
|
4217
|
+
border: 1px solid var(--ng-border);
|
|
4218
|
+
background: var(--ng-background);
|
|
4219
|
+
color: var(--ng-foreground);
|
|
4220
|
+
cursor: pointer;
|
|
4221
|
+
}
|
|
4222
|
+
|
|
4223
|
+
.ng-inline-action-btn:hover {
|
|
4224
|
+
background: var(--ng-accent);
|
|
4225
|
+
}
|
|
4226
|
+
|
|
4227
|
+
.ng-inline-ai-status {
|
|
4228
|
+
font-size: 11px;
|
|
4229
|
+
color: var(--ng-muted-foreground);
|
|
4230
|
+
}
|
|
4231
|
+
|
|
4232
|
+
.ng-inline-swatch-label {
|
|
4233
|
+
font-size: 10px;
|
|
4234
|
+
font-weight: 600;
|
|
4235
|
+
color: var(--ng-muted-foreground);
|
|
4236
|
+
width: 28px;
|
|
4237
|
+
}
|
|
4238
|
+
|
|
4239
|
+
.ng-inline-swatch {
|
|
4240
|
+
width: 18px;
|
|
4241
|
+
height: 18px;
|
|
4242
|
+
border-radius: 999px;
|
|
4243
|
+
border: 1px solid var(--ng-border);
|
|
4244
|
+
cursor: pointer;
|
|
4245
|
+
display: inline-flex;
|
|
4246
|
+
align-items: center;
|
|
4247
|
+
justify-content: center;
|
|
4248
|
+
font-size: 11px;
|
|
4249
|
+
color: var(--ng-foreground);
|
|
4250
|
+
padding: 0;
|
|
4251
|
+
}
|
|
4252
|
+
|
|
4253
|
+
.editor-today-pill {
|
|
4254
|
+
display: inline-flex;
|
|
4255
|
+
align-items: center;
|
|
4256
|
+
gap: 8px;
|
|
4257
|
+
margin: 6px 0;
|
|
4258
|
+
}
|
|
4259
|
+
|
|
4260
|
+
.editor-today-badge {
|
|
4261
|
+
display: inline-flex;
|
|
4262
|
+
align-items: center;
|
|
4263
|
+
padding: 4px 10px;
|
|
4264
|
+
border-radius: 999px;
|
|
4265
|
+
border: 1px solid var(--ng-border);
|
|
4266
|
+
background: var(--ng-card);
|
|
4267
|
+
color: var(--ng-foreground);
|
|
4268
|
+
font-size: 12px;
|
|
4269
|
+
font-weight: 500;
|
|
4270
|
+
}
|
|
4271
|
+
|
|
4272
|
+
.ng-dev-access-bar {
|
|
4273
|
+
background: var(--ng-muted);
|
|
4274
|
+
color: var(--ng-foreground);
|
|
4275
|
+
border: 1px solid var(--ng-border);
|
|
4276
|
+
border-radius: var(--ng-radius);
|
|
4277
|
+
padding: 10px 12px;
|
|
4278
|
+
font-size: 12px;
|
|
4279
|
+
line-height: 1.45;
|
|
4280
|
+
margin-bottom: 10px;
|
|
4281
|
+
}
|
|
4282
|
+
|
|
4283
|
+
.ng-tool-chip.is-locked {
|
|
4284
|
+
opacity: 0.85;
|
|
4285
|
+
cursor: default;
|
|
4286
|
+
}
|
|
4287
|
+
|
|
4288
|
+
/* ── Embed Alignment & Size Controls ────────────────────────────── */
|
|
4289
|
+
.custom-embed-preview,
|
|
4290
|
+
.editor-embed-wrap {
|
|
4291
|
+
display: flex;
|
|
4292
|
+
width: 100%;
|
|
4293
|
+
margin: 12px 0;
|
|
4294
|
+
}
|
|
4295
|
+
|
|
4296
|
+
.custom-embed-preview[data-align='left'],
|
|
4297
|
+
.editor-embed-wrap[data-align='left'] {
|
|
4298
|
+
justify-content: flex-start;
|
|
4299
|
+
}
|
|
4300
|
+
|
|
4301
|
+
.custom-embed-preview[data-align='center'],
|
|
4302
|
+
.editor-embed-wrap[data-align='center'] {
|
|
4303
|
+
justify-content: center;
|
|
4304
|
+
}
|
|
4305
|
+
|
|
4306
|
+
.custom-embed-preview[data-align='right'],
|
|
4307
|
+
.editor-embed-wrap[data-align='right'] {
|
|
4308
|
+
justify-content: flex-end;
|
|
4309
|
+
}
|
|
4310
|
+
|
|
4311
|
+
.custom-embed-preview iframe,
|
|
4312
|
+
.editor-embed-wrap iframe {
|
|
4313
|
+
border: 1px solid var(--ng-border);
|
|
4314
|
+
border-radius: var(--ng-radius);
|
|
4315
|
+
aspect-ratio: 16 / 9;
|
|
4316
|
+
width: 75%;
|
|
4317
|
+
height: auto;
|
|
4318
|
+
}
|
|
4319
|
+
|
|
4320
|
+
.custom-embed-preview[data-size='small'] iframe,
|
|
4321
|
+
.editor-embed-wrap[data-size='small'] iframe {
|
|
4322
|
+
width: 50%;
|
|
4323
|
+
}
|
|
4324
|
+
|
|
4325
|
+
.custom-embed-preview[data-size='medium'] iframe,
|
|
4326
|
+
.editor-embed-wrap[data-size='medium'] iframe {
|
|
4327
|
+
width: 75%;
|
|
4328
|
+
}
|
|
4329
|
+
|
|
4330
|
+
.custom-embed-preview[data-size='large'] iframe,
|
|
4331
|
+
.editor-embed-wrap[data-size='large'] iframe {
|
|
4332
|
+
width: 90%;
|
|
4333
|
+
}
|
|
4334
|
+
|
|
4335
|
+
.custom-embed-preview[data-size='full'] iframe,
|
|
4336
|
+
.editor-embed-wrap[data-size='full'] iframe {
|
|
4337
|
+
width: 100%;
|
|
4338
|
+
}
|
|
4339
|
+
|
|
4340
|
+
/* ── Glassmorphism Inline Toolbar ───────────────────────────────── */
|
|
4341
|
+
.nextgen-editor-shell .ce-inline-toolbar {
|
|
4342
|
+
background: color-mix(in srgb, var(--ng-popover) 85%, transparent);
|
|
4343
|
+
backdrop-filter: blur(10px);
|
|
4344
|
+
-webkit-backdrop-filter: blur(10px);
|
|
4345
|
+
}
|
|
4346
|
+
|
|
4347
|
+
/* ── Tighter Toolbar & Plus/Settings Positioning ────────────────── */
|
|
4348
|
+
.nextgen-editor-shell #editorjs {
|
|
4349
|
+
padding-left: 72px;
|
|
4350
|
+
}
|
|
4351
|
+
|
|
4352
|
+
.nextgen-editor-shell .ce-block__content,
|
|
4353
|
+
.nextgen-editor-shell .ce-toolbar__content {
|
|
4354
|
+
max-width: none;
|
|
4355
|
+
margin-left: 0;
|
|
4356
|
+
margin-right: 0;
|
|
4357
|
+
}
|
|
4358
|
+
|
|
4359
|
+
.nextgen-editor-shell .ce-toolbar__actions {
|
|
4360
|
+
right: calc(100% + 4px);
|
|
4361
|
+
left: auto;
|
|
4362
|
+
display: inline-flex;
|
|
4363
|
+
align-items: center;
|
|
4364
|
+
gap: 2px;
|
|
4365
|
+
}
|
|
4366
|
+
|
|
4367
|
+
.nextgen-editor-shell .ce-toolbox,
|
|
4368
|
+
.nextgen-editor-shell .ce-settings {
|
|
4369
|
+
position: absolute;
|
|
4370
|
+
left: calc(100% + 6px);
|
|
4371
|
+
top: calc(100% + 4px);
|
|
4372
|
+
width: 0;
|
|
4373
|
+
height: 0;
|
|
4374
|
+
}
|
|
4375
|
+
|
|
4376
|
+
.nextgen-editor-shell .ce-toolbox .ce-popover,
|
|
4377
|
+
.nextgen-editor-shell .ce-settings .ce-popover {
|
|
4378
|
+
min-width: 0 !important;
|
|
4379
|
+
border: none !important;
|
|
4380
|
+
box-shadow: none !important;
|
|
4381
|
+
background: transparent !important;
|
|
4382
|
+
}
|
|
4383
|
+
|
|
4384
|
+
.nextgen-editor-shell .ce-toolbox .ce-popover__container,
|
|
4385
|
+
.nextgen-editor-shell .ce-settings .ce-popover__container {
|
|
4386
|
+
left: 0 !important;
|
|
4387
|
+
right: auto !important;
|
|
4388
|
+
top: 0 !important;
|
|
4389
|
+
--popover-left: 0px !important;
|
|
4390
|
+
min-width: 240px;
|
|
4391
|
+
}
|
|
4392
|
+
|
|
4393
|
+
.nextgen-editor-shell .ce-inline-toolbar {
|
|
4394
|
+
max-width: calc(100% - 16px);
|
|
4395
|
+
min-width: 0;
|
|
4396
|
+
}
|
|
4397
|
+
|
|
4398
|
+
.nextgen-editor-shell .ce-inline-toolbar .ce-popover__container {
|
|
4399
|
+
left: 0 !important;
|
|
4400
|
+
right: auto !important;
|
|
4401
|
+
--popover-left: 0px !important;
|
|
4402
|
+
}
|
|
4403
|
+
|
|
4404
|
+
.nextgen-editor-shell .ce-toolbar__plus,
|
|
4405
|
+
.nextgen-editor-shell .ce-toolbar__settings-btn {
|
|
4406
|
+
width: 26px;
|
|
4407
|
+
height: 26px;
|
|
4408
|
+
border-radius: 6px;
|
|
4409
|
+
background: var(--ng-card);
|
|
4410
|
+
border: 1px solid var(--ng-border);
|
|
4411
|
+
color: var(--ng-muted-foreground);
|
|
4412
|
+
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
|
|
4413
|
+
}
|
|
4414
|
+
|
|
4415
|
+
.nextgen-editor-shell .ce-toolbar__plus:hover,
|
|
4416
|
+
.nextgen-editor-shell .ce-toolbar__settings-btn:hover {
|
|
4417
|
+
background: var(--ng-accent);
|
|
4418
|
+
color: var(--ng-accent-foreground);
|
|
4419
|
+
}
|
|
4420
|
+
|
|
4421
|
+
@media (max-width: 650px) {
|
|
4422
|
+
.nextgen-editor-shell #editorjs {
|
|
4423
|
+
padding-left: 36px;
|
|
4424
|
+
}
|
|
4425
|
+
}
|
|
4426
|
+
|
|
4427
|
+
/* ── Inline Text Formatting (Editor & Preview) ──────────────────── */
|
|
4428
|
+
.nextgen-editor-shell mark,
|
|
4429
|
+
.nextgen-editor-article mark {
|
|
4430
|
+
background: #fef08a;
|
|
4431
|
+
color: #18181b;
|
|
4432
|
+
padding: 1px 4px;
|
|
4433
|
+
border-radius: 3px;
|
|
4434
|
+
}
|
|
4435
|
+
|
|
4436
|
+
.nextgen-editor-shell b,
|
|
4437
|
+
.nextgen-editor-shell strong,
|
|
4438
|
+
.nextgen-editor-article b,
|
|
4439
|
+
.nextgen-editor-article strong {
|
|
4440
|
+
font-weight: 700;
|
|
4441
|
+
color: var(--ng-foreground);
|
|
4442
|
+
}
|
|
4443
|
+
|
|
4444
|
+
.nextgen-editor-shell i,
|
|
4445
|
+
.nextgen-editor-shell em,
|
|
4446
|
+
.nextgen-editor-article i,
|
|
4447
|
+
.nextgen-editor-article em {
|
|
4448
|
+
font-style: italic;
|
|
4449
|
+
}
|
|
4450
|
+
|
|
4451
|
+
.nextgen-editor-shell u,
|
|
4452
|
+
.nextgen-editor-article u {
|
|
4453
|
+
text-decoration: underline;
|
|
4454
|
+
text-underline-offset: 2px;
|
|
4455
|
+
}
|
|
4456
|
+
|
|
4457
|
+
.nextgen-editor-shell s,
|
|
4458
|
+
.nextgen-editor-article s {
|
|
4459
|
+
text-decoration: line-through;
|
|
4460
|
+
}
|
|
4461
|
+
|
|
4462
|
+
.nextgen-editor-article code:not(pre code) {
|
|
4463
|
+
padding: 2px 5px;
|
|
4464
|
+
border-radius: 4px;
|
|
4465
|
+
background: var(--ng-muted);
|
|
4466
|
+
border: 1px solid var(--ng-border);
|
|
4467
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
4468
|
+
font-size: 0.875em;
|
|
4469
|
+
}
|
|
4470
|
+
|
|
4471
|
+
/* ── File Upload Block & Delimiter (shadcn/ui) ──────────────────── */
|
|
4472
|
+
.editor-upload-tool,
|
|
4473
|
+
.editor-upload-card {
|
|
4474
|
+
background: var(--ng-card);
|
|
4475
|
+
color: var(--ng-card-foreground);
|
|
4476
|
+
border: 1px solid var(--ng-border);
|
|
4477
|
+
border-radius: var(--ng-radius);
|
|
4478
|
+
padding: 14px;
|
|
4479
|
+
margin: 12px 0;
|
|
4480
|
+
}
|
|
4481
|
+
|
|
4482
|
+
.editor-upload-dropzone {
|
|
4483
|
+
display: flex;
|
|
4484
|
+
flex-direction: column;
|
|
4485
|
+
align-items: center;
|
|
4486
|
+
justify-content: center;
|
|
4487
|
+
gap: 6px;
|
|
4488
|
+
padding: 24px 16px;
|
|
4489
|
+
border: 1.5px dashed var(--ng-border);
|
|
4490
|
+
border-radius: calc(var(--ng-radius) - 2px);
|
|
4491
|
+
background: var(--ng-muted);
|
|
4492
|
+
color: var(--ng-muted-foreground);
|
|
4493
|
+
font-size: 13.5px;
|
|
4494
|
+
cursor: pointer;
|
|
4495
|
+
text-align: center;
|
|
4496
|
+
transition: border-color 120ms ease, background-color 120ms ease;
|
|
4497
|
+
}
|
|
4498
|
+
|
|
4499
|
+
.editor-upload-dropzone.is-dragover,
|
|
4500
|
+
.editor-upload-dropzone:hover {
|
|
4501
|
+
border-color: var(--ng-ring);
|
|
4502
|
+
color: var(--ng-foreground);
|
|
4503
|
+
}
|
|
4504
|
+
|
|
4505
|
+
.editor-upload-status {
|
|
4506
|
+
font-size: 12px;
|
|
4507
|
+
color: var(--ng-muted-foreground);
|
|
4508
|
+
}
|
|
4509
|
+
|
|
4510
|
+
.editor-upload-file-row {
|
|
4511
|
+
display: flex;
|
|
4512
|
+
align-items: center;
|
|
4513
|
+
justify-content: space-between;
|
|
4514
|
+
gap: 10px;
|
|
4515
|
+
margin-top: 10px;
|
|
4516
|
+
padding: 8px 10px;
|
|
4517
|
+
border-radius: calc(var(--ng-radius) - 2px);
|
|
4518
|
+
border: 1px solid var(--ng-border);
|
|
4519
|
+
background: var(--ng-background);
|
|
4520
|
+
}
|
|
4521
|
+
|
|
4522
|
+
.editor-upload-meta {
|
|
4523
|
+
display: grid;
|
|
4524
|
+
gap: 2px;
|
|
4525
|
+
font-size: 13px;
|
|
4526
|
+
}
|
|
4527
|
+
|
|
4528
|
+
.editor-upload-meta span {
|
|
4529
|
+
font-size: 11.5px;
|
|
4530
|
+
color: var(--ng-muted-foreground);
|
|
4531
|
+
}
|
|
4532
|
+
|
|
4533
|
+
.editor-upload-img-preview {
|
|
3935
4534
|
max-width: 100%;
|
|
3936
4535
|
border-radius: calc(var(--ng-radius) - 2px);
|
|
3937
4536
|
margin-top: 10px;
|
|
@@ -4844,7 +5443,7 @@
|
|
|
4844
5443
|
.ng-tools-groups {
|
|
4845
5444
|
display: grid;
|
|
4846
5445
|
gap: 10px;
|
|
4847
|
-
max-height:
|
|
5446
|
+
max-height: 310px;
|
|
4848
5447
|
overflow-y: auto;
|
|
4849
5448
|
padding-right: 4px;
|
|
4850
5449
|
}
|
|
@@ -4889,3 +5488,121 @@
|
|
|
4889
5488
|
.ng-tool-chip input {
|
|
4890
5489
|
margin: 0;
|
|
4891
5490
|
}
|
|
5491
|
+
|
|
5492
|
+
/* ── Floating Sticky Note Scratchpad (/scratch) ─────────────────── */
|
|
5493
|
+
.ng-scratch-sticky {
|
|
5494
|
+
position: fixed;
|
|
5495
|
+
right: 24px;
|
|
5496
|
+
bottom: 24px;
|
|
5497
|
+
z-index: 9500;
|
|
5498
|
+
width: 300px;
|
|
5499
|
+
max-width: calc(100vw - 32px);
|
|
5500
|
+
border-radius: 12px;
|
|
5501
|
+
border: 1px solid #facc15;
|
|
5502
|
+
background: #fef9c3;
|
|
5503
|
+
color: #422006;
|
|
5504
|
+
box-shadow: 0 16px 38px rgba(15, 23, 42, 0.24);
|
|
5505
|
+
overflow: hidden;
|
|
5506
|
+
display: flex;
|
|
5507
|
+
flex-direction: column;
|
|
5508
|
+
}
|
|
5509
|
+
|
|
5510
|
+
.dark .ng-scratch-sticky,
|
|
5511
|
+
[data-theme='dark'] .ng-scratch-sticky,
|
|
5512
|
+
[data-ng-theme='dark'] .ng-scratch-sticky {
|
|
5513
|
+
border-color: rgba(250, 204, 21, 0.35);
|
|
5514
|
+
background: #272312;
|
|
5515
|
+
color: #fef08a;
|
|
5516
|
+
}
|
|
5517
|
+
|
|
5518
|
+
.ng-scratch-sticky-head {
|
|
5519
|
+
display: flex;
|
|
5520
|
+
align-items: center;
|
|
5521
|
+
gap: 6px;
|
|
5522
|
+
padding: 8px 10px;
|
|
5523
|
+
border-bottom: 1px solid rgba(161, 98, 7, 0.2);
|
|
5524
|
+
cursor: move;
|
|
5525
|
+
user-select: none;
|
|
5526
|
+
}
|
|
5527
|
+
|
|
5528
|
+
.ng-scratch-sticky-title {
|
|
5529
|
+
font-size: 12px;
|
|
5530
|
+
font-weight: 700;
|
|
5531
|
+
flex: 1;
|
|
5532
|
+
}
|
|
5533
|
+
|
|
5534
|
+
.ng-scratch-sticky-count {
|
|
5535
|
+
font-size: 11px;
|
|
5536
|
+
opacity: 0.75;
|
|
5537
|
+
}
|
|
5538
|
+
|
|
5539
|
+
.ng-scratch-sticky-actions {
|
|
5540
|
+
display: flex;
|
|
5541
|
+
align-items: center;
|
|
5542
|
+
gap: 4px;
|
|
5543
|
+
}
|
|
5544
|
+
|
|
5545
|
+
.ng-scratch-sticky-btn {
|
|
5546
|
+
padding: 2px 7px;
|
|
5547
|
+
border-radius: 6px;
|
|
5548
|
+
border: 1px solid rgba(161, 98, 7, 0.25);
|
|
5549
|
+
background: rgba(255, 255, 255, 0.45);
|
|
5550
|
+
color: inherit;
|
|
5551
|
+
font-size: 11px;
|
|
5552
|
+
font-weight: 600;
|
|
5553
|
+
cursor: pointer;
|
|
5554
|
+
}
|
|
5555
|
+
|
|
5556
|
+
.dark .ng-scratch-sticky-btn,
|
|
5557
|
+
[data-theme='dark'] .ng-scratch-sticky-btn,
|
|
5558
|
+
[data-ng-theme='dark'] .ng-scratch-sticky-btn {
|
|
5559
|
+
background: rgba(255, 255, 255, 0.08);
|
|
5560
|
+
border-color: rgba(250, 204, 21, 0.25);
|
|
5561
|
+
}
|
|
5562
|
+
|
|
5563
|
+
.ng-scratch-sticky-body {
|
|
5564
|
+
width: 100%;
|
|
5565
|
+
min-height: 170px;
|
|
5566
|
+
max-height: 360px;
|
|
5567
|
+
box-sizing: border-box;
|
|
5568
|
+
padding: 10px 12px;
|
|
5569
|
+
border: none;
|
|
5570
|
+
outline: none;
|
|
5571
|
+
resize: vertical;
|
|
5572
|
+
background: transparent;
|
|
5573
|
+
color: inherit;
|
|
5574
|
+
font-family: inherit;
|
|
5575
|
+
font-size: 13px;
|
|
5576
|
+
line-height: 1.55;
|
|
5577
|
+
}
|
|
5578
|
+
|
|
5579
|
+
/* ── Inline AI Prompt Div (/continue & /askai) ──────────────────── */
|
|
5580
|
+
.ng-ai-inline-popover {
|
|
5581
|
+
position: absolute;
|
|
5582
|
+
z-index: 9600;
|
|
5583
|
+
width: 320px;
|
|
5584
|
+
max-width: calc(100vw - 24px);
|
|
5585
|
+
padding: 10px 12px;
|
|
5586
|
+
border-radius: var(--ng-radius, 10px);
|
|
5587
|
+
border: 1px solid var(--ng-border, #e2e8f0);
|
|
5588
|
+
background: var(--ng-popover, #ffffff);
|
|
5589
|
+
color: var(--ng-popover-foreground, #0f172a);
|
|
5590
|
+
box-shadow: 0 14px 36px rgba(15, 23, 42, 0.22);
|
|
5591
|
+
display: grid;
|
|
5592
|
+
gap: 8px;
|
|
5593
|
+
}
|
|
5594
|
+
|
|
5595
|
+
.ng-ai-inline-head {
|
|
5596
|
+
display: flex;
|
|
5597
|
+
align-items: center;
|
|
5598
|
+
justify-content: space-between;
|
|
5599
|
+
font-size: 12px;
|
|
5600
|
+
font-weight: 600;
|
|
5601
|
+
}
|
|
5602
|
+
|
|
5603
|
+
.ng-ai-inline-row {
|
|
5604
|
+
display: grid;
|
|
5605
|
+
grid-template-columns: 1fr auto;
|
|
5606
|
+
gap: 6px;
|
|
5607
|
+
align-items: center;
|
|
5608
|
+
}
|