From 5756885fa9340f087a168d40c8d0d10a3a8fe4d5 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Fri, 25 Jun 2021 17:24:29 -0400 Subject: Structured content updates (#1753) * Update schema * Update content generation * Update styles * Update test data * Update style names --- ext/css/display.css | 26 ++++++++++++++++++++++++++ ext/css/material.css | 2 ++ 2 files changed, 28 insertions(+) (limited to 'ext/css') diff --git a/ext/css/display.css b/ext/css/display.css index 45658f19..e1efb223 100644 --- a/ext/css/display.css +++ b/ext/css/display.css @@ -1726,6 +1726,32 @@ button.definition-item-expansion-button:focus:focus-visible+.definition-item-con } +/* Structured content glossary styles */ +.gloss-sc-table-container { + display: block; +} +.gloss-sc-table { + table-layout: auto; + border-collapse: collapse; + border-spacing: 0; +} +.gloss-sc-tbody { + background-color: transparent; +} +.gloss-sc-thead, +.gloss-sc-tfoot, +.gloss-sc-th { + font-weight: bold; + background-color: var(--background-color-dark1); +} +.gloss-sc-th, +.gloss-sc-td { + border: calc(1em / var(--font-size-no-units)) solid var(--text-color-light2); + padding: 0.25em; + vertical-align: top; +} + + /* Kanji */ .kanji-glyph-container { display: block; diff --git a/ext/css/material.css b/ext/css/material.css index dd135065..b19b0b0f 100644 --- a/ext/css/material.css +++ b/ext/css/material.css @@ -69,6 +69,7 @@ --text-color-light4: #888888; --background-color: #f8f9fa; --background-color-light: #ffffff; + --background-color-dark1: #eeeeee; --shadow-color: rgba(0, 0, 0, 0.185); --shadow-color-off: rgba(0, 0, 0, 0); @@ -128,6 +129,7 @@ --text-color-light4: #777777; --background-color: #1e1e1e; --background-color-light: #0a0a0a; + --background-color-dark1: #333333; --shadow-color: rgba(255, 255, 255, 0.185); --shadow-color-off: rgba(255, 255, 255, 0); -- cgit v1.2.3