aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-05-25 11:29:51 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2024-05-25 11:29:51 +0200
commit4f517919fb6467c7bb448b4d1fc64dd53de65a3f (patch)
tree25f03a7ff6b83594b33eee32bb41be05bfc60413
parent2733c650216d4b38c027aaeaef6267841276ffed (diff)
tweak anki card editor css
-rw-r--r--.local/share/Anki2/addons21/308574457/user_files/Editor.css20
-rwxr-xr-x.local/share/mode/switch.d/anki5
2 files changed, 19 insertions, 6 deletions
diff --git a/.local/share/Anki2/addons21/308574457/user_files/Editor.css b/.local/share/Anki2/addons21/308574457/user_files/Editor.css
index 6e5af0b..c826858 100644
--- a/.local/share/Anki2/addons21/308574457/user_files/Editor.css
+++ b/.local/share/Anki2/addons21/308574457/user_files/Editor.css
@@ -1,2 +1,20 @@
-body { background-color: var(--canvas); }
+body
+{ background-color: var(--canvas); }
+
+.rich-text-input,
+.tag-editor
+{ padding: 0.5ex !important; }
+
+body
+{ font-size: 10pt !important; }
+
+anki-editable { background-color: #ff00ff; }
+
+.editor-field
+{ border-color: var(--canvas-inset) !important; }
+
+.tag-editor {
+ border: none !important;
+ margin: 0 !important;
+}
diff --git a/.local/share/mode/switch.d/anki b/.local/share/mode/switch.d/anki
index 2cc1926..f1a20a4 100755
--- a/.local/share/mode/switch.d/anki
+++ b/.local/share/mode/switch.d/anki
@@ -8,11 +8,6 @@ ANKI_REDESIGN="$XDG_DATA_HOME/Anki2/addons21/308574457"
# ensure folders exist
mkdir -p "$ANKI_REDESIGN/user_files/themes"
-# disable layout themeing
-( cd "$ANKI_REDESIGN/user_files"
- touch BottomBar.css CardLayout.css DeckBrowser.css Editor.css Overview.css \
- Reviewer.css ReviewerBottomBar.css TopToolbar.css global.css legacy.css )
-
# ensure theme is set to mode
CONFIG="$ANKI_REDESIGN/config.json"
[ -e "$CONFIG" ] && jq '.theme = "mode"' "$CONFIG" | sponge "$CONFIG"