Set .ag-hide to 'display: none' if possible

This commit is contained in:
Felix Häusler 2022-02-20 14:13:18 +01:00
parent 34e4a22857
commit 4c0f7ba057

View File

@ -73,6 +73,10 @@ div.ag-show-quick-insert-hint p.ag-paragraph.ag-active > span.ag-paragraph-conte
position: relative;
}
.ag-hide {
display: none;
}
.ag-atx-line:empty::after,
.ag-thematic-break-line: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-math {
display: inline-block;
width: auto;
height: auto;
}
@ -797,6 +802,7 @@ span.ag-emoji-marked-text {
.ag-hide.ag-emoji-marked-text[data-emoji],
.ag-hide.ag-html-escape[data-character] {
display: inline-block;
overflow: visible;
white-space: nowrap;
color: transparent;
@ -887,14 +893,17 @@ span.ag-warn.ag-emoji-marked-text {
text-decoration: none;
}
.ag-hide, .ag-hide .ag-highlight, .ag-hide .ag-selection {
display: inline-block;
.ag-hide, .ag-highlight, .ag-selection {
width: 0;
height: 0;
overflow: hidden;
vertical-align: middle;
}
.ag-highlight, .ag-selection {
display: inline-block;
}
.ag-inline-image,
.ag-image-container {
font-size: 0;