mirror of
https://github.com/HananoshikaYomaru/openfreebooks.git
synced 2026-11-12 20:45:52 +00:00
170 lines
3.1 KiB
SCSS
170 lines
3.1 KiB
SCSS
// Symbol tables and fraction demo for basic math notation chapter
|
|
|
|
.notation-symbol-table__glyph {
|
|
font-size: 1.35rem;
|
|
font-weight: 600;
|
|
font-family: var(--font-mono, ui-monospace, monospace);
|
|
text-align: center;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.notation-fraction-demo {
|
|
margin: 1.25rem 0;
|
|
text-align: center;
|
|
}
|
|
|
|
.notation-fraction-demo__bar {
|
|
display: inline-flex;
|
|
width: min(200px, 100%);
|
|
height: 28px;
|
|
border-radius: 6px;
|
|
overflow: hidden;
|
|
border: 2px solid rgba(15, 118, 110, 0.4);
|
|
}
|
|
|
|
.notation-fraction-demo__part {
|
|
flex: 1;
|
|
background: rgba(20, 184, 166, 0.08);
|
|
}
|
|
|
|
.notation-fraction-demo__part--on {
|
|
background: #0f766e;
|
|
}
|
|
|
|
.notation-fraction-demo__caption {
|
|
margin-top: 0.5rem;
|
|
font-size: 0.9rem;
|
|
color: var(--muted);
|
|
}
|
|
|
|
// notation-dots: content/math/subject.scss
|
|
|
|
.notation-compare-chain {
|
|
margin: 1.25rem 0;
|
|
padding: 16px 14px;
|
|
text-align: center;
|
|
border: 1px solid var(--line);
|
|
border-radius: 12px;
|
|
background: var(--card-bg);
|
|
}
|
|
|
|
.notation-compare-chain__ladder {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: flex-end;
|
|
justify-content: center;
|
|
gap: 10px 12px;
|
|
margin: 0;
|
|
padding: 0;
|
|
list-style: none;
|
|
}
|
|
|
|
.notation-compare-chain__step {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 6px;
|
|
min-width: 52px;
|
|
}
|
|
|
|
.notation-compare-chain__digit {
|
|
font-family: var(--font-mono, ui-monospace, monospace);
|
|
font-size: 1.15rem;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.notation-compare-chain__sign {
|
|
align-self: center;
|
|
font-size: 1.35rem;
|
|
font-weight: 700;
|
|
color: var(--soft-ink);
|
|
line-height: 1;
|
|
padding-bottom: 18px;
|
|
}
|
|
|
|
.notation-compare-chain__caption {
|
|
margin-top: 0.75rem;
|
|
font-size: 0.9rem;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.notation-decimal-demo {
|
|
margin: 1.25rem 0;
|
|
padding: 16px 14px;
|
|
text-align: center;
|
|
border: 1px solid var(--line);
|
|
border-radius: 12px;
|
|
background: var(--card-bg);
|
|
}
|
|
|
|
.notation-decimal-demo__label {
|
|
margin: 0 0 12px;
|
|
font-family: var(--font-mono, ui-monospace, monospace);
|
|
font-size: 1.5rem;
|
|
font-weight: 700;
|
|
line-height: 1.2;
|
|
}
|
|
|
|
.notation-decimal-demo__point {
|
|
color: #b45309;
|
|
padding: 0 2px;
|
|
}
|
|
|
|
.notation-decimal-demo__fraction {
|
|
color: var(--soft-ink);
|
|
}
|
|
|
|
.notation-decimal-demo__words {
|
|
display: block;
|
|
margin-top: 4px;
|
|
font-family: var(--font-sans, system-ui, sans-serif);
|
|
font-size: 0.95rem;
|
|
font-weight: 500;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.notation-decimal-demo__picture {
|
|
display: flex;
|
|
justify-content: center;
|
|
}
|
|
|
|
.notation-decimal-demo__wholes {
|
|
display: inline-flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.notation-decimal-demo__fence {
|
|
font-size: 1.75rem;
|
|
font-weight: 800;
|
|
line-height: 1;
|
|
color: #b45309;
|
|
}
|
|
|
|
.notation-decimal-demo__half-bar {
|
|
display: inline-flex;
|
|
width: 56px;
|
|
height: 18px;
|
|
border-radius: 6px;
|
|
overflow: hidden;
|
|
border: 2px solid rgba(15, 118, 110, 0.4);
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.notation-decimal-demo__half-on {
|
|
flex: 1;
|
|
background: #0f766e;
|
|
}
|
|
|
|
.notation-decimal-demo__half-off {
|
|
flex: 1;
|
|
background: rgba(20, 184, 166, 0.1);
|
|
}
|
|
|
|
.notation-decimal-demo__caption {
|
|
margin-top: 0.75rem;
|
|
font-size: 0.9rem;
|
|
color: var(--muted);
|
|
}
|