2023-10-24 03:48:56 +08:00
|
|
|
.inline-footnotes {
|
|
|
|
a.expand-footnote {
|
|
|
|
user-select: none;
|
|
|
|
padding: 0px 0.5em;
|
|
|
|
margin: 0 0 0 0.25em;
|
|
|
|
color: var(--primary-low-mid-or-secondary-high);
|
|
|
|
background: var(--primary-low);
|
|
|
|
border-radius: 3px;
|
|
|
|
min-height: 20px;
|
|
|
|
display: inline-flex;
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background: var(--primary-medium);
|
|
|
|
color: var(--secondary);
|
|
|
|
}
|
|
|
|
|
|
|
|
> * {
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// This is hack to work with lazy-loading, we will trick the browser
|
|
|
|
// to believe the image is in the DOM and can be loaded
|
|
|
|
.footnotes-list,
|
|
|
|
.footnotes-sep {
|
|
|
|
position: absolute;
|
|
|
|
// the left/right positioning prevents overflow issues
|
|
|
|
// with long words causing overflow on small screens
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.footnotes-sep,
|
|
|
|
.footnotes-list,
|
|
|
|
.footnote-ref {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#footnote-tooltip {
|
|
|
|
background-color: var(--primary-low);
|
|
|
|
color: var(--primary);
|
|
|
|
padding: 0.5em;
|
|
|
|
font-size: var(--font-down-1);
|
|
|
|
border-radius: 3px;
|
|
|
|
display: none;
|
2024-07-03 18:52:36 +08:00
|
|
|
z-index: z("modal", "tooltip");
|
2023-10-24 03:48:56 +08:00
|
|
|
max-width: 400px;
|
|
|
|
overflow-wrap: break-word;
|
|
|
|
|
2024-06-11 22:37:42 +08:00
|
|
|
.mobile-view & {
|
|
|
|
// tooltips are positioned 5px from the left
|
|
|
|
// - 10px accounts for this and gives 5px space on the right
|
|
|
|
max-width: calc(100dvw - 10px);
|
|
|
|
}
|
|
|
|
|
2023-10-24 03:48:56 +08:00
|
|
|
.footnote-tooltip-content {
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
|
|
.footnote-backref {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
img {
|
|
|
|
object-fit: cover;
|
2024-06-11 22:37:42 +08:00
|
|
|
max-width: 100%;
|
2023-10-24 03:48:56 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
p {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#footnote-tooltip[data-show] {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
#arrow,
|
|
|
|
#arrow::before {
|
|
|
|
position: absolute;
|
|
|
|
width: 10px;
|
|
|
|
height: 10px;
|
|
|
|
background: inherit;
|
|
|
|
}
|
|
|
|
|
|
|
|
#arrow {
|
|
|
|
visibility: hidden;
|
|
|
|
}
|
|
|
|
|
|
|
|
#arrow::before {
|
|
|
|
visibility: visible;
|
|
|
|
content: "";
|
|
|
|
transform: rotate(45deg);
|
|
|
|
}
|
|
|
|
|
|
|
|
#footnote-tooltip[data-popper-placement^="top"] > #arrow {
|
|
|
|
bottom: -4px;
|
|
|
|
}
|
|
|
|
|
|
|
|
#footnote-tooltip[data-popper-placement^="bottom"] > #arrow {
|
|
|
|
top: -4px;
|
|
|
|
}
|
|
|
|
|
|
|
|
#footnote-tooltip[data-popper-placement^="left"] > #arrow {
|
|
|
|
right: -4px;
|
|
|
|
}
|
|
|
|
|
|
|
|
#footnote-tooltip[data-popper-placement^="right"] > #arrow {
|
|
|
|
left: -4px;
|
|
|
|
}
|