Show small image preview on [Image] link hover/focus

This commit is contained in:
toasted-nutbread 2020-04-17 19:15:47 -04:00
parent c75a0d4e70
commit 07e5e5c15b

View File

@ -697,6 +697,25 @@ button.action-button {
:root[data-compact-glossaries=true] .term-glossary-image-container { :root[data-compact-glossaries=true] .term-glossary-image-container {
display: none; display: none;
position: absolute;
left: 0;
top: 100%;
z-index: 1;
}
:root[data-compact-glossaries=true] .entry:nth-last-of-type(1):not(:nth-of-type(1)) .term-glossary-image-container {
bottom: 100%;
top: auto;
}
:root[data-compact-glossaries=true] .term-glossary-image-link {
position: relative;
display: inline-block;
}
:root[data-compact-glossaries=true] .term-glossary-image-link:hover .term-glossary-image-container,
:root[data-compact-glossaries=true] .term-glossary-image-link:focus .term-glossary-image-container {
display: block;
} }
:root:not([data-compact-glossaries=true]) .term-glossary-image-link-text { :root:not([data-compact-glossaries=true]) .term-glossary-image-link-text {