@8btc/mditor 0.0.24 → 0.0.26

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.
@@ -66,6 +66,16 @@
66
66
  border: 1px solid #141414;
67
67
  }
68
68
 
69
+ .vditor-reset .language-math {
70
+ user-select: all;
71
+ cursor: text;
72
+ transition: background-color 0.1s ease;
73
+ }
74
+ .vditor-reset .language-math.vditor-math--selected {
75
+ background-color: highlight !important;
76
+ color: highlighttext !important;
77
+ }
78
+
69
79
  .vditor-reset table tr {
70
80
  /* background-color: #2f363d; */
71
81
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
@@ -38,6 +38,16 @@
38
38
  border: 1px solid #d1d5da;
39
39
  }
40
40
 
41
+ .vditor-reset .language-math {
42
+ user-select: all;
43
+ cursor: text;
44
+ transition: background-color 0.1s ease;
45
+ }
46
+ .vditor-reset .language-math.vditor-math--selected {
47
+ background-color: highlight !important;
48
+ color: highlighttext !important;
49
+ }
50
+
41
51
  .vditor-reset table tr {
42
52
  border-bottom: 1px solid #e5e5e5;
43
53
  > th {
package/dist/index.css CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Vditor v0.0.24 - A markdown editor written in TypeScript.
2
+ * Vditor v0.0.26 - A markdown editor written in TypeScript.
3
3
  *
4
4
  * MIT License
5
5
  *
@@ -25,7 +25,7 @@
25
25
  *
26
26
  */
27
27
  /*!
28
- * Vditor v0.0.24 - A markdown editor written in TypeScript.
28
+ * Vditor v0.0.26 - A markdown editor written in TypeScript.
29
29
  *
30
30
  * MIT License
31
31
  *
@@ -552,6 +552,17 @@
552
552
  .vditor-preview img:not(.emoji) {
553
553
  cursor: pointer;
554
554
  }
555
+ .vditor-preview .language-math {
556
+ -webkit-user-select: all;
557
+ -moz-user-select: all;
558
+ user-select: all;
559
+ cursor: text;
560
+ transition: background-color 0.1s ease;
561
+ }
562
+ .vditor-preview .language-math.vditor-math--selected {
563
+ background-color: highlight !important;
564
+ color: highlighttext !important;
565
+ }
555
566
  .vditor-devtools {
556
567
  display: none;
557
568
  overflow: auto;
@@ -1384,6 +1395,17 @@
1384
1395
  text-align: center;
1385
1396
  font-size: 100% !important;
1386
1397
  }
1398
+ .vditor-wysiwyg .language-math {
1399
+ -webkit-user-select: all;
1400
+ -moz-user-select: all;
1401
+ user-select: all;
1402
+ cursor: text;
1403
+ transition: background-color 0.1s ease;
1404
+ }
1405
+ .vditor-wysiwyg .language-math.vditor-math--selected {
1406
+ background-color: highlight !important;
1407
+ color: highlighttext !important;
1408
+ }
1387
1409
  .vditor-wysiwyg > .vditor-reset > h1:before,
1388
1410
  .vditor-wysiwyg > .vditor-reset > h2:before,
1389
1411
  .vditor-wysiwyg > .vditor-reset > h3:before,
@@ -1698,6 +1720,17 @@
1698
1720
  .vditor-ir .vditor-reset > :is(p, h1, h2, h3, h4, h5, h6, ul, ol, code, pre):has(+ .vditor-ir__node[data-type="math-block"]) {
1699
1721
  margin-bottom: 0 !important;
1700
1722
  }
1723
+ .vditor-ir .language-math {
1724
+ -webkit-user-select: all;
1725
+ -moz-user-select: all;
1726
+ user-select: all;
1727
+ cursor: text;
1728
+ transition: background-color 0.1s ease;
1729
+ }
1730
+ .vditor-ir .language-math.vditor-math--selected {
1731
+ background-color: highlight !important;
1732
+ color: highlighttext !important;
1733
+ }
1701
1734
  @media screen and (max-width: 32.5rem) {
1702
1735
  .vditor-ir h1:before,
1703
1736
  .vditor-ir h2:before,
@@ -1815,6 +1848,17 @@
1815
1848
  .vditor-sv__marker--strong {
1816
1849
  font-weight: bold;
1817
1850
  }
1851
+ .vditor-sv .language-math {
1852
+ -webkit-user-select: all;
1853
+ -moz-user-select: all;
1854
+ user-select: all;
1855
+ cursor: text;
1856
+ transition: background-color 0.1s ease;
1857
+ }
1858
+ .vditor-sv .language-math.vditor-math--selected {
1859
+ background-color: highlight !important;
1860
+ color: highlighttext !important;
1861
+ }
1818
1862
  .vditor--linenumber .vditor-reset > ul [data-linenumber][data-list-level="1"]:after,
1819
1863
  .vditor--linenumber .vditor-reset ol [data-linenumber][data-list-level="1"]:after {
1820
1864
  margin-left: -5rem !important;
@@ -2161,4 +2205,16 @@ details > summary {
2161
2205
  details > summary::-webkit-details-marker {
2162
2206
  display: none;
2163
2207
  }
2208
+ ::-moz-selection {
2209
+ background: highlight;
2210
+ /* 系统原生高亮背景色 */
2211
+ color: highlighttext;
2212
+ /* 系统原生高亮文本色 */
2213
+ }
2214
+ ::selection {
2215
+ background: highlight;
2216
+ /* 系统原生高亮背景色 */
2217
+ color: highlighttext;
2218
+ /* 系统原生高亮文本色 */
2219
+ }
2164
2220