diff options
1 files changed, 43 insertions, 0 deletions
| -rw-r--r-- | src/styles.csma | 43 |
diff --git a/src/styles.csma b/src/styles.csma index 1e3a7d4..d860054 100644 --- a/src/styles.csma +++ b/src/styles.csma @@ -254,6 +254,7 @@ <Pagenav> {} <Paragraphs with icons> {} <Page specific> {} + <Math> {} <Headers> <Anchor> @@ -353,6 +354,48 @@ } } +<Article> { +<Math> +{ + @font-face { + font-family: "Computer Modern"; + src: url('/font/cmunrm.ttf'); + } + + @font-face { + font-family: "Computer Modern"; + font-style: italic; + src: url('/font/cmunti.ttf'); + } + + .equation { + font-family: 'Computer Modern'; + font-style: italic; + letter-spacing: 0.25em; + text-align: center; + font-size: 1.2em; + } + .equation .operator { + font-style: normal; + } + + <Division> { + .divide { + display: inline-table; + vertical-align: middle; + } + .divide > * { display: table-row; } + + .dividend, .divisor { padding-left: 5px; } + .dividend { border-bottom: 1px solid var(--fg-color); } + } + + .equation sup { + margin-left: -3px; + } +} +} + <Headers> { h1, h2, h3, h4, h5, h6 { color: var(--header-color); |