@usememos/editor 26.10.17 → 26.10.18
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/base.css +15 -8
- package/dist/style.css +17 -12
- package/dist/theme.css +1 -1
- package/package.json +1 -1
package/dist/base.css
CHANGED
|
@@ -180,6 +180,10 @@
|
|
|
180
180
|
.mbe-root.mbe-readonly a.mbe-link { cursor: pointer; }
|
|
181
181
|
/* Inline even under a CSS reset such as Tailwind's preflight, which makes images blocks; alignment needs it. */
|
|
182
182
|
.mbe-root .mbe-image { display: inline-block; max-width: 100%; height: auto; margin: 8px 0; vertical-align: bottom; }
|
|
183
|
+
/* An inline image gets room between the lines of text around it. An image
|
|
184
|
+
alone in its block does not: the block gap already separates it, and the
|
|
185
|
+
margin would make its block 16px taller than the image. */
|
|
186
|
+
.mbe-root .mbe-image-block .mbe-image { margin: 0; }
|
|
183
187
|
/* An image alone in its paragraph moves within the column; it keeps its width. */
|
|
184
188
|
.mbe-root .mbe-image-block[data-align="left"] { text-align: left; }
|
|
185
189
|
.mbe-root .mbe-image-block[data-align="center"] { text-align: center; }
|
|
@@ -353,15 +357,18 @@
|
|
|
353
357
|
.mbe-image-toolbar { box-sizing: border-box; display: flex; align-items: center; gap: 2px; padding: 4px; overflow-x: auto; scrollbar-width: none; }
|
|
354
358
|
.mbe-toolbar::-webkit-scrollbar,
|
|
355
359
|
.mbe-image-toolbar::-webkit-scrollbar { display: none; }
|
|
360
|
+
/* A tool is a 28px control with a 16px icon, so a bar is 36px tall with its
|
|
361
|
+
4px padding: compact next to the 24px lines it floats over, and the size
|
|
362
|
+
of a host app's own controls. */
|
|
356
363
|
.mbe-tool {
|
|
357
364
|
flex: none;
|
|
358
365
|
font: inherit;
|
|
359
366
|
color: inherit;
|
|
360
367
|
background: none;
|
|
361
368
|
border: none;
|
|
362
|
-
padding:
|
|
363
|
-
min-width:
|
|
364
|
-
min-height:
|
|
369
|
+
padding: 2px 6px;
|
|
370
|
+
min-width: 28px;
|
|
371
|
+
min-height: 28px;
|
|
365
372
|
display: inline-flex;
|
|
366
373
|
align-items: center;
|
|
367
374
|
justify-content: center;
|
|
@@ -369,13 +376,13 @@
|
|
|
369
376
|
}
|
|
370
377
|
.mbe-tool[hidden],
|
|
371
378
|
.mbe-tool-sep[hidden] { display: none; }
|
|
372
|
-
.mbe-tool .mbe-icon { width:
|
|
373
|
-
.mbe-tool-menu { gap: 1px; padding-inline:
|
|
379
|
+
.mbe-tool .mbe-icon { width: 16px; height: 16px; }
|
|
380
|
+
.mbe-tool-menu { gap: 1px; padding-inline: 6px 3px; }
|
|
374
381
|
.mbe-tool-icon,
|
|
375
382
|
.mbe-tool-chevron { display: inline-flex; }
|
|
376
|
-
.mbe-tool .mbe-tool-chevron .mbe-icon { width:
|
|
383
|
+
.mbe-tool .mbe-tool-chevron .mbe-icon { width: 12px; height: 12px; }
|
|
377
384
|
.mbe-tool.mbe-active { background: Highlight; color: HighlightText; }
|
|
378
|
-
.mbe-tool-sep { flex: none; width: 1px; height:
|
|
385
|
+
.mbe-tool-sep { flex: none; width: 1px; height: 16px; margin: 0 2px; background: GrayText; }
|
|
379
386
|
.mbe-menu-check { flex: none; display: inline-flex; margin-inline-start: auto; }
|
|
380
387
|
.mbe-menu-submenu { flex: none; display: inline-flex; margin-inline-start: auto; }
|
|
381
388
|
.mbe-menu-submenu .mbe-icon { width: 14px; height: 14px; }
|
|
@@ -417,7 +424,7 @@
|
|
|
417
424
|
.mbe-image-frame-small .mbe-resize-handle-right { left: 100%; }
|
|
418
425
|
.mbe-image-resizing,
|
|
419
426
|
.mbe-image-resizing .mbe-resize-handle { cursor: ew-resize; }
|
|
420
|
-
.mbe-popover-input { font: inherit; color: inherit; width: 260px; padding:
|
|
427
|
+
.mbe-popover-input { font: inherit; color: inherit; box-sizing: border-box; height: 28px; width: 260px; padding: 0 8px; }
|
|
421
428
|
|
|
422
429
|
.mbe-block-handle {
|
|
423
430
|
position: fixed;
|
package/dist/style.css
CHANGED
|
@@ -221,6 +221,9 @@
|
|
|
221
221
|
margin: 8px 0;
|
|
222
222
|
vertical-align: bottom;
|
|
223
223
|
}
|
|
224
|
+
.mbe-root .mbe-image-block .mbe-image {
|
|
225
|
+
margin: 0;
|
|
226
|
+
}
|
|
224
227
|
.mbe-root .mbe-image-block[data-align=left] {
|
|
225
228
|
text-align: left;
|
|
226
229
|
}
|
|
@@ -517,9 +520,9 @@
|
|
|
517
520
|
color: inherit;
|
|
518
521
|
background: none;
|
|
519
522
|
border: none;
|
|
520
|
-
padding:
|
|
521
|
-
min-width:
|
|
522
|
-
min-height:
|
|
523
|
+
padding: 2px 6px;
|
|
524
|
+
min-width: 28px;
|
|
525
|
+
min-height: 28px;
|
|
523
526
|
display: inline-flex;
|
|
524
527
|
align-items: center;
|
|
525
528
|
justify-content: center;
|
|
@@ -530,20 +533,20 @@
|
|
|
530
533
|
display: none;
|
|
531
534
|
}
|
|
532
535
|
.mbe-tool .mbe-icon {
|
|
533
|
-
width:
|
|
534
|
-
height:
|
|
536
|
+
width: 16px;
|
|
537
|
+
height: 16px;
|
|
535
538
|
}
|
|
536
539
|
.mbe-tool-menu {
|
|
537
540
|
gap: 1px;
|
|
538
|
-
padding-inline:
|
|
541
|
+
padding-inline: 6px 3px;
|
|
539
542
|
}
|
|
540
543
|
.mbe-tool-icon,
|
|
541
544
|
.mbe-tool-chevron {
|
|
542
545
|
display: inline-flex;
|
|
543
546
|
}
|
|
544
547
|
.mbe-tool .mbe-tool-chevron .mbe-icon {
|
|
545
|
-
width:
|
|
546
|
-
height:
|
|
548
|
+
width: 12px;
|
|
549
|
+
height: 12px;
|
|
547
550
|
}
|
|
548
551
|
.mbe-tool.mbe-active {
|
|
549
552
|
background: Highlight;
|
|
@@ -552,8 +555,8 @@
|
|
|
552
555
|
.mbe-tool-sep {
|
|
553
556
|
flex: none;
|
|
554
557
|
width: 1px;
|
|
555
|
-
height:
|
|
556
|
-
margin: 0
|
|
558
|
+
height: 16px;
|
|
559
|
+
margin: 0 2px;
|
|
557
560
|
background: GrayText;
|
|
558
561
|
}
|
|
559
562
|
.mbe-menu-check {
|
|
@@ -655,8 +658,10 @@
|
|
|
655
658
|
.mbe-popover-input {
|
|
656
659
|
font: inherit;
|
|
657
660
|
color: inherit;
|
|
661
|
+
box-sizing: border-box;
|
|
662
|
+
height: 28px;
|
|
658
663
|
width: 260px;
|
|
659
|
-
padding:
|
|
664
|
+
padding: 0 8px;
|
|
660
665
|
}
|
|
661
666
|
.mbe-block-handle {
|
|
662
667
|
position: fixed;
|
|
@@ -1116,7 +1121,7 @@
|
|
|
1116
1121
|
text-decoration: underline;
|
|
1117
1122
|
}
|
|
1118
1123
|
.mbe-tool {
|
|
1119
|
-
border-radius:
|
|
1124
|
+
border-radius: 6px;
|
|
1120
1125
|
}
|
|
1121
1126
|
.mbe-tool:hover,
|
|
1122
1127
|
.mbe-tool.mbe-open {
|
package/dist/theme.css
CHANGED
|
@@ -283,7 +283,7 @@
|
|
|
283
283
|
.mbe-tool-delete:hover { color: var(--mbe-danger); }
|
|
284
284
|
.mbe-link-card-url { font-size: 13px; color: var(--mbe-link); text-decoration: none; }
|
|
285
285
|
.mbe-link-card-url:hover { text-decoration: underline; }
|
|
286
|
-
.mbe-tool { border-radius:
|
|
286
|
+
.mbe-tool { border-radius: 6px; }
|
|
287
287
|
.mbe-tool:hover,
|
|
288
288
|
.mbe-tool.mbe-open { background: var(--mbe-hover); }
|
|
289
289
|
.mbe-tool.mbe-active { color: var(--mbe-accent); background: var(--mbe-hover); }
|