summaryrefslogtreecommitdiff
path: root/ext/css/display.css
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2021-05-20 19:33:08 -0400
committerGitHub <noreply@github.com>2021-05-20 19:33:08 -0400
commitbe23acf499bcdb530c1b8990aa3d6211323cbdb2 (patch)
treeaf7a6f5a64fce44e3a9e07ab0e08bb833e546b28 /ext/css/display.css
parentd8ef599eaef1323bee908d3b883d11ddd2e95198 (diff)
Structured content image size units (#1692)
* Add support for sizeUnits on image content * Update test data
Diffstat (limited to 'ext/css/display.css')
-rw-r--r--ext/css/display.css6
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/css/display.css b/ext/css/display.css
index b8f67ff9..b46540c7 100644
--- a/ext/css/display.css
+++ b/ext/css/display.css
@@ -1573,6 +1573,7 @@ button.definition-item-expansion-button:focus:focus-visible+.definition-item-con
color: inherit;
display: inline-block;
position: relative;
+ line-height: 1;
}
.gloss-image-link[href]:hover {
cursor: pointer;
@@ -1631,6 +1632,7 @@ button.definition-item-expansion-button:focus:focus-visible+.definition-item-con
}
.gloss-image-link-text {
display: none;
+ line-height: var(--line-height);
}
.gloss-image-link-text::before {
content: '[';
@@ -1643,6 +1645,10 @@ button.definition-item-expansion-button:focus:focus-visible+.definition-item-con
white-space: pre-line;
}
+.gloss-image-link[data-size-units=em] .gloss-image-container {
+ font-size: 1em;
+}
+
.gloss-image-link[data-vertical-align=baseline] { vertical-align: baseline; }
.gloss-image-link[data-vertical-align=sub] { vertical-align: sub; }
.gloss-image-link[data-vertical-align=super] { vertical-align: super; }