diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2020-12-05 17:45:45 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-05 17:45:45 -0500 |
commit | 95b225462ad50af31da104427d61aff3597a8244 (patch) | |
tree | 94818f864910b9a4eb12067c4bde23805ed4a9d4 /ext/mixed/css | |
parent | ae9a20e0de61bbb84ec359004a401d9f2705aeea (diff) |
Fix frequency tags (#1080)
* Rename term-frequency to tag-frequency
* Move tag styles
* Expand
* Use separate templates for terms vs kanji
Diffstat (limited to 'ext/mixed/css')
-rw-r--r-- | ext/mixed/css/display.css | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/ext/mixed/css/display.css b/ext/mixed/css/display.css index 5e3f2f9e..71396940 100644 --- a/ext/mixed/css/display.css +++ b/ext/mixed/css/display.css @@ -553,6 +553,27 @@ button.action-button { .tag-inner { display: block; } +.tag-frequency-separator::before { + content: ":"; +} +.tag-frequency-disambiguation-separator::before { + content: ":"; +} +.tag-frequency-disambiguation::before { + content: "("; +} +.tag-frequency-disambiguation::after { + content: ") "; +} +.frequencies .tag[data-reading-is-same=true] .tag-frequency-disambiguation-separator, +.frequencies .tag[data-reading-is-same=true] .tag-frequency-disambiguation-reading, +.entry[data-unique-expression-count="1"] .tag-frequency-disambiguation-separator, +.entry[data-unique-expression-count="1"] .tag-frequency-disambiguation-expression, +.entry[data-unique-reading-count="1"] .tag-frequency-disambiguation-separator, +.entry[data-unique-reading-count="1"] .tag-frequency-disambiguation-reading, +.entry[data-unique-expression-count="1"][data-unique-reading-count="1"] .tag-frequency-disambiguation { + display: none; +} /* Entries */ @@ -644,27 +665,6 @@ button.action-button { .term-expression-list>.term-expression:not(:last-of-type)>.term-expression-text-container>.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 */ @@ -708,7 +708,7 @@ button.action-button { bottom: -1.9em; white-space: nowrap; } -.entry[data-expression-multi=true] .term-expression-list .term-expression-details>.frequencies .term-frequency-disambiguation { +.entry[data-expression-multi=true] .term-expression-list .term-expression-details>.frequencies .tag-frequency-disambiguation { display: none; } |