|
9 | 9 | flex-flow: column;
|
10 | 10 | height: 100%;
|
11 | 11 | width: 100%;
|
12 |
| - max-width: 100%; /* for djangocms-admin-style */ |
| 12 | + max-width: 100%; /* for djangocms-admin-style */ |
| 13 | + |
13 | 14 | .ProseMirror {
|
14 | 15 | overflow-y: scroll;
|
15 | 16 | padding: 0 0.5rem;
|
| 17 | + |
16 | 18 | &:focus-visible {
|
17 | 19 | outline: none;
|
18 | 20 | }
|
|
27 | 29 | min-height: 3rem;
|
28 | 30 | border-radius: 3px;
|
29 | 31 | }
|
| 32 | + |
30 | 33 | &.textarea.fixed .tiptap {
|
31 | 34 | padding-top: 0;
|
32 | 35 | resize: vertical;
|
33 | 36 | overflow-y: auto;
|
34 | 37 | }
|
| 38 | + |
35 | 39 | position: relative;
|
36 | 40 |
|
37 | 41 | .tiptap {
|
|
40 | 44 | outline: 3px solid AccentColor;
|
41 | 45 | outline-offset: 2px;
|
42 | 46 | }
|
| 47 | + |
43 | 48 | &.resize-cursor {
|
44 | 49 | /* Table resizable? */
|
45 | 50 | cursor: col-resize;
|
46 | 51 | }
|
| 52 | + |
47 | 53 | a[href] {
|
48 | 54 | cursor: pointer;
|
49 | 55 | }
|
| 56 | + |
50 | 57 | .fake-selection {
|
51 | 58 | background-color: Highlight;
|
52 | 59 | }
|
| 60 | + |
53 | 61 | table {
|
54 | 62 | th, td {
|
55 | 63 | position: relative;
|
56 | 64 | }
|
| 65 | + |
57 | 66 | .selectedCell {
|
58 | 67 | background: Highlight;
|
59 | 68 | }
|
| 69 | + |
60 | 70 | .column-resize-handle {
|
61 | 71 | top: 0;
|
62 | 72 | bottom: 0;
|
|
67 | 77 | box-shadow: 0 0 2px AccentColor;
|
68 | 78 | }
|
69 | 79 | }
|
| 80 | + |
70 | 81 | &.ProseMirror-focused {
|
71 | 82 | td, th {
|
72 | 83 | outline: Highlight solid 0.5px;
|
73 | 84 | }
|
74 | 85 | }
|
| 86 | + |
75 | 87 | & cms-plugin {
|
76 | 88 | pointer-events: auto;
|
| 89 | + |
77 | 90 | a {
|
78 |
| - pointer-events: none; /* for text-enabled link plugins */ |
| 91 | + pointer-events: none; /* for text-enabled link plugins */ |
79 | 92 | }
|
| 93 | + |
80 | 94 | &.ProseMirror-selectednode > * {
|
81 | 95 | outline: 2px solid #fad507;
|
82 | 96 | outline-offset: 2px;
|
83 | 97 | }
|
84 | 98 | }
|
85 | 99 | }
|
86 | 100 | }
|
| 101 | + |
| 102 | +.prosemirror-dropcursor-block { |
| 103 | + position: absolute; |
| 104 | + background-color: AccentColor !important; |
| 105 | + height: 3px !important; |
| 106 | +} |
| 107 | + |
| 108 | +.prosemirror-dropcursor-block::before, |
| 109 | +.prosemirror-dropcursor-block::after { |
| 110 | + content: ''; |
| 111 | + height: 0 !important; |
| 112 | + position: absolute; |
| 113 | + border-style: solid; |
| 114 | +} |
| 115 | + |
| 116 | +/* Triangle at the left of the dropcursor */ |
| 117 | +.prosemirror-dropcursor-block::before { |
| 118 | + right: 0; /* Position to the left of the dropcursor */ |
| 119 | + top: -5px; /* Adjust to center vertically */ |
| 120 | + border-color: transparent AccentColor transparent transparent; /* Triangle pointing left */ |
| 121 | + border-width: 7px 7px 7px 0; /* Adjust border widths for proper triangle shape */ |
| 122 | +} |
| 123 | + |
| 124 | +/* Triangle at the bottom of the dropcursor */ |
| 125 | +.prosemirror-dropcursor-block::after { |
| 126 | + left: 0; /* Position to the right of the dropcursor */ |
| 127 | + top: -5px; /* Adjust to center vertically */ |
| 128 | + border-color: transparent transparent transparent AccentColor; /* Triangle pointing right */ |
| 129 | + border-width: 7px 0 7px 7px; /* Adjust border widths for proper triangle shape */ |
| 130 | +} |
0 commit comments