@jinntec/jinntap 1.22.4 → 1.23.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.
@@ -1,4 +1,7 @@
1
- tei-div, tei-p, tei-item, tei-head {
1
+ tei-div,
2
+ tei-p,
3
+ tei-item,
4
+ tei-head {
2
5
  display: block;
3
6
  }
4
7
 
@@ -17,7 +20,7 @@ tei-div > tei-head {
17
20
  }
18
21
 
19
22
  tei-div > tei-div > tei-head {
20
- font-style: italic;
23
+ font-style: italic;
21
24
  font-size: 1.75rem;
22
25
  line-height: 1.15;
23
26
  margin-top: 2.625rem;
@@ -46,7 +49,7 @@ tei-figure > tei-head {
46
49
  line-height: 1.25;
47
50
  }
48
51
 
49
- tei-title[level="m"] {
52
+ tei-title[level='m'] {
50
53
  font-style: italic;
51
54
  }
52
55
 
@@ -82,38 +85,38 @@ tei-p {
82
85
  position: relative;
83
86
  }
84
87
 
85
- [rend="center"] {
88
+ [rend='center'] {
86
89
  text-align: center;
87
90
  }
88
91
 
89
- [rend="right"] {
92
+ [rend='right'] {
90
93
  text-align: right;
91
94
  }
92
95
 
93
- [rend="justify"] {
96
+ [rend='justify'] {
94
97
  text-align: justify;
95
98
  }
96
99
 
97
- tei-hi[rend="b"] {
100
+ tei-hi[rend='b'] {
98
101
  font-weight: bold;
99
102
  }
100
103
 
101
- tei-hi[rend="i"] {
104
+ tei-hi[rend='i'] {
102
105
  font-style: italic;
103
106
  }
104
107
 
105
- tei-hi[rend="u"] {
108
+ tei-hi[rend='u'] {
106
109
  text-decoration: underline;
107
110
  }
108
111
 
109
- tei-hi[rend="code"] {
112
+ tei-hi[rend='code'] {
110
113
  font-family: monospace;
111
114
  }
112
115
 
113
116
  tei-figure {
114
117
  display: block;
115
118
  margin: 1rem 0;
116
- padding: .5rem;
119
+ padding: 0.5rem;
117
120
  border: 1px solid #ccc;
118
121
  border-radius: 4px;
119
122
  }
@@ -127,33 +130,34 @@ tei-figure > img {
127
130
  tei-figure > tei-figDesc {
128
131
  display: block;
129
132
  text-align: right;
130
- font-size: .8rem;
133
+ font-size: 0.8rem;
131
134
  }
132
135
 
133
136
  tei-persname {
134
- color: #A83410;
137
+ color: #a83410;
135
138
  }
136
139
 
137
140
  tei-placeName {
138
- color: #E48500;
141
+ color: #e48500;
139
142
  }
140
143
 
141
144
  tei-orgName {
142
- color: #F45D2C;
145
+ color: #f45d2c;
143
146
  }
144
147
 
145
148
  tei-term {
146
- color: #9236A4;
149
+ color: #9236a4;
147
150
  }
148
151
 
149
- tei-list, tei-listAnnotation {
152
+ tei-list,
153
+ tei-listAnnotation {
150
154
  display: block;
151
155
  list-style-type: disc;
152
156
  margin: 1em 0;
153
157
  padding-left: 2em;
154
158
  }
155
159
 
156
- tei-list[rend="ordered"] {
160
+ tei-list[rend='ordered'] {
157
161
  list-style-type: decimal;
158
162
  }
159
163
 
@@ -161,7 +165,8 @@ tei-list > tei-head {
161
165
  font-size: 1.25rem;
162
166
  }
163
167
 
164
- tei-item, tei-note {
168
+ tei-item,
169
+ tei-note {
165
170
  display: list-item;
166
171
  list-style-position: outside;
167
172
  margin: 0.5em 0;
@@ -176,7 +181,10 @@ tei-listAnnotation:empty::before {
176
181
  display: none;
177
182
  }
178
183
 
179
- tei-opener, tei-closer, tei-signed, tei-dateline {
184
+ tei-opener,
185
+ tei-closer,
186
+ tei-signed,
187
+ tei-dateline {
180
188
  display: block;
181
189
  }
182
190
 
@@ -196,7 +204,7 @@ tei-listAnnotation::before {
196
204
  padding: 1rem 0 0;
197
205
  margin-top: 2rem;
198
206
  border-top: 1px solid #ccc;
199
- content: "";
207
+ content: '';
200
208
  display: block;
201
209
  width: 220px;
202
210
  }
@@ -211,16 +219,20 @@ tei-note::before {
211
219
  }
212
220
 
213
221
  tei-note::before {
214
- content: "?";
222
+ content: '?';
223
+ margin-right: 0.5em;
224
+ }
225
+ tei-note[n]::before {
226
+ content: attr(n);
215
227
  margin-right: 0.5em;
216
228
  }
217
229
 
218
230
  tei-note[_reference]::before {
219
- content: attr(_reference) ".";
231
+ content: attr(_reference) '.';
220
232
  }
221
233
 
222
234
  tei-note:not([_reference]) {
223
- color: #9E9E9E;
235
+ color: #9e9e9e;
224
236
  }
225
237
 
226
238
  tei-anchor {
@@ -234,33 +246,34 @@ tei-anchor::before {
234
246
  content: attr(_reference);
235
247
  }
236
248
  tei-anchor::after {
237
- content: "\200B";
249
+ content: '\200B';
238
250
  }
239
251
 
240
252
  tei-abbr {
241
- background-color: #9236A4;
253
+ background-color: #9236a4;
242
254
  color: white;
243
255
  }
244
256
 
245
257
  tei-expan {
246
- background-color: #DB90E8;
258
+ background-color: #db90e8;
247
259
  color: white;
248
260
  }
249
261
 
250
262
  tei-gap {
251
- color: #9E9E9E;
263
+ color: #9e9e9e;
252
264
  }
253
265
 
254
266
  tei-supplied {
255
267
  text-decoration: underline dotted;
256
- color: #9E9E9E;
268
+ color: #9e9e9e;
257
269
  }
258
270
 
259
271
  tei-unclear {
260
- color: #F06048;
272
+ color: #f06048;
261
273
  }
262
274
 
263
- tei-pb, tei-lb {
275
+ tei-pb,
276
+ tei-lb {
264
277
  display: inline-block;
265
278
  background-color: #ffa500;
266
279
  font-size: 1rem;
@@ -270,12 +283,38 @@ tei-pb, tei-lb {
270
283
  cursor: pointer;
271
284
  }
272
285
 
286
+ tr:has(td:first-child tei-pb) {
287
+ /* Position the pb widget relative to here */
288
+ position: relative;
289
+ border-top: 4px double #ffa500;
290
+
291
+ td:first-child tei-pb {
292
+ position: absolute;
293
+ /* Place this just next to the table, in the middle of the border line to not overlap any table content */
294
+ top: -1.5rem;
295
+ width: 2rem;
296
+ height: 2rem;
297
+ float: left;
298
+ left: -2rem;
299
+ display: inline-block;
300
+
301
+ /* Display this the same as an lb in normal content */
302
+ content: 'pb';
303
+ background-color: #ffa500;
304
+ font-size: 1rem;
305
+ font-weight: normal;
306
+ border-radius: 4px;
307
+ padding: 2px 6px;
308
+ cursor: pointer;
309
+ }
310
+ }
311
+
273
312
  tei-lb {
274
313
  display: inline;
275
314
  }
276
315
 
277
316
  tei-lb::after {
278
- content: "\A";
317
+ content: '\A';
279
318
  white-space: pre;
280
319
  }
281
320
 
@@ -296,6 +335,20 @@ tei-ref {
296
335
  outline: 2px solid var(--pico-primary);
297
336
  }
298
337
 
338
+ .table-menu {
339
+ .divider::before {
340
+ content: '';
341
+ height: 2rem;
342
+ border-left: 4px solid var(--pico-table-border-color);
343
+ border-radius: 2px;
344
+ display: block;
345
+ }
346
+ }
347
+
348
+ .selectedCell {
349
+ background-color: var(--pico-form-element-selected-background-color);
350
+ }
351
+
299
352
  .debug *::after {
300
353
  display: inline-block;
301
354
  max-width: 7ch;
@@ -305,8 +358,8 @@ tei-ref {
305
358
  border-radius: 4px;
306
359
  margin-left: 2px;
307
360
  padding: 2px 6px;
308
- font-size: .65rem;
361
+ font-size: 0.65rem;
309
362
  font-weight: normal;
310
363
  color: white;
311
364
  vertical-align: middle;
312
- }
365
+ }
package/dist/jinn-tap.css CHANGED
@@ -7,7 +7,10 @@ jinn-tap {
7
7
  "editor aside";
8
8
  column-gap: 1rem;
9
9
  row-gap: .5rem;
10
- /* height: 100%; */
10
+ height: fit-content;
11
+ /* Add a bit of space under the viewport to allow one to scroll a bit beyond the end of the
12
+ document */
13
+ margin-bottom:50vh
11
14
  }
12
15
 
13
16
  jinn-tap > nav {
@@ -163,4 +166,4 @@ jinn-tap .ProseMirror {
163
166
 
164
167
  .jinn-tap.overlay {
165
168
  border: 2px dotted var(--jinn-tap-overlay-color, rgb(255, 123, 0));
166
- }
169
+ }