diff options
Diffstat (limited to 'ext/css')
-rw-r--r-- | ext/css/display.css | 26 | ||||
-rw-r--r-- | ext/css/material.css | 2 |
2 files changed, 28 insertions, 0 deletions
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); |