aboutsummaryrefslogtreecommitdiff
path: root/ext/css
diff options
context:
space:
mode:
authorStefanVukovic99 <stefanvukovic44@gmail.com>2024-01-20 02:25:23 +0100
committerGitHub <noreply@github.com>2024-01-20 01:25:23 +0000
commit2b87c919bcd879c7f356308bc522b95f33e35f3b (patch)
tree1301aa8bf3d9b91ad96bbe9372a66dceba190346 /ext/css
parent48f1d012ad5045319d4e492dfbefa39da92817b2 (diff)
Dictionary deinflections (#503)
* wip * wip * fix v3 * wip * fix tests * fix maxitems * hide deinflection definitions * fix anki template * undo unnecessary change * delete console.log * refactor * add set false to handlebars * lint * fix tests * fix comments * fix * use Map in areArraysEqualIgnoreOrder * move inflection source icons to css * lint * improve naming * fix tests * add test * typescript * use for of * wip * comments * anki template upgrade * update descriptions
Diffstat (limited to 'ext/css')
-rw-r--r--ext/css/display.css30
1 files changed, 26 insertions, 4 deletions
diff --git a/ext/css/display.css b/ext/css/display.css
index 49aeaaa5..e0b7ab6d 100644
--- a/ext/css/display.css
+++ b/ext/css/display.css
@@ -809,17 +809,39 @@ button.action-button:active {
/* Inflections */
-.inflection-list {
- display: inline-block;
+.inflection-rule-chains {
+ padding-inline-start: 0;
+ list-style-type: none;
+}
+.inflection-rule-chain {
color: var(--reason-text-color);
}
-.inflection-list:empty {
+.inflection-rule-chain:empty {
display: none;
}
-.inflection-list>.inflection+.inflection-separator+.inflection::before {
+.inflection-rule-chain>.inflection+.inflection-separator+.inflection::before {
content: var(--inflection-separator);
padding: 0 0.25em;
}
+.inflection-source-icon {
+ display: inline-block;
+ white-space: nowrap;
+ text-align: center;
+ width: 1.4em;
+ margin-right: 0.2em;
+}
+.inflection-source-icon[data-inflection-source='dictionary']::after {
+ content: '📖';
+}
+.inflection-source-icon[data-inflection-source='algorithm']::after {
+ content: '🧩';
+}
+.inflection-source-icon[data-inflection-source='both'] {
+ width: 2.8em;
+}
+.inflection-source-icon[data-inflection-source='both']::after {
+ content: '🧩📖';
+}
/* Headwords */