summaryrefslogtreecommitdiff
path: root/ext/css
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2021-06-25 17:24:29 -0400
committerGitHub <noreply@github.com>2021-06-25 17:24:29 -0400
commit5756885fa9340f087a168d40c8d0d10a3a8fe4d5 (patch)
treee960821662a12b70430590c9ea4f43b1abc4d54c /ext/css
parentcf70b3de6411cfd540f2c3c7f6e1c27afb10ef84 (diff)
Structured content updates (#1753)
* Update schema * Update content generation * Update styles * Update test data * Update style names
Diffstat (limited to 'ext/css')
-rw-r--r--ext/css/display.css26
-rw-r--r--ext/css/material.css2
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);