mirror of
https://github.com/marktext/marktext.git
synced 2025-05-02 22:22:18 +08:00
Set .ag-hide to 'display: none' if possible
This commit is contained in:
parent
34e4a22857
commit
4c0f7ba057
@ -73,6 +73,10 @@ div.ag-show-quick-insert-hint p.ag-paragraph.ag-active > span.ag-paragraph-conte
|
|||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.ag-hide {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
.ag-atx-line:empty::after,
|
.ag-atx-line:empty::after,
|
||||||
.ag-thematic-break-line:empty::after,
|
.ag-thematic-break-line:empty::after,
|
||||||
.ag-code-content:empty::after,
|
.ag-code-content:empty::after,
|
||||||
@ -330,6 +334,7 @@ span.ag-math > .ag-math-render.ag-math-error {
|
|||||||
|
|
||||||
.ag-hide.ag-ruby,
|
.ag-hide.ag-ruby,
|
||||||
.ag-hide.ag-math {
|
.ag-hide.ag-math {
|
||||||
|
display: inline-block;
|
||||||
width: auto;
|
width: auto;
|
||||||
height: auto;
|
height: auto;
|
||||||
}
|
}
|
||||||
@ -797,6 +802,7 @@ span.ag-emoji-marked-text {
|
|||||||
|
|
||||||
.ag-hide.ag-emoji-marked-text[data-emoji],
|
.ag-hide.ag-emoji-marked-text[data-emoji],
|
||||||
.ag-hide.ag-html-escape[data-character] {
|
.ag-hide.ag-html-escape[data-character] {
|
||||||
|
display: inline-block;
|
||||||
overflow: visible;
|
overflow: visible;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
color: transparent;
|
color: transparent;
|
||||||
@ -887,14 +893,17 @@ span.ag-warn.ag-emoji-marked-text {
|
|||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ag-hide, .ag-hide .ag-highlight, .ag-hide .ag-selection {
|
.ag-hide, .ag-highlight, .ag-selection {
|
||||||
display: inline-block;
|
|
||||||
width: 0;
|
width: 0;
|
||||||
height: 0;
|
height: 0;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.ag-highlight, .ag-selection {
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
|
|
||||||
.ag-inline-image,
|
.ag-inline-image,
|
||||||
.ag-image-container {
|
.ag-image-container {
|
||||||
font-size: 0;
|
font-size: 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user