autumnnote 1.0.6 → 1.0.7

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/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  <p align="center"><img src="image/banner.png" width="120" alt="AutumnNote Banner"/></p>
4
4
 
5
- [![Version](https://img.shields.io/badge/version-1.0.6-blue)](#)
5
+ [![Version](https://img.shields.io/badge/version-1.0.7-blue)](#)
6
6
  [![CI](https://github.com/cmm-cmm/Autumn-Note/actions/workflows/pages.yml/badge.svg)](https://github.com/cmm-cmm/Autumn-Note/actions/workflows/pages.yml)
7
7
  [![JavaScript](https://img.shields.io/badge/JavaScript-ES2022-F7DF1E?logo=javascript&logoColor=black)](https://developer.mozilla.org/en-US/docs/Web/JavaScript)
8
8
  [![Build](https://img.shields.io/badge/Build-Vite-646CFF?logo=vite&logoColor=white)](https://vitejs.dev/)
@@ -32,6 +32,16 @@
32
32
  user-select: text;
33
33
  background: #fafafa;
34
34
  }
35
+ .an-container.an-disabled .an-editable ul.an-checklist input[type=checkbox] {
36
+ pointer-events: none;
37
+ cursor: default;
38
+ }
39
+ .an-container.an-disabled .an-editable img,
40
+ .an-container.an-disabled .an-editable .an-video-wrapper {
41
+ -webkit-user-drag: none;
42
+ user-drag: none;
43
+ pointer-events: none;
44
+ }
35
45
  .an-container.an-fullscreen {
36
46
  position: fixed;
37
47
  inset: 0;
@@ -60,6 +70,9 @@
60
70
  align-items: center;
61
71
  gap: 2px;
62
72
  }
73
+ .an-btn-group > .an-btn {
74
+ padding: 0;
75
+ }
63
76
  .an-btn-group + .an-btn-group {
64
77
  position: relative;
65
78
  padding-left: 8px;
@@ -326,6 +339,7 @@
326
339
  }
327
340
 
328
341
  .an-editable {
342
+ position: relative;
329
343
  flex: 1;
330
344
  padding: 12px 14px;
331
345
  min-height: 0;
@@ -339,7 +353,10 @@
339
353
  content: attr(data-placeholder);
340
354
  color: #6b7280;
341
355
  pointer-events: none;
342
- float: left;
356
+ position: absolute;
357
+ top: 12px;
358
+ left: 14px;
359
+ right: 14px;
343
360
  }
344
361
  .an-editable p {
345
362
  margin: 0 0 0.75em;
@@ -413,7 +430,16 @@
413
430
  inset: 0;
414
431
  z-index: 2;
415
432
  cursor: default;
433
+ pointer-events: all;
434
+ }
435
+ .an-video-wrapper .an-video-shield {
436
+ position: absolute;
437
+ inset: 0;
438
+ z-index: 2;
439
+ cursor: default;
440
+ pointer-events: all;
416
441
  }
442
+
417
443
  .an-editable table, .an-editable .an-table {
418
444
  border-collapse: collapse;
419
445
  table-layout: fixed;
@@ -821,6 +847,91 @@
821
847
  background: #d1d5db;
822
848
  }
823
849
 
850
+ .an-context-icon--color {
851
+ flex-direction: column;
852
+ gap: 2px;
853
+ width: 16px;
854
+ align-items: center;
855
+ }
856
+ .an-context-icon--color .an-context-icon-svg {
857
+ display: flex;
858
+ align-items: center;
859
+ justify-content: center;
860
+ line-height: 0;
861
+ }
862
+
863
+ .an-context-color-strip {
864
+ display: block;
865
+ width: 100%;
866
+ height: 3px;
867
+ border-radius: 1px;
868
+ flex-shrink: 0;
869
+ }
870
+
871
+ .an-context-color-palette {
872
+ display: flex;
873
+ flex-wrap: wrap;
874
+ gap: 3px;
875
+ padding: 6px 12px 2px;
876
+ }
877
+
878
+ .an-context-color-swatch {
879
+ width: 15px;
880
+ height: 15px;
881
+ border-radius: 3px;
882
+ border: 1px solid rgba(0, 0, 0, 0.12);
883
+ cursor: pointer;
884
+ flex-shrink: 0;
885
+ position: relative;
886
+ transition: transform 0.1s;
887
+ }
888
+ .an-context-color-swatch:hover {
889
+ transform: scale(1.28);
890
+ z-index: 1;
891
+ border-color: rgba(0, 0, 0, 0.4);
892
+ }
893
+
894
+ .an-context-color-none {
895
+ display: flex;
896
+ align-items: center;
897
+ justify-content: center;
898
+ background: #fff !important;
899
+ color: #999;
900
+ }
901
+ .an-context-color-none svg {
902
+ display: block;
903
+ }
904
+ .an-context-color-none:hover {
905
+ color: #333;
906
+ }
907
+
908
+ .an-context-color-custom {
909
+ display: flex;
910
+ align-items: center;
911
+ gap: 8px;
912
+ padding: 4px 12px 8px;
913
+ font-size: 12px;
914
+ color: #6b7280;
915
+ cursor: pointer;
916
+ }
917
+ .an-context-color-custom input[type=color] {
918
+ width: 18px;
919
+ height: 18px;
920
+ padding: 0;
921
+ border: 1px solid #d1d5db;
922
+ border-radius: 3px;
923
+ cursor: pointer;
924
+ background: transparent;
925
+ -webkit-appearance: none;
926
+ appearance: none;
927
+ }
928
+ .an-context-color-custom span {
929
+ flex: 1;
930
+ }
931
+ .an-context-color-custom:hover span {
932
+ color: #111827;
933
+ }
934
+
824
935
  .an-image-resizer {
825
936
  position: absolute;
826
937
  z-index: 10000;
@@ -1265,6 +1376,7 @@
1265
1376
  .an-editable figure.an-figure img {
1266
1377
  display: block;
1267
1378
  max-width: 100%;
1379
+ margin: 0 auto;
1268
1380
  }
1269
1381
  .an-editable figcaption.an-figcaption {
1270
1382
  font-size: 0.85em;
@@ -1520,6 +1632,22 @@
1520
1632
  .an-theme-dark .an-context-sep {
1521
1633
  background: #3f3f5f;
1522
1634
  }
1635
+ .an-theme-dark .an-context-color-swatch {
1636
+ border-color: rgba(255, 255, 255, 0.15);
1637
+ }
1638
+ .an-theme-dark .an-context-color-swatch:hover {
1639
+ border-color: rgba(255, 255, 255, 0.5);
1640
+ }
1641
+ .an-theme-dark .an-context-color-none {
1642
+ background: #1e1e2e !important;
1643
+ color: #888;
1644
+ }
1645
+ .an-theme-dark .an-context-color-none:hover {
1646
+ color: #ccc;
1647
+ }
1648
+ .an-theme-dark .an-context-color-custom input[type=color] {
1649
+ border-color: #3f3f5f;
1650
+ }
1523
1651
  .an-theme-dark .an-icon-cat {
1524
1652
  border-color: #3f3f5f;
1525
1653
  color: #a6adc8;