40 lines
1.3 KiB
CSS
40 lines
1.3 KiB
CSS
/* history.css -- historical context: a quiet grey box with an italic heading,
|
|
so it reads as background and not as material to study (the purple
|
|
.further box is for optional mathematics). Colours are notes tokens only,
|
|
so light/dark and high contrast follow by themselves. */
|
|
|
|
.history {
|
|
margin: 1.1rem 0;
|
|
padding: 0.5rem 0.9rem 0.6rem;
|
|
border: 1px solid color-mix(in srgb, var(--calc-muted, #57606a) 30%, transparent);
|
|
border-left: 3px double var(--calc-muted, #57606a);
|
|
border-radius: 0.35rem;
|
|
background: color-mix(in srgb, var(--calc-muted, #57606a) 5%, transparent);
|
|
}
|
|
|
|
.history-head {
|
|
color: var(--calc-muted, #57606a);
|
|
font-style: italic;
|
|
font-weight: 600;
|
|
font-size: 0.92em;
|
|
margin-bottom: 0.35rem;
|
|
}
|
|
|
|
.history-body > p:first-child { margin-top: 0; }
|
|
.history-body > p:last-child { margin-bottom: 0; }
|
|
|
|
/* keep wide content inside the box, as .further does */
|
|
.history mjx-container[display="true"] {
|
|
max-width: 100%;
|
|
overflow-x: auto;
|
|
overflow-y: hidden;
|
|
padding-bottom: 0.35em;
|
|
display: flex;
|
|
justify-content: center;
|
|
justify-content: safe center;
|
|
}
|
|
.history :is(pre, table) { max-width: 100%; overflow-x: auto; }
|
|
.history img, .history svg { max-width: 100%; }
|
|
|
|
html.hc .history { border-color: var(--calc-ink, #1a1a1a); }
|