summaryrefslogtreecommitdiff
path: root/ext/mixed/css
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-11-24 11:56:40 -0500
committerGitHub <noreply@github.com>2020-11-24 11:56:40 -0500
commit0b00de3c0f0cab64529f18a477120ab9362581fc (patch)
tree19d10c60521c211a5d2328f115457cd167072d88 /ext/mixed/css
parent496af0b5f276e310f3a33bc47d55ede8e6bfb732 (diff)
Frequency display improvements (#1060)
* Hide redundant frequencies * Add dataset counters for unique expressions/readings * Update frequency display to include disambiguations
Diffstat (limited to 'ext/mixed/css')
-rw-r--r--ext/mixed/css/display.css27
1 files changed, 24 insertions, 3 deletions
diff --git a/ext/mixed/css/display.css b/ext/mixed/css/display.css
index 1e502b71..a54ebe4c 100644
--- a/ext/mixed/css/display.css
+++ b/ext/mixed/css/display.css
@@ -572,9 +572,6 @@ button.action-button {
.entry-header3 {
display: inline;
}
-.term-frequency-separator::before {
- content: ":";
-}
.entry+.entry {
border-top: var(--thin-border-size) solid var(--light-border-color);
}
@@ -609,6 +606,27 @@ button.action-button {
.term-expression-list>.term-expression:not(:last-of-type)>.term-expression-text::after {
content: "\3001";
}
+.term-frequency-separator::before {
+ content: ":";
+}
+.term-frequency-disambiguation-separator::before {
+ content: ":";
+}
+.term-frequency-disambiguation::before {
+ content: "(";
+}
+.term-frequency-disambiguation::after {
+ content: ") ";
+}
+.frequencies .tag[data-reading-is-same=true] .term-frequency-disambiguation-separator,
+.frequencies .tag[data-reading-is-same=true] .term-frequency-disambiguation-reading,
+.entry[data-unique-expression-count="1"] .term-frequency-disambiguation-separator,
+.entry[data-unique-expression-count="1"] .term-frequency-disambiguation-expression,
+.entry[data-unique-reading-count="1"] .term-frequency-disambiguation-separator,
+.entry[data-unique-reading-count="1"] .term-frequency-disambiguation-reading,
+.entry[data-unique-expression-count="1"][data-unique-reading-count="1"] .term-frequency-disambiguation {
+ display: none;
+}
/* Merged term styles */
@@ -648,6 +666,9 @@ button.action-button {
bottom: -1.9em;
white-space: nowrap;
}
+.entry[data-expression-multi=true] .term-expression-list .term-expression-details>.frequencies .term-frequency-disambiguation {
+ display: none;
+}
/* Definitions */