vditor 4.0.1 → 4.0.2-alpha.1

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/index.css CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Vditor v4.0.1 - A markdown editor written in TypeScript.
2
+ * Vditor v4.0.2-alpha.1 - 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 v4.0.1 - A markdown editor written in TypeScript.
28
+ * Vditor v4.0.2-alpha.1 - A markdown editor written in TypeScript.
29
29
  *
30
30
  * MIT License
31
31
  *
@@ -1552,6 +1552,12 @@
1552
1552
  padding-left: 0 !important;
1553
1553
  padding-right: 0 !important;
1554
1554
  }
1555
+ .vditor-wysiwyg__block[data-type="code-block"] > pre:not([style*="display:none"]):not([style*="display: none"]) + .vditor-code__preview {
1556
+ height: 0;
1557
+ min-height: 0;
1558
+ overflow: hidden;
1559
+ visibility: hidden;
1560
+ }
1555
1561
  .vditor-wysiwyg__block pre:first-child {
1556
1562
  margin-bottom: -1em;
1557
1563
  }
@@ -1728,6 +1734,12 @@
1728
1734
  .vditor-ir__node--hidden .vditor-ir__marker {
1729
1735
  visibility: hidden;
1730
1736
  }
1737
+ .vditor-ir__node--expand[data-type="code-block"] > .vditor-code__preview {
1738
+ height: 0;
1739
+ min-height: 0;
1740
+ overflow: hidden;
1741
+ visibility: hidden;
1742
+ }
1731
1743
  .vditor-ir__node--expand .vditor-ir__marker {
1732
1744
  color: var(--second-color);
1733
1745
  display: inline;